/* Trill Codes. One stylesheet, no build step, no third-party requests.

   1 Tokens      6 Buttons, links, tags     11 Founder, contact
   2 Base        7 Hero and signal field    12 Call to action
   3 Type        8 Rows and cells           13 Footer
   4 Layout      9 Explorer and pipeline    14 Motion
   5 Header     10 Products and filter      15 Print

   The look: near-black ink, warm paper-white type, hairline rules instead of
   boxes, square corners, one electric cyan accent and one electric blue block.
   Headings are a tight grotesk with single words set in an italic serif. */

/* ---------- 1 Tokens ---------- */

:root {
  color-scheme: dark;
  --ink: #08090b;
  --ink-2: #0e1013;
  --paper: #f3f1ec;
  --dim: #b4b6bc;
  --faint: #868992;
  --rule: rgba(243, 241, 236, 0.13);
  --rule-strong: rgba(243, 241, 236, 0.32);
  --cyan: #2fe4ff;
  --blue: #2b59ff;

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --col-gap: clamp(16px, 2.2vw, 32px);
  --max: 1320px;
  --header: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

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

body {
  margin: 0;
  /* A faint paper grain so the flat black has some tooth to it. */
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .045 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
svg, canvas { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; color: var(--paper); }

::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.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;
}

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100; padding: 12px 18px;
  background: var(--cyan); color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 2px;
}
.skip:focus { top: 12px; }

/* ---------- 3 Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }

h1 { font-size: clamp(2.6rem, 7.6vw, 6.4rem); line-height: 0.96; letter-spacing: -0.045em; }
.hero-home h1 { font-size: clamp(2.9rem, 8.6vw, 7.25rem); line-height: 0.93; }

/* One word per heading may be set in the italic serif. It is the brand's second voice. */
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.025em; font-size: 1.04em; }
h1 em { color: var(--cyan); }

.statement { font-size: clamp(1.9rem, 4.3vw, 3.5rem); line-height: 1.03; letter-spacing: -0.038em; max-width: 20ch; }
.statement-xl { font-size: clamp(2.3rem, 6.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 16ch; }

h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }

.kicker {
  font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}

.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--dim); max-width: 34rem; text-wrap: pretty; }
.intro { margin-top: 22px; max-width: 38rem; color: var(--dim); font-size: 1.15rem; text-wrap: pretty; }

.prose { max-width: 40rem; }
.prose p { color: var(--dim); font-size: 1.125rem; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose a:not(.link-arrow) { color: var(--paper); text-decoration-color: var(--cyan); }
.prose a:not(.link-arrow):hover { color: var(--cyan); }

/* ---------- 4 Layout ---------- */

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

main { counter-reset: band; }

/* A band is one numbered section: a small label in the left margin, content to the right. */
.band { border-top: 1px solid var(--rule); padding: clamp(64px, 10vw, 140px) 0; }
.band-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; }
.band-grid > .kicker { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header) + 28px); }
.band-grid > .kicker::before { counter-increment: band; content: counter(band, decimal-leading-zero); margin-right: 14px; color: var(--cyan); }
.band-main { grid-column: 4 / -1; min-width: 0; }
.band-main > .statement + .prose, .band-main > .statement + .rows, .band-main > .statement + .cells,
.band-main > .intro + .rows, .band-main > .intro + .cells, .band-main > .intro + .explorer,
.band-main > .statement + .timeline, .band-main > .statement + .explorer { margin-top: clamp(32px, 4.5vw, 60px); }

