/* =====================================================================
   3D Printing Services — design system
   Technical spec-sheet aesthetic: grotesque headings, mono specs,
   hairline rules, industrial accent. Light-forward, dark via tweak.
   ===================================================================== */

:root {
  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Neutrals (warm-cool off-white / cool near-black) */
  --bg: oklch(0.985 0.004 95);
  --bg-2: oklch(0.965 0.005 95);
  --surface: oklch(1 0 0);
  --ink: oklch(0.21 0.013 264);
  --ink-soft: oklch(0.46 0.012 264);
  --ink-faint: oklch(0.62 0.01 264);
  --line: oklch(0.9 0.006 264);
  --line-strong: oklch(0.82 0.008 264);

  /* Accent — industrial extrusion orange */
  --accent: oklch(0.66 0.175 45);
  --accent-press: oklch(0.6 0.175 45);
  --accent-tint: oklch(0.95 0.04 60);
  --on-accent: oklch(0.16 0.02 45);

  /* Optional cool technical accent (same L/C, shifted hue) */
  --cool: oklch(0.6 0.12 248);
  --cool-tint: oklch(0.95 0.03 248);

  --radius: 6px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 264 / 0.06), 0 1px 1px oklch(0.2 0.02 264 / 0.04);
  --shadow: 0 12px 32px -12px oklch(0.2 0.02 264 / 0.18);
}

[data-theme="dark"] {
  --bg: oklch(0.17 0.012 264);
  --bg-2: oklch(0.21 0.013 264);
  --surface: oklch(0.225 0.013 264);
  --ink: oklch(0.96 0.004 95);
  --ink-soft: oklch(0.78 0.008 264);
  --ink-faint: oklch(0.62 0.01 264);
  --line: oklch(0.32 0.012 264);
  --line-strong: oklch(0.42 0.014 264);
  --accent-tint: oklch(0.3 0.06 50);
  --cool-tint: oklch(0.3 0.05 248);
  --on-accent: oklch(0.14 0.02 45);
  --shadow: 0 16px 40px -16px oklch(0 0 0 / 0.5);
}

[data-accent="cool"] {
  --accent: oklch(0.6 0.13 248);
  --accent-press: oklch(0.54 0.13 248);
  --accent-tint: var(--cool-tint);
  --on-accent: oklch(0.98 0.01 248);
}
[data-accent="lime"] {
  --accent: oklch(0.83 0.18 128);
  --accent-press: oklch(0.78 0.18 128);
  --accent-tint: oklch(0.95 0.06 128);
  --on-accent: oklch(0.2 0.04 128);
}
[data-accent="red"] {
  --accent: oklch(0.585 0.21 27);
  --accent-press: oklch(0.52 0.21 27);
  --accent-tint: oklch(0.955 0.035 27);
  --on-accent: oklch(0.99 0.012 27);
}
[data-theme="dark"][data-accent="red"] { --accent-tint: oklch(0.32 0.07 27); }

/* ---- Type scale toggles ---- */
[data-type="serif"] { --font-display: "Spectral", Georgia, serif; }
[data-type="mono-display"] { --font-display: "JetBrains Mono", monospace; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* guard against stray horizontal overflow; keeps sticky header working */
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-family: var(--font-mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 14px; }
.section-head .lede { color: var(--ink-soft); font-size: 1.15rem; margin-top: 18px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow svg { width: 16px; height: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 16px;
  height: 68px;
}
.site-header nav { display: flex; gap: 2px; margin-left: 4px; }
.site-header nav > a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.96rem;
  transition: color .15s ease; white-space: nowrap; padding: 8px 7px; border-radius: var(--radius);
}
.site-header nav > a:hover { color: var(--ink); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Header CTA buttons are compact so the full nav fits within the 1180px content cap;
   roomier sizing is restored at >=1580px (see media query below). */
.header-cta .btn { padding: 8px 4px; font-size: 0.84rem; gap: 6px; }

/* ---- Dropdown nav ---- */
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--font-body); font-size: 0.96rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: none; cursor: pointer;
  padding: 8px 7px; border-radius: var(--radius); transition: color .15s, background .15s;
}
.nav-trigger:hover,
.nav-item:hover .nav-trigger,
.nav-item[data-open] .nav-trigger { color: var(--ink); background: var(--bg-2); }
.nav-trigger .chev { width: 11px; height: 11px; opacity: 0.55; transition: transform .2s; }
.nav-item:hover .nav-trigger .chev,
.nav-item[data-open] .nav-trigger .chev { transform: rotate(180deg); }

