/* ==========================================================================
   Agastya Tech Industries — brand design system
   Taken from the logo: charcoal-navy ink (the "A") and engineering green
   (the gear and swoosh), on a clean steel-white paper. Slate steel is the
   quiet secondary for labels. Copper appears only as cutting heat in the
   hero simulation.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License; see assets/fonts). Files load only if a page uses their characters. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2?v=c4c7bb6a") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin.woff2?v=ad33cbc6") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext.woff2?v=1ff13d11") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin.woff2?v=fa41c43a") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2?v=bd4781a3") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2?v=b636a65d") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Fallbacks sized to match the web fonts, so text doesn't reflow when they swap in */
@font-face { font-family: "Display Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 91.5%; ascent-override: 101.6%; descent-override: 29.5%; line-gap-override: 0%; }
@font-face { font-family: "Body Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 102.4%; ascent-override: 94.7%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: "Mono Fallback"; src: local("Consolas"); size-adjust: 109.1%; ascent-override: 93.5%; descent-override: 27.5%; line-gap-override: 0%; }

:root {
  /* Ink — logo charcoal-navy */
  --ink: #0b1219;
  --ink-2: #111a23;
  --ink-3: #18232e;
  --ink-line: #25333f;
  --ink-0: #0b0f13;
  --ink-glass: rgba(11, 18, 25, .72);

  /* Paper — steel white */
  --paper: #f3f5f2;
  --paper-2: #e6eae5;
  --paper-3: #d6dcd5;
  --card: #fbfcfa;
  --line: #d2d9d1;

  --text: #121a22;
  --muted: #55606a;
  --on-ink: #eef2f0;
  --on-ink-muted: #94a1ab;

  /* Brand green — from the gear (#34ac0a → #0a6e1e) */
  --brand-lime: #b9ec5c;
  --brand-hi: #6fd13a;
  --brand: #3fb81a;
  --brand-deep: #1d7a14;
  --brand-dark: #0f5e22;

  /* Steel — secondary for labels, data and HUD */
  --steel: #a7bccb;
  --steel-2: #7090a6;
  --steel-deep: #3f5a6c;

  --error: #b3261e;

  --heat: var(--brand);

  --font-display: "Bricolage Grotesque", "Display Fallback", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Body Fallback", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Mono Fallback", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4.8vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + 16px); }
a, button, summary, label, select, input, textarea { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 750; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.small { font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand-hi); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
/* Focus ring: deep green on light surfaces (5:1+), bright green inside dark ones */
:focus-visible { outline: 3px solid var(--focus, var(--brand-deep)); outline-offset: 3px; border-radius: 4px; }
.site-header, .site-footer, .action-bar, .section--ink, .hero, .page-hero, .cta, .work, .envelope { --focus: var(--brand-hi); }
::selection { background: var(--brand-hi); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--on-ink);
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 50px; padding: 0 1.4em;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: color .35s var(--ease-out), box-shadow .25s ease;
  isolation: isolate; overflow: hidden;
}
/* Hover: a fill sweeps in from the left and the arrow slides */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--sweep, var(--ink-3)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.btn:hover::before { transform: none; }
.btn:disabled::before { display: none; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-heat { --bg: var(--brand); --fg: var(--ink); --sweep: var(--brand-lime); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-ghost { --bg: transparent; --fg: var(--on-ink); --sweep: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--ink-line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--on-ink); }
.btn-ink { --sweep: var(--brand); }
.btn-ink:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .btn-row .btn, .form-submit { flex: 1 1 100%; width: 100%; justify-content: center; min-height: 54px; text-align: center; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--on-ink); background: var(--ink);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
/* Solid on phones: a blurred backdrop is expensive there, and it would trap the fixed mobile menu inside the header */
.site-header.is-scrolled { background: var(--ink); box-shadow: 0 1px 0 var(--ink-line); }
@media (min-width: 901px) and (hover: hover) {
  .site-header.is-scrolled { background: color-mix(in srgb, var(--ink) 93%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: auto; height: 38px; flex: none; transition: transform .7s var(--ease-out); }
.brand-text strong { transition: color .3s ease; }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand:hover .brand-text strong { color: var(--brand-hi); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 800 1.3rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.brand-text span { font: 700 .69rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-hi); margin-top: 4px; }
.footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-logo img { width: 210px; height: auto; transition: transform .5s var(--ease-out); }
.footer-logo:hover img { transform: translateY(-3px) scale(1.03); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative; display: block; padding: 8px 12px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--on-ink-muted);
  transition: color .3s, background .3s;
}
.nav ul a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand-hi); transform: scale(0); transition: transform .4s var(--ease-out); }
.nav ul a:hover { color: var(--on-ink); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scale(1); }
.nav ul a[aria-current="page"] { color: var(--on-ink); background: var(--ink-3); }
.nav-cta { min-height: 42px; font-size: .92rem; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    position: relative; display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--ink-line); border-radius: 50%; background: var(--ink-2); color: var(--on-ink); cursor: pointer; z-index: 2;
  }
  .brand { position: relative; z-index: 2; }
  .menu-btn i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: calc(var(--header-h) + 20px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--ink);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translate3d(0, -10px, 0); visibility: hidden;
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--ink-line); opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .35s ease, transform .45s var(--ease-out); }
  .nav.is-open ul li { opacity: 1; transform: none; }
  .nav.is-open ul li:nth-child(2) { transition-delay: .04s; }
  .nav.is-open ul li:nth-child(3) { transition-delay: .08s; }
  .nav.is-open ul li:nth-child(4) { transition-delay: .12s; }
  .nav.is-open ul li:nth-child(5) { transition-delay: .16s; }
  .nav ul a { padding: 16px 0; border-radius: 0; font: 650 clamp(1.55rem, 7.4vw, 2rem)/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--on-ink); background: none !important; }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--brand-hi); }
  .nav-cta { align-self: stretch; justify-content: center; min-height: 54px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
/* Off-screen sections skip rendering entirely until they're near the viewport */
main > .section ~ .section { content-visibility: auto; contain-intrinsic-size: auto 820px; }
.section--ink { background: var(--ink); color: var(--on-ink); isolation: isolate; }
.section--ink .lead, .section--ink p { color: var(--on-ink-muted); }
.section--paper2 { background: var(--paper-2); }
.section-head { display: grid; gap: clamp(14px, 2vw, 18px); margin-bottom: clamp(30px, 5vw, 64px); max-width: 780px; }
.section-head:last-child { margin-bottom: 0; }
.section-head h2 { margin: 0; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font: 500 .78rem/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--steel-deep);
}
.section--ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--steel); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
  color: var(--on-ink);
  padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 clamp(56px, 8vw, 96px);
}
.hero-grid { position: relative; display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: .9fr 1.1fr; } .hero-visual { margin-right: calc(var(--gutter) * -0.6); } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin: clamp(16px, 2vw, 22px) 0 clamp(18px, 2vw, 24px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.04em; }
.hero h1 .line > span { display: inline-block; transform: translate3d(0, 105%, 0); animation: rise .85s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .07s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .14s; }
.hero .lead { color: var(--on-ink-muted); margin-bottom: clamp(24px, 3vw, 32px); }
.hero-specs { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: clamp(24px, 3vw, 36px); padding: 0; list-style: none; font: 500 .8rem/1 var(--font-mono); color: var(--on-ink-muted); }
.hero-specs li { display: flex; align-items: center; gap: 8px; }
.hero-specs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-hi); }
.fade-up { opacity: 0; transform: translate3d(0, 14px, 0); animation: fadeUp .7s var(--ease) forwards; animation-delay: calc(var(--d, .4s) * .6); }