@media (max-width: 900px) {
  .band-grid > .kicker { grid-column: 1 / -1; position: static; }
  .band-main { grid-column: 1 / -1; }
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 11, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.1rem/1 var(--font-display); letter-spacing: -0.035em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--cyan); overflow: visible; }
.brand i { font-style: normal; color: var(--cyan); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { position: relative; padding: 8px 0; font-size: 0.95rem; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav .nav-cta { padding: 9px 16px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--paper); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Reading progress along the bottom edge of the header (browsers with scroll timelines). */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; }

/* Small screens: a menu that works without JavaScript. */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 12px 0 12px 16px; font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .when-closed, .menu:not([open]) .when-open { display: none; }
.menu nav {
  position: absolute; left: 0; right: 0; top: 100%; counter-reset: item;
  padding: 4px var(--gutter) 28px; background: var(--ink); border-bottom: 1px solid var(--rule);
  max-height: calc(100vh - var(--header)); overflow: auto;
}
.menu nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--rule);
  font: 600 1.9rem/1.1 var(--font-display); letter-spacing: -0.035em; text-decoration: none;
}
.menu nav a::before { counter-increment: item; content: counter(item, decimal-leading-zero); font: 400 0.72rem var(--font-mono); letter-spacing: 0.1em; color: var(--faint); }
.menu nav a[aria-current] { color: var(--cyan); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- 6 Buttons, links, tags ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--cyan); color: var(--ink); font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background 0.2s;
}
.btn::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--paper); }
.btn:hover::after { transform: translateX(5px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) 0 100% / 100% 1px no-repeat,
              linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.2s;
}
.link-arrow::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { background-size: 100% 1px, 100% 1px; }
.link-arrow:hover::after { transform: translateX(5px); }
/* Links that leave the site point up and out instead of along. */
.link-arrow.ext::after { content: "\2197\FE0E"; }
.link-arrow.ext:hover::after { transform: translate(3px, -3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 32px; }

/* Status tags. Live is a solid block; in development is a dashed outline, so
   the difference never depends on colour alone. */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 2px; white-space: nowrap;
  font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.tag-live { background: var(--cyan); color: var(--ink); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.tag-dev { border: 1px dashed var(--rule-strong); color: var(--dim); padding: 5px 8px; }

/* ---------- 7 Hero and signal field ---------- */

.hero { position: relative; padding-top: clamp(40px, 6vw, 88px); }
.hero .kicker { margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero-foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px;
  align-items: end; margin-top: clamp(24px, 3.4vw, 48px);
}
.hero-side { grid-column: 1 / span 5; }
.hero-copy { grid-column: 7 / -1; }
.page-hero { padding-bottom: clamp(56px, 8vw, 110px); }

.hint { display: none; font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: opacity 0.6s; }
.hint::before { content: "\2194\FE0E"; margin-right: 10px; color: var(--cyan); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .js .hint { display: block; } }
.is-touched .hint { opacity: 0; }

/* The signal field: rows of lines drawn on a canvas by site.js. Without the
   script it is a quiet set of ruled lines. */
.field-band {
  position: relative; height: clamp(170px, 30vh, 330px); margin-top: clamp(16px, 2.4vw, 32px);
  background: repeating-linear-gradient(to bottom, transparent 0 21px, var(--rule) 21px 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.js .field-band { background: none; }
.field-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.spec div { padding: 18px 20px 26px 0; }
.spec div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.spec dt { font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.spec dd { font-size: 0.98rem; line-height: 1.4; }

.aka { font: 400 0.8rem/1.6 var(--font-mono); letter-spacing: 0.04em; color: var(--faint); }
.aka b { color: var(--cyan); font-weight: 400; padding: 0 0.35em; }

@media (max-width: 900px) {
  .hero-side, .hero-copy { grid-column: 1 / -1; }
  .hero-side:empty { display: none; }
  .hero-side { order: 2; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .spec { grid-template-columns: 1fr; }
  .spec div, .spec div + div { padding-left: 0; border-left: 0; }
  .spec div + div { border-top: 1px solid var(--rule); }
}

/* ---------- 8 Rows and cells ---------- */

/* Rows: a ruled, numbered list. Used where the old design had cards. */
.rows { border-top: 1px solid var(--rule); counter-reset: row; }
.rows > li {
  position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 1.3fr); column-gap: var(--col-gap);
  align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.rows > li::before { counter-increment: row; content: counter(row, decimal-leading-zero); font: 500 0.72rem var(--font-mono); letter-spacing: 0.1em; color: var(--faint); transition: color 0.2s; }
.rows > li::after {
  content: ""; position: absolute; inset: 0 0 0 calc(-1 * var(--gutter)); z-index: -1;
  background: linear-gradient(90deg, rgba(47, 228, 255, 0.09), transparent 62%);
  opacity: 0; transition: opacity 0.35s;
}
.rows h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.028em; transition: transform 0.4s var(--ease), color 0.2s; }
.rows p { color: var(--dim); }
.rows-plain > li { grid-template-columns: 3.4rem minmax(0, 1fr); }
.rows-plain p { font-size: 1.15rem; color: var(--paper); }
@media (hover: hover) {
  .rows > li:hover::before { color: var(--cyan); }
  .rows > li:hover::after { opacity: 1; }
  .rows > li:hover h3 { transform: translateX(10px); }
}
@media (max-width: 760px) {
  .rows > li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .rows > li > p { grid-column: 2; }
  .rows > li > h3 + p { margin-top: 8px; }
}

/* Cells: a ruled table of short items, like a spec sheet. */
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells > li { padding: 26px clamp(18px, 2vw, 28px) 34px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background 0.3s; }
.cells .num { display: block; margin-bottom: clamp(28px, 4vw, 54px); font: italic 400 2.5rem/1 var(--font-serif); color: var(--cyan); }
.cells h3 { margin-bottom: 10px; }
.cells p { color: var(--dim); font-size: 0.98rem; }
@media (hover: hover) { .cells > li:hover { background: rgba(47, 228, 255, 0.05); } }
@media (max-width: 1020px) { .cells, .cells-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cells, .cells-3 { grid-template-columns: 1fr; } }

/* ---------- 9 Explorer and pipeline ---------- */

/* Explorer: pick a product on the left, read about it on the right. It is
   driven by radio buttons and :has(), so it needs no script. Browsers without
   :has() simply show every panel in a column. */
.explorer { border-top: 1px solid var(--rule); }
.picker { display: none; }
.pick {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--rule); cursor: pointer; color: var(--faint);
  transition: color 0.2s, padding 0.4s var(--ease);
}
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  background: var(--cyan); transform: scale(0); transition: transform 0.35s var(--ease);
}
.pick-name { font: 600 clamp(1.25rem, 2.2vw, 1.8rem)/1.1 var(--font-display); letter-spacing: -0.032em; }
.pick:hover { color: var(--paper); }

.panel { padding: 30px 0 34px; }
.panel + .panel { border-top: 1px solid var(--rule); }
.panel h3 { margin-bottom: 14px; }
.panel-lead { font: italic 400 clamp(1.45rem, 2.7vw, 2.15rem)/1.2 var(--font-serif); letter-spacing: -0.012em; text-wrap: balance; }
.panel-lead + p { margin-top: 18px; color: var(--dim); max-width: 36rem; }
.panel .actions { margin-top: 26px; }

@supports selector(:has(*)) {
  .explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 72px); }
  .picker { display: block; }
  .pick:has(input:checked) { color: var(--paper); padding-left: 22px; }
  .pick:has(input:checked)::before { transform: scale(1); }
  .pick:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 4px; }
  .explorer .panel { display: none; border-top: 0; }
  .explorer:has(input[value="nimbrix"]:checked) .panel[data-product="nimbrix"],
  .explorer:has(input[value="sites"]:checked) .panel[data-product="sites"],
  .explorer:has(input[value="clips"]:checked) .panel[data-product="clips"],
  .explorer:has(input[value="commerce"]:checked) .panel[data-product="commerce"],
  .explorer:has(input[value="resell"]:checked) .panel[data-product="resell"],
  .explorer:has(input[value="trading"]:checked) .panel[data-product="trading"],
  .explorer:has(input[value="prediction"]:checked) .panel[data-product="prediction"],
  .explorer:has(input[value="pentest"]:checked) .panel[data-product="pentest"] { display: block; }
  .explorer .panel h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  @media (max-width: 860px) {
    .explorer { grid-template-columns: 1fr; }
    .pick { padding: 16px 0; }
  }
}