/* invisible hover bridge so the menu doesn't drop while moving the cursor */
.nav-item::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 8px; min-width: 252px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(7px);
  transition: opacity .16s ease, transform .16s ease; z-index: 50;
}
.dropdown.right { left: auto; right: 0; }
.dropdown.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 520px; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item[data-open] .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.dropdown .dd-head {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); padding: 8px 12px 6px; grid-column: 1 / -1;
}
.menu-link {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px;
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .14s;
}
.menu-link:hover { background: var(--bg-2); }
.menu-link .abbr {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--accent);
  background: var(--accent-tint); border-radius: 5px; padding: 0 7px; min-width: 46px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center;
}
.menu-link .dot-c { width: 11px; height: 22px; border-radius: 3px; flex: none; align-self: flex-start; margin-top: 1px; }
.menu-link .step-n { font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent); align-self: center; flex: none; min-width: 22px; }
.menu-link .mt { font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; line-height: 1.2; display: block; }
.menu-link .md { display: block; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.35; margin-top: 2px; }
.dropdown .dd-foot {
  grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px;
}
.dropdown .dd-foot a {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius);
  text-decoration: none; color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  transition: background .14s;
}
.dropdown .dd-foot a:hover { background: var(--accent-tint); }
.dropdown .dd-foot a svg { width: 15px; height: 15px; }

/* ---- Mobile menu ---- */
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--bg); max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-menu.open { max-height: 88vh; overflow-y: auto; }
.mobile-menu .wrap { padding-block: 12px 24px; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary {
  list-style: none; cursor: pointer; padding: 16px 4px; display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--ink-faint); font-size: 1.3rem; }
