/* ctlplne.com — the studio site, on the family design spine.
   Tokens are the console's own (trstctl/web/src/index.css), stored as bare HSL
   triplets exactly as the product stores them, so the studio and the products
   are one design language. Two channels are the studio's:

     --primary   ink. The studio is the house, so it acts in near-black on paper
                 and near-white on dark. The products own the hues.
     --signal    the studio green, reserved. It identifies (links, accents, the
                 live core, status) and never becomes a second call to action.

   Light is the default; dark follows the system or the visitor's stored choice
   under the same localStorage key the consoles read ("trstctl-theme"), so a
   theme chosen anywhere in the family carries across every site. */

@import url('/fonts.css');

:root {
  /* neutrals — the console's light theme */
  --background: 45 33% 95%;
  --foreground: 167 16% 11%;
  --card: 48 100% 99%;
  --card-foreground: 167 16% 11%;
  --muted: 75 12% 94%;
  --muted-foreground: 163 7% 38%;
  --border: 120 7% 86%;
  --sidebar: 60 15% 92%;
  --sidebar-hover: 108 10% 89%;

  /* the studio's two channels */
  --primary: 167 16% 11%;
  --primary-foreground: 48 100% 99%;
  /* product marks on the family rule: each product's action colour as the plate, its ground as the glyph */
  --mark-trstctl: 166 55% 20%; --mark-trstctl-fg: 48 100% 99%;
  --mark-probectl: 28 85% 30%; --mark-probectl-fg: 48 100% 99%;
  --signal: 152 60% 24%;
  --brand-accent: 152 60% 24%;
  --focus: 167 48% 33%;

  /* shared status scale */
  --status-success: 166 55% 20%;
  --status-warning: 40 86% 30%;
  --status-info: 199 49% 31%;
  --status-neutral: 163 7% 38%;
  --destructive: 3 53% 35%;

  --elevation-1: 0 1px 2px 0 hsl(216 28% 9% / 0.08);
  --elevation-2: 0 8px 22px -14px hsl(216 28% 9% / 0.35);
  --elevation-3: 0 22px 60px -30px hsl(216 28% 9% / 0.45);

  /* shape, motion, density — the console's values */
  --radius-control: 0.375rem;
  --radius-panel: 0.5rem;
  --motion-fast: 160ms;
  --motion-base: 220ms;
  --density: 1.25rem;

  /* type */
  --font-sans: 'Sora Variable', Sora, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Syne Variable', Syne, 'Sora Variable', Sora, ui-sans-serif, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-caption: 0.75rem;
  --text-data: 0.875rem;
  --text-body: 1rem;
  --text-lede: 1.1875rem;
  --text-title: 1.125rem;
  --text-heading: 1.5rem;
  --text-display: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --text-hero: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

  /* layout */
  --max: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: 165 17% 7%;
    --foreground: 45 22% 93%;
    --card: 160 16% 10%;
    --card-foreground: 45 22% 93%;
    --muted: 156 13% 15%;
    --muted-foreground: 156 7% 70%;
    --border: 156 10% 22%;
    --sidebar: 165 18% 8%;
    --sidebar-hover: 160 16% 12%;
    --primary: 45 22% 93%;
    --primary-foreground: 165 20% 8%;
  --mark-trstctl: 162 34% 68%; --mark-trstctl-fg: 165 20% 8%;
  --mark-probectl: 34 100% 66%; --mark-probectl-fg: 30 40% 8%;
    --signal: 150 80% 62%;
    --brand-accent: 150 80% 62%;
    --focus: 171 77% 64%;
    --status-success: 158 64% 52%;
    --status-warning: 32 95% 54%;
    --status-info: 218 100% 77%;
    --status-neutral: 207 12% 65%;
    --destructive: 0 100% 71%;
    --elevation-1: 0 1px 2px 0 hsl(220 40% 2% / 0.5);
    --elevation-2: 0 12px 30px -18px hsl(220 40% 2% / 0.8);
    --elevation-3: 0 28px 70px -34px hsl(220 40% 2% / 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: 165 17% 7%;
  --foreground: 45 22% 93%;
  --card: 160 16% 10%;
  --card-foreground: 45 22% 93%;
  --muted: 156 13% 15%;
  --muted-foreground: 156 7% 70%;
  --border: 156 10% 22%;
  --sidebar: 165 18% 8%;
  --sidebar-hover: 160 16% 12%;
  --primary: 45 22% 93%;
  --primary-foreground: 165 20% 8%;
  --mark-trstctl: 162 34% 68%; --mark-trstctl-fg: 165 20% 8%;
  --mark-probectl: 34 100% 66%; --mark-probectl-fg: 30 40% 8%;
  --signal: 150 80% 62%;
  --brand-accent: 150 80% 62%;
  --focus: 171 77% 64%;
  --status-success: 158 64% 52%;
  --status-warning: 32 95% 54%;
  --status-info: 218 100% 77%;
  --status-neutral: 207 12% 65%;
  --destructive: 0 100% 71%;
  --elevation-1: 0 1px 2px 0 hsl(220 40% 2% / 0.5);
  --elevation-2: 0 12px 30px -18px hsl(220 40% 2% / 0.8);
  --elevation-3: 0 28px 70px -34px hsl(220 40% 2% / 0.9);
  color-scheme: dark;
}

/* ------------------------------------------------------------- base ---- */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "rlig" 1, "calt" 1;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: var(--text-display); }
h3 { font-size: var(--text-title); font-weight: 600; }
strong { font-weight: 600; color: hsl(var(--foreground)); }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.9em; }
::selection { background: hsl(var(--primary) / 0.2); }
:focus-visible { outline: 2px solid hsl(var(--focus)); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: hsl(var(--border)); border: 3px solid transparent; background-clip: content-box; border-radius: 8px; }
table { font-variant-numeric: tabular-nums; }
.tabular, .num { font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; position: relative; }
.skip { position: absolute; left: 0.5rem; top: 0.5rem; z-index: 100; transform: translateY(-200%); padding: 0.5rem 0.75rem; border-radius: var(--radius-control); background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 500; }
.skip:focus { transform: none; }