/* Hero visual — live machining simulation (canvas) */
.hero-visual { position: relative; margin: 0; }
.cut-stage { position: relative; aspect-ratio: 820 / 640; width: 100%; }
.cut-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .cut-stage canvas { opacity: 0; transition: opacity .6s ease; }
.js .cut-stage.is-ready canvas { opacity: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
  color: var(--on-ink); padding: calc(var(--header-h) + clamp(32px, 8vw, 96px)) 0 clamp(44px, 8vw, 96px);
}
.page-hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.8rem); margin: 18px 0 20px; max-width: 16ch; }
.page-hero .lead { color: var(--on-ink-muted); }
/* Inner-page hero: headline left, the page's own part drawing right (desktop only; phones keep the copy first) */
.page-hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.page-art { display: none; position: relative; margin: 0; }
@media (min-width: 980px) {
  .page-hero-grid { grid-template-columns: 1.1fr .9fr; }
  .page-art { display: block; justify-self: end; width: 100%; max-width: 520px; }
}
.page-art .vmc { width: 100%; height: auto; }
.page-art-tag { position: absolute; right: 6%; top: 8%; padding: 8px 12px; border-radius: 8px; border: 1.5px solid #ff6b5b; background: rgba(8, 13, 18, .92); color: #ffb4aa; font: 500 .78rem/1.3 var(--font-mono); letter-spacing: .04em; }
/* Compact hero (contact): headline, one line and the direct contact buttons all in the first screen */
.page-hero--compact { padding: calc(var(--header-h) + clamp(28px, 4vw, 48px)) 0 clamp(32px, 4vw, 48px); }
.page-hero--compact h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 20ch; margin: 18px 0 14px; }
.quick-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3vw, 28px); }
.quick-contact .btn { min-height: 48px; }
.quick-contact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .quick-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .quick-contact .btn { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; min-height: 64px; border-radius: 16px; font-size: .86rem; } }
.crumbs { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font: 500 .76rem/1 var(--font-mono); color: var(--on-ink-muted); }
.crumbs { align-items: center; }
.crumbs a { display: inline-block; padding-block: 13px; margin-block: -13px; text-decoration: none; }
.crumbs a:hover { color: var(--brand-hi); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.heat-rule { height: 2px; border: 0; margin: 0; background: var(--brand); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > :last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, 1fr); } .stats > :last-child:nth-child(odd) { grid-column: auto; } .split .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { position: relative; padding: clamp(18px, 3.4vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.stat-num { font: 750 clamp(1.95rem, 5.4vw, 4rem)/1 var(--font-display); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .42em; font-weight: 600; color: var(--brand-deep); letter-spacing: -0.01em; }
.section--ink .stat-num small { color: var(--brand-hi); }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: clamp(.86rem, 1.5vw, .94rem); line-height: 1.45; }
/* Homepage stats: a mono label and one small diagram per number */
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.stats--viz .stat { display: flex; flex-direction: column; background: var(--card); }
.stat .stat-label { margin: 0 0 18px; font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--steel-deep); }
.stats--viz .stat > p:not(.stat-label) { margin-bottom: 28px; }
.viz { margin-top: auto; }
.viz-fleet { display: flex; gap: 6px; }
.viz-fleet i { flex: 0 1 18px; height: 26px; border-radius: 4px; background: var(--brand); }
.js .viz-fleet i { background: var(--paper-3); transition: background-color .35s ease; }
.js .is-in .viz-fleet i { background: var(--brand); }
.viz-fleet i:nth-child(2) { transition-delay: .4s; } .viz-fleet i:nth-child(3) { transition-delay: .5s; } .viz-fleet i:nth-child(4) { transition-delay: .6s; } .viz-fleet i:nth-child(5) { transition-delay: .7s; } .viz-fleet i:nth-child(6) { transition-delay: .8s; }
.viz-fleet i:nth-child(1) { transition-delay: .3s; }
.viz-tol { position: relative; height: 26px; background: repeating-linear-gradient(90deg, var(--steel-2) 0 1px, transparent 1px 10%) left bottom / 100% 9px no-repeat, linear-gradient(var(--steel-2), var(--steel-2)) left bottom / 100% 1px no-repeat; }
.viz-tol::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1.5px; height: 26px; background: var(--text); }
.viz-tol i { position: absolute; left: 43%; width: 14%; bottom: 0; height: 18px; background: color-mix(in srgb, var(--brand) 22%, transparent); border-inline: 1.5px solid var(--brand); }
.js .viz-tol i { transform: scaleX(0); transition: transform .9s var(--ease-out) .35s; }
.js .is-in .viz-tol i { transform: none; }
.viz-travel { display: grid; gap: 7px; }
.viz-travel i { display: grid; grid-template-columns: 1fr 7rem; align-items: center; gap: 10px; font-style: normal; }
.viz-travel i::before { content: ""; width: var(--w); height: 5px; border-radius: 3px; background: var(--steel-2); transform-origin: left; }
.viz-travel i:first-child::before { background: var(--brand); }
.viz-travel b { font: 500 .7rem/1 var(--font-mono); color: var(--muted); text-align: right; white-space: nowrap; }
.js .viz-travel i::before { transform: scaleX(0); transition: transform 1s var(--ease-out) .3s; }
.js .is-in .viz-travel i::before { transform: none; }
.viz-travel i:nth-child(2)::before { transition-delay: .42s; } .viz-travel i:nth-child(3)::before { transition-delay: .54s; }
.stats--ink { margin-top: 28px; border-color: var(--ink-line); }
.stats--ink .stat { border-color: var(--ink-line); }
.stats--ink .stat-num { color: var(--on-ink); }
.stats--ink .stat p { color: var(--on-ink-muted); }