.mobile-menu details[open] summary::after { content: "\2013"; }
.mobile-menu .sub-links { padding: 0 4px 14px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu .sub-links a { text-decoration: none; color: var(--ink-soft); padding: 9px 0; font-size: 0.96rem; }
.mobile-menu .sub-links a:hover { color: var(--accent); }
.mobile-menu .m-direct {
  display: block; padding: 16px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu .wrap .btn { width: 100%; justify-content: center; }
.mobile-menu .wrap .btn-primary { margin-top: 18px; }
.mobile-menu .wrap .btn-ghost { margin-top: 10px; }

/* Collapse to the burger BEFORE the bar can overflow: the full desktop bar
   (logo + 6 nav items incl. Resources + both CTAs) measures ~1146px, so any
   viewport narrower than that clips the CTA off-screen. Keep this breakpoint
   >= the bar's real width whenever nav items are added or renamed. */
@media (max-width: 1170px) {
  .site-header nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
}

/* On wide screens there's room to breathe — restore the roomier header spacing.
   The bar is allowed wider than the 1180px content cap so the roomy nav fits. */
@media (min-width: 1580px) {
  .site-header .bar { gap: 28px; max-width: 1360px; }
  .site-header nav { gap: 4px; margin-left: 8px; }
  .site-header nav > a { padding: 8px 10px; }
  .nav-trigger { gap: 6px; padding: 8px 10px; }
  .header-cta { gap: 14px; }
  .header-cta .btn { padding: 13px 22px; font-size: 0.98rem; gap: 10px; }
}

/* ---- Logo lockup ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo .glyph { width: 30px; height: 30px; flex: none; color: var(--accent); }
.logo .word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 1.06rem; line-height: 1; white-space: nowrap;
  display: inline-flex; flex-direction: column; width: max-content;
}
.logo .word b { font-weight: 700; }
.logo .word .t1 { white-space: nowrap; }
.logo .word .sub {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: 0.455rem; letter-spacing: 0.02em; color: var(--ink-faint);
  text-transform: uppercase; margin-top: 5px;
  width: 100%; white-space: normal; text-align: justify; text-align-last: justify;
}

/* ---- Hero shared ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: clamp(56px, 8vw, 96px); }
.hero h1, .hero h2 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.035em;
}
.hero h1 .accent, .hero h2 .accent { color: var(--accent); }
.hero .answer {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem); color: var(--ink-soft);
  max-width: 56ch; margin-top: 22px; line-height: 1.5;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 30%, transparent 75%);
}

/* hero variants hidden by default, shown by [data-hero] on body */
[data-hero] .hero-variant { display: none; }
[data-hero="spec"] .hero-variant.v-spec,
[data-hero="industrial"] .hero-variant.v-industrial,
[data-hero="editorial"] .hero-variant.v-editorial { display: block; }

/* Hero A — spec */
.v-spec .hero-cols {
  display: grid; grid-template-columns: 1fr 0.96fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.v-spec .specline {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px;
}
.v-spec .specline .chip {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px;
}
.v-spec .specline .chip::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Upload card */
.upload-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.upload-card header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.upload-card header .mono { color: var(--ink-faint); }
.upload-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.dropzone {
  display: block;
  margin: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  background: var(--bg-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-tint); }
.dropzone .ico { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--accent); }
.dropzone strong { font-family: var(--font-display); font-size: 1.05rem; }
.dropzone .fmt { display: block; margin-top: 6px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; }
.upload-meta { display: flex; justify-content: space-between; padding: 0 18px 18px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; }
.upload-result { padding: 0 18px 18px; }
.upload-result .file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--accent-tint); border-radius: var(--radius); }
.upload-result .file .name { font-family: var(--font-mono); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero B — industrial */
.v-industrial { background: var(--ink); color: var(--bg); border-bottom-color: var(--ink); }
.v-industrial .eyebrow { color: var(--accent); }
.v-industrial h1, .v-industrial h2 { font-size: clamp(2.8rem, 9vw, 7rem); letter-spacing: -0.04em; max-width: 16ch; }
.v-industrial .answer { color: oklch(0.82 0.01 264); }
.v-industrial .hero-grid-bg { opacity: 0.18; }
.v-industrial .btn-ghost { color: var(--bg); border-color: oklch(0.45 0.01 264); }
.v-industrial .btn-ghost:hover { border-color: var(--bg); }
.v-industrial .marquee-specs {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px;
  border-top: 1px solid oklch(0.32 0.01 264); padding-top: 26px;
}
.v-industrial .marquee-specs .stat { display: flex; flex-direction: column; gap: 4px; }
.v-industrial .marquee-specs .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.v-industrial .marquee-specs .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.7 0.01 264); }

/* Hero C — editorial */
.v-editorial .answer-box {
  border-left: 3px solid var(--accent); padding-left: 22px; margin-top: 26px;
  max-width: 62ch;
}
.v-editorial h1, .v-editorial h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 18ch; }
.v-editorial .answer-box p { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.55; }
.v-editorial .quote-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 34px; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  max-width: 640px;
}
.v-editorial .quote-bar .inp {
  flex: 1; min-width: 200px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--ink-faint);
  padding: 11px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-2);
}

@media (max-width: 820px) {
  .v-spec .hero-cols { grid-template-columns: 1fr; }
}

/* ---- Trust strip ---- */
.trust {
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; padding-block: 22px; }
.trust .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.trust .items { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.trust .items span { display: inline-flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
.trust .items span svg { width: 16px; height: 16px; color: var(--accent); }

/* ---- Technology comparison ---- */
.tech-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tech-tab {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em;
  padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer; transition: all .15s;
}
.tech-tab:hover { border-color: var(--ink); color: var(--ink); }
.tech-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tech-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
table.tech-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.tech-table th, table.tech-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tech-table thead th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); background: var(--bg-2); font-weight: 500; }
table.tech-table tbody tr:last-child td { border-bottom: none; }
table.tech-table .tname { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
table.tech-table .tabbr { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); display: block; margin-top: 3px; letter-spacing: 0.08em; }
table.tech-table tr.dim { opacity: 0.4; transition: opacity .2s; }

