/* Conduct3D — site styles
   Layout concept: a quiet datasheet. One wide column for statements, a two-column
   grid for text-beside-photo, spec lists set like a product sheet (label / mono value),
   the perforated print bed as a faint dot-grid behind the hero only. */

:root {
  /* Palette A — "Obsidian": the current brand colours (near-black, white, mint). */
  --bg: #0a0d0e;
  --bg-2: #121617;
  --bg-3: #1a1f21;
  --fg: #fcfeff;
  --fg-2: #c9cfd0;
  --muted: #9aa1a2;
  --line: rgba(252, 254, 255, 0.14);
  --line-2: rgba(252, 254, 255, 0.07);
  --line-strong: rgba(252, 254, 255, 0.38);
  --accent: #00ffc2;
  --accent-2: #00c99a;
  --on-accent: #0a0d0e;
  --accent-soft: rgba(0, 255, 194, 0.1);
  --dot: rgba(252, 254, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --step-3: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.125rem, 1.3rem + 3.6vw, 4.25rem);

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --measure: 66ch;
  --section: clamp(72px, 9vw, 136px);
  --radius: 4px;

  color-scheme: dark;
}

/* Palette B — "Copper": graphite ground, warm white, copper accent (the ink itself). */
:root[data-palette="copper"] {
  --bg: #0c0d0f;
  --bg-2: #141618;
  --bg-3: #1c1f22;
  --fg: #f4f0ea;
  --fg-2: #cfc8bf;
  --muted: #a19a91;
  --line: rgba(244, 240, 234, 0.14);
  --line-2: rgba(244, 240, 234, 0.07);
  --line-strong: rgba(244, 240, 234, 0.38);
  --accent: #d98b4e;
  --accent-2: #e8a76f;
  --on-accent: #16100b;
  --accent-soft: rgba(217, 139, 78, 0.12);
  --dot: rgba(244, 240, 234, 0.12);
  color-scheme: dark;
}

/* Palette C — "Light": cool pale grey, near-black type, copper accent. */
:root[data-palette="light"] {
  --bg: #eef0f1;
  --bg-2: #ffffff;
  --bg-3: #e2e6e8;
  --fg: #121617;
  --fg-2: #2f3537;
  --muted: #5e6668;
  --line: rgba(18, 22, 23, 0.16);
  --line-2: rgba(18, 22, 23, 0.08);
  --line-strong: rgba(18, 22, 23, 0.4);
  --accent: #9a4e1e;
  --accent-2: #7f3f17;
  --on-accent: #ffffff;
  --accent-soft: rgba(154, 78, 30, 0.1);
  --dot: rgba(18, 22, 23, 0.14);
  --shadow: 0 24px 60px rgba(18, 22, 23, 0.14);
  color-scheme: light;
}