/* ---------- Service cards (spotlight border) ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--steel-2); box-shadow: 0 12px 28px -20px color-mix(in srgb, var(--ink) 40%, transparent); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-icon { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--brand-hi); overflow: hidden; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; color: var(--brand-deep); }
.card-more span { transition: transform .4s var(--ease); }
/* Phones: icon beside the title keeps six services from becoming a very long scroll */
@media (max-width: 560px) {
  .cards { gap: 12px; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 10px; align-items: center; padding: 18px; }
  .card-icon { width: 46px; height: 46px; border-radius: 12px; }
  .card h3 { padding-right: 26px; font-size: 1.14rem; }
  .card p, .card-more { grid-column: 1 / -1; }
  .card p { font-size: .94rem; line-height: 1.5; }
  .card-more { padding-top: 0; }
  }
.card:hover .card-more span { transform: translateX(5px); }

/* ---------- Localisation band ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }
.import-bar { margin-top: 8px; }
.import-bar .bar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.js .import-bar .bar { clip-path: inset(0 100% 0 0 round 14px); transition: clip-path 1.4s var(--ease); }
.js .import-bar.is-in .bar { clip-path: inset(0 0 0 0 round 14px); }
.import-bar .bar span { position: relative; display: flex; align-items: center; padding-inline: clamp(10px, 2vw, 16px); font: 500 clamp(.72rem, 1.4vw, .8rem)/1.25 var(--font-mono); overflow: hidden; }
.import-bar .bar .dom { width: 66%; background: #2c3f52; color: var(--on-ink); }
.import-bar .bar .imp { width: 34%; background: var(--heat); color: var(--ink); }
.import-legend { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 12px; font: 500 .74rem/1.4 var(--font-mono); color: var(--on-ink-muted); gap: 4px 12px; }
.big-quote { font: 650 clamp(1.6rem, 3.4vw, 2.5rem)/1.12 var(--font-display); letter-spacing: -0.03em; color: var(--on-ink); margin: 0 0 22px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.source { font: 400 .74rem/1.5 var(--font-mono); color: var(--on-ink-muted); margin-top: 18px; }
.source a { color: inherit; }

/* ---------- Fleet ---------- */
/* Phones swipe the row; from 700px every machine is on screen in a grid (no hidden scroller for mouse users) */
.fleet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.fleet::-webkit-scrollbar, .work-grid::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .fleet { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; padding-bottom: 0; } }
@media (min-width: 960px) { .fleet { grid-template-columns: repeat(3, 1fr); } .machine h3 { min-height: 2.3em; } }
.machine { scroll-snap-align: start; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; display: flex; flex-direction: column; padding-bottom: clamp(10px, 1.4vw, 14px); transition: border-color .25s ease; }
.machine:hover { border-color: var(--steel-2); }
.machine-art, .machine-photo { aspect-ratio: 4 / 3; background: var(--ink-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.machine-photo { aspect-ratio: 485 / 298; }
.machine-photo img { width: 100%; height: 100%; object-fit: cover; }
.machine-art svg { width: 94%; height: auto; margin-top: 7%; }
.machine-qty { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; }
.machine h3 { margin: clamp(18px, 2vw, 22px) clamp(18px, 2vw, 24px) 10px; font-size: 1.2rem; }
.machine dl { margin: 0 clamp(18px, 2vw, 24px); display: grid; font-size: .88rem; }
.machine dl div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-block: 11px; border-top: 1px solid var(--line); }
.machine dt { flex: none; color: var(--muted); font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.machine dd { margin: 0 0 0 auto; font-family: var(--font-mono); font-size: .84rem; text-align: right; white-space: nowrap; }
.scroll-hint { margin: 0; }
.fleet-note { margin: clamp(20px, 3vw, 28px) 0 0; color: var(--muted); }
.page-hero--compact .page-art { max-width: 360px; }
@media (min-width: 900px) { .scroll-hint { display: none; } }
@media (max-width: 420px) {
  .machine dl div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .machine dd { margin: 0; text-align: left; white-space: normal; }
}
.fleet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(24px, 3vw, 32px); }
.fleet-foot p { margin: 0; color: var(--muted); }

/* ---------- Industry band (static, wraps; every name readable at once) ---------- */
.ind-band { list-style: none; margin: 0; border-block: 1px solid var(--line); padding: clamp(16px, 2.4vw, 22px) var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(20px, 3vw, 36px); }
.ind-band li { font: 650 clamp(1.15rem, 2.4vw, 1.8rem)/1.15 var(--font-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.ind-band li:nth-child(even) { color: var(--steel-deep); }
.ind-band li + li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ind { background: var(--paper); padding: clamp(24px, 3vw, 34px); position: relative; transition: background .4s; }
.ind:hover { background: var(--card); }
.ind :is(h2, h3) { font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; display: flex; align-items: center; gap: 12px; }
.ind :is(h2, h3) svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--brand-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ind p { color: var(--muted); font-size: .96rem; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 .74rem/1 var(--font-mono); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.section--ink .chips li { border-color: var(--ink-line); background: var(--ink-2); color: var(--on-ink); }

/* ---------- Quality ---------- */
.q-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.q-item { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius); border: 1px solid var(--ink-line); background: var(--ink-2); }
.q-item strong { display: block; font: 650 1.6rem/1 var(--font-display); color: var(--on-ink); letter-spacing: -0.03em; margin-bottom: 8px; }
.q-item p { margin: 0; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.faq details[open] { border-color: var(--paper-3); box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--ink) 40%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: clamp(16px, 2vw, 20px) 52px clamp(16px, 2vw, 20px) clamp(16px, 2vw, 22px); position: relative; font: 600 1.06rem/1.35 var(--font-body); transition: color .3s; }
.faq summary:hover { color: var(--brand-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: clamp(16px, 2vw, 22px); top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--brand-deep), var(--brand-deep)) center / 14px 2px no-repeat, linear-gradient(var(--brand-deep), var(--brand-deep)) center / 2px 14px no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq-body { padding: 0 clamp(16px, 2vw, 22px) 20px; color: var(--muted); }
.faq details[open] .faq-body { animation: faq-in .4s var(--ease-out) both; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .32s var(--ease), content-visibility .32s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq .faq-body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(20px, 3vw, 28px); background: var(--ink); color: var(--on-ink); padding: clamp(36px, 7vw, 88px) clamp(24px, 6vw, 80px); display: grid; gap: 28px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; align-items: end; } }
.cta h2 { margin: 0; max-width: 16ch; }
.cta p { color: var(--on-ink-muted); margin: 14px 0 0; max-width: 46ch; }
.cta > * { position: relative; }
/* Closing CTA: its own pitch-black band, centred and quiet, set apart from the footer by a hairline */
.section--cta { background: #000; color: var(--on-ink); padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid #1a222a; }
.section--cta .cta { background: none; border-radius: 0; padding: 0; overflow: visible; grid-template-columns: none; justify-items: center; align-items: center; text-align: center; gap: 30px; }
.section--cta .cta h2 { max-width: 22ch; margin-inline: auto; }
.section--cta .cta p { margin-inline: auto; max-width: 58ch; }
.section--cta .btn-row { justify-content: center; }

/* ---------- Inner page content ---------- */
.svc { display: grid; gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .svc { grid-template-columns: .9fr 1.1fr; } }
.svc-label { display: flex; flex-direction: column; gap: 16px; align-self: start; }
@media (min-width: 900px) { .svc-label { position: sticky; top: calc(var(--header-h) + 32px); } }
.svc-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 16px; }
.svc-body > .btn { margin-top: 28px; }
.svc-body p { color: var(--muted); }
.svc-body h3 { font-size: 1.05rem; margin: 26px 0 12px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--steel-deep); }
.svc-body ul.bullets { padding-left: 1.1em; margin: 0; color: var(--muted); }
.svc-body ul.bullets li { margin-bottom: 6px; }
.svc-body ul.bullets li::marker { color: var(--brand); }

.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.spec-table caption { text-align: left; padding: 18px 20px 0; font: 500 .74rem/1.4 var(--font-mono); color: var(--muted); caption-side: bottom; padding-bottom: 16px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font: 500 .72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper-2); }
.spec-table tbody th { font-family: var(--font-display); font-size: 1.02rem; font-weight: 650; }
.spec-table td { font-family: var(--font-mono); font-size: .84rem; }
.spec-table tbody tr { transition: background .3s; }
.spec-table tbody tr:hover { background: #fff; box-shadow: inset 3px 0 0 var(--brand); }

.cap-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cap { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);  }
.cap span { font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--steel-deep); }
.cap strong { display: block; margin: 12px 0 6px; font: 750 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.035em; }
.cap p { margin: 0; color: var(--muted); font-size: .92rem; }