.tech-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tech-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); transition: border-color .15s, transform .15s; }
.tech-card:hover { border-color: var(--line-strong); }
.tech-card .layers { width: 46px; height: 46px; color: var(--accent); margin-bottom: 16px; }
.tech-card h3 { font-size: 1.3rem; }
.tech-card .abbr { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; }
.tech-card p { color: var(--ink-soft); font-size: 0.96rem; margin-top: 10px; }
.tech-card dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.86rem; }
.tech-card dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); align-self: center; }
.tech-card dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---- Materials explorer ---- */
.materials { background: var(--bg-2); border-block: 1px solid var(--line); }
.mat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; align-items: center; }
.mat-filter .flabel { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 6px; }
.mat-chip {
  font-family: var(--font-body); font-weight: 500; font-size: 0.86rem;
  padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: all .15s;
}
.mat-chip:hover { border-color: var(--ink); color: var(--ink); }
.mat-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.mat-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 20px; transition: opacity .2s, transform .2s, border-color .15s;
}
.mat-card.hide { display: none; }
.mat-card .swatch { width: 100%; height: 64px; border-radius: var(--radius); margin-bottom: 16px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.mat-card .swatch::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, oklch(1 0 0 / 0.18) 0 2px, transparent 2px 5px);
}
.mat-card .swatch.smooth::after { display: none; }
.mat-card .swatch.grain::after {
  background-image:
    radial-gradient(oklch(1 0 0 / 0.13) 0.5px, transparent 0.8px),
    radial-gradient(oklch(0 0 0 / 0.1) 0.5px, transparent 0.8px);
  background-size: 4px 4px, 5px 5px;
  background-position: 0 0, 2px 2px;
}
.mat-card h3 { font-size: 1.12rem; }
.mat-card .fam { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.mat-card p { color: var(--ink-soft); font-size: 0.88rem; margin-top: 8px; }
.mat-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mat-card .tags span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--bg-2); color: var(--ink-soft); }
.mat-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.8rem; display: none; }
.mat-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .mat-grid.cols3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mat-grid.cols3 { grid-template-columns: 1fr; } }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { padding: 30px 26px; border-right: 1px solid var(--line); background: var(--surface); position: relative; }
.step:last-child { border-right: none; }
.step .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.2rem; margin-top: 14px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
@media (max-width: 720px) { .step { border-right: none; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: none; } }

/* ---- Use cases ---- */
.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.uc-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: transform .15s, border-color .15s; }
.uc-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
a.uc-card { text-decoration: none; color: inherit; }
.uc-card .body { padding: 20px 22px 24px; }
.uc-card .ind { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.uc-card h3 { font-size: 1.18rem; margin-top: 10px; }
.uc-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; }

/* real card image (same footprint as the .ph placeholder it replaces) */
.uc-card .uc-img { display: block; width: 100%; height: 150px; object-fit: cover; }

/* striped image placeholder */
.ph {
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 11px);
  display: flex; align-items: center; justify-content: center; position: relative;
  height: 150px;
}
.ph span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); background: var(--surface); padding: 4px 9px; border-radius: 4px; border: 1px solid var(--line); }

/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; list-style: none;
  padding: 24px 0; display: flex; align-items: center; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .ix { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); flex: none; }
