/* Generated from src/themes.ts: theme "brass-on-ink". */
[data-theme="ultramarine"] { color-scheme: light; --bg: #f3f2ec; --surface: #fbfaf6; --ink: #15161b; --muted: #55565e; --rule: #d9d6cc; --rule-strong: #a9a69b; --seal: #1b2a8a; --seal-hover: #121d66; --on-seal: #ffffff; --sous: #0f6b63; --sous-hover: #0b5751; --on-sous: #ffffff; --sous-tint: #e2ebe5; --bubble-in: #e6e3da; --focus: #1b2a8a; }
[data-theme="vermilion"] { color-scheme: light; --bg: #f3f0e8; --surface: #fbf9f4; --ink: #15161b; --muted: #57544c; --rule: #ddd6c7; --rule-strong: #ada595; --seal: #b8361e; --seal-hover: #952813; --on-seal: #ffffff; --sous: #0f6b63; --sous-hover: #0b5751; --on-sous: #ffffff; --sous-tint: #e3eae2; --bubble-in: #e8e3d8; --focus: #b8361e; }
[data-theme="ink"] { color-scheme: light; --bg: #efece4; --surface: #f8f6f1; --ink: #15161b; --muted: #56544d; --rule: #d6d1c4; --rule-strong: #a7a294; --seal: #15161b; --seal-hover: #3a3b44; --on-seal: #efece4; --sous: #0f6b63; --sous-hover: #0b5751; --on-sous: #ffffff; --sous-tint: #e0e7df; --bubble-in: #e4e0d6; --focus: #15161b; }
[data-theme="bone-on-ink"] { color-scheme: dark; --bg: #121318; --surface: #1a1b22; --ink: #e9e5da; --muted: #a3a196; --rule: #2e3038; --rule-strong: #4a4c57; --bubble-in: #24262e; --seal: #e9e5da; --seal-hover: #ffffff; --on-seal: #121318; --sous: #4fd1bf; --sous-hover: #7ddfd1; --sous-tint: #13292a; --on-sous: #062421; --focus: #e9e5da; }
[data-theme="brass-on-ink"] { color-scheme: dark; --bg: #121318; --surface: #1a1b22; --ink: #e9e5da; --muted: #a3a196; --rule: #2e3038; --rule-strong: #4a4c57; --bubble-in: #24262e; --seal: #c9a45c; --seal-hover: #dcbc7c; --on-seal: #121318; --sous: #4fd1bf; --sous-hover: #7ddfd1; --sous-tint: #13292a; --on-sous: #062421; --focus: #c9a45c; }

/*
 * Sigil R&D. Colours come only from the theme tokens (src/themes.ts, prepended to this file at build
 * time), so a theme is switched in one place. "Seal" is the line in every mark and figure and the
 * primary action. Sous keeps its own colour, a wider cut of the same typeface and rounder shapes.
 *
 * Fonts are self-hosted (OFL): Archivo, a variable face whose width axis gives the company its
 * semi-condensed cut, and IBM Plex Mono for labels, indices and figures.
 */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Display width: the company's semi-condensed cut; the product page widens it. */
  --cut: 86%;
  --line: 2.5px;
  --sect-gap: clamp(4.5rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--seal); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--seal-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: var(--cut);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.04; letter-spacing: -0.016em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.005em; margin-bottom: 0.45rem; }
p { margin: 0 0 1rem; }
i { font-style: italic; }
var { font: 500 0.9em var(--mono); font-style: normal; }

/* The voice of figures and metadata. */
.label { font: 500 0.78rem/1.45 var(--mono); letter-spacing: 0.01em; color: var(--muted); margin: 0 0 1rem; }
.label a { color: inherit; }
.label a:hover { color: var(--ink); }

.statement { font-size: clamp(1.6rem, 2.9vw, 2.45rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.018em; max-width: 30ch; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 36rem; }

kbd {
  font: 500 0.85em var(--mono);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 0.5rem 1rem; }

.draft-banner { background: var(--surface); border-bottom: 2px dashed var(--seal); font-size: 0.88rem; padding: 0.55rem 0; }
mark.todo { background: color-mix(in srgb, var(--seal) 20%, var(--bg)); color: var(--ink); border-radius: 2px; padding: 0 0.3em; font-weight: 600; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; margin: 2rem 0 0; }
.button {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--seal);
  border-radius: 2px;
  background: var(--seal);
  color: var(--on-seal);
  font: 600 1rem/1.2 var(--display);
  text-decoration: none;
}
.button::after { content: "→"; font-family: var(--text); }
.button:hover { background: var(--seal-hover); border-color: var(--seal-hover); color: var(--on-seal); }
.button.sous-button { background: var(--sous); border-color: var(--sous); color: var(--on-sous); border-radius: 999px; }
.button.sous-button:hover { background: var(--sous-hover); border-color: var(--sous-hover); color: var(--on-sous); }
.button.small { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.button.inverse { background: var(--on-sous); border-color: var(--on-sous); color: var(--sous); border-radius: 999px; }
.button.inverse:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.text-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--seal); text-decoration-thickness: 2px; }
.text-link::after { content: " →"; }
.text-link:hover { color: var(--seal); }

/* Status: ■ available, □ in development */
.status { font: 500 0.78rem/1.3 var(--mono); color: var(--sous); white-space: nowrap; }
.status::before { content: "■"; margin-right: 0.45em; }
.status.dev { color: var(--muted); }
.status.dev::before { content: "□"; }

/* Header */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.sigil-mark { width: 34px; height: 34px; color: var(--seal); flex: none; }
.wordmark-text { font: 700 1.4rem/1 var(--display); font-stretch: var(--cut); letter-spacing: -0.01em; }
.wordmark-rd { font: 500 0.78rem/1 var(--mono); color: var(--muted); margin-left: 0.45rem; letter-spacing: 0.02em; }

.site-header nav ul { list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--seal); }

.nav-wide { display: none; }
.nav-wide ul { display: flex; gap: 2.25rem; }
.nav-wide a { padding: 1.35rem 0 1.2rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-wide a[aria-current] { border-bottom-color: var(--ink); }

.nav-menu summary {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.85rem; border: 1px solid var(--rule-strong); border-radius: 2px;
  cursor: pointer; font-weight: 600; list-style: none; user-select: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-close, .nav-menu[open] .menu-open { display: none; }
.nav-menu[open] .menu-close { display: inline; }
.nav-menu[open] .menu-icon { background: transparent; }
.nav-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.nav-menu nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--ink); }
.nav-menu nav ul { padding: 0.5rem 16px 1rem; }
.nav-menu nav li + li { border-top: 1px solid var(--rule); }
.nav-menu nav a { padding: 0.9rem 0 0.9rem 0.9rem; border-left: 2px solid transparent; }
.nav-menu nav a[aria-current] { border-left-color: var(--seal); }

@media (min-width: 760px) {
  .nav-wide { display: block; }
  .nav-menu { display: none; }
}

/* Sections: a ruler across the top, the index in the left rail */
.sect { padding-bottom: var(--sect-gap); }
.ruler {
  height: 13px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--ink);
  background-image: linear-gradient(90deg, var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--rule-strong) 1px, transparent 1px);
  background-size: 120px 12px, 12px 6px;
  background-repeat: repeat-x;
}
.sect-grid { display: grid; gap: 0.5rem 2.5rem; }
.sect-grid > *, .case > *, .case-figure > * { min-width: 0; }
.rail { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); margin: 0 0 1rem; }
.rail-index { color: var(--seal); }
.sect-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sect-head p { color: var(--muted); font-size: 1.1rem; }
@media (min-width: 960px) {
  .sect-grid { grid-template-columns: minmax(8rem, 2fr) minmax(0, 10fr); }
  .rail { position: sticky; top: 1.5rem; align-self: start; padding-top: 0.6rem; }
}

