/* Rora Systems — site styles */

/* Fonts are served from this site, not Google, so visitors' details aren't shared with a third party.
   All three are released under the SIL Open Font License. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2") 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: 500 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") 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") 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") 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") 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") 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;
}

:root {
  --bg: #f3f2ee;
  --bg-alt: #eae8e2;
  --surface: #fbfaf7;
  --ink: #14181d;
  --ink-2: #353d46;
  --muted: #5d6670;
  --line: rgba(20, 24, 29, 0.12);
  --line-strong: rgba(20, 24, 29, 0.24);
  --accent: #34a65c;
  --accent-hover: #2b9550;
  --accent-text: #1b7a3f;
  --accent-soft: rgba(52, 166, 92, 0.12);
  --on-accent: #0b130e;
  --layer: rgba(20, 24, 29, 0.045);
  --shadow: 0 1px 2px rgba(30, 40, 30, 0.06), 0 12px 32px -12px rgba(30, 50, 35, 0.18);
  /* The logo's lime-to-blue gradient, and a deeper version that stays readable as text */
  --brand-gradient: linear-gradient(90deg, #c3e159, #57ba5b 36%, #2a9f7e 66%, #2080c8);
  --brand-gradient-text: linear-gradient(90deg, #468c1e, #1f8f4d 38%, #17806f 68%, #1a68ad);

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;

  --z-header: 10;
  --z-skip: 20;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1215;
    --bg-alt: #141a1e;
    --surface: #171d22;
    --ink: #edf0ed;
    --ink-2: #c8cec9;
    --muted: #98a19b;
    --line: rgba(237, 240, 237, 0.1);
    --line-strong: rgba(237, 240, 237, 0.22);
    --accent: #4cc173;
    --accent-hover: #63cf87;
    --accent-text: #6fd593;
    --accent-soft: rgba(76, 193, 115, 0.14);
    --on-accent: #08110b;
    --layer: rgba(237, 240, 237, 0.035);
    --brand-gradient-text: linear-gradient(90deg, #c3e159, #5fc463 36%, #32b092 66%, #3d9be0);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

p a, dd a, td a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, dd a:hover, td a:hover { text-decoration-thickness: 2px; }

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

p { margin: 0; text-wrap: pretty; }

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

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: var(--z-skip);
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 10px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 2px, transparent 2px 4px);
}
.eyebrow:has(.flag)::before { display: none; }

.flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 6px 3px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  vertical-align: 0.2em;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38em;
}

/* Faint horizontal lines, like the layers on a print */
.layer-texture {
  background-image: repeating-linear-gradient(to bottom, transparent 0 5px, var(--layer) 5px 6px);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px -8px rgba(52, 166, 92, 0.6);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-block: 6px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.text-link:hover { background-size: 100% 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: auto; height: 46px; }
.brand-full img { width: 190px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9688rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav ul a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav .flag { vertical-align: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: flex;
    padding: 14px 4px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .site-nav .btn { min-height: 52px; font-size: 1rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px) clamp(80px, 11vw, 140px); }
.section-tight { padding-block: clamp(56px, 7vw, 88px) clamp(64px, 8vw, 104px); }
.section-flush-top { padding-top: clamp(24px, 3vw, 40px); }
.section-alt { background-color: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 36em; }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 120px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.875rem, 7.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-text);
}