.faq-q .pm { margin-left: auto; flex: none; width: 22px; height: 22px; position: relative; transition: transform .2s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--ink-soft); border-radius: 2px; }
.faq-q .pm::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-q .pm::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: opacity .2s; }
.faq-item[open] .pm::after { opacity: 0; }
.faq-a .inner { padding: 0 0 26px 40px; color: var(--ink-soft); font-size: 1.02rem; max-width: 68ch; }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--bg); }
.cta-band p { color: oklch(0.82 0.01 264); max-width: 52ch; margin: 18px auto 0; font-size: 1.1rem; }
.cta-band .cta-row { justify-content: center; }
.cta-band .hero-grid-bg { opacity: 0.16; }
.cta-band .btn-ghost { color: var(--bg); border-color: oklch(0.45 0.01 264); }
.cta-band .btn-ghost:hover { border-color: var(--bg); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer .wrap { padding-block: 56px 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid .blurb { color: var(--ink-soft); font-size: 0.95rem; margin-top: 16px; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 14px; }
.foot-col a { display: block; text-decoration: none; color: var(--ink-soft); font-size: 0.94rem; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Price-match guarantee section ---- */
.pricematch {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 60px); align-items: center;
  background: var(--accent-tint); border: 1px solid color-mix(in oklab, var(--accent) 26%, var(--line));
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px);
}
.pricematch h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 14px; }
.pricematch .pm-left p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 16px; max-width: 48ch; }
.pricematch .cta-row { margin-top: 28px; }
.pm-badge {
  display: inline-flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 22px; box-shadow: var(--shadow-sm);
}
.pm-badge svg { width: 40px; height: 40px; color: var(--accent); flex: none; }
.pm-badge .b1 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.pm-badge .b2 { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; display: block; }
.pm-steps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pm-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.96rem; color: var(--ink); }
.pm-steps li b { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--accent); flex: none; padding-top: 3px; }
@media (max-width: 760px) { .pricematch { grid-template-columns: 1fr; } }

.form-error { margin: 4px 0 0; font-size: 0.9rem; color: var(--accent); }