.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.value { padding: 28px; border-top: 2px solid var(--brand); background: var(--card); }
.value p { margin: 0; color: var(--muted); }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 56px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font: 600 .92rem/1.2 var(--font-body); color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--steel-2); background: #fff; color: var(--text);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--error); }
.form-req { margin: -6px 0 0; font-size: .86rem; color: var(--muted); }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.form-submit { justify-self: start; margin-top: 4px; }
.form-next { margin-top: -6px; }
@media (max-width: 560px) { .form-submit { justify-self: stretch; } }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: .94rem; }
.form-status.is-visible { display: block; animation: fadeUp .6s var(--ease); }
.contact-cards { display: grid; gap: 14px; }
/* Contact details: one light panel, a row per channel */
.contact-panel { padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 980px) { .contact-panel { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-panel h2 { font-size: 1.3rem; margin: 0 0 6px; }
.c-list { margin: 0; }
.c-row { position: relative; padding: 16px 0 16px 50px; border-top: 1px solid var(--line); }
.c-row:first-child { border-top: 0; }
.c-row svg { position: absolute; left: 0; top: 16px; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, transparent); fill: none; stroke: var(--brand-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-row dt { font-size: .84rem; color: var(--muted); margin-bottom: 3px; }
.c-row dd { margin: 0; font-weight: 500; line-height: 1.5; overflow-wrap: break-word; }
.c-row dd a { display: inline-block; padding-block: 4px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.c-row dd a:hover { text-decoration-color: var(--brand); }
.c-row a[href^="mailto"] { font-size: clamp(.86rem, 3.6vw, 1rem); }
.c-row .c-more { display: inline-block; padding-block: 4px; margin-top: 2px; font-size: .9rem; color: var(--brand-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--ink); color: var(--on-ink-muted); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; margin-top: -1px; /* covers sub-pixel seam above */ border-top: 1px solid #1a222a; }
.footer-grid { display: grid; gap: 34px 20px; grid-template-columns: 1fr 1fr; }
.footer-brand, .footer-addr { grid-column: 1 / -1; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; } .footer-brand, .footer-addr { grid-column: auto; } }
.footer-brand .brand { color: var(--on-ink); margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; font-size: .95rem; }
.footer-h { font: 500 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--steel); margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a, .site-footer address a { display: inline-block; padding-block: 8px; line-height: 1.3; }
@media (min-width: 1000px) { .footer-links a, .site-footer address a { padding-block: 4px; } }
.footer-links a, .site-footer address a { text-decoration: none; transition: color .25s ease; }
.footer-links a:hover, .site-footer address a:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--brand-hi); }
.site-footer address { line-height: 1.6; font-size: .95rem; overflow-wrap: anywhere; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: .85rem; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px;
    border-radius: 18px; background: var(--ink); isolation: isolate;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,.5), inset 0 0 0 1px var(--ink-line); transform: translate3d(0, 140%, 0); transition: transform .45s var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 13px; color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
  .action-bar a.is-primary { background: var(--brand); color: var(--ink); }
  .action-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- Parts gallery ---------- */
.work-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (max-width: 700px) {
  .work-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 14px; scrollbar-width: none; }
  .work-grid > * { scroll-snap-align: start; }
}
.work { margin: 0; border-radius: 20px; overflow: hidden; background: var(--ink); color: var(--on-ink); position: relative; isolation: isolate; }
.work-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.work figcaption { padding: clamp(16px, 2vw, 20px) clamp(16px, 2vw, 22px) clamp(18px, 2vw, 24px); border-top: 1px solid var(--ink-line); }
.work h3 { margin: 10px 0 4px; font-size: 1.2rem; }
.work p { margin: 0; color: var(--on-ink-muted); font-size: .92rem; }
.work-tag { font: 500 .72rem/1 var(--font-mono); color: var(--steel); letter-spacing: .04em; }


/* ---------- Animated VMC elevations (tools/illustrate.py) — run only while on screen ---------- */
.vmc { overflow: visible; }
.vmc .vmc-feed { animation: vmc-feed 9s ease-in-out var(--vd, 0s) infinite; }
.vmc .vmc-head { animation: vmc-head 9s ease-in-out var(--vd, 0s) infinite; }
.vmc .vmc-spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: vmc-spark 9s linear var(--vd, 0s) infinite; }
.vmc .vmc-tool { transform-box: fill-box; transform-origin: center; animation: whirl .2s steps(2) infinite; }
.vmc .vmc-light { animation: pulse 2.4s ease-in-out infinite; }
.vmc .vmc-screen { transform-box: fill-box; transform-origin: left; animation: screen 3s steps(5) infinite; }
.vmc:not(.is-live) * { animation-play-state: paused !important; }