:root[data-palette="mixed"] {
  --bg: #eef0f1; --bg-2: #ffffff; --bg-3: #e2e6e8; --fg: #121617; --fg-2: #2f3537; --muted: #5e6668;
  --line: rgba(18, 22, 23, 0.16); --line-2: rgba(18, 22, 23, 0.08); --line-strong: rgba(18, 22, 23, 0.4);
  --accent: #9a4e1e; --accent-2: #7f3f17; --on-accent: #ffffff; --accent-soft: rgba(154, 78, 30, 0.1);
  --dot: rgba(18, 22, 23, 0.14); --shadow: 0 24px 60px rgba(18, 22, 23, 0.14); color-scheme: light;
}
:root[data-palette="mixed"] .site-header, :root[data-palette="mixed"] .hero, :root[data-palette="mixed"] .page-hero,
:root[data-palette="mixed"] .cta-band, :root[data-palette="mixed"] .site-footer, :root[data-palette="mixed"] .proto-bar {
  --bg: #0c0d0f; --bg-2: #141618; --bg-3: #1c1f22; --fg: #f4f0ea; --fg-2: #cfc8bf; --muted: #a19a91;
  --line: rgba(244, 240, 234, 0.14); --line-2: rgba(244, 240, 234, 0.07); --line-strong: rgba(244, 240, 234, 0.38);
  --accent: #d98b4e; --accent-2: #e8a76f; --on-accent: #16100b; --accent-soft: rgba(217, 139, 78, 0.12);
  --dot: rgba(244, 240, 234, 0.12); --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--bg); color: var(--fg);
}
:root[data-palette="mixed"] .site-footer { border-top-color: transparent; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* In-page links scroll smoothly; the class is added by site.js after the first frame so a page opened with #fragment jumps straight there. */
html.smooth-scroll { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.smooth-scroll { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
main:focus { outline: none; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter-l); top: -100px;
  padding: 10px 14px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; border-radius: var(--radius); z-index: 100; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
#main { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 84px); }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; margin-right: auto; }
.logo img { height: 38px; width: auto; }
@media (max-width: 820px) { .logo img { height: 34px; } }
:root[data-palette="light"] .logo img, :root[data-palette="light"] .footer-brand img { filter: invert(1) hue-rotate(180deg); }
.nav { display: flex; align-items: center; gap: 4px 28px; }
.nav a { text-decoration: none; color: var(--fg-2); font-size: var(--step--1); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto; appearance: none; background: none; border: 1px solid var(--line);
  color: var(--fg); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: var(--step--1); cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
  font-size: var(--step--1); line-height: 1.2; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.header-cta { margin-left: 8px; }
.nav-contact { display: none; } /* desktop: the Contact us button is the only contact entry; the link lives in the mobile menu */

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  /* Open menu: a panel under the header that overlays the page instead of pushing it down. */
  .nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 4px var(--gutter-r) 12px var(--gutter-l); border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: var(--step-0); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav-contact { display: block; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--fg); max-width: var(--measure); }
.prose { max-width: var(--measure); display: grid; gap: 1.1em; color: var(--fg-2); }
.prose p { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-title { font-size: var(--step-2); margin-bottom: 28px; }

/* Hero (home) */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 72px);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: center top;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--step-4); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  max-width: 24ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-rule { height: 1px; background: linear-gradient(90deg, var(--accent), transparent 70%); margin-top: 40px; }

.video-frame {
  position: relative; margin-top: 40px; aspect-ratio: 16 / 9; max-width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line-2); }
.page-hero h1 { font-size: var(--step-3); font-weight: 700; max-width: 16ch; }
.page-hero h1.long { font-size: var(--step-2); font-weight: 600; max-width: 30ch; line-height: 1.2; }
.page-hero .lead { margin-top: 24px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); text-decoration: none; transition: color 160ms ease; }
.back-home span { color: var(--accent); font-size: 1.5em; line-height: 1; transition: transform 160ms ease; }
.back-home:hover, .back-home:focus-visible { color: var(--accent); }
.back-home:hover span { transform: translateX(-3px); }

.page-hero .split { align-items: center; }
.page-hero .figure-wide { margin-top: clamp(32px, 5vw, 56px); }
.page-hero .video-frame.figure-wide { margin-top: clamp(32px, 5vw, 56px); }
.page-hero.intro { padding-bottom: 20px; border-bottom: 0; }
.page-hero.intro + .section { padding-top: 28px; }
.kicker { color: var(--muted); font-size: var(--step-0); margin-bottom: 16px; max-width: var(--measure); }

/* At-a-glance strip (home) */
.glance { max-width: 36rem; }
.glance .specs-heading { color: var(--muted); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 22px 22px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 8px; }
.tile .v { font-family: var(--font-mono); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); font-weight: 500; color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .k { color: var(--fg-2); font-size: var(--step--1); line-height: 1.4; }

/* Statement */
.statement { font-size: var(--step-2); font-weight: 500; line-height: 1.25; max-width: 24ch; letter-spacing: -0.01em; }

/* Two columns */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); }
.figure figcaption { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }

/* System cards (home) */
.system { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .system { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.card-index { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.08em; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--fg-2); font-size: var(--step--1); }
.card .card-link { margin-top: 6px; color: var(--accent); font-weight: 600; font-size: var(--step--1); }

/* Spec list (datasheet style) */
.specs { border-top: 1px solid var(--line); }
.specs li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.specs .k { color: var(--fg-2); }
.specs .v { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.specs li.single { grid-template-columns: 1fr; }
.specs li.single .k { color: var(--fg); }
.specs-heading { font-size: var(--step-1); font-weight: 600; margin-bottom: 14px; }
/* Numbered spec list (Ink, Printer): copper badges on one vertical track, like the Software steps */
.specs.numbered { border-top: 0; position: relative; display: grid; gap: 4px; }
.specs.numbered::before { content: ""; position: absolute; left: 17px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.specs.numbered li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 0; }
.specs.numbered li.single { grid-template-columns: 36px minmax(0, 1fr); }
.specs.numbered .k { color: var(--fg); }
.spec-n { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; }
@media (max-width: 600px) {
  .specs.numbered li { grid-template-columns: 36px minmax(0, 1fr); row-gap: 2px; }
  .specs.numbered .v { grid-column: 2; text-align: left; }
}
.specs-block + .specs-block { margin-top: 40px; }
.split.start { align-items: start; }
/* The figure beside the spec lists sits at the top of the section and scrolls with the page (the sticky version read as an image sliding and stopping). */
.specs .k { white-space: normal; }

/* Documents (downloads) */
.docs { margin-top: 48px; }
.doc-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split > .docs { margin-top: 0; } /* Ink: documents beside the spec list */
.split > .docs .doc-list { grid-template-columns: 1fr; }
.page-hero .figure figcaption { margin-top: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); text-decoration: none; color: inherit; transition: border-color 160ms ease; }
.doc:hover { border-color: var(--accent); }
.doc-icon { width: 24px; height: 24px; color: var(--accent); flex: none; }
.doc-text { display: grid; gap: 4px; min-width: 0; }
.doc-name { font-weight: 600; }
.doc-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.doc-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) { .doc { grid-template-columns: auto minmax(0, 1fr); } .doc-meta { grid-column: 2; } }

/* CTA band */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line-2); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.cta-band p { font-size: var(--step-2); font-weight: 500; max-width: 24ch; line-height: 1.25; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* About */
.vision { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vision-label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.vision p { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); font-weight: 500; line-height: 1.3; max-width: 40ch; }

/* Contact */
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .options { grid-template-columns: 1fr; } }
.option { padding: 26px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; transition: border-color 160ms ease; }
.option:hover { border-color: var(--accent); }
.option .card-link { color: var(--accent); font-weight: 600; font-size: var(--step--1); }
.option h2 { font-size: var(--step-1); }
.option p { color: var(--fg-2); font-size: var(--step--1); }
.option .card-index { margin-bottom: 2px; }

#service-inquiry { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; margin-top: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); color: var(--fg-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 10px 12px; color: var(--fg-2); }
.field input[type="file"]::file-selector-button { font: inherit; font-size: var(--step--1); padding: 6px 12px; margin-right: 12px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg-3); color: var(--fg); cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: var(--fg-2); }
.check > span { flex: 1 1 auto; min-width: 0; }
.check input { margin: 4px 0 0; accent-color: var(--accent); width: 16px; height: 16px; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { margin-top: 4px; font-size: var(--step--1); color: var(--accent); min-height: 1.5em; }
.proposed { position: relative; }
.proposed::after {
  content: "proposed"; position: absolute; right: 0; top: 0; font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 3px;
}
.check.proposed::after { position: static; flex: none; align-self: flex-start; margin-left: 4px; }

.contact-side { display: grid; gap: 24px; padding: 28px 26px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.contact-side h2 { font-size: var(--step-1); }
.contact-side dl { margin: 0; display: grid; gap: 14px; }
.contact-side dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-side dd { margin: 2px 0 0; }
.contact-side a { color: var(--fg); }

/* Draft note (prototype only; removed on the final site) */
.draft-note {
  direction: rtl; text-align: right; font-family: var(--font-sans);
  border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius);
  padding: 20px 22px; display: grid; gap: 10px; max-width: var(--measure);
}
.draft-note strong { color: var(--accent); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; }
.draft-note ul { list-style: disc; padding-right: 20px; display: grid; gap: 6px; color: var(--fg-2); font-size: var(--step--1); }

.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
@media (max-width: 600px) { .features li { grid-template-columns: 1fr; gap: 4px; } }
.features h3 { font-size: var(--step-0); font-weight: 600; }
.features p { color: var(--fg-2); font-size: var(--step--1); }

/* Process flow (software): one connected track, six numbered nodes */
.flow { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.flow li { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 10px; padding: 0 10px; min-width: 0; }
.flow li::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line); }
.flow li:first-child::before { left: 50%; }
.flow li:last-child::before { right: 50%; }
.flow-n {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500;
}
.flow li:first-child .flow-n, .flow li:last-child .flow-n { background: var(--accent); color: var(--on-accent); }
.flow strong { font-size: var(--step-0); font-weight: 600; margin-top: 6px; text-wrap: balance; }
.flow li > span:last-child { color: var(--fg-2); font-size: var(--step--1); line-height: 1.45; max-width: 18ch; }
.flow-closing { margin-top: 44px; }
.statement .em { color: var(--accent); font-weight: 700; }
.flow-closing + .draft-note { margin-top: 28px; }
@media (max-width: 959px) {
  .flow { grid-template-columns: 1fr; margin-top: 36px; }
  .flow li { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 18px; row-gap: 4px; padding: 0 0 30px; }
  .flow li::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow li:first-child::before { top: 22px; left: 21px; }
  .flow li:last-child::before { bottom: auto; height: 22px; }
  .flow-n { grid-row: 1 / 3; }
  .flow strong { grid-column: 2; margin-top: 10px; }
  .flow li > span:last-child { grid-column: 2; max-width: none; }
}

