/* =========================================================
   Aaro Industries — Precision CNC / VMC / EDM
   v2 · "Drawing sheet" theme — warm paper, graphite ink, safety orange
   To re-theme, change the tokens in :root only.
   ========================================================= */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* surfaces */
  --paper: #eef1f4;
  --paper-2: #e3e8ed;
  --white: #ffffff;
  --ink: #0f1b2a;
  --ink-2: #33404f;
  --ink-3: #172434;
  --muted: #66717f;
  --muted-2: #97a1ad;
  --line: #dbe1e8;
  --line-2: #c9d1da;

  /* accent */
  --accent: #3d9be0;
  --accent-text: #1f6fb2;          /* accessible orange for small text on light */
  --accent-soft: #e4f1fb;

  /* on dark */
  --on-dark: #a9aab0;
  --line-dark: rgba(255, 255, 255, 0.1);

  --success: #15935c;
  --danger: #c62f2f;

  --font-head: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,27,42, 0.05);
  --shadow: 0 1px 2px rgba(15,27,42, 0.04), 0 12px 32px -14px rgba(15,27,42, 0.16);
  --shadow-lg: 0 2px 4px rgba(15,27,42, 0.04), 0 30px 60px -24px rgba(15,27,42, 0.28);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light, .bg-dark .eyebrow { color: var(--on-dark); }