/* ---------- Machined parts: static <img> + light animated overlay ---------- */
.work-img, .svc-art, .ind-img, .tile {
  background-color: var(--ink);
}
.part { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: auto; }
.part img { width: 100%; height: 100%; transition: transform .7s var(--ease-out); }
.part.is-active img { transform: translate3d(0, -5px, 0) scale(1.025); }
.part-fx { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; pointer-events: none; overflow: visible; transition: transform .7s var(--ease-out); }
.part.is-active .part-fx { transform: translate3d(0, -5px, 0) scale(1.025); }

.fx-path { stroke: var(--brand-hi); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .8; }
.fx-comet { stroke: #f4ffe4; stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: .03 .97; opacity: 0; }
.fx-flow { stroke: var(--brand-lime); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .018 .04; opacity: 0; transition: opacity .35s ease; }
.fx-ping { stroke: var(--brand-hi); stroke-width: 2.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx-spark { fill: #fff1cf; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx-label path { stroke: var(--brand-hi); stroke-width: 1.6; opacity: .75; }
.fx-label circle { fill: var(--brand-hi); }
.fx-label rect { fill: rgba(8, 13, 18, .92); stroke: color-mix(in srgb, var(--brand-hi) 55%, transparent); stroke-width: 1.4; }
.fx-label text { fill: var(--on-ink); font: 500 24px var(--font-mono); letter-spacing: 0; }

/* Entrance — one machining pass: the part settles, the toolpath draws, probes touch, callouts land */
.js .part img { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); transition: opacity .6s ease, transform .9s var(--ease-out); }
.js .part.is-cut img { opacity: 1; transform: none; }
.js .part.is-cut.is-active img { transform: translate3d(0, -5px, 0) scale(1.025); }
.js .part .fx-path { stroke-dashoffset: 1; }
.js .part.is-cut .fx-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) var(--fd, .3s); }
.js .part .fx-label { opacity: 0; transform: translate3d(0, 8px, 0); }
.js .part.is-cut .fx-label { opacity: 1; transform: none; transition: opacity .45s ease var(--fd, 1.4s), transform .6s var(--ease-out) var(--fd, 1.4s); }
.part.is-cut .fx-ping { animation: fx-ping .9s var(--ease-out) var(--fd, 1s) 1 both; }