/* typographic primitives shared with the consoles */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-caption); font-weight: 600; color: hsl(var(--muted-foreground)); }
.eyebrow .num { color: hsl(var(--brand-accent)); font-weight: 500; }
.lede { font-size: var(--text-lede); line-height: 1.55; color: hsl(var(--muted-foreground)); max-width: 40rem; }
.lede strong { color: hsl(var(--foreground)); }
.intro { color: hsl(var(--muted-foreground)); max-width: 44rem; margin-top: 0.875rem; font-size: 1.0625rem; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; display: grid; gap: 0.75rem; }
.section-head h2 { margin-top: 0.125rem; }
.note { color: hsl(var(--muted-foreground)); font-size: var(--text-caption); }

/* ---------------------------------------------------------- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0 1rem; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-control);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1; cursor: pointer;
  box-shadow: var(--elevation-1);
  transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), filter var(--motion-fast);
}
.btn:hover { filter: brightness(1.12); }
.btn:active { filter: brightness(0.94); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--focus)); }
.btn svg { width: 1rem; height: 1rem; flex: none; }
.btn.secondary { background: hsl(var(--foreground) / 0.03); color: hsl(var(--foreground)); border-color: hsl(var(--border)); box-shadow: none; }
.btn.secondary:hover { filter: none; border-color: hsl(var(--brand-accent) / 0.6); color: hsl(var(--brand-accent)); }
.btn.ghost { background: transparent; color: hsl(var(--foreground)); box-shadow: none; }
.btn.ghost:hover { filter: none; background: hsl(var(--foreground) / 0.05); }
.btn.icon { width: 2.25rem; min-height: 2.25rem; padding: 0; }
.btn.lg { min-height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }

.chip {
  display: inline-flex; align-items: center; gap: 0.375rem; max-width: 100%;
  padding: 0.125rem 0.5rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius-control);
  background: hsl(var(--muted) / 0.6); color: hsl(var(--foreground));
  font-family: var(--font-mono); font-size: var(--text-caption); line-height: 1.4;
  transition: border-color var(--motion-fast), color var(--motion-fast);
}
a.chip:hover { border-color: hsl(var(--brand-accent) / 0.6); color: hsl(var(--brand-accent)); }
.chip.accent { border-color: hsl(var(--brand-accent) / 0.4); color: hsl(var(--brand-accent)); background: hsl(var(--signal) / 0.08); }
.chip.plain { font-family: var(--font-sans); font-weight: 500; }

.status { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 1.5rem; font-size: var(--text-caption); font-weight: 500; line-height: 1; color: hsl(var(--muted-foreground)); }
.status::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; flex: none; }
.status.signal { color: hsl(var(--signal)); }
.status.success { color: hsl(var(--status-success)); }
.status.info { color: hsl(var(--status-info)); }
.status.foreground { color: hsl(var(--foreground)); }

/* ------------------------------------------------------------ panels ---- */
.card { border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); color: hsl(var(--card-foreground)); padding: var(--density); box-shadow: none; transition: border-color var(--motion-base); }
.card:hover { border-color: hsl(var(--brand-accent) / 0.4); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: hsl(var(--muted-foreground)); font-size: var(--text-data); line-height: 1.55; }
.card .glyph { width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--signal) / 0.1); color: hsl(var(--brand-accent)); }
.card .glyph svg { width: 1.125rem; height: 1.125rem; }