/* ---- Upload progress (custom-quote file forwarding) ---- */
.upload-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.upload-progress[hidden] { display: none; }
.upload-progress .track { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.upload-progress .fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .2s ease; }
.upload-progress .plabel { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-soft); min-width: 120px; text-align: right; }
/* server-side forwarding phase: upload done, waiting on storage + email */
.upload-progress.storing .fill { animation: storing-pulse 1.2s ease-in-out infinite; }
@keyframes storing-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
/* ---- Top promo / price-match announcement bar (site-wide) ---- */
.promo-bar { background: var(--accent); color: var(--on-accent); }
.promo-bar .wrap { display: block; text-align: center; padding: 9px 16px; line-height: 1.5; }
.promo-bar .ptag { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; margin-right: 10px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.promo-bar p { display: inline; font-size: 0.86rem; font-weight: 500; }
.promo-bar p a { white-space: nowrap; }
.promo-bar a { color: var(--on-accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; white-space: nowrap; }
.promo-bar a:hover { opacity: 0.75; }

/* ---- Sub-page hero ---- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero .wrap { position: relative; padding-block: clamp(40px, 6vw, 76px); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -0.03em; margin-top: 16px; max-width: 18ch; }
.page-hero .answer-lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); max-width: 60ch; margin-top: 20px; line-height: 1.5; }
.page-hero .cta-row { margin-top: 30px; }
.page-hero .abbr-badge { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-tint); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); padding: 5px 12px; border-radius: 6px; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.breadcrumb a { text-decoration: none; color: var(--ink-faint); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---- Direct (no-dropdown) nav link ---- */
a.nav-trigger { text-decoration: none; }
.nav-trigger.nav-active { color: var(--ink); background: var(--bg-2); }
.nav-item.nav-active .nav-trigger { color: var(--ink); }

/* ---- Content layout ---- */
.split { display: grid; grid-template-columns: 1.55fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split .aside { position: sticky; top: 92px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split .aside { position: static; } }

.prose > * + * { margin-top: 18px; }
.prose > :first-child { margin-top: 0; } /* align column top with the aside */
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 44px; }
.prose h3 { font-size: 1.25rem; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.prose ul li { display: flex; gap: 12px; }
.prose ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; background: var(--accent); border-radius: 1px; }

/* ---- Spec sheet ---- */
.specsheet { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.specsheet .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.specsheet .row:last-child { border-bottom: none; }
.specsheet dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.specsheet dd { margin: 0; font-weight: 600; font-size: 0.94rem; text-align: right; }
.aside-title { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }

/* ---- Pros / cons ---- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.proscons .col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
.proscons h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.proscons h3 svg { width: 18px; height: 18px; flex: none; }
.proscons .pro h3 svg { color: oklch(0.6 0.14 150); }
.proscons .con h3 svg { color: var(--ink-faint); }
.proscons ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.proscons li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.4; }
.proscons li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.proscons .pro li svg { color: oklch(0.6 0.14 150); }
.proscons .con li svg { color: var(--ink-faint); }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr; } }

/* ---- Linked pills (materials, related) ---- */
.pill-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.pill-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: all .15s; }
.pill-links a:hover { border-color: var(--accent); color: var(--accent); }
.pill-links a .dot-c { width: 10px; height: 10px; border-radius: 3px; }

/* ---- Related / index cards grid ---- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.link-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); transition: transform .15s, border-color .15s; }
.link-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.link-card .lc-abbr { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--accent); }
.link-card .lc-ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 14px; }
.link-card h3 { font-size: 1.2rem; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.link-card h3 .arr { transition: transform .15s; }
.link-card:hover h3 .arr { transform: translateX(4px); }
.link-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; line-height: 1.5; }

/* ---- Filament family chips (FDM materials list) ---- */
.fcat { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 24px; margin-bottom: 2px; }
.fcat:first-of-type { margin-top: 8px; }
.fcat .opt { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 0.68rem; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fchips span { font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--surface); }

/* ---- Custom quote form ---- */
.qform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.qform .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.field label .req { color: var(--accent); }
.field input, .field textarea { font-family: var(--font-body); font-size: 0.98rem; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.qform .dropzone { margin: 0; }
.qform .actions { margin-top: 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qform .formnote { color: var(--ink-faint); font-size: 0.82rem; }
.qform .formnote a { color: var(--accent); }
.form-success { display: none; text-align: center; padding: 30px 20px; }
.form-success.show { display: block; }
.form-success .tick { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.form-success .tick svg { width: 28px; height: 28px; color: var(--accent); }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 560px) { .qform .grid { grid-template-columns: 1fr; } }

/* ---- Glossary ---- */
.gloss-search { position: relative; width: 100%; max-width: 440px; margin-bottom: 26px; }
.gloss-search input { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); }
.gloss-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.gloss-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-faint); }
.gloss-group { margin-top: 36px; }
.gloss-group:first-of-type { margin-top: 0; }
.gloss-group > h2 { font-size: 1.4rem; margin-bottom: 14px; }
.gloss { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.g-row { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: none; }
.g-row dt { margin: 0; }
.g-row .abbr-t { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.g-row .full-t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; margin-top: 3px; color: var(--ink); }
.g-row dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.g-row.hide { display: none; }
.gloss-empty { display: none; padding: 26px; text-align: center; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.8rem; }
@media (max-width: 620px) { .g-row { grid-template-columns: 1fr; gap: 5px; } }

/* ---- Hero "live build" graphic (replaces the upload-looking card) ---- */
.hero-build { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.hero-build .hb-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.hero-build .hb-head .mono { color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.hero-build .hb-head .live { color: var(--accent); }
.hero-build .hb-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
@media (prefers-reduced-motion: no-preference) { .hero-build .hb-head .dot { animation: hbPulse 2s ease-in-out infinite; } }
@keyframes hbPulse { 0%,100% { box-shadow: 0 0 0 3px var(--accent-tint); } 50% { box-shadow: 0 0 0 7px transparent; } }

.hb-stage {
  position: relative; height: 320px; overflow: hidden;
  background-color: var(--bg-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
}
/* measurement ruler */
.hb-ruler { position: absolute; top: 20px; bottom: 54px; left: 20px; width: 1px; background: var(--line-strong); }
.hb-ruler span { position: absolute; left: 6px; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; color: var(--ink-faint); white-space: nowrap; }
.hb-ruler span::before { content: ""; position: absolute; left: -6px; top: 50%; width: 5px; height: 1px; background: var(--line-strong); }

/* build platform */
.hb-plate { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: 72%; height: 9px; background: var(--ink); border-radius: 3px; }
.hb-plate::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: oklch(1 0 0 / 0.18); border-radius: 3px 3px 0 0; }
.hb-base-shadow { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); width: 56%; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, oklch(0.2 0.02 264 / 0.16), transparent 70%); }

/* printhead gantry */
.hb-gantry { position: absolute; top: 26px; left: 7%; right: 7%; height: 5px; background: var(--ink); border-radius: 3px; opacity: 0.9; }
.hb-carriage { position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 30px; height: 22px; background: var(--ink); border-radius: 4px; }
.hb-carriage::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--ink); }
@media (prefers-reduced-motion: no-preference) { .hb-gantry, .hb-carriage { animation: hbScan 4s ease-in-out infinite; } }
@keyframes hbScan { 0%,100% { transform: translateX(-22%); } 50% { transform: translateX(22%); } }
.hb-carriage { animation-name: hbScanC; }
@keyframes hbScanC { 0%,100% { transform: translateX(calc(-50% - 22%)); } 50% { transform: translateX(calc(-50% + 22%)); } }