/* Detail loop — only on the hovered part, or the one centred on a phone */
.part.is-active .fx-comet { opacity: 1; animation: fx-lap 3.6s linear infinite; }
.part.is-active .fx-flow { opacity: .9; animation: fx-flow 1.6s linear infinite; }
.part.is-active .fx-spark { animation: fx-spark 1.5s steps(3) var(--fd, 0s) infinite; }

@media (max-width: 899px) { .part { width: 100%; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--card); padding: clamp(22px, 3vw, 30px); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); font: 500 .85rem/1 var(--font-mono); color: var(--brand-hi); }
.steps h3 { margin: 0 0 8px; font-size: 1.2rem; }
.steps p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); }

/* ---------- Inner-page visuals ---------- */
.svc-art { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: grid; place-items: center; max-width: 440px; width: 100%; }
@media (max-width: 899px) { .svc-art { max-width: none; } }

.envelope { margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--ink); color: var(--on-ink); display: grid; gap: 20px; }
@media (min-width: 900px) { .envelope { grid-template-columns: .7fr 1.3fr; align-items: center; } }
.envelope figcaption p { color: var(--on-ink-muted); margin: 14px 0 0; }
.envelope svg { width: 100%; height: auto; }
.env-grid { stroke: var(--ink-line); stroke-width: 1.5; fill: none; }
.env-axis { fill: var(--on-ink-muted); font: 500 clamp(12px, 2.4vw + 8px, 18px) var(--font-mono); }
@media (min-width: 900px) { .env-t { font-size: 13px; } .env-axis { font-size: 12px; } }
.envelope .eyebrow { color: var(--steel); }
.env-t { paint-order: stroke; stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round; font: 500 clamp(13px, 2.9vw + 8px, 20px) var(--font-mono); opacity: 0; transition: opacity .6s var(--ease) 1.2s; }
.env-r { fill: none; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.envelope.is-in .env-r { animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
.envelope.is-in .env-t { opacity: 1; }

@media (min-width: 1100px) { .ind-grid { grid-template-columns: repeat(4, 1fr); } .ind-grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, 1fr); } }
.ind.has-img { padding-top: 0; }
.ind-img { margin: 0 calc(clamp(24px, 3vw, 34px) * -1) 22px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }

.mosaic { display: grid; gap: 16px; }
@media (min-width: 800px) { .mosaic { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; } .tile--big { grid-row: span 2; } }
.tile { position: relative; margin: 0; border-radius: 20px; overflow: hidden; min-height: 240px; display: grid; }
.tile-art { display: grid; place-items: center; padding: 16px 16px 72px; }
.tile-art .part { width: min(100%, 360px); }
.tile--big .tile-art .vmc { width: min(100%, 640px); height: auto; }
.tile figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; color: var(--on-ink); font-weight: 600; }
.tile figcaption span { display: block; font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--steel); margin-bottom: 6px; }

/* ---------- Page transitions (supporting browsers) ---------- */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .34s var(--ease) both; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s ease, transform .75s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal]:focus-within, .js [data-reveal]:focus-visible { opacity: 1; transform: none; transition: none; }

/* ---------- Loops sleep while their section is off screen (toggled from main.js) ---------- */
.is-paused *, .is-paused::before, .is-paused::after, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- Touch: no sticky hover states, a quick press response instead ---------- */
@media (hover: none) {
  .btn:hover .arrow, .card:hover .card-more span { transform: none; }
  .card:hover { box-shadow: none; border-color: var(--line); }
  .ind:hover { background: var(--paper); }
  .btn:active, .card:active, a.c-card:active { transform: scale(.98); transition: transform .12s ease; }
  .btn:hover::before { transform: scaleX(0); }
  .btn-ghost:hover, .btn-ink:hover { color: var(--fg); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-line); }
}

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: none; } }
@keyframes faq-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
@keyframes fx-ping { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes fx-lap { to { stroke-dashoffset: -1; } }
@keyframes fx-flow { to { stroke-dashoffset: -.116; } }
@keyframes fx-spark { 0%, 100% { opacity: 0; transform: scale(.5); } 40% { opacity: 1; transform: scale(1.3); } 70% { opacity: .35; transform: scale(.8); } }
@keyframes vmc-feed { 0%, 8% { transform: translateX(calc(var(--vt, 14px) * -1)); } 50% { transform: translateX(var(--vt, 14px)); } 92%, 100% { transform: translateX(calc(var(--vt, 14px) * -1)); } }
@keyframes vmc-head { 0%, 100% { transform: translateY(-4px); } 10%, 90% { transform: translateY(0); } }
@keyframes vmc-spark { 0%, 10% { opacity: 0; } 12% { opacity: 1; } 30% { opacity: .55; } 50% { opacity: 1; } 70% { opacity: .55; } 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes whirl { to { transform: scaleX(.5); } }
@keyframes screen { 0% { transform: scaleX(.25); } 100% { transform: scaleX(1); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .import-bar .bar { clip-path: none; }
  .js .part img { opacity: 1; transform: none; }
  .js .part .fx-path { stroke-dashoffset: 0; }
  .js .part .fx-label { opacity: 1; transform: none; }
  .fx-ping, .fx-comet, .fx-flow, .fx-spark { display: none; }
  .vmc .vmc-spark { display: none; }
  .js .cut-stage canvas { opacity: 1; }
  /* Menu keeps a short fade so opening and closing still reads as a state change */
  @media (max-width: 900px) { .nav { transform: none !important; transition-duration: .2s, .001ms, 0s !important; } }
}

/* ---------- Real photos ---------- */
.photo .work-img img, .tile-photo img, .shop img { width: 100%; height: 100%; object-fit: cover; }
.shop { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0 0 clamp(28px, 4vw, 40px); }
.shop figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.shop .shop-img { aspect-ratio: 485 / 298; }
.shop figcaption { padding: 12px 16px; font: 500 .8rem/1.3 var(--font-mono); color: var(--muted); }
.tile-photo { grid-template-rows: 1fr auto; background: var(--ink); }
.tile-photo img { min-height: 0; }
.tile-photo figcaption { position: static; padding: 14px 18px 16px; }

/* Spec table: machine names stay visible while the row scrolls sideways */
.spec-table tbody th, .spec-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: inset -1px 0 0 var(--line); }
.spec-table thead th:first-child { background: var(--paper-2); }
@media (max-width: 700px) { .spec-table tbody th { min-width: 150px; max-width: 170px; } }
.form-lead { margin: -4px 0 0; color: var(--muted); }
.form-lead a { display: inline-block; padding-block: 2px; color: var(--brand-deep); font-weight: 600; }
@media (min-width: 1100px) { .work-grid:has(> :nth-child(8)) { grid-template-columns: repeat(4, 1fr); } }