.note { color: var(--muted); margin: 1.75rem 0 0; max-width: 42rem; }

/* Ruled definition list: term over text on small screens, two columns on wide ones. */
.ruled { margin: 0; border-top: 1px solid var(--ink); }
.ruled > div { display: grid; gap: 0.3rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.ruled dt { font: 500 0.82rem/1.5 var(--mono); color: var(--muted); padding-top: 0.15rem; }
.ruled dd { margin: 0; max-width: 38rem; }
@media (min-width: 640px) { .ruled > div { grid-template-columns: 12rem 1fr; } }
.contact-list dd a { font-weight: 600; font-size: 1.1rem; }
.contact-list dd span { display: block; margin-top: 0.2rem; color: var(--muted); }

/* Page head (inner pages) */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { max-width: 16ch; }

/* Home hero: the seal is the focal point */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.hero-grid { display: grid; gap: 1.5rem; grid-template-areas: "head" "fig" "more"; }
.hero-head { grid-area: head; }
.hero-more { grid-area: more; }
.hero h1 { max-width: 15ch; margin-bottom: 0; }
.hero-figure { grid-area: fig; margin: 0.5rem 0; justify-self: center; width: min(100%, 30rem); }
.hero-figure figcaption { margin: 0.75rem 0 0; }
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "head fig" "more fig";
    column-gap: 3rem; row-gap: 1.75rem;
    min-height: min(76vh, 50rem);
    align-items: center;
  }
  .hero-head { align-self: end; }
  .hero-more { align-self: start; }
  .hero-figure { width: 112%; max-width: 40rem; justify-self: end; margin: 0 -3rem 0 0; }
}