.seo-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); text-align: left; }
.seo-table th, .seo-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.seo-table th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.seo-table td:nth-child(2) { font-weight: 600; min-width: 14rem; }
@media (max-width: 700px) { .seo-table thead { display: none; } .seo-table tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line-2); } .seo-table td { display: block; padding: 0; border: 0; } }

/* ---------- Home: hero A ("result first") ---------- */
.hero.hero-a { padding: 0; border-bottom: 1px solid var(--line-2); }
.hero.hero-a::after { content: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { order: 2; display: grid; align-content: center; padding: 20px var(--gutter-r) 40px var(--gutter-l); }
.hero-a h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; max-width: 14ch; }
.hero-a .hero-actions { margin-top: 24px; }
.hero-media { order: 1; margin: 0; display: grid; gap: 8px; }
.hero-media img, .hero-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); } /* the render's own ratio: the whole aircraft stays in view */
.hero-media figcaption { display: flex; align-items: baseline; gap: 10px; padding: 0 var(--gutter-r) 0 var(--gutter-l); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.hero-media figcaption::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--accent); }
@media (max-width: 480px) { .hero-a .hero-actions .btn { width: 100%; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 21fr) minmax(0, 29fr); padding-left: max(var(--gutter-l), calc((100% - var(--wrap)) / 2 + var(--gutter-l))); }
  .hero-copy { order: 1; padding: 56px clamp(24px, 3vw, 48px) 56px 0; }
  .hero-media { order: 2; align-content: start; }
  .hero-media figcaption { padding-left: 0; }
}