.panel { border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 0.75rem; min-height: 2.5rem; padding: 0 0.875rem; border-bottom: 1px solid hsl(var(--border)); font-family: var(--font-mono); font-size: var(--text-caption); color: hsl(var(--muted-foreground)); }
.panel-bar .status { margin-left: auto; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.875rem; border-bottom: 1px solid hsl(var(--border)); font-family: var(--font-mono); font-size: var(--text-data); }
.panel-row:last-child { border-bottom: 0; }
.panel-row strong { font-weight: 500; }
.panel-row em { font-style: normal; color: hsl(var(--brand-accent)); }

.shot { border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); overflow: hidden; box-shadow: var(--elevation-2); }
.shot img { width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding: 0 0.75rem; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--sidebar)); font-family: var(--font-mono); font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }
.shot-bar .url { margin-left: auto; padding: 0.125rem 0.5rem; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }

/* ------------------------------------------------------------ header ---- */
.studiobar { display: flex; align-items: center; justify-content: center; gap: 0.625rem; padding: 0.375rem var(--gutter); background: hsl(var(--sidebar)); border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: var(--text-caption); font-weight: 500; text-align: center; }
.studiobar strong { color: hsl(var(--foreground)); }

header.site { position: sticky; top: 0; z-index: 30; background: hsl(var(--card) / 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid hsl(var(--border)); }
header.site nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; color: hsl(var(--foreground)); }
.brand-tag { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-caption); letter-spacing: 0; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-control); padding: 0.05rem 0.4rem; }
.mark { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.mark svg { width: 1rem; height: 1rem; }
.navlinks { display: flex; align-items: center; gap: 1.5rem; color: hsl(var(--muted-foreground)); font-size: var(--text-data); font-weight: 500; }
.navlinks a { transition: color var(--motion-fast); }
.navlinks a:hover { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
@media (max-width: 62em) {
  .menu { display: inline-flex; }
  .navlinks { position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1rem; background: hsl(var(--card)); border-bottom: 1px solid hsl(var(--border)); box-shadow: var(--elevation-2); }
  header.site.nav-open .navlinks { display: flex; }
  .navlinks a { padding: 0.75rem 0; border-bottom: 1px solid hsl(var(--border)); }
  .navlinks a:last-child { border-bottom: 0; }
  .nav-actions .btn:not(.icon) { display: none; }
}

/* ------------------------------------------------------------- bands ---- */
section.band { padding: clamp(4rem, 8vw, 6rem) 0; border-bottom: 1px solid hsl(var(--border)); }
section.band.alt { background: hsl(var(--card) / 0.6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 56em) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 40em) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.cta-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

footer.site { border-top: 1px solid hsl(var(--border)); background: hsl(var(--sidebar)); padding: 2.5rem 0; color: hsl(var(--muted-foreground)); font-size: var(--text-data); }
.foot { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.125rem; flex-wrap: wrap; }
.foot-links a { transition: color var(--motion-fast); }
.foot-links a:hover { color: hsl(var(--foreground)); }
.foot .fine { flex-basis: 100%; font-size: var(--text-caption); line-height: 1.6; max-width: 48rem; }

/* ------------------------------------------------------------ motion ---- */
/* Content is visible by default. The fade only engages once the script has
   added .reveal-ready, so a blocked script, a failed observer, or a tab loaded
   in the background can never leave the page blank. */
.reveal { opacity: 1; transition: opacity var(--motion-base) ease-out; }
:root.reveal-ready .reveal { opacity: 0; }
:root.reveal-ready .reveal.in { opacity: 1; }
:root.reveal-done .reveal { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================= hero ==== */
.hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid hsl(var(--border)); background: radial-gradient(70% 60% at 100% 0%, hsl(var(--signal) / 0.07), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; justify-items: start; }
.hero-copy h1 { max-width: 12ch; }
@media (max-width: 64em) { .hero-grid { grid-template-columns: 1fr; } .hero-copy h1 { max-width: 16ch; } .core { max-width: 34rem; } }

/* the control core — the studio's one picture.
   Three animations only (breath, beam, wire draw), all paused while the figure
   is off screen and all disabled under prefers-reduced-motion. */
.core { margin: 0; border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); overflow: hidden; box-shadow: var(--elevation-2); }
.core-stage { position: relative; aspect-ratio: 400 / 260; container-type: inline-size; background:
  linear-gradient(180deg, hsl(var(--signal) / 0.04), transparent 60%); }
.core-stage .wires { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The wires are drawn, not hidden: only the drawing is animated, so a visitor
   who asks for reduced motion still sees the finished diagram. */
.core-stage .wires path { fill: none; stroke: hsl(var(--brand-accent) / 0.5); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .core-stage .wires path { stroke-dasharray: 120; stroke-dashoffset: 120; }
  .core.running .wires path { animation: drawWire 900ms ease-out forwards; }
  .core.running .wires path:nth-child(2) { animation-delay: 120ms; }
  .core.running .wires path:nth-child(3) { animation-delay: 240ms; }
  .core.running .wires path:nth-child(4) { animation-delay: 360ms; }
}
@keyframes drawWire { to { stroke-dashoffset: 0; } }

.monolith { position: absolute; left: 40.25%; top: 21%; width: 19.5%; height: 57.7%; border: 1px solid hsl(var(--brand-accent) / 0.55); border-radius: 0.375rem; background: linear-gradient(180deg, hsl(var(--signal) / 0.22), hsl(var(--signal) / 0.06)); overflow: hidden; }
.core.running .monolith { animation: breath 5s ease-in-out infinite; }
@keyframes breath { 0%, 100% { border-color: hsl(var(--brand-accent) / 0.35); } 50% { border-color: hsl(var(--brand-accent) / 0.75); } }
.beam { position: absolute; left: 0; right: 0; height: 18%; background: linear-gradient(180deg, transparent, hsl(var(--signal) / 0.5), transparent); opacity: 0; }
.core.running .beam { animation: beam 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes beam { 0% { top: -18%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.node { position: absolute; width: 26%; height: 13.8%; display: grid; align-content: center; gap: 0.15em; padding: 0 0.6em; border: 1px solid hsl(var(--border)); border-radius: var(--radius-control); background: hsl(var(--card)); font-family: var(--font-mono); font-size: clamp(7px, 2.6cqw, 0.6875rem); line-height: 1.25; color: hsl(var(--muted-foreground)); box-shadow: var(--elevation-1); }
.node b { font-weight: 500; color: hsl(var(--foreground)); }
.node.n1 { left: 4%; top: 11.5%; }
.node.n2 { left: 70%; top: 21%; }
.node.n3 { left: 4%; top: 65%; }
.node.n4 { left: 70%; top: 75%; }
.core-log { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: 0.75rem 0.875rem; border-top: 1px solid hsl(var(--border)); font-family: var(--font-mono); font-size: var(--text-caption); color: hsl(var(--muted-foreground)); }
.core-log span { color: hsl(var(--brand-accent)); }
@media (max-width: 44em) { .core-log { grid-template-columns: 1fr; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: hsl(var(--border)); border-block: 1px solid hsl(var(--border)); }
.stats > div { background: hsl(var(--card)); padding: 1rem 1.125rem; display: grid; gap: 0.25rem; align-content: start; }
.stats b { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.01em; }
.stats b.num { color: hsl(var(--brand-accent)); }
.stats span { font-size: var(--text-caption); color: hsl(var(--muted-foreground)); line-height: 1.5; }
@media (max-width: 56em) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* product cards */
.product { display: grid; gap: 0.75rem; align-content: start; }
.product h3 { font-size: var(--text-heading); margin-bottom: 0; }
.product p { font-size: var(--text-data); }
.product .links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.product .links .btn { min-height: 2.25rem; font-size: var(--text-data); }
.product-head { display: flex; align-items: center; gap: 0.75rem; }
.product-head > div { display: grid; gap: 0.25rem; min-width: 0; }
.pmark { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--pm-plate)); color: hsl(var(--pm-glyph)); }
.pmark svg { width: 1.25rem; height: 1.25rem; }
.pmark.trstctl { --pm-plate: var(--mark-trstctl); --pm-glyph: var(--mark-trstctl-fg); }
.pmark.probectl { --pm-plate: var(--mark-probectl); --pm-glyph: var(--mark-probectl-fg); }
.pmark.studio { --pm-plate: var(--primary); --pm-glyph: var(--primary-foreground); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.principle { border-top: 1px solid hsl(var(--border)); padding-top: 0.875rem; display: grid; gap: 0.375rem; align-content: start; }
.principle b { font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 500; color: hsl(var(--brand-accent)); }
.principle span { font-size: var(--text-data); line-height: 1.55; }
@media (max-width: 56em) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36em) { .principles { grid-template-columns: 1fr; } }

/* closing call to action */
.cta { padding: clamp(4rem, 9vw, 6.5rem) 0; text-align: center; background: radial-gradient(50% 60% at 50% 0%, hsl(var(--signal) / 0.08), transparent 70%); }
.cta .wrap { display: grid; gap: 1rem; justify-items: center; }
.cta h2 { max-width: 24ch; }
.cta p { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; max-width: 40rem; }
.cta .cta-row { justify-content: center; margin-top: 0.5rem; }

/* the 404 page reuses the hero shell */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 1rem; justify-items: center; padding: 4rem 0; }
.notfound h1 { font-size: var(--text-display); letter-spacing: -0.02em; }