.h-display { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 600; }
.h-1 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.06; }
.h-2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.h-3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.12rem); color: var(--muted); line-height: 1.7; }
.accent { color: var(--accent); }
.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead { color: var(--on-dark); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover { --bg: var(--accent); --bd: var(--accent); --fg: #fff; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--ink); }
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn-outline:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-dark { --bg: var(--ink); --bd: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-white:hover { --bg: var(--accent); --bd: var(--accent); --fg: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
/* buttons on dark surfaces */
.bg-dark .btn:not(.btn-ghost), .cta-band .btn:not(.btn-ghost), .footer-cta .btn:not(.btn-ghost) { --bg: var(--accent); --bd: var(--accent); --fg: #fff; }
.bg-dark .btn:not(.btn-ghost):hover, .cta-band .btn:not(.btn-ghost):hover, .footer-cta .btn:not(.btn-ghost):hover { --bg: #fff; --bd: #fff; --fg: var(--ink); }
.bg-dark .btn-ghost, .cta-band .btn-ghost, .footer-cta .btn-ghost, .on-dark .btn-ghost { --fg: #fff; --bd: rgba(255,255,255,.28); }
.bg-dark .btn-ghost:hover, .cta-band .btn-ghost:hover, .footer-cta .btn-ghost:hover, .on-dark .btn-ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-text); border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(238,241,244, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; color: var(--ink); flex-shrink: 0; }
.brand svg { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(15,27,42,.05); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--white); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.header-phone svg { width: 15px; height: 15px; color: var(--accent); }
.header-phone:hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: var(--white); border-radius: 999px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper);
  padding: 16px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a.m-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em;
}
.mobile-nav a.m-link span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); font-weight: 400; }
.mobile-nav a.m-link[aria-current="page"] { color: var(--accent-text); }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav .m-contact { margin-top: 24px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
body.nav-open { overflow: hidden; }

/* ---------- Home hero (interactive simulator) ---------- */
.hero2 {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--paper);
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
}
.hero2::after { /* faint drawing-sheet grid */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(15,27,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,27,42,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.h2-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(61,155,224,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(61,155,224,.22) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 70%);
  mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 70%);
}
.h2-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.hero2 .hero-content { max-width: 560px; }
.hero2 h1 { margin-top: 26px; font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.hero2 .lead { margin-top: 22px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.proc-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.pchip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 0;
  transition: color .2s, background .2s;
}
.pchip:hover { color: var(--ink); background: var(--paper); }
.pchip.active { color: #fff; background: var(--ink); }
.pchip.active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

.h2-drop {
  margin-top: 28px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius);
  border: 1px dashed var(--line-2); background: rgba(255,255,255,.6);
  color: var(--ink-2); max-width: 470px;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.h2-drop:hover { border-color: var(--accent); background: var(--white); transform: translateY(-2px); }
.h2-drop > svg { width: 17px; height: 17px; margin-left: auto; color: var(--ink); flex-shrink: 0; transition: transform .25s var(--ease); }
.h2-drop:hover > svg { transform: translateX(4px); color: var(--accent); }
.h2-drop-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.h2-drop-ic svg { width: 19px; height: 19px; }
.h2-drop strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.h2-drop small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* simulator panel */
.sim-wrap { perspective: 1600px; }
.sim {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sim-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink); }
.sim-title .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.sim-part { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-stage { position: relative; padding: 10px; background: #f8fafc; }
.sim-stage svg { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: pan-y; }

.s-outline .ol { fill: none; stroke: var(--ink-3); stroke-width: 1.15; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: olDraw 1.1s var(--ease) forwards; }
.s-outline .ol.center { stroke: rgba(15,27,42,.28); stroke-width: .6; stroke-dasharray: 0.02 0.01 0.004 0.01; stroke-dashoffset: 0; animation: fadeIn .8s forwards; opacity: 0; }
.s-outline .ol.hidden { stroke: rgba(15,27,42,.32); stroke-width: .7; stroke-dasharray: .02 .012; stroke-dashoffset: 0; animation: fadeIn .8s forwards; opacity: 0; }
.s-outline .ol.thin { stroke: rgba(15,27,42,.45); stroke-width: .7; }
@keyframes olDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.s-dims .dim { opacity: 0; animation: fadeIn .6s forwards; }
.s-dims path { fill: none; stroke: #8a8c92; stroke-width: .6; }
.s-dims .arrow { fill: #66717f; stroke: none; }
.s-dims text { font-family: var(--font-mono); font-size: 8.5px; fill: #55585e; letter-spacing: .03em; }
.s-dims .note { fill: #8a8c92; font-size: 8px; letter-spacing: .08em; }
.s-dims .lbl-bg { fill: #f8fafc; }

.s-preview { fill: none; stroke: rgba(15,27,42,.12); stroke-width: .7; stroke-dasharray: 3 3; }
.s-cut { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sim[data-mode="wire"] .s-cut { stroke-width: 1.3; }
.s-rapid { fill: none; stroke: rgba(15,27,42,.35); stroke-width: .8; stroke-dasharray: 4 3; }
.s-tool-ring { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.s-tool-x { stroke: var(--ink); stroke-width: 1; }
.sim[data-mode="wire"] .s-tool-ring { fill: var(--accent); stroke: #fff; r: 3; }
.spark { fill: var(--accent); }

.s-cursor line { stroke: rgba(15,27,42,.35); stroke-width: .5; stroke-dasharray: 2 2; }
.s-cursor rect { fill: var(--ink); stroke: none; }
.s-cursor text { font-size: 8.5px; fill: #fff; font-family: var(--font-mono); }
.s-cursor { transition: opacity .2s; pointer-events: none; }

.s-done { transition: opacity .4s; pointer-events: none; }
.s-done rect { fill: var(--ink); stroke: none; }
.s-done-ck { fill: none; stroke: #4ade80; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-done-t1 { font-family: var(--font-head); font-weight: 600; font-size: 12px; fill: #fff; letter-spacing: .08em; }
.s-done-t2 { font-size: 8.5px; fill: #a7f3c4; }

.sim-dro { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink); }
.sim-dro div { padding: 10px 14px; border-left: 1px solid rgba(255,255,255,.07); min-width: 0; }
.sim-dro div:first-child { border-left: 0; }
.sim-dro small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8a8c92; }
.sim-dro b { display: block; margin-top: 2px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: #8fd0ff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sim-foot { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; font-size: 13px; }
.sim-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.sim-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.sim-status i.ok { background: var(--success); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,155,224,.5); } 70% { box-shadow: 0 0 0 7px rgba(61,155,224,0); } 100% { box-shadow: 0 0 0 0 rgba(61,155,224,0); } }
.sim-meta { font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.sim-bar { height: 3px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.sim-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.sim-pct { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); min-width: 34px; text-align: right; }
.sim-note { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted-2); text-align: center; }

/* feature strip under hero */
.hero-strip { position: relative; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-strip li { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; border-left: 1px solid var(--line); }
.hero-strip li:first-child { border-left: 0; padding-left: 0; }
.hero-strip .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--accent-text); border: 1px solid var(--line); }
.hero-strip .ic svg { width: 19px; height: 19px; }
.hero-strip strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.hero-strip span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; background: var(--paper);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.ph-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero.no-media .ph-grid { grid-template-columns: 1fr; }
.ph-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-2); }
.ph-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,27,42,.06); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--accent-text); }
.page-hero h1 { max-width: 720px; }
.page-hero .lead { margin-top: 18px; max-width: 580px; }
.page-hero .hero-actions { margin-top: 30px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.bg-soft { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-dark, .bg-darker { background: var(--ink); color: var(--on-dark); }
.bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-darker h2, .bg-darker h3, .bg-darker h4 { color: #fff; }
.bg-dark .lead, .bg-darker .lead { color: var(--on-dark); }
.bg-grid { position: relative; isolation: isolate; }

.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .sh-text { max-width: 640px; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 14px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

.sec-index { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.bg-dark .sec-index { color: var(--on-dark); }

/* ---------- Materials marquee ---------- */
.marquee-wrap { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; }
.marquee li { display: flex; align-items: center; gap: 10px; padding: 18px 26px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee li::after { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; margin-left: 26px; transform: rotate(45deg); }
.marquee li b { color: var(--ink); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Capability cards (home) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cap-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cap-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.cap-card .cc-img { position: relative; overflow: hidden; aspect-ratio: 16/8; background: var(--paper-2); margin: 8px 8px 0; border-radius: 12px; }
.cap-card .cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cap-card:hover .cc-img img { transform: scale(1.05); }
.cap-card .cc-tag {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--ink); padding: 5px 10px; border-radius: 999px;
}
.cap-card .cc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cap-card h3 { font-size: 1.18rem; }
.cap-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.cap-card .chips { margin-top: 16px; }
.cap-card .cc-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.cap-card .cc-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.cap-card.span-3 { grid-column: span 3; }
.cap-card.span-2 { grid-column: span 2; }
.cap-card.span-3 .cc-img { aspect-ratio: 16/7; }
.bg-soft .cap-card { background: var(--paper); }
.bg-soft .cap-card:hover { background: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.bg-soft .chip { background: var(--white); }
.bg-dark .chip, .on-dark .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #d6d7da; }

.arrow-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); background: var(--white); transition: all .3s var(--ease);
}
.arrow-btn svg { width: 15px; height: 15px; }
.cap-card:hover .arrow-btn, .ind-card:hover .arrow-btn { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ---------- Industries (home) ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 3/4; isolation: isolate; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: var(--ink-3);
}
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease), opacity .4s; opacity: .85; }
.ind-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,27,42,0) 30%, rgba(15,27,42,.9) 100%); }
.ind-card:hover img { transform: scale(1.06); opacity: 1; }
.ind-card .ic-num { position: absolute; top: 20px; left: 22px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.75); }
.ind-card .arrow-btn { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ind-card h3 { color: #fff; font-size: 1.22rem; }
.ind-card p { font-size: 14px; color: #d1d2d5; margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s; }
.ind-card:hover p, .ind-card:focus-visible p { max-height: 120px; opacity: 1; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s, box-shadow .3s; }
.step:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.step .st-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: all .3s var(--ease); }
.step:hover .st-ic { background: var(--accent); border-color: var(--accent); color: #fff; }
.step .st-ic svg { width: 21px; height: 21px; }
.step .st-num { display: block; margin-top: 26px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); letter-spacing: .08em; }
.step h3 { margin-top: 6px; font-size: 1.1rem; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.bg-soft .step { background: var(--paper); }
.bg-soft .step:hover { background: var(--white); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin-top: 16px; }
.split .lead { margin-top: 18px; }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4/4.4; }
.media-frame.wide { aspect-ratio: 16/10; }
.reg { position: relative; }

.media-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 12px 16px; color: var(--ink); box-shadow: var(--shadow);
}
.media-badge small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.media-badge strong { font-family: var(--font-head); font-weight: 600; font-size: 16px; }

.check-list { display: grid; gap: 16px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.check-list .ck svg { width: 12px; height: 12px; }
.check-list strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.check-list span { font-size: 15px; color: var(--muted); }
.on-dark .check-list strong, .bg-dark .check-list strong { color: #fff; }
.on-dark .check-list span, .bg-dark .check-list span { color: var(--on-dark); }
.bg-dark .check-list .ck { background: var(--accent); }

/* ---------- Feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--white); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s, box-shadow .3s, background .3s; }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tile .t-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: all .3s; }
.tile:hover .t-ic { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile .t-ic svg { width: 21px; height: 21px; }
.tile h3 { margin-top: 20px; font-size: 1.06rem; }
.tile p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.bg-soft .tile { background: var(--paper); }
.bg-soft .tile:hover { background: var(--white); }
.bg-dark .tile { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.bg-dark .tile:hover { background: rgba(255,255,255,.06); box-shadow: none; }
.bg-dark .tile .t-ic { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }
.bg-dark .tile:hover .t-ic { background: var(--accent); border-color: var(--accent); }
.bg-dark .tile p { color: var(--on-dark); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; background: var(--ink); color: var(--on-dark); display: grid; grid-template-columns: 1.2fr 1fr; }
.cta-band .cta-text { padding: clamp(36px, 5vw, 64px); }
.cta-band .eyebrow { color: var(--on-dark); }
.cta-band h2 { color: #fff; margin-top: 16px; }
.cta-band p { margin-top: 14px; max-width: 480px; }
.cta-band .hero-actions { margin-top: 28px; }
.cta-band .cta-media { position: relative; min-height: 280px; margin: 10px; border-radius: 16px; overflow: hidden; }
.cta-band .cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark); }
.cta-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cta-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Capabilities page ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc .svc-media { aspect-ratio: 16/10; }
.svc .svc-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-text); letter-spacing: .08em; }
.svc h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.svc > div > p { margin-top: 14px; color: var(--muted); }
.spec-table { margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14.5px; background: var(--white); }
.spec-table div { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); }
.spec-table div:first-child { border-top: 0; }
.spec-table dt { padding: 12px 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; border-right: 1px solid var(--line); }
.spec-table dd { margin: 0; padding: 12px 16px; color: var(--ink); font-weight: 500; }
.svc .svc-actions { margin-top: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(238,241,244,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 7px 14px; white-space: nowrap; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.subnav a:hover { color: var(--ink); background: rgba(15,27,42,.05); }
.subnav a.active { color: #fff; background: var(--ink); }

.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); transition: border-color .3s, background .3s; }
.bg-soft .mat { background: var(--paper); }
.mat:hover { border-color: var(--line-2); background: var(--white); }
.mat .sym { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.mat h3 { font-size: 1.04rem; margin-top: 14px; }
.mat p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Industries page ---------- */
.ind-rows { display: grid; gap: 16px; }
.ind-row { display: grid; grid-template-columns: 400px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.ind-row:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.ind-row .ir-media { position: relative; min-height: 280px; overflow: hidden; margin: 8px; border-radius: 12px; }
.ind-row .ir-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ind-row:hover .ir-media img { transform: scale(1.05); }
.ind-row .ir-body { padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.ind-row .ir-head { grid-column: 1 / -1; }
.ind-row .ir-head .sec-index { color: var(--accent-text); }
.ind-row h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 8px; }
.ind-row .ir-head p { margin-top: 10px; color: var(--muted); max-width: 620px; }
.ind-row h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.dot-list { display: grid; gap: 8px; }
.dot-list li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.dot-list li::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; transform: translateY(-3px); }
.bg-soft .ind-row { background: var(--paper); }

/* ---------- Quality page ---------- */
.q-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q-card { position: relative; padding: 30px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); }
.q-card .q-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .08em; display: inline-block; padding: 4px 10px; border: 1px solid rgba(61,155,224,.4); border-radius: 999px; }
.q-card h3 { margin-top: 20px; font-size: 1.15rem; }
.q-card p { margin-top: 8px; font-size: 14.5px; }
.q-card ul { margin-top: 18px; display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.q-card li { font-size: 14px; display: flex; gap: 10px; align-items: baseline; color: #d6d7da; }
.q-card li::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; background: var(--accent); border-radius: 1px; transform: translateY(-3px); }

.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.doc .t-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.doc .t-ic svg { width: 20px; height: 20px; }
.doc h3 { font-size: 1rem; }
.doc p { font-size: 14px; color: var(--muted); margin-top: 4px; }

.quote-block { position: relative; padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: var(--accent); color: var(--ink); overflow: hidden; }
.quote-block blockquote { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--ink); letter-spacing: -0.025em; max-width: 860px; }
.quote-block .qb-foot { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(15,27,42,.75); }

/* ---------- About page ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.vm { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.vm .t-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.vm .t-ic svg { width: 20px; height: 20px; }
.vm h3 { margin-top: 18px; font-size: 1.12rem; }
.vm p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); }
.value .sec-index { color: var(--accent); }
.value h3 { margin-top: 16px; font-size: 1.1rem; }
.value p { margin-top: 8px; font-size: 14.5px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--ink); padding: 5px 10px; border-radius: 999px; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: 1.5rem; }
.form-card > p, .form-card form > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.form-steps { display: flex; gap: 8px; margin: 24px 0 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.form-steps span { display: inline-flex; align-items: center; gap: 8px; }
.form-steps span + span::before { content: ""; width: 18px; height: 1px; background: var(--line-2); margin-right: 2px; }
.form-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 500; font-size: 11px; }
.fieldset-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent-text); }
.field label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--white);
  font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%230f1b2a' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: #aab5c2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(61,155,224,.14); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); background: #fff8f7; }
.field .err { display: none; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.field.invalid .err { display: block; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 28px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.dropzone .dz-ic svg { width: 20px; height: 20px; }
.dropzone strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15px; margin-top: 6px; }
.dropzone strong u { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.dropzone strong svg { color: var(--accent-text) !important; }
.dropzone small { font-size: 12.5px; color: var(--muted); }
.file-list { margin-top: 10px; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 14px; }
.file-list .fi-ext { font-family: var(--font-mono); font-size: 11px; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: #fff; text-transform: uppercase; }
.file-list .fi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.file-list .fi-size { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.file-list button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; display: grid; place-items: center; }
.file-list button:hover { color: var(--danger); }
.file-list button svg { width: 16px; height: 16px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 20px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .note { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.form-actions .note svg { width: 15px; height: 15px; color: var(--success); }
.hp { position: absolute !important; left: -9999px !important; }

.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: .75; }
.btn.loading .btn-arrow { display: none; }
.btn-arrow { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; }
.form-alert.show { display: block; }
.form-alert.error { background: #fff3f1; color: #9b1c1c; border: 1px solid #f5cdc6; }

.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success .ok { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #e8f6ee; color: var(--success); }
.form-success .ok svg { width: 32px; height: 32px; }
.form-success h3 { margin-top: 20px; font-size: 1.5rem; }
.form-success p { margin: 10px auto 0; max-width: 420px; color: var(--muted); }
.form-success .ref { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 13px; padding: 8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.form-success .ref:empty { display: none; }

/* sidebar */
.aside-card { border-radius: var(--radius-lg); padding: 28px; background: var(--ink); color: var(--on-dark); position: relative; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h3 { color: #fff; font-size: 1.12rem; }
.aside-card > p { font-size: 14.5px; margin-top: 8px; }
.aside-card .check-list { margin-top: 20px; gap: 14px; }
.aside-card .check-list .ck { background: var(--accent); }
.aside-card .check-list strong { color: #fff; font-size: 14.5px; }
.aside-card .check-list span { color: var(--on-dark); font-size: 13.5px; }
.aside-card.light { background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.aside-card.light h3 { color: var(--ink); }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-line:first-of-type { margin-top: 14px; }
.contact-line .t-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); flex-shrink: 0; }
.contact-line .t-ic svg { width: 18px; height: 18px; }
.contact-line small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-line a, .contact-line span { color: var(--ink); font-weight: 500; font-size: 15px; }
.contact-line a:hover { color: var(--accent-text); }

/* contact page */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: all .3s var(--ease); }
a.c-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.c-card .t-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background .3s; }
a.c-card:hover .t-ic { background: var(--accent); }
.c-card .t-ic svg { width: 21px; height: 21px; }
.c-card small { display: block; margin-top: 20px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-card strong { display: block; margin-top: 6px; font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; color: var(--ink); word-break: break-word; }
.c-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--paper-2); height: 100%; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.hours { margin: 18px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; color: var(--ink); font-weight: 500; font-family: var(--font-mono); font-size: 13.5px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; width: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--accent); border-color: var(--accent); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.bg-soft .faq details { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.footer-cta { border-bottom: 1px solid var(--line-dark); padding: clamp(48px, 6vw, 72px) 0; }
.footer-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 620px; letter-spacing: -0.035em; }
.footer-cta h2 .accent { color: var(--accent); }
.footer-main { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-main .brand { color: #fff; }
.footer-main .brand svg { height: 40px; }
.footer-main .tagline { margin-top: 18px; font-size: 15px; max-width: 320px; }
.footer-main h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-main ul { display: grid; gap: 10px; }
.footer-main ul a { font-size: 15px; transition: color .2s; }
.footer-main ul a:hover { color: #fff; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.f-contact svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.f-contact a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark); transition: all .25s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
.footer-word {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.05em; line-height: .8;
  font-size: clamp(80px, 19vw, 280px); text-align: center; white-space: nowrap;
  color: rgba(255,255,255,.035);
  margin-bottom: -0.1em; user-select: none; pointer-events: none;
}

/* floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(15,27,42,.4); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 27px; height: 27px; }

.to-top { position: fixed; right: 25px; bottom: 86px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .ind-row { grid-template-columns: 320px 1fr; }
}
@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .h2-grid, .ph-grid { grid-template-columns: 1fr; }
  .hero2 .hero-content { max-width: 680px; }
  .sim-wrap { max-width: 680px; }
  .ph-media { aspect-ratio: 16 / 9; max-width: 680px; }
  .hero-strip ul { grid-template-columns: 1fr 1fr; }
  .hero-strip li { padding: 20px; }
  .hero-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-card.span-3, .cap-card.span-2 { grid-column: span 1; }
  .cap-card.span-3 .cc-img { aspect-ratio: 16/8; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .ind-card { aspect-ratio: 4/4; }
  .ind-card p { max-height: 120px; opacity: 1; }
  .process { grid-template-columns: 1fr 1fr; }
  .split, .svc, .form-shell { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .svc:nth-child(even) .svc-media { order: 0; }
  .tiles, .tiles.cols-3 { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-media { min-height: 220px; order: -1; margin: 10px 10px 0; }
  .mat-grid { grid-template-columns: 1fr 1fr; }
  .ind-row { grid-template-columns: 1fr; }
  .ind-row .ir-media { min-height: 240px; }
  .q-stage, .doc-grid, .contact-cards { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand svg { height: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-strip ul { grid-template-columns: 1fr; }
  .hero-strip li, .hero-strip li:nth-child(odd) { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .hero-strip li:first-child { border-top: 0; }
  .cap-grid, .ind-grid, .tiles, .tiles.cols-3, .mat-grid, .q-stage, .doc-grid, .contact-cards, .values, .vm-grid, .process { grid-template-columns: 1fr; }
  .ind-card { aspect-ratio: 16/11; }
  .f-grid { grid-template-columns: 1fr; }
  .spec-table div { grid-template-columns: 1fr; }
  .spec-table dt { padding-bottom: 2px; border-right: 0; }
  .spec-table dd { padding-top: 2px; }
  .ind-row .ir-body { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .gallery figure:first-child { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; }
  .form-card { padding: 22px 18px; }
  .form-steps { display: none; }
  .media-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .proc-chips { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .pchip { text-align: center; }
  .sim-dro { grid-template-columns: repeat(3, 1fr); }
  .sim-dro div:nth-child(4) { border-left: 0; }
  .sim-dro div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.07); }
  .sim-foot { grid-template-columns: 1fr auto; }
  .sim-meta, .sim-part { display: none; }
  .sim-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* =========================================================
   "Scroll runs the program" — machining layer
   ========================================================= */
main { position: relative; }

/* 1 · cutter bar under the header */
.cutbar { position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; pointer-events: none; z-index: 2; }
.cb-track {
  position: absolute; left: 0; right: 0; top: 3px; height: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(15,27,42,.22) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #e6ebf0, #cfd7e0);
  border-top: 1px solid rgba(15,27,42,.08);
}
.cb-cut {
  position: absolute; left: 0; right: 0; top: 3px; height: 3px; transform-origin: left center; transform: scaleX(0);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #8fd0ff, var(--accent) 60%, #1f6fb2);
  box-shadow: 0 0 8px rgba(61,155,224,.45);
}
.cb-tool { position: absolute; left: -5px; top: -15px; width: 10px; height: 22px; will-change: transform; }
.cb-shank { position: absolute; left: 1px; top: 0; width: 8px; height: 9px; background: var(--ink); border-radius: 2px 2px 0 0; }
.cb-flutes {
  position: absolute; left: 2px; top: 9px; width: 6px; height: 12px; border-radius: 0 0 2px 2px;
  background: repeating-linear-gradient(-55deg, #c9c7c1 0 2px, #66717f 2px 4px);
  background-size: 6px 8px;
}
.cutbar.moving .cb-flutes { animation: flute .12s linear infinite; }
@keyframes flute { to { background-position: 0 8px; } }
.cb-read {
  position: absolute; left: 0; top: -15px; padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--ink);
  background: rgba(255,255,255,.85); border: 1px solid var(--line); white-space: nowrap;
  opacity: 0; transition: opacity .3s;
}
.cutbar.moving .cb-read, .site-header:hover .cb-read { opacity: 1; }

/* sparks */
.mx-sparks { position: fixed; inset: 0; z-index: 101; pointer-events: none; }

/* 2 · toolpath spine */
.spine { position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; overflow: visible; }
.sp-preview { fill: none; stroke: rgba(61,155,224,.28); stroke-width: 1; stroke-dasharray: 4 5; }
.sp-cut { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.sp-node circle { fill: var(--paper); stroke: rgba(61,155,224,.5); stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.sp-node path { stroke: rgba(61,155,224,.45); stroke-width: 1; }
.sp-node.hit circle { fill: var(--accent); stroke: var(--accent); }
.sp-tool .sp-glow { fill: rgba(61,155,224,.14); }
.sp-tool .sp-ring { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.sp-tool .sp-x { stroke: var(--ink); stroke-width: 1.1; }

/* 3 · DRO HUD */
.dro-hud {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; width: 232px;
  background: rgba(15,27,42,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #d6d7da; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px -16px rgba(15,27,42,.55);
  font-family: var(--font-mono); font-size: 11px; overflow: hidden;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s;
}
.dro-hud.show { opacity: 1; transform: none; }
.dro-hud .hud-grid, .dro-hud .hud-prog { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: max-height .35s var(--ease), opacity .3s, padding .35s var(--ease); }
.dro-hud.running .hud-grid, .dro-hud.done .hud-grid { max-height: 80px; opacity: 1; padding-top: 9px; padding-bottom: 10px; }
.dro-hud.running .hud-prog, .dro-hud.done .hud-prog { max-height: 2px; opacity: 1; }
.dro-hud:not(.running):not(.done) .hud-top { border-bottom-color: transparent; }
.hud-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.hud-led { width: 7px; height: 7px; border-radius: 50%; background: #55585e; flex-shrink: 0; transition: background .3s, box-shadow .3s; }
.dro-hud.running .hud-led { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dro-hud.done .hud-led { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hud-n { color: var(--accent); font-weight: 500; }
.dro-hud.done .hud-n { color: #4ade80; }
.hud-op { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.dro-hud.flash .hud-top { animation: hudFlash .6s ease; }
@keyframes hudFlash { 0% { background: rgba(61,155,224,.35); } 100% { background: transparent; } }
.hud-grid { display: grid; grid-template-columns: 14px 1fr 14px 1fr; gap: 4px 6px; padding: 9px 12px 10px; align-items: baseline; }
.hud-grid span { color: #66717f; }
.hud-grid b { font-weight: 500; color: #8fd0ff; font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.hud-prog { height: 2px; max-height: 2px; background: rgba(255,255,255,.08); }
.hud-prog i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* 4 · machined reveals (progressive enhancement — needs @property) */
@property --cut { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --scan { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

.cut-h { position: relative; width: fit-content; max-width: 100%; clip-path: inset(-12px -12px -12px -12px); }
.cut-h:not(.cut-done) { --cut: 0%; clip-path: inset(-12px calc(100% - var(--cut)) -12px -12px); }
.cut-h.cut-go { animation: cutIn 1.15s cubic-bezier(.6,.05,.25,1) forwards; }
.cut-h::after {
  content: ""; position: absolute; top: -6px; bottom: -6px; left: calc(var(--cut) - 2px); width: 2px;
  background: var(--accent); box-shadow: 0 0 10px 1px rgba(61,155,224,.7); opacity: 0;
}
.cut-h.cut-go::after { animation: cutLine 1.15s cubic-bezier(.6,.05,.25,1) forwards; }
@keyframes cutIn { from { --cut: 0%; } to { --cut: 100%; clip-path: inset(-12px -12px -12px -12px); } }
@keyframes cutLine { 0% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.section-head.center .cut-h { margin-left: auto; margin-right: auto; }

.scan-in { position: relative; }
.scan-in:not(.scan-done) { --scan: 0%; clip-path: inset(0 0 calc(100% - var(--scan)) 0 round var(--radius-lg)); }
.scan-in.scan-go { animation: scanIn 1.1s cubic-bezier(.55,.1,.25,1) forwards; }
.scan-in::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--scan) - 2px); height: 2px; z-index: 4;
  background: var(--accent); box-shadow: 0 0 14px 2px rgba(61,155,224,.6); opacity: 0; pointer-events: none;
}
.scan-in.scan-go::before { animation: cutLine 1.1s cubic-bezier(.55,.1,.25,1) forwards; }
@keyframes scanIn { from { --scan: 0%; } to { --scan: 100%; clip-path: inset(0 0 0 0 round var(--radius-lg)); } }

/* G-code block numbers in eyebrows */
.eyebrow .g { color: var(--accent-text); margin-right: 2px; }
.bg-dark .eyebrow .g, .cta-band .eyebrow .g { color: var(--accent); }

@media (max-width: 1024px) {
  .dro-hud { left: 12px; right: auto; bottom: 12px; width: auto; }
  .dro-hud .hud-grid { display: none; }
  .dro-hud .hud-top { padding: 7px 10px; }
  .hud-op { max-width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  .cut-h, .scan-in { clip-path: none !important; }
  .cut-h::after, .scan-in::before { display: none; }
}

/* =========================================================
   Light grey + sky blue variant
   ========================================================= */
:root {
  --accent: #3d9be0;
  --accent-2: #8fd0ff;
  --accent-text: #1f6fb2;
  --dual: linear-gradient(100deg, #1f6fb2 0%, #2f8fd6 45%, #4fb0ec 100%);
}
body {
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(61,155,224,.14), transparent 60%),
    radial-gradient(700px 500px at -10% 50%, rgba(143,208,255,.12), transparent 60%),
    #eef1f4;
  background-attachment: fixed;
}
.hero2, .page-hero, .marquee-wrap { background: transparent; }
.bg-soft { background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cap-card, .tile, .step, .mat, .ind-row, .doc, .vm, .c-card, .form-card, .faq details, .sim { box-shadow: 0 1px 2px rgba(15,27,42,.04), 0 10px 30px -18px rgba(31,111,178,.25); }
.cap-card:hover, .tile:hover, .step:hover, .ind-row:hover, a.c-card:hover { border-color: rgba(61,155,224,.55); }

/* two-tone headings: deep navy + blue gradient */
.accent, .h-display .accent, .h-1 .accent, .h-2 .accent {
  background: var(--dual); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.footer-cta h2 .accent, .bg-dark .accent, .cta-band .accent { background: linear-gradient(100deg, #8fd0ff, #cfeaff); -webkit-background-clip: text; background-clip: text; }

/* buttons: navy primary, blue hover */
.btn:hover { --bg: #2f8fd6; --bd: #2f8fd6; }
.bg-dark .btn:not(.btn-ghost), .cta-band .btn:not(.btn-ghost), .footer-cta .btn:not(.btn-ghost) { --bg: #8fd0ff; --bd: #8fd0ff; --fg: #0f1b2a; }
.bg-dark .btn:not(.btn-ghost):hover, .cta-band .btn:not(.btn-ghost):hover, .footer-cta .btn:not(.btn-ghost):hover { --bg: #fff; --bd: #fff; --fg: #0f1b2a; }
.check-list .ck { background: #2f8fd6; }
.cut-h::after { background: #2f8fd6; box-shadow: 0 0 10px 1px rgba(61,155,224,.6); }
.q-card .q-num, .value .sec-index, .bg-dark .eyebrow .g, .cta-band .eyebrow .g { color: #8fd0ff; }
.quote-block { background: linear-gradient(110deg, #cfe8fa, #a9d6f5); }
.sim-dro b { color: #8fd0ff; }
.hud-grid b { color: #8fd0ff; }
.hud-n { color: #8fd0ff; }
.sp-cut { stroke: #2f8fd6; }
.s-cut { stroke: #2f8fd6; }

/* HD photos: cool steel monochrome */
img.hd { filter: grayscale(1) contrast(1.04) brightness(1.02); }


/* =========================================================
   Dark mode (toggle) — html[data-theme="dark"]
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #081019; --paper-2: #0f1a26; --white: rgba(255,255,255,.04);
  --glass-blur: blur(14px) saturate(140%); --deep: #050a10;
  --chip: #eef3f8; --chip-fg: #081019;
  --ink: #eef3f8; --ink-2: #c3ccd6; --ink-3: #e6edf4; --muted: #93a0ae; --muted-2: #66727f;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.17);
  --accent: #4fa8ec; --accent-2: #8fd0ff; --accent-text: #7cc4f5; --accent-soft: rgba(61,155,224,.14);
  --dual: linear-gradient(100deg, #4fa8ec 0%, #8fd0ff 50%, #cfeaff 100%);
  --on-dark: #9fabb8; --line-dark: rgba(255,255,255,.1);
  --success: #22c55e; --danger: #f05252;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04);
}
html[data-theme="dark"] { background: var(--paper); color-scheme: dark; }
html[data-theme="dark"] body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(61,155,224,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(143,208,255,.06), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(61,155,224,.08), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
html[data-theme="dark"] body::before { 
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
}
html[data-theme="dark"] ::selection { background: var(--accent); color: #081019; }
html[data-theme="dark"] .hero2,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .marquee-wrap { background: transparent; }
html[data-theme="dark"] .hero2::after { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); }
html[data-theme="dark"] .bg-soft { background: rgba(255,255,255,.022); border-color: var(--line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
html[data-theme="dark"] .bg-dark,
html[data-theme="dark"] .bg-darker { background: rgba(0,0,0,.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .site-footer { background: rgba(0,0,0,.7); border-top: 1px solid var(--line); }
html[data-theme="dark"] .hero-strip { background: rgba(255,255,255,.025); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
html[data-theme="dark"] .cap-card,
html[data-theme="dark"] .tile,
html[data-theme="dark"] .step,
html[data-theme="dark"] .mat,
html[data-theme="dark"] .ind-row,
html[data-theme="dark"] .doc,
html[data-theme="dark"] .vm,
html[data-theme="dark"] .c-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .aside-card.light,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .spec-table,
html[data-theme="dark"] .sim,
html[data-theme="dark"] .file-list li,
html[data-theme="dark"] .q-card,
html[data-theme="dark"] .value {
  background: rgba(255,255,255,.035);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-color: var(--line);
}
html[data-theme="dark"] .cap-card:hover,
html[data-theme="dark"] .tile:hover,
html[data-theme="dark"] .step:hover,
html[data-theme="dark"] .mat:hover,
html[data-theme="dark"] .ind-row:hover,
html[data-theme="dark"] a.c-card:hover { background: rgba(255,255,255,.06); border-color: rgba(61,155,224,.45); }
html[data-theme="dark"] .bg-soft .cap-card,
html[data-theme="dark"] .bg-soft .tile,
html[data-theme="dark"] .bg-soft .step,
html[data-theme="dark"] .bg-soft .mat,
html[data-theme="dark"] .bg-soft .ind-row,
html[data-theme="dark"] .bg-soft .faq details { background: rgba(255,255,255,.03); }
html[data-theme="dark"] .bg-soft .cap-card:hover,
html[data-theme="dark"] .bg-soft .tile:hover,
html[data-theme="dark"] .bg-soft .step:hover,
html[data-theme="dark"] .bg-soft .mat:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .aside-card { background: rgba(0,0,0,.55); border: 1px solid var(--line); }
html[data-theme="dark"] .cta-band { background: rgba(0,0,0,.6); border: 1px solid var(--line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
html[data-theme="dark"] .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 0% 0%, rgba(61,155,224,.22), transparent 70%); }
html[data-theme="dark"] .site-header.scrolled,
html[data-theme="dark"] .site-header.solid { background: rgba(8,16,25,.62); border-bottom-color: var(--line); }
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .subnav a:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .nav a[aria-current="page"] { background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px var(--line-2); }
html[data-theme="dark"] .subnav { background: rgba(8,16,25,.7); }
html[data-theme="dark"] .mobile-nav { background: rgba(8,16,25,.96); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
html[data-theme="dark"] .nav-toggle { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .btn { --bg: var(--accent); --bd: var(--accent); --fg: #081019; font-weight: 600; }
html[data-theme="dark"] .btn:hover { --bg: #eef3f8; --bd: #eef3f8; --fg: #081019; }
html[data-theme="dark"] .btn-dark { --bg: #eef3f8; --bd: #eef3f8; --fg: #081019; }
html[data-theme="dark"] .btn-dark:hover { --bg: var(--accent); --bd: var(--accent); }
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline { --bg: rgba(255,255,255,.03); --fg: var(--ink); --bd: var(--line-2); font-weight: 500; }
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-outline:hover { --bg: rgba(255,255,255,.09); --fg: #fff; --bd: rgba(255,255,255,.4); }
html[data-theme="dark"] .bg-dark .btn:not(.btn-ghost),
html[data-theme="dark"] .cta-band .btn:not(.btn-ghost),
html[data-theme="dark"] .footer-cta .btn:not(.btn-ghost) { --fg: #081019; }
html[data-theme="dark"] .bg-dark .btn:not(.btn-ghost):hover,
html[data-theme="dark"] .cta-band .btn:not(.btn-ghost):hover,
html[data-theme="dark"] .footer-cta .btn:not(.btn-ghost):hover { --fg: #081019; }
html[data-theme="dark"] .btn .spinner { border-color: rgba(8,16,25,.25); border-top-color: #081019; }
html[data-theme="dark"] .check-list .ck { background: var(--accent); color: #081019; }
html[data-theme="dark"] .pchip.active::before { background: var(--accent); }
html[data-theme="dark"] .arrow-btn { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .cap-card:hover .arrow-btn,
html[data-theme="dark"] .ind-card:hover .arrow-btn { color: #081019; }
html[data-theme="dark"] .tile:hover .t-ic,
html[data-theme="dark"] .step:hover .st-ic,
html[data-theme="dark"] a.c-card:hover .t-ic { color: #081019; }
html[data-theme="dark"] .faq details[open] summary .pm::before,
html[data-theme="dark"] .faq details[open] summary .pm::after { background: #081019; }
html[data-theme="dark"] .cap-card .cc-tag,
html[data-theme="dark"] .gallery figcaption { background: rgba(8,16,25,.7); color: #eef3f8; border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="dark"] .media-badge { background: rgba(8,16,25,.72); color: var(--ink); border: 1px solid var(--line-2); }
html[data-theme="dark"] .ph-media::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="dark"] .ind-card { background: #111; border: 1px solid var(--line); }
html[data-theme="dark"] .h2-drop { background: rgba(255,255,255,.03); }
html[data-theme="dark"] .h2-drop:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .sim-stage { background: rgba(0,0,0,.35); }
html[data-theme="dark"] .s-dims .lbl-bg { fill: #121315; }
html[data-theme="dark"] .s-dims path { stroke: #7d8088; }
html[data-theme="dark"] .s-dims .arrow { fill: #9a9ca3; }
html[data-theme="dark"] .s-dims text { fill: #b8b9be; }
html[data-theme="dark"] .s-dims .note { fill: #7d8088; }
html[data-theme="dark"] .s-outline .ol.center { stroke: rgba(255,255,255,.22); }
html[data-theme="dark"] .s-outline .ol.hidden { stroke: rgba(255,255,255,.28); }
html[data-theme="dark"] .s-outline .ol.thin { stroke: rgba(255,255,255,.4); }
html[data-theme="dark"] .s-preview { stroke: rgba(255,255,255,.12); }
html[data-theme="dark"] .s-rapid { stroke: rgba(143,208,255,.55); }
html[data-theme="dark"] .s-cursor line { stroke: rgba(255,255,255,.35); }
html[data-theme="dark"] .s-cursor rect { fill: var(--accent); }
html[data-theme="dark"] .s-cursor text { fill: #081019; }
html[data-theme="dark"] .sim-dro { background: rgba(0,0,0,.6); border-top: 1px solid var(--line); }
html[data-theme="dark"] .sim-bar { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .cb-track { background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 10px), linear-gradient(180deg, #2a2b2f, #1a1b1e); border-top-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .cb-shank { background: #3a3c41; }
html[data-theme="dark"] .cb-flutes { background: repeating-linear-gradient(-55deg, #e6e4df 0 2px, #6b6e75 2px 4px); background-size: 6px 8px; }
html[data-theme="dark"] .cb-read { background: rgba(8,16,25,.85); color: var(--ink); border-color: var(--line-2); }
html[data-theme="dark"] .sp-node circle { fill: var(--paper); }
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea { background-color: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--ink); }
html[data-theme="dark"] .input:hover,
html[data-theme="dark"] .select:hover,
html[data-theme="dark"] .textarea:hover { border-color: rgba(255,255,255,.3); }
html[data-theme="dark"] .input:focus,
html[data-theme="dark"] .select:focus,
html[data-theme="dark"] .textarea:focus { border-color: var(--accent); background-color: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(61,155,224,.18); }
html[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%23f4f2ee' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .select option { background: #151618; color: #eef3f8; }
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
html[data-theme="dark"] .field.invalid .input,
html[data-theme="dark"] .field.invalid .select,
html[data-theme="dark"] .field.invalid .textarea { background-color: rgba(240,82,82,.08); }
html[data-theme="dark"] .dropzone { background: rgba(255,255,255,.025); }
html[data-theme="dark"] .form-alert.error { background: rgba(240,82,82,.1); color: #fca5a5; border-color: rgba(240,82,82,.35); }
html[data-theme="dark"] .form-success .ok { background: rgba(34,197,94,.14); }
html[data-theme="dark"] .form-success .ref { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .map-wrap iframe { filter: grayscale(1) invert(.9) contrast(.9) brightness(.9); }
html[data-theme="dark"] .to-top { background: rgba(8,16,25,.7); border-color: var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="dark"] .quote-block { background: var(--dual); }
html[data-theme="dark"] .quote-block blockquote { color: #081019; }
html[data-theme="dark"] .quote-block .qb-foot { color: rgba(8,16,25,.7); }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: var(--ink); }
html[data-theme="dark"] .accent,
html[data-theme="dark"] .h-display .accent,
html[data-theme="dark"] .h-1 .accent,
html[data-theme="dark"] .h-2 .accent,
html[data-theme="dark"] .footer-cta h2 .accent {
  background: var(--dual);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .tone { color: #8d8f96; }
html[data-theme="dark"] .bg-dark .tone,
html[data-theme="dark"] .cta-band .tone { color: #85878e; }
html[data-theme="dark"] .cut-h::after { background: var(--accent-2); box-shadow: 0 0 12px 2px rgba(143,208,255,.75); }
html[data-theme="dark"] .eyebrow { color: #b9bac0; }
html[data-theme="dark"] .eyebrow .g { color: var(--accent); }
html[data-theme="dark"] .footer-word { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); }

/* elements that used --ink as a dark fill in light mode */
html[data-theme="dark"] .skip-link, html[data-theme="dark"] .s-done rect { fill: #050a10; background: #050a10; }
html[data-theme="dark"] .mat .sym, html[data-theme="dark"] .vm .t-ic, html[data-theme="dark"] .form-steps b, html[data-theme="dark"] .file-list .fi-ext, html[data-theme="dark"] .c-card .t-ic,
html[data-theme="dark"] .pchip.active, html[data-theme="dark"] .subnav a.active { background: var(--chip); color: var(--chip-fg); }
html[data-theme="dark"] .s-tool-ring, html[data-theme="dark"] .sp-tool .sp-ring { stroke: #081019; }
html[data-theme="dark"] .s-cut, html[data-theme="dark"] .sp-cut { stroke: #4fa8ec; }
html[data-theme="dark"] .btn, html[data-theme="dark"] .bg-dark .btn:not(.btn-ghost), html[data-theme="dark"] .cta-band .btn:not(.btn-ghost), html[data-theme="dark"] .footer-cta .btn:not(.btn-ghost) { --bg: #8fd0ff; --bd: #8fd0ff; --fg: #081019; }
html[data-theme="dark"] .btn:hover, html[data-theme="dark"] .bg-dark .btn:not(.btn-ghost):hover, html[data-theme="dark"] .cta-band .btn:not(.btn-ghost):hover, html[data-theme="dark"] .footer-cta .btn:not(.btn-ghost):hover { --bg: #eef3f8; --bd: #eef3f8; --fg: #081019; }
html[data-theme="dark"] .btn-ghost, html[data-theme="dark"] .btn-outline { --bg: rgba(255,255,255,.03); --fg: var(--ink); --bd: var(--line-2); }
html[data-theme="dark"] .btn-ghost:hover, html[data-theme="dark"] .btn-outline:hover { --bg: rgba(255,255,255,.09); --fg: #fff; --bd: rgba(255,255,255,.4); }
html[data-theme="dark"] .quote-block { background: linear-gradient(110deg, #1f6fb2, #4fa8ec 50%, #8fd0ff); }
html[data-theme="dark"] .quote-block blockquote, html[data-theme="dark"] .quote-block .qb-foot { color: #081019; }
html[data-theme="dark"] img.hd { filter: grayscale(1) contrast(1.06) brightness(.92); }
html[data-theme="dark"] .brand { color: #eef3f8; }

/* theme toggle */
.theme-toggle {
  position: relative; width: 60px; height: 32px; flex-shrink: 0; border-radius: 999px; cursor: pointer; padding: 0;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
  transition: background .3s, border-color .3s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .tt-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: #0f1b2a; color: #fff;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s;
}
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="dark"] .theme-toggle .tt-knob { transform: translateX(28px); background: #8fd0ff; color: #081019; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }
@media (max-width: 1024px) { .theme-toggle { width: 54px; height: 30px; } .theme-toggle .tt-knob { width: 22px; height: 22px; } html[data-theme="dark"] .theme-toggle .tt-knob { transform: translateX(24px); } }

/* Client photography — show in full colour */
img.hd, html[data-theme="dark"] img.hd { filter: none; }
html[data-theme="dark"] img.hd { filter: brightness(.92) saturate(.95); }