/* Compact rail in the hero: 01 Ink — 02 Printer — 03 Software on one copper line */
.rail-wrap { margin-top: 36px; }
.rail-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.rail { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 10px; }
.rail li { display: flex; align-items: center; gap: 8px; }
.rail li + li::before { content: ""; width: clamp(18px, 3vw, 40px); height: 2px; background: var(--accent); margin: 0 10px 0 10px; }
.rail-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); background: var(--bg); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; }
.rail a { text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.rail a:hover { color: var(--accent); }

/* The three parts: numbered row (01 - 02 - 03) joined by one copper line, cards with air between them */
.sys-eyebrow { font-size: clamp(1rem, 0.9rem + 0.45vw, 1.1875rem); font-weight: 500; letter-spacing: 0.14em; margin-bottom: 12px; }
.sys-title { margin-bottom: clamp(28px, 4vw, 44px); }
.sys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sys-item { display: flex; flex-direction: column; min-width: 0; }
.sys-head { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.sys-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--accent); color: var(--accent); background: var(--bg); font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 500; }
.sys-line { flex: 1 1 auto; height: 2px; background: var(--accent); margin-right: -28px; }
.sys-item:last-child .sys-line { display: none; }
.sys-tile { flex: 1 1 auto; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; transition: border-color 160ms ease, transform 160ms ease; }
.sys-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.sys-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.sys-body { display: grid; gap: 8px; align-content: start; padding: 22px 22px 26px; }
.sys-body h3 { font-size: var(--step-1); transition: color 160ms ease; }
.sys-body h3::after { content: " \2192"; color: var(--accent); font-weight: 500; }
.sys-body p { color: var(--fg-2); font-size: var(--step--1); }
.sys-tile:hover .sys-body h3 { color: var(--accent); }
@media (max-width: 819px) {
  .sys { grid-template-columns: 1fr; gap: 32px; }
  .sys-line { display: none; }
  .sys-head { margin-bottom: 14px; }
  .sys-n { width: 44px; height: 44px; font-size: 0.9375rem; }
}
.tech-figure { margin: 0 0 clamp(32px, 5vw, 56px); }
.tech-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 600px) { .tech-figure img { aspect-ratio: 16 / 10; } }
.video-section .video-frame { margin-top: 10px; }
/* Printer: silent looping turntable of the 3D model, right under the hero */
.turntable-section { padding-top: clamp(28px, 4vw, 48px); }
.turntable-section .video-frame { margin-top: 10px; }
.video-caption { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }
/* Live 3D model stage: poster first, canvas fades in when the model is ready; drag to turn, vertical swipes scroll */
.model-stage { position: relative; aspect-ratio: 16 / 9; margin-top: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg); touch-action: pan-y; cursor: grab; }
.model-stage.is-dragging { cursor: grabbing; }
.model-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; outline-offset: -3px; }
.model-stage.is-ready canvas { opacity: 1; }
.model-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.6s ease; }
@media (max-width: 720px) { .model-stage { aspect-ratio: 4 / 3; } }
.model-stage.is-ready .model-poster { opacity: 0; pointer-events: none; }
.model-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity 0.5s ease; white-space: nowrap; }
.model-stage.is-ready .model-hint { opacity: 1; }
.model-stage.is-touched .model-hint, .model-stage.is-failed .model-hint { opacity: 0; }
.tech-statement { max-width: 34ch; margin-bottom: clamp(32px, 5vw, 56px); }
.tech-split { align-items: start; }
@media (prefers-reduced-motion: reduce) { .sys-tile, .sys-body h3 { transition: none; } }

/* Legal placeholders */
.legal { max-width: var(--measure); display: grid; gap: 22px; }
.notes { list-style: disc; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--fg-2); }
.notes.ltr { direction: ltr; text-align: left; }
.legal .draft-flag { color: var(--accent); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.legal h2 { font-size: var(--step-1); margin-top: 12px; }
.legal p { color: var(--fg-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; color: var(--fg-2); }
.legal mark.fill { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); padding: 0 4px; border-radius: 3px; }
.legal-date { margin-top: 14px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.placeholder { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); font-size: var(--step--1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding-block: 48px 36px; margin-top: 0; } /* the last section's own padding sets the gap */
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid > * { min-width: 0; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { color: var(--muted); font-size: var(--step--1); }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--fg-2); font-size: var(--step--1); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 0.875rem; }
.linkedin { display: inline-flex; align-items: center; gap: 8px; }
.linkedin svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Prototype toolbar (preview only) ---------- */
.proto-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; direction: rtl;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: color-mix(in srgb, var(--bg-3) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--fg-2);
}
.proto-bar .label { font-weight: 600; color: var(--fg); }
.proto-bar .group { display: inline-flex; gap: 6px; }
.proto-bar button {
  font: inherit; font-size: 0.8125rem; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fg-2); border: 1px solid var(--line);
}
.proto-bar button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.proto-bar a { color: var(--fg); margin-inline-start: auto; }
body.has-proto-bar { padding-bottom: 72px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}

/* ---------- Motion ----------
   Cosmetic only, and gated three ways: it respects prefers-reduced-motion; the scroll reveal applies
   only after site.js has added html.fx (without JS everything is visible at once); and the staging
   build for the Wix import sets html[data-fx="off"], so the importer sees every element in its final state. */