/* the printed object */
.hb-object { position: absolute; left: 50%; bottom: 49px; transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; z-index: 2; }
.hb-object .lyr { height: 9px; border-radius: 3px; background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 100%, #fff 22%), var(--accent) 55%, color-mix(in oklab, var(--accent) 100%, #000 16%)); }
@media (prefers-reduced-motion: no-preference) { .hb-object .lyr { animation: hbRise .5s cubic-bezier(.2,.7,.3,1) backwards; } }
@keyframes hbRise { from { transform: translateY(9px) scaleX(.55); } to { transform: none; } }

.hb-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hb-stats > div { padding: 15px 12px; text-align: center; border-right: 1px solid var(--line); }
.hb-stats > div:last-child { border-right: none; }
.hb-stats b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; display: block; letter-spacing: -0.01em; }
.hb-stats span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; display: block; }

/* ---- "We'll recommend" callout ---- */
.suggest { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--accent-tint); border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line)); border-radius: var(--radius-lg); padding: 24px 28px; }
.suggest .st { min-width: 280px; flex: 1; }
.suggest h3 { font-size: 1.3rem; }
.suggest p { color: var(--ink-soft); margin-top: 8px; max-width: 64ch; }
.suggest .btn { flex: none; }

/* ---- image-slot integration ---- */
image-slot { display: block; }
.uc-card > image-slot { width: 100%; }
/* image-slot height modifiers */
.is-170 { height: 170px; }
.is-180 { height: 180px; }
.is-240 { width: 100%; height: 240px; }
.uc-card .body h3 a { text-decoration: none; color: inherit; }
.uc-card .body h3 a:hover { color: var(--accent); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gal-item { display: block; border-radius: 12px; overflow: hidden; transition: transform .15s; }
.gal-item:hover { transform: translateY(-3px); }
.gal-item img { display: block; width: 100%; height: 220px; object-fit: cover; }
.gal-item.hide { display: none; }

/* gallery lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: oklch(0.16 0.02 264 / 0.88);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.lightbox img { max-width: min(90vw, 1200px); max-height: 85vh; border-radius: var(--radius-lg); }
.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid oklch(1 0 0 / 0.25); border-radius: 999px;
  background: oklch(0.16 0.02 264 / 0.5); color: #fff; cursor: pointer; transition: background .15s, border-color .15s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.blog-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

/* ---- Use-case aside quote card (whole card links to the instant quote) ---- */
.aside-quote { display: block; text-decoration: none; color: inherit; }
.aside-quote .ph { border-radius: var(--radius-lg); display: none; /* hidden until real project photos land */ }
.aside-quote .btn { margin-top: 0; }
/* static aside photo placeholder (service pages) */
.aside-photo { height: 200px; margin-bottom: 18px; border-radius: var(--radius-lg); }
/* real aside image (same footprint as the .ph placeholder it replaces) */
img.aside-photo { display: block; width: 100%; object-fit: cover; }

/* ---- 404 page ---- */
.notfound { text-align: center; max-width: 760px; }
.notfound .eyebrow { color: var(--accent); }
.notfound .nf-code { font-size: clamp(3.4rem, 12vw, 7rem); line-height: 0.95; margin: .2em 0 .1em; font-family: var(--font-display); }
.notfound .nf-title { margin: 0 0 .5em; }
.notfound .nf-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 48ch; margin: 0 auto 2em; }
.notfound .nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 3em; }
.notfound .nf-links { text-align: left; border-top: 1px solid var(--line); padding-top: 2em; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