/* Seal figures */
.seal-figure { display: block; width: 100%; height: auto; overflow: visible; }
.seal-figure .dial { fill: none; stroke: var(--rule-strong); stroke-width: 0.6; }
.seal-figure .dial-letters text { font: 400 8px var(--mono); fill: var(--rule-strong); text-anchor: middle; }
.seal-figure .dial-letters .on { fill: var(--ink); font-weight: 500; }
.seal-figure .visited circle { fill: var(--ink); }
.seal-figure .line { fill: none; stroke: var(--seal); stroke-linecap: round; stroke-linejoin: round; }
.seal-figure.seal-sous .line { stroke: var(--sous); }

/*
 * The hero seal draws itself in: ring, line, then bars. Each part has pathLength 1 and is drawn by its
 * one dash. Until its turn it is also transparent: browsers paint a hidden dash's round cap as a dot
 * at the start of the path.
 *
 * It plays regardless of prefers-reduced-motion, by decision: many visitors turn off system animations
 * for speed rather than motion sensitivity, and this is lines forming slowly in place, once, with
 * nothing moving across the screen. Anything that does move content (parallax, sliding, zooming)
 * should still sit behind the media query.
 */
.seal-figure.animate :is(.trace-start, .trace, .trace-end) { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; stroke-opacity: 0; animation: draw forwards; }
.seal-figure.animate .trace-start { animation-duration: 0.45s; animation-delay: 0.1s; animation-timing-function: ease-in; }
.seal-figure.animate .trace { animation-duration: 1.9s; animation-delay: 0.55s; animation-timing-function: cubic-bezier(0.6, 0, 0.25, 1); }
.seal-figure.animate .trace-end { animation-duration: 0.3s; animation-delay: 2.45s; animation-timing-function: ease-out; }
.seal-figure.animate .visited circle { animation: appear 0.5s ease-out 0.1s both; }
@keyframes draw { from { stroke-opacity: 1; } to { stroke-dashoffset: 0; stroke-opacity: 1; } }
@keyframes appear { from { opacity: 0; } }