.site-header { transition: box-shadow 240ms ease, border-color 240ms ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.6); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg-2); opacity: 0.6; transform: scaleX(0); transform-origin: left center; transition: transform 240ms ease; }
.nav a:not([aria-current="page"]):hover::after, .nav a:not([aria-current="page"]):focus-visible::after { transform: scaleX(1); }
.sys-fig { overflow: hidden; margin-top: auto; }
.sys-fig img { transition: transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1); }
.sys-tile:hover .sys-fig img { transform: scale(1.035); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-fx="off"]) .hero-media { overflow: hidden; }
  html:not([data-fx="off"]) .hero-media img, html:not([data-fx="off"]) .hero-media video { animation: fx-settle 1.4s cubic-bezier(0.2, 0.65, 0.2, 1) both; }
  html:not([data-fx="off"]) .hero-media figcaption { animation: fx-fade 0.9s ease 450ms both; }
  html:not([data-fx="off"]) .hero-copy > * { animation: fx-rise 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) both; }
  html:not([data-fx="off"]) .hero-copy > :nth-child(2) { animation-delay: 120ms; }
  html:not([data-fx="off"]) .hero-copy > :nth-child(n+3) { animation-delay: 240ms; }
  html:not([data-fx="off"]) .page-hero .kicker, html:not([data-fx="off"]) .page-hero h1, html:not([data-fx="off"]) .page-hero .lead { animation: fx-rise 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) both; }
  html:not([data-fx="off"]) .page-hero h1 { animation-delay: 60ms; }
  html:not([data-fx="off"]) .page-hero .lead { animation-delay: 180ms; }
  html:not([data-fx="off"]) .page-hero .figure, html:not([data-fx="off"]) .page-hero .video-frame { animation: fx-fade 1.1s ease 150ms both; }
  /* Software: the six steps and the line between them come in one after another on load. */
  html:not([data-fx="off"]) .flow > li { animation: fx-rise 0.5s cubic-bezier(0.2, 0.65, 0.2, 1) both; animation-delay: calc(200ms + var(--fx-i, 0) * 300ms); }
  html:not([data-fx="off"]) .flow > li::before { transform-origin: left center; animation: fx-draw 0.3s cubic-bezier(0.2, 0.65, 0.2, 1) both; animation-delay: calc(300ms + var(--fx-i, 0) * 300ms); }
  html:not([data-fx="off"]) .flow > li:nth-child(2) { --fx-i: 1; }
  html:not([data-fx="off"]) .flow > li:nth-child(3) { --fx-i: 2; }
  html:not([data-fx="off"]) .flow > li:nth-child(4) { --fx-i: 3; }
  html:not([data-fx="off"]) .flow > li:nth-child(5) { --fx-i: 4; }
  html:not([data-fx="off"]) .flow > li:nth-child(6) { --fx-i: 5; }
}
@keyframes fx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-settle { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
@keyframes fx-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scroll reveal: site.js marks blocks below the first screen with .rv and adds .is-in as they come into view. */
html.fx .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.2, 1) var(--rv-delay, 0ms), transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1) var(--rv-delay, 0ms); will-change: opacity, transform; }
html.fx .rv.is-in { opacity: 1; transform: none; will-change: auto; }
html.fx .sys-item.rv .sys-n { opacity: 0; transform: scale(0.6); transition: opacity 0.6s ease var(--rv-delay, 0ms), transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1) var(--rv-delay, 0ms); }
html.fx .sys-item.rv .sys-line { transform: scaleX(0); transform-origin: left center; transition: transform 0.42s cubic-bezier(0.2, 0.65, 0.2, 1) var(--rv-delay, 0ms); } /* the line reaches the next node just as it appears */
html.fx .sys-item.rv.is-in .sys-n { opacity: 1; transform: none; }
html.fx .sys-item.rv.is-in .sys-line { transform: scaleX(1); }
@media print { html.fx .rv, html.fx .rv .sys-n, html.fx .rv .sys-line { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .site-header, .nav a::after, .sys-fig img { transition: none; }
  .sys-tile:hover .sys-fig img, .btn-primary:hover { transform: none; }
}