/* Pipeline: the chain of steps a product runs. The steps light up in order. */
.pipe-label { margin-top: 30px; font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pipe { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 12px; }
.pipe li {
  position: relative; padding: 9px 12px; border: 1px solid var(--rule-strong); border-radius: 2px; white-space: nowrap;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper);
}
.pipe li + li { margin-left: 26px; }
.pipe li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 1px; margin-right: 1px; background: var(--rule-strong); }
/* The step where a person signs off is drawn differently on purpose. */
.pipe .gate { border-color: var(--paper); padding-left: 28px; }
.pipe .gate::after { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid currentColor; }

/* ---------- 10 Products and filter ---------- */

.key { display: grid; gap: 12px; }
.key div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.key dd { color: var(--dim); font-size: 0.95rem; }

.catalog { counter-reset: product; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-bottom: clamp(28px, 4vw, 44px); }
.filter { display: none; flex-wrap: wrap; gap: 8px; }
.filter label { position: relative; cursor: pointer; }
.filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter span {
  display: inline-block; padding: 11px 16px; border: 1px solid var(--rule-strong); border-radius: 2px;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter label:hover span { color: var(--paper); border-color: var(--paper); }
.filter input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.filter input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }

.product {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 22px;
  padding: clamp(36px, 5vw, 68px) 0; border-top: 1px solid var(--rule);
}
.product-id { grid-column: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.product-id::before { counter-increment: product; content: counter(product, decimal-leading-zero); font: italic 400 2.5rem/1 var(--font-serif); color: var(--cyan); }
.product-head { grid-column: 3 / span 5; }
.product-body { grid-column: 8 / -1; }
.product h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.02; letter-spacing: -0.04em; }
.product .tagline { margin-top: 14px; font: italic 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.3 var(--font-serif); color: var(--dim); text-wrap: balance; }
.product-head .link-arrow { margin-top: 22px; }
.product-body p { color: var(--dim); }
.product-body p + p { margin-top: 1em; }