/* Method and flow: nodes on one line, in the seals' grammar (ring, points, bar) */
.method, .flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; --node: var(--seal); }
.flow { --node: var(--sous); }
.method li, .flow li { position: relative; padding-left: 2.75rem; }
.method li::before, .flow li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2.25rem; border-left: var(--line) solid var(--node); }
.method li:last-child::before, .flow li:last-child::before { display: none; }
.method li > p:last-child, .flow li > p:last-child { color: var(--muted); margin: 0; max-width: 30rem; }
.method h3 { font-size: 1.5rem; }
.node { position: absolute; left: 0; top: 0; width: 23px; height: 23px; }
.node-1 { border: var(--line) solid var(--node); border-radius: 50%; }
.node-2::after { content: ""; position: absolute; left: 6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--node); }
.node-3::after { content: ""; position: absolute; left: 0; top: 10px; width: 23px; height: 3px; background: var(--node); }
@media (min-width: 900px) {
  .method { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .method li { padding: 2.75rem 0 0; }
  .method li::before { left: 22px; top: 10px; right: -2.5rem; bottom: auto; border-left: 0; border-top: var(--line) solid var(--node); }
  .method .node-3::after { left: 10px; top: 0; width: 3px; height: 23px; }
}
@media (min-width: 1080px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .flow li { padding: 2.75rem 0 0; }
  .flow li::before { left: 22px; top: 10px; right: -2rem; bottom: auto; border-left: 0; border-top: var(--line) solid var(--node); }
  .flow .node-3::after { left: 10px; top: 0; width: 3px; height: 23px; }
}

/* Product case on the home page: the page's one colour moment */
.sect-sous { background: var(--sous-tint); padding-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--sect-gap); }
.case { display: grid; gap: 2rem; }
.case-detail > p:not(.actions) { max-width: 38rem; }
.case-detail .actions { margin-top: 1.75rem; }
@media (min-width: 1080px) {
  .case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; row-gap: 3rem; }
  .case-detail { align-self: end; }
  .case-detail .squares { grid-template-columns: 1fr; }
  .case-figure { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(12rem, 1fr); gap: 2.5rem; align-items: end; }
}

.product-id { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1.5rem; }
.product-mark { width: 46px; height: 46px; color: var(--sous); flex: none; }
.product-name { font: 700 1.5rem/1 var(--display); letter-spacing: -0.01em; color: var(--ink); }

.squares { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.55rem 1.5rem; }
.squares li { position: relative; padding-left: 1.35rem; font-weight: 500; }
.squares li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--sous); }
@media (min-width: 640px) { .squares { grid-template-columns: 1fr 1fr; } }

.case-figure, .flow-figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); padding: 1.25rem 1rem 1rem; }
.case-figure figcaption, .flow-figure figcaption { margin: 0.75rem 0 0; }
.flow-figure { margin-top: 3rem; max-width: 46rem; }

.timeline-scroll { overflow-x: auto; }
.timeline { display: block; width: 100%; min-width: 36rem; height: auto; font-family: var(--mono); font-size: 11px; }
.timeline .row { stroke: var(--rule-strong); stroke-dasharray: 1 5; }
.timeline .axis { fill: none; stroke: var(--ink); }
.timeline .t-muted { fill: var(--muted); }
.timeline .t-strong { fill: var(--ink); font-weight: 500; }
.timeline .rule { stroke: var(--rule); }
.timeline .strike { text-decoration: line-through; }
.timeline .wave { stroke: var(--sous); stroke-width: 1; opacity: 0.35; }
.timeline .wait { stroke: var(--sous); stroke-width: 2; }
.timeline .wait.open { stroke-dasharray: 3 3; }
.timeline .offer { fill: var(--surface); stroke: var(--sous); stroke-width: 2; }
.timeline .no { stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; }
.timeline .yes { fill: var(--sous); }
.timeline .yes-halo { fill: none; stroke: var(--sous); stroke-width: 1.5; }
.timeline .covered { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 3 3; }
.timeline .covered-bar { stroke: var(--ink); stroke-width: 2.5; }