/* Headline text filled with the brand gradient, with the logo's stripes as a bar underneath.
   (Stripes through the letters themselves made them hard to read.) */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .striped {
    color: transparent !important;
    background: var(--brand-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.striped {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2em;
}
.striped::after {
  content: "";
  position: absolute;
  left: 0.03em;
  right: 0.12em;
  bottom: 0;
  height: 0.13em;
  background: var(--brand-gradient);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 0.03em, transparent 0.03em 0.05em);
  mask-image: repeating-linear-gradient(to bottom, #000 0 0.03em, transparent 0.03em 0.05em);
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 24px 0 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* The printer animation */
.printer { margin: 0; }

.printer-bed,
.viz-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.printer-bed { aspect-ratio: 5 / 4; }
.printer-part { width: 76%; margin-top: 7%; }
.logo-print { display: block; width: 100%; height: auto; overflow: visible; }
.logo-print-ghost path { fill: var(--ink); opacity: 0.07; }
.logo-print-plate { stroke: var(--line-strong); stroke-width: 9; stroke-linecap: round; }
.logo-print-rail { stroke: var(--ink-2); stroke-width: 11; stroke-linecap: round; }
.logo-print-nozzle rect, .logo-print-nozzle polygon { fill: var(--ink); }
.logo-print-nozzle circle { fill: #f0a24a; }
.logo-print-rail, .logo-print-nozzle { opacity: 0; transition: opacity 0.5s; }
.js .printer:not(.is-done) .logo-print-rail { opacity: 0.35; }
.js .printer:not(.is-done) .logo-print-nozzle { opacity: 1; }

.printer-readout,
.viz-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-inline: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.printer-readout b, .viz-readout b { color: var(--ink); font-weight: 500; }
.printer-status, .viz-status { margin-left: auto; color: var(--accent-text); }
.printer-status::before, .viz-status::before { content: "● "; }
.viz.is-done .viz-status::before { content: "✓ "; }

/* ---------- Service animations ---------- */

.viz { margin: 0; }
.viz-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.viz-panel-pad { padding: clamp(16px, 4%, 28px); place-items: stretch; }

/* Networking floor plan */
.net-walls rect, .net-walls path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; opacity: 0.8; }
.net-rooms rect { fill: var(--accent); opacity: 0; transition: opacity 0.6s var(--ease); }
.net-rooms rect.is-lit { opacity: 0.16; }
.net-labels text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--muted); }
.net-cables path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-linejoin: round;
}
.net-rack rect { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.net-rack circle { fill: var(--accent); }
.net .ap { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2.5; transition: fill 0.3s, stroke 0.3s; }
[data-ap].is-on .ap { fill: var(--accent); stroke: var(--surface); }
.net .ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }

/* PC build */
.pc-case { fill: var(--bg-alt); stroke: var(--ink); stroke-width: 2.5; opacity: 0.9; }
.pc-glass { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.pc-board { fill: var(--bg-alt); stroke: var(--line-strong); stroke-width: 1.5; }
.pc-part { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.pc-ram { fill: var(--ink-2); }
.pc-slot { fill: var(--line-strong); }
.pc-stripe { fill: var(--accent); }
.pc-trace { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.pc-label { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.pc-fan-ring { fill: none; stroke: var(--ink-2); stroke-width: 1.5; transition: stroke 0.4s; }
.pc-blades path { fill: var(--ink-2); transition: fill 0.4s; }
.pc-cable { fill: none; stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; }
.pc-led { fill: var(--line-strong); transition: fill 0.3s; }
.pc-glow { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity 0.6s; }
.js .pc [data-part] { opacity: 0; }
.js .net-cables path, .js .pc-cable, .js .tp-line { stroke-dashoffset: 1; }
.pc.is-on .pc-led { fill: var(--accent); }
.pc.is-on .pc-glow { opacity: 0.8; }
.pc.is-on .pc-fan-ring { stroke: var(--accent); }
.pc.is-on .pc-blades path { fill: var(--accent-text); }

/* Support terminal */
.term {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.term-bar p { margin-left: auto; font-size: 0.6875rem; color: var(--muted); }
.term-body { flex: 1; display: flex; flex-direction: column; gap: clamp(12px, 4%, 22px); padding: clamp(14px, 5%, 26px); }
.health { display: flex; align-items: center; gap: 16px; }
.health svg { width: clamp(52px, 18%, 72px); flex-shrink: 0; transform: rotate(-90deg); }
.health-track, .health-fill { fill: none; stroke-width: 7; }
.health-track { stroke: var(--line); }
.health-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.42; }
.health p { display: flex; flex-wrap: wrap; align-items: baseline; font-family: var(--font-display); line-height: 1; }
.health b { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.health span { font-size: 1.125rem; font-weight: 600; margin-left: 2px; }
.health small { flex-basis: 100%; margin-top: 6px; font-size: 0.6875rem; color: var(--muted); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 2.4%, 12px); font-size: clamp(0.6875rem, 1.6vw, 0.8125rem); }
.tasks li { display: flex; align-items: center; gap: 10px; color: var(--muted); opacity: 0.55; transition: opacity 0.3s, color 0.3s; }
.tasks li.is-running, .tasks li.is-done { opacity: 1; color: var(--ink); }
.tasks i {
  position: relative;
  width: 15px; height: 15px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
}
.tasks li.is-running i { border-radius: 50%; border-color: var(--line-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.tasks li.is-done i { background: var(--accent); border-color: var(--accent); }
.tasks li.is-done i::after {
  content: "";
  position: absolute;
  left: 3.5px; top: 1.5px;
  width: 4px; height: 7px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tasks em { font-style: normal; color: var(--accent-text); margin-left: auto; font-variant-numeric: tabular-nums; }
.term-done {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.viz.is-done .term-done { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Custom software: a small dashboard app, sketched then built */
.app-body {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 22% minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "nav nav" "side cards" "side chart" "side rows";
  gap: clamp(6px, 2.2%, 10px);
  padding: clamp(8px, 3%, 14px);
  min-height: 0;
}
.app-block {
  border: 1.5px dashed transparent;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s, background-color 0.4s;
}
.app-block > * { opacity: 0; transition: opacity 0.4s var(--ease); }
.app-block.is-drafted { opacity: 1; transform: none; border-color: var(--line-strong); }
.app-block.is-built { border-style: solid; border-color: var(--line); background: var(--surface); }
.app-block.is-built > * { opacity: 1; }

.app-nav { grid-area: nav; display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.app-nav i { width: 14%; height: 6px; border-radius: 3px; background: var(--line-strong); }
.app-nav .app-logo { width: 14px; height: 14px; border-radius: 4px; background: var(--brand-gradient); margin-right: 6px; }
.app-nav .app-avatar { width: 14px; height: 14px; border-radius: 50%; margin-left: auto; background: var(--line-strong); }

.app-side { grid-area: side; display: flex; flex-direction: column; gap: 9px; padding: 10px 8px; }
.app-side i { height: 6px; border-radius: 3px; background: var(--line); }
.app-side i.is-on { background: var(--accent); }

.app-cards { grid-area: cards; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.app-cards div { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 4px; background: var(--bg-alt); }
.app-cards small { font-size: clamp(0.5rem, 1.2vw, 0.625rem); color: var(--muted); }
.app-cards b { font-family: var(--font-display); font-size: clamp(0.9375rem, 2.2vw, 1.25rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.app-chart { grid-area: chart; display: flex; align-items: flex-end; gap: 7%; padding: 10px 12px 8px; min-height: 0; }
.app-chart i {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--brand-gradient);
  background-size: 700% 100%;
  transform: scaleY(0.04);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}
.app-chart i:nth-child(1) { background-position: 0 0; }
.app-chart i:nth-child(2) { background-position: 16% 0; transition-delay: 0.05s; }
.app-chart i:nth-child(3) { background-position: 33% 0; transition-delay: 0.1s; }
.app-chart i:nth-child(4) { background-position: 50% 0; transition-delay: 0.15s; }
.app-chart i:nth-child(5) { background-position: 66% 0; transition-delay: 0.2s; }
.app-chart i:nth-child(6) { background-position: 83% 0; transition-delay: 0.25s; }
.app-chart i:nth-child(7) { background-position: 100% 0; transition-delay: 0.3s; }
.app-chart.is-built i { transform: scaleY(var(--h, 0.5)); }

.app-rows { grid-area: rows; display: flex; flex-direction: column; gap: 7px; padding: 9px 10px; }
.app-rows i { height: 6px; border-radius: 3px; background: var(--line); }
.app-rows i:nth-child(1) { width: 92%; }
.app-rows i:nth-child(2) { width: 74%; }
.app-rows i:nth-child(3) { width: 84%; }

.app-toast {
  position: absolute;
  right: clamp(10px, 4%, 18px);
  bottom: clamp(10px, 4%, 18px);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(0.5625rem, 1.3vw, 0.6875rem);
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.app-toast::before { content: "✓ "; }
.app-toast.is-built { opacity: 1; transform: none; }

/* 3D printing toolpath */
.tp-ghost { fill: var(--ink); opacity: 0.05; }
.tp-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}
.tp-infill { stroke-width: 3.5; opacity: 0.75; }
.tp-nozzle polygon { fill: var(--ink); }
.tp-tip { fill: #f0a24a; }

/* Inner page hero with an animation beside it */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.page-hero-grid .viz { width: 100%; max-width: 480px; justify-self: end; }
.page-hero-grid .page-title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }

/* ---------- Link grid (problems, related services) ---------- */

.link-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
}
.link-grid a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 26px 8px 24px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.link-grid a:hover { background: var(--accent-soft); padding-inline: 18px; }
.link-grid q, .link-grid strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.link-grid q { quotes: "\201C" "\201D"; }
.link-grid p { color: var(--ink-2); font-size: 0.9688rem; }
.link-grid .mono { margin-top: auto; color: var(--accent-text); font-weight: 500; }
.link-grid .mono span { display: inline-block; transition: transform 0.3s var(--ease); }
.link-grid a:hover .mono span { transform: translateX(5px); }

/* ---------- Services showcase (home) ---------- */

.showcase-stage { display: none; }

@media (min-width: 981px) {
  .showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
  .showcase-stage {
    display: grid;
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
  .showcase-item {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .showcase-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }
  .showcase .service-row {
    grid-template-columns: 56px minmax(0, 1fr) 32px;
    grid-template-areas:
      "num title arrow"
      "num desc arrow"
      "num tags arrow";
    padding-block: 26px;
  }
  .showcase .service-desc { padding-top: 0; }
  .showcase .service-row.is-active { background: var(--accent-soft); padding-inline: 20px 16px; }
  .showcase .service-row.is-active .service-arrow { color: var(--accent-text); }
  /* Timer line: when it finishes, the next service takes over (see site.js) */
  .showcase.is-auto .service-row.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--brand-gradient);
    transform-origin: left;
    animation: showcase-timer 11.5s linear both;
  }
  .showcase:hover .service-row::after,
  .showcase:focus-within .service-row::after { animation-play-state: paused !important; }
}
@keyframes showcase-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Service list ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr) 40px;
  grid-template-areas:
    "num title desc arrow"
    "num title tags arrow";
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 10px;
  align-items: start;
  padding: clamp(28px, 3.5vw, 40px) 8px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.service-row:hover { background: var(--accent-soft); padding-inline: 20px 16px; }

.service-num { grid-area: num; color: var(--muted); padding-top: 10px; display: flex; flex-direction: column; gap: 16px; }

/* Small animated icons: play once when the row appears, loop on hover */
.glyph { width: 32px; height: 32px; overflow: visible; }
.glyph * { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glyph-wifi circle { fill: var(--accent); stroke: none; }
.glyph-fan .glyph-spin path { fill: var(--accent); stroke: none; }
.glyph-spin { transform-origin: 16px 16px; }
.glyph-tick circle { fill: none; stroke: var(--ink-2); }
.glyph-tick path { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1; }
.glyph-code .glyph-slash { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1; }
.glyph-layers rect { fill: var(--accent); stroke: none; transform-box: fill-box; transform-origin: 50% 100%; }
.glyph-layers .glyph-nozzle { fill: var(--ink-2); stroke: none; }

.is-visible .glyph-wifi path { animation: glyph-wifi 1.8s var(--ease) 0.3s 1 both; }
.is-visible .glyph-wifi path:nth-child(2) { animation-delay: 0.15s; }
.is-visible .glyph-wifi path:nth-child(3) { animation-delay: 0s; }
.is-visible .glyph-spin { animation: glyph-spin 1.6s cubic-bezier(0.3, 0, 0.2, 1) 0.3s 1 both; }
.is-visible .glyph-tick path { animation: glyph-tick 1.6s var(--ease) 0.3s 1 both; }
.is-visible .glyph-code path:nth-child(1) { animation: glyph-code-l 1.8s var(--ease) 0.3s 1 both; }
.is-visible .glyph-code path:nth-child(2) { animation: glyph-code-r 1.8s var(--ease) 0.3s 1 both; }
.is-visible .glyph-code .glyph-slash { animation: glyph-tick 1.8s var(--ease) 0.6s 1 both; }
.is-visible .glyph-layers rect { animation: glyph-layer 2.4s var(--ease) 0.3s 1 both; }
.is-visible .glyph-layers rect:nth-child(2) { animation-delay: 0.55s; }
.is-visible .glyph-layers rect:nth-child(3) { animation-delay: 0.8s; }
.is-visible .glyph-layers .glyph-nozzle { animation: glyph-nozzle 2.4s var(--ease) 0.3s 1 both; }
.service-row:hover .glyph *, .service-row:focus-visible .glyph * { animation-iteration-count: infinite !important; }
.service-row:hover .glyph-spin, .service-row:focus-visible .glyph-spin { animation: glyph-spin 0.9s linear infinite; }

@keyframes glyph-wifi { 0%, 100% { opacity: 1; } 30% { opacity: 0.15; } 60% { opacity: 1; } }
@keyframes glyph-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes glyph-tick { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes glyph-code-l { 0% { transform: translateX(5px); opacity: 0; } 35%, 100% { transform: none; opacity: 1; } }
@keyframes glyph-code-r { 0% { transform: translateX(-5px); opacity: 0; } 35%, 100% { transform: none; opacity: 1; } }
@keyframes glyph-layer { 0% { transform: scaleY(0); opacity: 0; } 25%, 100% { transform: none; opacity: 1; } }
@keyframes glyph-nozzle { 0% { transform: translate(-4px, 14px); } 25% { transform: translate(4px, 10px); } 50% { transform: translate(-3px, 5px); } 75%, 100% { transform: none; } }
.service-title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.service-title .flag { margin-left: 6px; }
.service-desc { grid-area: desc; color: var(--ink-2); padding-top: 6px; max-width: 34em; }
.service-tags { grid-area: tags; color: var(--muted); }
.service-arrow {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  font-size: 1.5rem;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.service-row:hover .service-arrow { transform: translateX(6px); color: var(--accent-text); }

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    grid-template-areas:
      "num title arrow"
      "num desc desc"
      "num tags tags";
  }
  .service-num { padding-top: 8px; gap: 12px; }
  .glyph { width: 26px; height: 26px; }
  .service-arrow { align-self: start; padding-top: 4px; }
}

/* ---------- 3D printing band ---------- */

.section-print { background-color: var(--bg-alt); }

.print-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.print-intro p:not(.eyebrow) { color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.print-intro .btn { margin-top: 32px; }

.print-uses {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.print-uses li {
  padding: 24px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.print-uses li:nth-child(odd) { border-right: 1px solid var(--line); }
.print-uses li:nth-child(even) { padding-left: 24px; padding-right: 0; }
.print-uses .mono { color: var(--accent-text); font-weight: 500; }
.print-uses p { margin-top: 8px; color: var(--ink-2); font-size: 0.9688rem; }

.steps {
  list-style: none;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 24px 0 0;
  border-top: 2px solid var(--line-strong);
}
.steps li::before {
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.steps .mono { color: var(--muted); display: block; margin-bottom: 10px; }
.steps strong { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; display: block; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 0.9688rem; }
.steps-light { margin-top: 0; }

/* ---------- Principles / split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.split-statement { position: sticky; top: calc(var(--header-h) + 32px); }

.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}
.principles li:last-child { border-bottom: 1px solid var(--line-strong); }
.principles .mono { color: var(--accent-text); padding-top: 6px; }
.principles h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.principles p { margin-top: 10px; color: var(--ink-2); max-width: 34em; }

/* ---------- Audience ---------- */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.audience-block {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.audience-block:nth-child(2) { margin-top: clamp(0px, 5vw, 64px); }
.audience-block h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.025em; max-width: 18em; }

.ticks { list-style: none; margin: 28px 0 0; padding: 0; }
.ticks li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 8px;
  margin-top: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ---------- CTA band ---------- */

.cta-band {
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 40px;
  align-items: end;
}
.cta-title { font-size: clamp(2.125rem, 4.6vw, 3.75rem); letter-spacing: -0.035em; max-width: 14em; }
.cta-lead { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 34em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-actions .text-link { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Inner pages ---------- */

.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px); }
.page-hero .lead { margin-top: 26px; }
.trading-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.trading-note::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 10px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 2px, transparent 2px 4px);
}
.trading-note strong { color: var(--ink); font-weight: 600; }
.page-title {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13em;
}
.page-hero-print { background-color: var(--bg-alt); border-bottom: 1px solid var(--line); }

.crumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }

.feature-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  counter-reset: feat;
}
.feature-list li {
  counter-increment: feat;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line-strong);
}
.feature-list li::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.feature-list h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.feature-list p { margin-top: 10px; color: var(--ink-2); font-size: 0.9688rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chips li {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.9688rem;
}

.faq { margin: 0; border-top: 1px solid var(--line-strong); }
.faq > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px clamp(24px, 5vw, 80px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.faq dt { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
.faq dd { margin: 0; color: var(--ink-2); max-width: 38em; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.materials { width: 100%; border-collapse: collapse; min-width: 560px; }
.materials th, .materials td { text-align: left; padding: 18px 22px; vertical-align: top; border-bottom: 1px solid var(--line); }
.materials tbody tr:last-child > * { border-bottom: 0; }
.materials thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.materials tbody th .mono { font-size: 0.9375rem; font-weight: 500; color: var(--accent-text); }
.materials td:nth-child(2) { font-weight: 500; }
.materials td:last-child { color: var(--ink-2); }
.note { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }

.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-2); max-width: 36em; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose-narrow { max-width: 42em; }

.values {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.values-title { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.values dl { margin: 0; }
.values dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.values dl > div:first-child { border-top: 0; }
.values dt { font-weight: 600; }
.values dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9688rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-aside { display: flex; flex-direction: column; gap: 40px; }
.contact-aside .eyebrow { margin-bottom: 10px; }
.contact-big {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-card .eyebrow { margin-bottom: 4px; }
.contact-card-value {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact-card p:not(.eyebrow) { color: var(--ink-2); max-width: 30em; }
.contact-card .text-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.contact-card:hover .text-link { background-size: 100% 2px; }
.contact-safety { margin-top: clamp(20px, 3vw, 28px); max-width: 52em; }

.include-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.include-grid li {
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.include-grid h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.include-grid p { color: var(--ink-2); font-size: 0.9375rem; }
/* The service someone came from (e.g. /contact/?topic=software) */
.include-grid li.is-picked, .contact-card.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.include-grid li.is-picked h3::after {
  content: "You asked about this";
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}

.next-steps { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.next-steps li + li { margin-top: 8px; }
.next-steps li::marker { color: var(--accent-text); font-family: var(--font-mono); font-size: 0.875rem; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.8125rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: #c2412d; }
.field-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.field-hint { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 0.875rem; color: #c2412d; }
@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #f07a63; }
  .field-error { color: #f07a63; }
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-foot .muted { flex: 1 1 220px; }
.contact-form button[disabled] { opacity: 0.6; pointer-events: none; }

.form-sent h2 { font-size: 2rem; margin-bottom: 12px; }
.form-sent p { color: var(--ink-2); }
.form-sent:focus { outline: none; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(80px, 14vw, 180px); }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.stripe-rule {
  height: 23.5px;
  margin-bottom: clamp(56px, 7vw, 88px);
  background: var(--brand-gradient);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 4px, transparent 4px 6.5px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 4px, transparent 4px 6.5px);
}
.footer-brand p { margin-top: 22px; color: var(--muted); max-width: 22em; font-size: 0.9688rem; }
.footer-head { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.9688rem;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-text); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Company details ---------- */

.values + .values { margin-top: clamp(16px, 2vw, 24px); }
.values .mono { font-size: 0.875rem; }

/* ---------- Legal pages ---------- */

.legal-updated { margin-top: 18px; color: var(--muted); }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.legal-toc { position: sticky; top: calc(var(--header-h) + 28px); }
.legal-toc ol { margin: 0; padding-left: 1.4em; }
.legal-toc li { padding: 4px 0; color: var(--muted); font-size: 0.9375rem; }
.legal-toc li::marker { font-family: var(--font-mono); font-size: 0.8125rem; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-facts { position: sticky; top: calc(var(--header-h) + 28px); }
.legal { max-width: 46em; }
.legal p, .legal li { max-width: none; color: var(--ink-2); }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal ul { margin: 0.8em 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 0.5em; }
.legal li::marker { color: var(--accent-text); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .table-wrap { margin: 1.2em 0; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.legal-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.legal-table td { color: var(--ink-2); }

/* ---------- Page transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.18s; }
::view-transition-new(root) { animation-duration: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .viz { justify-self: start; max-width: 440px; }
  .printer { max-width: 440px; }
  .print-grid, .split, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .split-statement { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc, .legal-facts { position: static; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .audience { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .audience-block:nth-child(2) { margin-top: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .print-uses { grid-template-columns: 1fr; }
  .print-uses li, .print-uses li:nth-child(even) { padding: 20px 0 22px; border-right: 0; }
  .print-uses li:nth-child(odd) { border-right: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .faq > div { grid-template-columns: 1fr; }
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .legal-table tbody tr:last-child { border-bottom: 0; }
  .legal-table th, .legal-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .legal-table td + td, .legal-table th + td { margin-top: 6px; }
  .materials { min-width: 0; }
  .materials thead { display: none; }
  .materials tr { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .materials tbody tr:last-child { border-bottom: 0; }
  .materials th, .materials td { display: block; padding: 0; border: 0; }
  .materials td:nth-child(2) { margin-top: 6px; }
  .materials td:last-child { margin-top: 4px; font-size: 0.9375rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cta-actions { align-items: stretch; }
}