@supports selector(:has(*)) {
  .filter { display: flex; }
  .catalog:has(input[value="live"]:checked) .product[data-status="dev"],
  .catalog:has(input[value="dev"]:checked) .product[data-status="live"] { display: none; }
}
@media (max-width: 900px) {
  .product-id { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .product-head, .product-body { grid-column: 1 / -1; }
}

/* ---------- 11 Founder, contact ---------- */

.timeline { position: relative; padding-left: clamp(40px, 6vw, 88px); }
.timeline::before, .tl-fill { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; }
.timeline::before { background: var(--rule-strong); }
.tl-fill { background: var(--cyan); transform-origin: 50% 0; }
.timeline ol { counter-reset: chapter; }
.timeline li { position: relative; counter-increment: chapter; padding-bottom: clamp(36px, 5vw, 64px); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * clamp(40px, 6vw, 88px)); top: 5px; width: 9px; height: 9px;
  background: var(--ink); border: 1px solid var(--cyan); transform: rotate(45deg);
}
.chapter { margin-bottom: 12px; font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.chapter::before { content: "Chapter " counter(chapter, upper-roman); }
.timeline h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.08; }
.timeline h3 + p { margin-top: 14px; max-width: 40rem; color: var(--dim); font-size: 1.125rem; }

.mail {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere; text-decoration: none;
  font: 600 clamp(1.7rem, 6.4vw, 5.2rem)/1.05 var(--font-display); letter-spacing: -0.045em;
  background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.2s;
}
.mail:hover { background-size: 100% 2px; color: var(--cyan); }
.copy {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer;
  background: none; border: 1px solid var(--rule-strong); border-radius: 2px;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.copy:hover { color: var(--paper); border-color: var(--paper); }
.copy.is-done { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.copy[hidden] { display: none; }

/* ---------- 12 Call to action ---------- */

.cta { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: clamp(64px, 10vw, 140px) 0; }
.cta::after {
  content: ""; position: absolute; inset: 0 0 0 52%; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.cta .wrap { position: relative; z-index: 1; }
.cta .kicker { color: #fff; margin-bottom: 22px; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); line-height: 0.96; letter-spacing: -0.045em; max-width: 15ch; }
.cta p:not(.kicker) { margin-top: 22px; max-width: 34rem; font-size: 1.15rem; }
.cta .actions { margin-top: 38px; }
.cta .btn { background: #fff; }
.cta .btn:hover { background: var(--ink); color: #fff; }
.cta .link-arrow { background-image: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), linear-gradient(#fff, #fff); }
.cta ::selection { background: #fff; color: var(--blue); }
.cta :focus-visible { outline-color: #fff; }

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

.site-footer { border-top: 1px solid var(--rule); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.footer-about { grid-column: 1 / span 5; }
.footer-about p:not(.kicker) { max-width: 26rem; color: var(--dim); }
.footer-nav { grid-column: 8 / span 2; }
.footer-meta { grid-column: 10 / -1; }
.footer-grid .kicker { margin-bottom: 14px; }
.footer-nav a { display: inline-block; padding: 5px 0; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-meta p:not(.kicker) { color: var(--dim); font-size: 0.92rem; }
.footer-meta p:not(.kicker) + p { margin-top: 8px; }
/* The wordmark, set as large as the page allows. It fills in when the footer is hovered. */
.footer-mark {
  margin: 0; padding-inline: var(--gutter); white-space: nowrap; user-select: none;
  font: 600 clamp(3.2rem, 23.6vw, 21rem)/0.82 var(--font-display); letter-spacing: -0.055em; color: var(--ink-2);
}
@supports ((-webkit-text-stroke: 1px black) and (-webkit-background-clip: text)) {
  .footer-mark {
    color: transparent; -webkit-text-stroke: 1px var(--rule-strong);
    background: linear-gradient(90deg, var(--paper) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
    transition: background-position 1.1s var(--ease);
  }
  .site-footer:hover .footer-mark { background-position: 0 0; }
}
@media (max-width: 900px) {
  .footer-about, .footer-nav, .footer-meta { grid-column: 1 / -1; }
  .footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
}

/* ---------- 14 Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes pipe-3 { 0% { color: var(--dim); background: transparent; border-color: var(--rule-strong); } 4%, 30% { color: var(--ink); background: var(--cyan); border-color: var(--cyan); } 37%, 100% { color: var(--dim); background: transparent; border-color: var(--rule-strong); } }
@keyframes pipe-6 { 0% { color: var(--dim); background: transparent; border-color: var(--rule-strong); } 2%, 15% { color: var(--ink); background: var(--cyan); border-color: var(--cyan); } 19%, 100% { color: var(--dim); background: transparent; border-color: var(--rule-strong); } }
@keyframes pipe-gate { 0% { color: var(--paper); background: transparent; } 2%, 15% { color: var(--ink); background: var(--paper); } 19%, 100% { color: var(--paper); background: transparent; } }

/* Sections fade up as they scroll into view. site.js adds the classes, and
   only once the browser is drawing frames, so nothing can get stuck hidden. */
.js [data-reveal] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].will-reveal { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js li[data-reveal]:nth-child(2) { transition-delay: 0.07s; }
.js li[data-reveal]:nth-child(3) { transition-delay: 0.14s; }
.js li[data-reveal]:nth-child(4) { transition-delay: 0.21s; }
.js li[data-reveal]:nth-child(5) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* The opening lines of each page arrive in sequence. */
  .hero .kicker, .hero h1, .hero-foot, .field-band, .spec { animation: rise 0.9s var(--ease) both; }
  .hero h1 { animation-delay: 0.06s; }
  .hero-foot { animation-delay: 0.16s; }
  .field-band { animation-delay: 0.26s; }
  .spec { animation-delay: 0.34s; }

  .tag-live::before { animation: blink 1.8s ease-in-out infinite; }
  .explorer .panel { animation: rise 0.5s var(--ease) both; }
  .brand:hover path { animation: blink 0.5s steps(2) 2; }

  .pipe li { animation: pipe-3 4.5s linear infinite backwards; }
  .pipe li:nth-child(2) { animation-delay: 1.5s; }
  .pipe li:nth-child(3) { animation-delay: 3s; }
  .pipe[data-steps="6"] li { animation-name: pipe-6; animation-duration: 7.2s; }
  .pipe[data-steps="6"] li:nth-child(2) { animation-delay: 1.2s; }
  .pipe[data-steps="6"] li:nth-child(3) { animation-delay: 2.4s; }
  .pipe[data-steps="6"] li:nth-child(4) { animation-delay: 3.6s; }
  .pipe[data-steps="6"] li:nth-child(5) { animation-delay: 4.8s; }
  .pipe[data-steps="6"] li:nth-child(6) { animation-delay: 6s; }
  .pipe[data-steps="6"] li.gate { animation-name: pipe-gate; }

  /* A soft cross-fade between pages where the browser supports it. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.16s ease both vt-out; }
  ::view-transition-new(root) { animation: 0.32s var(--ease) both vt-in; }
  .site-header { view-transition-name: site-header; }

  @supports (animation-timeline: scroll()) {
    .progress { animation: grow-x linear both; animation-timeline: scroll(root); }
    .tl-fill { animation: grow-y linear both; animation-timeline: view(); animation-range: cover 12% cover 62%; }
  }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 15 Print ---------- */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .field-band, .picker, .filter, .copy, .footer-mark, .hint, .skip { display: none !important; }
  .cta { background: none; color: #000; }
  .prose p, .rows p, .cells p, .lede, .intro, .product-body p { color: #222; }
  .explorer .panel { display: block !important; }
}

/* ---------- 16 Blog ---------- */

/* Post list: ruled rows, date and topic on the left, title and summary on the right. */
.post-list { border-top: 1px solid var(--rule); }
.post-list > li { border-bottom: 1px solid var(--rule); }
.post-link {
  position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); column-gap: var(--col-gap); row-gap: 8px;
  padding: 26px 0; text-decoration: none;
}
.post-link::after {
  content: ""; position: absolute; inset: 0 0 0 calc(-1 * var(--gutter)); z-index: -1;
  background: linear-gradient(90deg, rgba(47, 228, 255, 0.08), transparent 62%); opacity: 0; transition: opacity 0.35s;
}
.post-meta { grid-row: span 2; display: flex; flex-direction: column; gap: 6px; font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.post-meta span { color: var(--cyan); }
.post-title { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--font-display); letter-spacing: -0.028em; transition: transform 0.4s var(--ease), color 0.2s; }
.post-desc { color: var(--dim); }
.post-empty { padding: 26px 0; color: var(--dim); }
.post-all { margin-top: 28px; }
@media (hover: hover) {
  .post-link:hover::after { opacity: 1; }
  .post-link:hover .post-title { transform: translateX(8px); color: var(--cyan); }
}
@media (max-width: 700px) {
  .post-link { grid-template-columns: 1fr; }
  .post-meta { grid-row: auto; flex-direction: row; gap: 14px; }
}

/* A single post. */
.post-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; max-width: 20ch; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--cyan); }
.kicker b { font-weight: 400; color: var(--cyan); padding: 0 0.4em; }
.post-body { max-width: 44rem; }
.post-body > * + * { margin-top: 1.15em; }
.post-body p, .post-body li { color: var(--dim); font-size: 1.15rem; line-height: 1.7; text-wrap: pretty; }
.post-body h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; }
.post-body h3 { margin-top: 1.8em; }
.post-body h2 + p, .post-body h3 + p { margin-top: 0.7em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: square; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.5em; }
.post-body li::marker { color: var(--cyan); }
.post-body strong { color: var(--paper); }
.post-body a { color: var(--paper); text-decoration-color: var(--cyan); }
.post-body a:hover { color: var(--cyan); }
.post-body blockquote { padding-left: 22px; border-left: 2px solid var(--cyan); }
.post-body blockquote p { font: italic 400 1.35rem/1.45 var(--font-serif); color: var(--paper); }
.post-body .note { padding: 18px 20px; border: 1px dashed var(--rule-strong); font-size: 0.98rem; }