/* Principles: a 2×2 grid split by a hairline cross */
.principles { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.principles li { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.principles .label { color: var(--seal); margin-bottom: 0.6rem; }
.principles h3 { font-size: 1.45rem; }
.principles li > p:last-child { color: var(--muted); max-width: 34rem; margin: 0; }
@media (min-width: 900px) {
  .principles { grid-template-columns: 1fr 1fr; border-top: 0; }
  .principles li { padding: 2.25rem 2.5rem 2.25rem 0; }
  .principles li:nth-child(even) { padding-left: 2.5rem; padding-right: 0; border-left: 1px solid var(--rule); }
  .principles li:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* About */
.prose { max-width: 42rem; }
.prose > p { font-size: 1.1rem; }
.footnote { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 2rem; max-width: 34rem; }
.footnote a, sup a { font: 500 0.8em var(--mono); text-decoration: none; }

/* The mark: the family of seals */
.seal-pair { list-style: none; margin: 2.5rem 0 0; padding: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.75rem 3.5rem; border-top: 1px solid var(--rule); max-width: 42rem; }
.seal-pair li { display: flex; align-items: center; gap: 1rem; }
.seal-pair svg { width: 72px; height: 72px; flex: none; }
.seal-pair p { margin: 0; }
.seal-pair strong { font: 600 1.15rem/1.2 var(--display); }
/* With the wheel (sealWheel in site.config.ts), larger so its letters stay legible */
.seal-pair.with-wheel svg { width: 180px; height: 180px; }

/* Closing contact line */
.contact-line > p:not(.label):not(.contact-address) { color: var(--muted); max-width: 36rem; font-size: 1.1rem; }
.contact-address { margin: 1.75rem 0 1.25rem; font: 600 clamp(1.5rem, 4.4vw, 3.4rem)/1.08 var(--display); font-stretch: var(--cut); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-address a { color: var(--ink); text-decoration-color: var(--seal); text-decoration-thickness: 0.06em; text-underline-offset: 0.14em; }
.contact-address a:hover { color: var(--seal); }

/* Products index */
.product-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.product-row { display: grid; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.product-row-link { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; align-self: start; color: var(--ink); text-decoration: none; }
.product-row-link .product-mark { grid-row: 1 / 3; width: 60px; height: 60px; }
.product-row-name { font: 600 2.1rem/1 var(--display); letter-spacing: -0.02em; }
.product-row-tagline { color: var(--muted); }
.product-row-link:hover .product-row-name { color: var(--sous); }
.product-row dl { margin: 0; display: grid; gap: 1.25rem 2rem; }
.product-row dt { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); margin-bottom: 0.25rem; }
.product-row dd { margin: 0; max-width: 32rem; }
.product-row-more { margin: 0; }
@media (min-width: 960px) {
  .product-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 3rem; }
  .product-row dl { grid-template-columns: 1fr 1fr; }
  .product-row-more { grid-column: 2; }
}

/* Sous product page: wider type cut, rounder shapes, its own colour */
.product-page { --cut: 100%; }
.product-page .rail { top: 5rem; }
.product-page .rail-index { color: var(--sous); }
.product-page a:not(.button):not(.text-link) { color: var(--sous); }
.product-page .text-link { text-decoration-color: var(--sous); }

.product-bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.product-bar-row { display: flex; align-items: center; gap: 0.75rem 1.75rem; min-height: 58px; }
.product-bar-id { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.product-page .product-bar-id { color: var(--ink); }
.product-bar-id .product-mark { width: 32px; height: 32px; }
.product-bar .product-name { font-size: 1.2rem; }
.product-by { font: 500 0.72rem/1 var(--mono); color: var(--muted); }
.product-bar-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.5rem; }
.product-page .product-bar-links a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.product-page .product-bar-links a:hover { color: var(--sous); }
@media (min-width: 900px) { .product-bar-links { display: flex; } }
@media (max-width: 479px) { .product-by { display: none; } }

.product-hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: clip; }
.product-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--sous) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--sous) 10%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to left, black 15%, transparent 75%);
}
.product-hero-grid { position: relative; display: grid; gap: 3rem; }
.product-hero h1 { max-width: 11ch; font-weight: 650; }
.product-hero .label .status { margin-right: 0.25rem; }
@media (min-width: 1080px) { .product-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; } }

.product-hero-visual { position: relative; }
.screen { margin: 0; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 60px -45px rgb(0 0 0 / 0.5); }
.screen-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption { margin: 0; padding: 0.55rem 0.9rem; border-top: 1px solid var(--rule); }

.phone { margin: 1.75rem auto 0; width: min(100%, 270px); }
.phone-body { background: var(--ink); padding: 8px; border-radius: 30px; box-shadow: 0 30px 50px -30px rgb(0 0 0 / 0.55); }
.phone-screen { background: var(--bg); border-radius: 23px; padding: 0.85rem 0.65rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.phone-sender { margin: 0 0 0.25rem; text-align: center; font-weight: 600; font-size: 0.8rem; line-height: 1.3; }
.phone-sender span { display: block; font: 400 0.65rem var(--mono); color: var(--muted); }
.phone-time { margin: 0.15rem 0; text-align: center; font: 500 0.65rem var(--mono); color: var(--muted); }
.bubble { margin: 0; padding: 0.5rem 0.7rem; border-radius: 16px; font-size: 0.76rem; line-height: 1.42; max-width: 90%; }
.bubble.in { background: var(--bubble-in); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--sous); color: var(--on-sous); align-self: flex-end; border-bottom-right-radius: 5px; font-weight: 600; }
.phone figcaption { margin: 0.75rem 0 0; text-align: center; }
@media (min-width: 720px) {
  .product-hero-visual { padding: 0 6rem 3rem 0; }
  .product-hero-visual .phone { position: absolute; right: 0; bottom: -2rem; margin: 0; width: 240px; }
  .product-hero-visual .phone figcaption { display: none; }
  .product-hero-visual .screen figcaption { padding-right: 15rem; }
}

.tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { font: 500 0.85rem/1 var(--mono); border: 1px solid var(--sous); color: var(--ink); padding: 0.5rem 0.85rem; border-radius: 999px; }

.two-col { display: grid; gap: 2rem; }
.two-col > div { border-top: var(--line) solid var(--sous); padding-top: 1.25rem; }
.two-col p { color: var(--muted); margin: 0; max-width: 32rem; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.roadmap { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.roadmap li { display: grid; gap: 0.35rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.roadmap li > * { margin: 0; }
.roadmap li > p:last-child { color: var(--muted); max-width: 40rem; }
.roadmap li:not(.live) h3 { color: var(--muted); }
@media (min-width: 800px) { .roadmap li { grid-template-columns: 10rem 15rem minmax(0, 1fr); align-items: baseline; } }

.help-panel { display: grid; gap: 2rem; }
.help-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.help-panel p { color: var(--muted); max-width: 34rem; }
@media (min-width: 900px) { .help-panel { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.15rem; height: 1rem; border-radius: 9px 9px 9px 2px; border: 2px solid var(--sous); background: var(--sous-tint); }

.product-cta { background: var(--sous); color: var(--on-sous); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.product-cta h2 { margin-bottom: 0.6rem; }
.product-cta p { max-width: 34rem; }
.product-cta .actions { margin: 0; }
.product-page .product-cta a:not(.button) { color: var(--on-sous); }
.product-cta .text-link { text-decoration-color: currentColor; }
.product-cta :focus-visible { outline-color: var(--on-sous); }
.product-cta-row { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .product-cta-row { grid-template-columns: 1fr auto; gap: 4rem; } }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); padding: 3.5rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .sigil-mark { width: 42px; height: 42px; }
.footer-brand p { margin: 0.9rem 0 0; max-width: 18rem; }
.footer-col h2 { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--seal); text-decoration: underline; }
.footer-sms { margin: 2.5rem 0 0; padding: 1.5rem max(0px, calc(100% - 52rem)) 0 0; border-top: 1px solid var(--rule); }
.footer-sms a { color: var(--muted); }
.footer-legal { margin: 0.75rem 0 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .footer-brand { grid-column: auto; }
}

/* Documents */
.doc { max-width: 52rem; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 5rem; }
.doc-head { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); }
.doc-head h1 { margin-bottom: 0.5rem; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.meta { color: var(--muted); margin: 0; font: 500 0.85rem var(--mono); }
.doc section { margin-top: 2.75rem; }
.doc h2 { font-size: 1.55rem; }
.doc h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.doc li { margin-bottom: 0.45rem; }
.num { font: 500 0.7em var(--mono); color: var(--seal); margin-right: 0.35rem; vertical-align: 0.15em; }
.toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1.1rem 0 1.25rem; margin: 2rem 0; }
.toc h2 { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); margin: 0 0 0.75rem; letter-spacing: 0.01em; }
.toc ol { margin: 0; padding-left: 1.6rem; columns: 2 14rem; column-gap: 2.5rem; }
.toc li { margin: 0 0 0.3rem; break-inside: avoid; }
.toc li::marker { font: 500 0.8em var(--mono); color: var(--muted); }

.sms { background: var(--bubble-in); border-radius: 16px 16px 16px 4px; padding: 0.75rem 1rem; max-width: 34rem; font-size: 0.95rem; }
.consent { margin: 1rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--sous); background: var(--surface); }
.shot { margin: 1.5rem 0; }
.shot img { max-width: min(100%, 24rem); height: auto; border: 1px solid var(--rule); border-radius: 6px; }
.shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
thead th { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
