/* ============================================================
   HYPERLABS DESIGN SYSTEM - hyperlabs.css  (v2.1, 2026-11)
   Base + layout + components. Requires tokens.css first.
   Class prefix: .hl-   Modifiers: --name   States: .is-name
   ============================================================ */

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* The hidden attribute always wins over a component's display value */
[hidden] { display: none !important; }

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

body {
  background: var(--hl-bg);
  color: var(--hl-text-body);
  font-family: var(--hl-font-display);
  font-weight: var(--hl-weight);
  font-size: var(--hl-text-body);
  line-height: var(--hl-leading-body);
  letter-spacing: var(--hl-tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-weight: var(--hl-weight); color: var(--hl-text); text-wrap: balance; }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--hl-ink); color: var(--hl-white); }
:focus-visible { outline: none; box-shadow: var(--hl-ring); border-radius: var(--hl-radius-xs); }

.hl-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; }
.hl-skip { position: absolute; left: 16px; top: -100px; z-index: 999; background: var(--hl-ink); color: var(--hl-white); padding: 10px 16px; border-radius: var(--hl-radius-pill); }
.hl-skip:focus { top: 12px; }

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

/* ---------- 2. Typography ---------- */
.hl-statement, .hl-display, .hl-heading, .hl-heading-sm, .hl-title { color: var(--hl-text); }
.hl-statement  { font-size: var(--hl-text-statement);  line-height: 1.04; letter-spacing: var(--hl-tracking-display); }
.hl-display    { font-size: var(--hl-text-display);    line-height: var(--hl-leading-display); letter-spacing: var(--hl-tracking-display); }
.hl-heading    { font-size: var(--hl-text-heading);    line-height: var(--hl-leading-heading); letter-spacing: var(--hl-tracking-heading); }
.hl-heading-sm { font-size: var(--hl-text-heading-sm); line-height: 1.13; letter-spacing: var(--hl-tracking-heading); }
.hl-title      { font-size: var(--hl-text-title);      line-height: var(--hl-leading-title); letter-spacing: 0; }

.hl-lede  { font-size: var(--hl-text-body-lg); line-height: 1.5; color: var(--hl-text-body); }
.hl-small { font-size: var(--hl-text-body-sm); line-height: 1.47; }
.hl-meta  { font-size: var(--hl-text-meta); line-height: 1.4; color: var(--hl-text-muted); letter-spacing: 0; }

/* The apparatus: Space Mono caps, never over 14px */
.hl-eyebrow, .hl-label, .hl-caption { font-family: var(--hl-font-mono); text-transform: uppercase; letter-spacing: var(--hl-tracking-mono); line-height: var(--hl-leading-mono); }
.hl-eyebrow { font-size: var(--hl-text-label); color: var(--hl-text-strong); display: inline-flex; align-items: center; gap: 10px; }
.hl-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hl-signal); flex: none; }
.hl-eyebrow--plain::before { display: none; }
.hl-label   { font-size: var(--hl-text-label); color: var(--hl-text-strong); }
.hl-caption { font-size: var(--hl-text-caption); color: var(--hl-text-muted); }

.hl-ink   { color: var(--hl-text); }
.hl-muted { color: var(--hl-text-muted); }
.hl-quiet { color: var(--hl-text-quiet); }
.hl-measure { max-width: var(--hl-measure); }

.hl-prose { max-width: var(--hl-measure); }
.hl-prose > * + * { margin-top: 1em; }
.hl-prose h2 { font-size: var(--hl-text-heading-sm); line-height: 1.15; letter-spacing: var(--hl-tracking-heading); margin-top: 2em; }
.hl-prose h3 { font-size: var(--hl-text-title); line-height: var(--hl-leading-title); margin-top: 1.6em; }
.hl-prose strong, .hl-prose b { font-weight: 400; } /* one weight only; never synthesise bold */
.hl-prose ul { padding-left: 1.2em; }
.hl-prose li + li { margin-top: 0.5em; }
.hl-prose a { text-decoration: underline; text-decoration-color: var(--hl-border-strong); text-underline-offset: 3px; }
.hl-prose a:hover { text-decoration-color: currentColor; }

/* ---------- 3. Layout: page, ruled frame, rows ---------- */
/* <div class="hl-page"><div class="hl-frame"> rows </div></div>
   The ruled frame runs from the nav (whose inner box carries the same side
   rules) through the hero to the footer, as on elevenlabs.io.
   The frame is a centred column with hairline side rules; every row
   inside it is separated by a hairline. Text rows inset by --hl-inset,
   media rows by --hl-media-inset. */
.hl-page { padding-inline: var(--hl-gutter); }
.hl-frame { max-width: var(--hl-frame-width); margin-inline: auto; border-inline: 1px solid var(--hl-rule); }
/* The hero sits in an open frame: same width, no rules. The ruled frame
   starts after it with a hairline on top, as on elevenlabs.io. */
.hl-frame--open { border-inline-color: transparent; } /* optional; the site frames the hero too (v2.6) */
.hl-frame--open > .hl-row { border-top: 0; }
.hl-frame--open + .hl-frame > .hl-row:first-child { border-top: 1px solid var(--hl-rule); }

.hl-row { border-top: 1px solid var(--hl-rule); padding-inline: var(--hl-inset); }
.hl-row:first-child { border-top: 0; }
.hl-row--head  { padding-top: var(--hl-row-top); padding-bottom: var(--hl-row-bottom); }
.hl-row--media { padding: var(--hl-media-inset); }
.hl-row--pad   { padding-block: var(--hl-space-16); }
.hl-row--space { padding-block: var(--hl-row-top); }
.hl-row--gap   { height: var(--hl-space-16); padding: 0; } /* empty ruled breather between sections */
.hl-row--band  { background: var(--hl-surface); }

/* Generic container (outside the frame, e.g. nav and announcement) */
.hl-container { max-width: calc(var(--hl-frame-width) + 2px); margin-inline: auto; }

.hl-stack { display: flex; flex-direction: column; gap: var(--hl-space-4); }
.hl-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hl-space-2); }

.hl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hl-gap); }
@media (min-width: 720px) {
  .hl-grid--2, .hl-grid--3, .hl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 4. Section head ---------- */
/* Eyebrow on top, then title left / description right, actions under the title. */
.hl-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hl-space-6); align-items: start; }
.hl-head__title { display: grid; gap: var(--hl-space-6); justify-items: start; }
.hl-head__desc { max-width: 34em; }
.hl-head__actions { display: flex; flex-wrap: wrap; gap: var(--hl-space-2); }
.hl-head > .hl-eyebrow { margin-bottom: calc(var(--hl-space-2) * -1); }
@media (min-width: 900px) {
  .hl-head { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--hl-inset) * 2); }
  .hl-head > .hl-eyebrow { grid-column: 1 / -1; }
  .hl-head__desc { padding-top: 0.35em; }
}
/* Title left, one action right */
.hl-head--action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (min-width: 900px) { .hl-head--action { grid-template-columns: minmax(0, 1fr) auto; } }
/* Centred */
.hl-head--center { justify-items: center; text-align: center; }
@media (min-width: 900px) { .hl-head--center { grid-template-columns: minmax(0, 1fr); } }
.hl-head--center .hl-head__title { justify-items: center; max-width: 720px; }

/* ---------- 5. Buttons ---------- */
/* Modelled on cursor.com: the size comes from em padding around a line-height 1
   label, so every size scales with its font. 1px border on every variant, no
   shadows, a 2px ink outline for focus. Padding tokens live in tokens.css. */
.hl-btn {
  --btn-pad: var(--hl-btn-pad);
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--btn-pad);
  border: 1px solid transparent; border-radius: var(--hl-radius-pill);
  font-family: var(--hl-font-display); font-size: var(--hl-text-body); font-weight: 400; letter-spacing: 0;
  line-height: 1; white-space: nowrap; cursor: pointer; background: transparent; color: var(--hl-ink);
  transition: background-color var(--hl-duration) var(--hl-ease), border-color var(--hl-duration) var(--hl-ease), color var(--hl-duration) var(--hl-ease);
}
.hl-btn:focus-visible { outline: 2px solid var(--hl-focus); outline-offset: 0.3ch; box-shadow: none; border-radius: var(--hl-radius-pill); }
.hl-btn__icon { width: 0.875em; height: 0.875em; flex: none; margin-inline-start: 0.4em; transition: transform var(--hl-duration) var(--hl-ease); }
.hl-btn:hover .hl-btn__icon { transform: translateX(2px); }

.hl-btn--primary { background: var(--hl-ink); border-color: var(--hl-ink); color: var(--hl-white); }
.hl-btn--primary:hover { background: #2B2825; border-color: #2B2825; color: var(--hl-white); }
.hl-btn--primary:active { background: #3A3631; border-color: #3A3631; color: var(--hl-white); }

.hl-btn--secondary { background: var(--hl-stone); border-color: rgba(0, 0, 0, 0.025); }
.hl-btn--secondary:hover { background: #E4E0DB; }
.hl-btn--secondary:active { background: #DCD7D1; }

.hl-btn--ghost { border-color: rgba(0, 0, 0, 0.2); }
.hl-btn--ghost:hover { background: var(--hl-mist); }
.hl-btn--ghost:active { background: var(--hl-stone); }

/* Text-only, for low-weight actions such as "Sign in" */
.hl-btn--plain { --btn-pad: 0.25rem; font-size: var(--hl-text-ui); }
.hl-btn--plain:hover { color: var(--hl-text-muted); }

.hl-btn--sm { --btn-pad: var(--hl-btn-pad-sm); font-size: var(--hl-text-ui); }
.hl-btn--xs { --btn-pad: var(--hl-btn-pad-xs); font-size: var(--hl-text-label); }
.hl-btn--block { width: 100%; }
.hl-btn--icon { padding-inline: 0; width: var(--hl-btn-icon); }
.hl-btn--icon.hl-btn--sm { width: var(--hl-btn-icon-sm); }
.hl-btn--icon svg { width: 1em; height: 1em; }

.hl-btn:disabled, .hl-btn[aria-disabled="true"] { background: var(--hl-stone); border-color: var(--hl-rule); color: var(--hl-text-muted); cursor: not-allowed; pointer-events: none; }
.hl-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.hl-btn.is-loading::after { content: ""; position: absolute; width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid; border-color: var(--hl-white) transparent var(--hl-white) transparent; animation: hl-spin 0.8s linear infinite; }
.hl-btn--secondary.is-loading::after, .hl-btn--ghost.is-loading::after { border-color: var(--hl-ink) transparent var(--hl-ink) transparent; }
@keyframes hl-spin { to { transform: rotate(360deg); } }

/* Inline text link */
.hl-link { display: inline-flex; align-items: center; gap: 6px; color: var(--hl-ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--hl-duration) var(--hl-ease); }
.hl-link:hover { text-decoration-color: currentColor; }

/* ---------- 6. Chips, tags, dots ---------- */
.hl-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--hl-radius-pill); background: transparent; cursor: pointer;
  font-family: var(--hl-font-display); font-size: var(--hl-text-ui); color: var(--hl-ink); white-space: nowrap;
  transition: background-color var(--hl-duration) var(--hl-ease), box-shadow var(--hl-duration) var(--hl-ease);
}
.hl-chip:hover { background: rgba(0, 0, 0, 0.04); }
.hl-chip[aria-pressed="true"], .hl-chip.is-active { background: var(--hl-white); box-shadow: var(--hl-shadow-ring); }
.hl-chip:focus-visible { border-radius: var(--hl-radius-pill); }

.hl-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border-radius: var(--hl-radius-pill); background: var(--hl-mist);
  font-family: var(--hl-font-mono); font-size: var(--hl-text-caption); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-text-strong); white-space: nowrap;
}
.hl-tag--outline { background: var(--hl-white); box-shadow: var(--hl-shadow-ring); }
.hl-tag--ink { background: var(--hl-ink); color: var(--hl-white); }

.hl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hl-ash); flex: none; }
.hl-dot--signal { background: var(--hl-signal); }
.hl-dot--live { background: var(--hl-success); }
.hl-dot--ink { background: var(--hl-ink); }
.hl-dot--sky { width: 9px; height: 9px; background: var(--hl-signal-sky); }

/* ---------- 7. Tabs ---------- */
/* Pill tabs: a quiet row; selected tab becomes a white pill */
.hl-tabs { display: inline-flex; gap: 4px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hl-tabs::-webkit-scrollbar { display: none; }
.hl-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--hl-radius-pill);
  background: transparent; cursor: pointer; white-space: nowrap;
  font-family: var(--hl-font-display); font-size: var(--hl-text-body-sm); color: var(--hl-text-muted);
  transition: background-color var(--hl-duration) var(--hl-ease), color var(--hl-duration) var(--hl-ease), box-shadow var(--hl-duration) var(--hl-ease);
}
.hl-tab:hover { color: var(--hl-ink); }
.hl-tab[aria-selected="true"] { background: var(--hl-white); color: var(--hl-ink); box-shadow: var(--hl-shadow-ring); }
.hl-tab:focus-visible { border-radius: var(--hl-radius-pill); }
.hl-tabpanel[hidden] { display: none; }

/* Segmented tabs: equal columns across the top of a panel */
.hl-tabs--segmented { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; gap: 0; padding: 6px; }
.hl-tabs--segmented .hl-tab { height: 48px; border-radius: var(--hl-radius-md); font-size: var(--hl-text-body); }
.hl-tabs--segmented .hl-tab:focus-visible { border-radius: var(--hl-radius-md); }

/* ---------- 8. Panel (hero feature panel) ---------- */
.hl-panel { background: var(--hl-surface); border-radius: var(--hl-radius-lg); overflow: hidden; }
.hl-panel__stage { padding: var(--hl-space-3) var(--hl-space-3) var(--hl-space-5); }
.hl-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hl-space-3); padding: 0 var(--hl-space-5) var(--hl-space-5); }
@media (min-width: 900px) {
  .hl-panel__stage { padding: var(--hl-space-4) var(--hl-space-4) var(--hl-space-6); }
  .hl-panel__foot { padding: 0 var(--hl-space-8) var(--hl-space-6); }
}

/* Scene: an engraving plate with a white caption card. The card sits under
   the image on small screens and floats over its lower-left corner from 900px. */
.hl-scene { position: relative; display: grid; gap: var(--hl-space-3); }
.hl-scene__media { aspect-ratio: 4 / 3; border-radius: var(--hl-radius-md); }
.hl-scene__card { display: grid; gap: 6px; padding: var(--hl-space-4) var(--hl-space-5); background: var(--hl-white); border-radius: var(--hl-radius-md); box-shadow: var(--hl-shadow-ring); }
.hl-scene__title { font-size: var(--hl-text-body); color: var(--hl-ink); }
.hl-scene__desc { font-size: var(--hl-text-ui); color: var(--hl-text-muted); line-height: 1.45; }
@media (min-width: 900px) {
  .hl-scene__media { aspect-ratio: 16 / 9; }
  .hl-scene__card { position: absolute; left: var(--hl-space-5); bottom: var(--hl-space-5); max-width: 340px; box-shadow: var(--hl-shadow-float); }
}

/* ---------- 9. Tiles (bento) ---------- */
.hl-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hl-gap); }
@media (min-width: 720px) {
  .hl-bento--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-bento--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .hl-bento--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hl-bento + .hl-bento { margin-top: var(--hl-gap); }

.hl-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 260px; padding: var(--hl-space-5); gap: var(--hl-space-6);
  background: var(--hl-surface); border-radius: var(--hl-radius-lg); overflow: hidden;
  transition: background-color var(--hl-duration) var(--hl-ease);
}
.hl-tile--lg { min-height: 420px; }
@media (min-width: 1024px) { .hl-tile--lg { min-height: 560px; } }
.hl-tile--tall { min-height: 360px; }
a.hl-tile:hover { background: var(--hl-stone); }
.hl-tile__art { flex: 1; display: grid; place-items: center; min-height: 120px; color: var(--hl-ink); }
/* Plate running edge to edge across the top of a tile; the caption sits below on mist */
.hl-tile__art--fill { display: block; flex: none; aspect-ratio: 16 / 10; min-height: 0; margin: calc(var(--hl-space-5) * -1) calc(var(--hl-space-5) * -1) 0; }
.hl-tile--lg .hl-tile__art--fill { flex: 1; aspect-ratio: auto; min-height: 240px; }
.hl-tile:has(> .hl-tile__art--fill) { justify-content: flex-start; }
.hl-tile--lg:has(> .hl-tile__art--fill) { justify-content: space-between; }
.hl-tile__art--fill > img { position: absolute; inset: 0; }
/* A UI mock floating over a plate: <div class="hl-tile__art hl-tile__art--fill hl-plate hl-tile__art--mock"><img><div class="hl-mock"></div></div> */
.hl-tile__art--mock { display: grid; place-items: center; padding: var(--hl-space-8) var(--hl-space-5); }
.hl-tile__art--mock > .hl-mock { position: relative; z-index: 1; }
.hl-tile__caption { display: grid; gap: 6px; max-width: 30em; }
.hl-tile__title { font-size: var(--hl-text-body); line-height: 1.5; color: var(--hl-ink); }
.hl-tile__desc { font-size: var(--hl-text-body-sm); line-height: 1.47; color: var(--hl-text-muted); }
.hl-tile--ink { background: #12110F; }
.hl-tile--ink .hl-tile__title { color: var(--hl-white); }
.hl-tile--ink .hl-tile__desc { color: rgba(255, 255, 255, 0.72); }

/* A white UI mock floating inside a tile */
.hl-mock { width: min(100%, 420px); background: var(--hl-white); border-radius: var(--hl-radius-md); box-shadow: var(--hl-shadow-float); padding: var(--hl-space-5); display: grid; gap: var(--hl-space-3); }
.hl-mock__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hl-mock__value { font-size: var(--hl-text-heading-sm); line-height: 1; letter-spacing: var(--hl-tracking-heading); color: var(--hl-ink); font-variant-numeric: tabular-nums; }

/* ---------- 10. Proof strip (customer line) ---------- */
.hl-proof { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--hl-space-4); padding-block: var(--hl-space-6); }
.hl-proof__logos { display: flex; gap: 6px; }
.hl-proof__logo { width: 44px; height: 44px; border-radius: var(--hl-radius-sm); background: var(--hl-mist); display: grid; place-items: center; opacity: 0.55; transition: opacity var(--hl-duration) var(--hl-ease); }
.hl-proof__logo.is-active { opacity: 1; background: var(--hl-stone); }
.hl-proof__logo img { max-width: 28px; max-height: 16px; filter: brightness(0); }
.hl-proof__text { display: grid; gap: 2px; min-width: 0; }
.hl-proof__name { color: var(--hl-ink); }
.hl-proof__line { font-size: var(--hl-text-body-sm); color: var(--hl-text-muted); }
.hl-proof > .hl-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) {
  .hl-proof { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hl-proof > .hl-btn { grid-column: auto; }
}

/* ---------- 11. Logo strip ---------- */
.hl-marquee { overflow: hidden; padding-block: var(--hl-space-10); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hl-marquee__track { display: flex; width: max-content; animation: hl-marquee 45s linear infinite; }
.hl-marquee:hover .hl-marquee__track { animation-play-state: paused; }
.hl-marquee__set { display: flex; align-items: center; flex: none; gap: var(--hl-space-16); padding: 0 var(--hl-space-16) 0 0; margin: 0; list-style: none; }
.hl-marquee__set img { display: block; max-height: 24px; max-width: 120px; width: auto; object-fit: contain; filter: brightness(0); opacity: 0.5; transition: opacity var(--hl-duration) var(--hl-ease); }
.hl-marquee__set img:hover { opacity: 0.9; }
@keyframes hl-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hl-marquee { -webkit-mask-image: none; mask-image: none; }
  .hl-marquee__track { animation: none; width: auto; }
  .hl-marquee__set { flex-wrap: wrap; justify-content: center; row-gap: var(--hl-space-8); padding: 0; }
  .hl-marquee__set + .hl-marquee__set { display: none; }
}
.hl-logostrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; row-gap: var(--hl-space-8); column-gap: var(--hl-space-6); padding-block: var(--hl-space-10); }
.hl-logostrip img { max-height: 24px; max-width: 120px; width: auto; margin-inline: auto; object-fit: contain; filter: brightness(0); opacity: 0.5; transition: opacity var(--hl-duration) var(--hl-ease); }
.hl-logostrip img:hover { opacity: 0.9; }
@media (min-width: 900px) { .hl-logostrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- 12. Plate (engraving images) ---------- */
/* After Nous Research's Portal and Hermes Agent: a greyscale engraving on a
   black ground (assets/art/eng-*.webp, prepared by tools/engrave.py) is
   screened onto a solid plate, so black takes the plate colour and the line
   work stays white. A sparse speckle grain sits on top. */
.hl-plate { position: relative; isolation: isolate; overflow: hidden; background: var(--hl-plate); }
.hl-plate > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); mix-blend-mode: screen; transition: transform var(--hl-duration-slow) var(--hl-ease); }
.hl-plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 1 1 0 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
}
/* Ink: the engraving as made, on warm black */
.hl-plate--ink { background: #12110F; }
/* Paper: inverted to ink line work on paper, for quiet, text-heavy places */
.hl-plate--paper { background: var(--hl-paper); box-shadow: var(--hl-shadow-inset); }
.hl-plate--paper > img { filter: grayscale(1) invert(1) contrast(0.85) brightness(1.08); mix-blend-mode: multiply; }
.hl-plate--paper::after { filter: invert(1); opacity: 0.3; }
:is(a:hover, a:focus-visible) .hl-plate > img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .hl-plate > img { transition: none; } :is(a:hover, a:focus-visible) .hl-plate > img { transform: none; } }

/* ---------- 13. Navigation + announcement ---------- */
.hl-announce { border-bottom: 1px solid rgba(0, 0, 0, 0.08); background: var(--hl-paper); }
.hl-announce__inner { display: flex; align-items: center; justify-content: center; gap: var(--hl-space-3); min-height: 48px; padding: 6px var(--hl-gutter); font-size: var(--hl-text-ui); text-align: center; }

.hl-nav { position: sticky; top: 0; z-index: var(--hl-z-nav); background: var(--hl-paper); padding-inline: var(--hl-gutter); } /* flat, the same as the menu */
/* The nav sits inside the ruled frame: the same side rules as .hl-frame, a hairline under it */
.hl-nav__inner { display: flex; align-items: center; gap: var(--hl-space-10); height: var(--hl-nav-height); padding-inline: var(--hl-inset); max-width: var(--hl-frame-width); margin-inline: auto; border-inline: 1px solid var(--hl-rule); border-bottom: 1px solid var(--hl-rule); }
/* Phones: a tighter inset so logo, Start discovery and the menu button fit inside the rules */
@media (max-width: 959px) { .hl-nav__inner { gap: var(--hl-space-4); padding-inline: var(--hl-space-4); } }
.hl-nav__logo { display: inline-flex; flex: none; border-radius: var(--hl-radius-xs); }
.hl-nav__logo img { height: 22px; width: auto; }
@media (min-width: 960px) { .hl-nav__logo img { height: 24px; } }
/* Under 360px there is no room for the nav's Start discovery; the open menu carries it */
@media (max-width: 359px) { .hl-nav__actions > .hl-btn--primary { display: none; } }
.hl-nav__inner > nav { display: none; } /* an empty wrapper would still take two flex gaps on mobile */
.hl-nav__links { display: none; align-items: center; gap: var(--hl-space-6); list-style: none; padding: 0; }
.hl-nav__links a { font-size: var(--hl-text-ui); color: var(--hl-ink); padding-block: 8px; transition: color var(--hl-duration) var(--hl-ease); }
.hl-nav__links a:hover { color: var(--hl-text-muted); }
.hl-nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hl-nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--hl-space-2); }
.hl-nav__extra { display: none; }
.hl-nav__toggle { display: inline-flex; --btn-pad: 0; width: 40px; font-size: 18px; margin-right: -8px; }
@media (min-width: 960px) {
  /* Logo left, links centred on the page, actions right */
  .hl-nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .hl-nav__actions { justify-self: end; margin-left: 0; }
  .hl-nav__inner > nav { display: block; }
  .hl-nav__links { display: flex; }
  .hl-nav__extra { display: inline-flex; }
  .hl-nav__toggle { display: none; }
}
.hl-menu { position: fixed; inset: var(--hl-nav-height) 0 0 0; z-index: var(--hl-z-menu); background: var(--hl-paper); padding: var(--hl-space-4) var(--hl-gutter) max(var(--hl-space-6), env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--hl-space-8); overflow-y: auto; }
.hl-menu[hidden] { display: none; }
/* While the menu is open the nav drops the frame rules and joins the menu as one flat sheet */
.hl-nav:has(~ .hl-menu:not([hidden])) .hl-nav__inner { border-color: transparent; }
.hl-menu > .hl-btn { margin-top: auto; } /* Start discovery sits at the bottom of the screen */
.hl-menu ul { list-style: none; padding: 0; }
.hl-menu li { border-bottom: 1px solid var(--hl-rule-strong); }
.hl-menu li > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: var(--hl-text-title); color: var(--hl-ink); }

/* ---------- 14. Steps ---------- */
.hl-step-num { font-family: var(--hl-font-mono); font-size: var(--hl-text-label); letter-spacing: var(--hl-tracking-mono); color: var(--hl-text-muted); }

/* ---------- 15. Posts (insights) ---------- */
.hl-post { display: grid; gap: var(--hl-space-4); align-content: start; }
.hl-post__media { aspect-ratio: 16 / 9; border-radius: var(--hl-radius-lg); }
.hl-post__title { font-size: var(--hl-text-title); line-height: var(--hl-leading-title); color: var(--hl-ink); text-wrap: balance; }
.hl-post__meta { display: flex; gap: 10px; font-size: var(--hl-text-meta); color: var(--hl-text-muted); }
a.hl-post:hover .hl-post__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- 16. Accordion ---------- */
.hl-accordion details { border-bottom: 1px solid var(--hl-rule-strong); }
.hl-accordion details:first-child { border-top: 1px solid var(--hl-rule-strong); }
.hl-accordion summary { display: flex; justify-content: space-between; align-items: center; gap: var(--hl-space-6); padding: var(--hl-space-5) 0; cursor: pointer; list-style: none; font-size: var(--hl-text-body-lg); line-height: 1.4; color: var(--hl-ink); }
.hl-accordion summary::-webkit-details-marker { display: none; }
.hl-accordion summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--hl-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: var(--hl-shadow-ring); transition: transform var(--hl-duration) var(--hl-ease);
}
.hl-accordion details[open] summary::after { transform: rotate(45deg); }
.hl-accordion summary:focus-visible { border-radius: var(--hl-radius-xs); }
.hl-accordion__body { padding: 0 var(--hl-space-12) var(--hl-space-5) 0; color: var(--hl-text-muted); max-width: var(--hl-measure); }

/* ---------- 17. Quote ---------- */
.hl-quote { display: grid; gap: var(--hl-space-6); max-width: 860px; }
.hl-quote blockquote { font-size: var(--hl-text-heading-sm); line-height: 1.25; letter-spacing: var(--hl-tracking-heading); color: var(--hl-text); text-wrap: balance; }
.hl-quote figcaption { display: flex; align-items: center; gap: var(--hl-space-3); font-size: var(--hl-text-ui); }
.hl-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hl-stone); display: grid; place-items: center; overflow: hidden; font-family: var(--hl-font-mono); font-size: var(--hl-text-caption); color: var(--hl-text-strong); flex: none; }

/* ---------- 18. Stats ---------- */
.hl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hl-gap); }
.hl-stat { background: var(--hl-surface); border-radius: var(--hl-radius-lg); padding: var(--hl-space-5); display: grid; gap: var(--hl-space-8); }
.hl-stat__value { font-size: var(--hl-text-heading); line-height: 1; letter-spacing: var(--hl-tracking-heading); color: var(--hl-text); font-variant-numeric: tabular-nums; }
.hl-stat__label { font-size: var(--hl-text-body-sm); color: var(--hl-text-muted); }
@media (min-width: 900px) { .hl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 19. Forms ---------- */
.hl-form { display: grid; gap: var(--hl-space-5); }
.hl-field { display: grid; gap: var(--hl-space-2); }
.hl-field__label { font-size: var(--hl-text-ui); color: var(--hl-ink); }
.hl-field__hint { font-size: var(--hl-text-meta); color: var(--hl-text-muted); }
.hl-field__error { font-size: var(--hl-text-meta); color: var(--hl-error); display: none; }
.hl-field.is-invalid .hl-field__error { display: block; }
.hl-input, .hl-textarea, .hl-select {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--hl-white); color: var(--hl-ink);
  border: 0; border-radius: var(--hl-radius-sm); box-shadow: var(--hl-shadow-ring);
  font-size: var(--hl-text-body); line-height: 1.4;
  transition: box-shadow var(--hl-duration) var(--hl-ease);
  -webkit-appearance: none; appearance: none;
}
.hl-input::placeholder, .hl-textarea::placeholder { color: var(--hl-text-muted); }
.hl-input:focus, .hl-textarea:focus, .hl-select:focus { outline: none; box-shadow: 0 0 0 1px var(--hl-ink), 0 0 0 4px rgba(0, 0, 0, 0.06); }
.hl-textarea { min-height: 120px; resize: vertical; }
.hl-select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.hl-field.is-invalid :is(.hl-input, .hl-textarea, .hl-select) { box-shadow: 0 0 0 1px var(--hl-error); }
.hl-input:disabled, .hl-textarea:disabled, .hl-select:disabled { background: var(--hl-mist); color: var(--hl-text-faint); cursor: not-allowed; }
.hl-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--hl-text-ui); cursor: pointer; }
.hl-check input { -webkit-appearance: none; appearance: none; flex: none; margin-top: 2px; width: 18px; height: 18px; border-radius: 5px; background: var(--hl-white); box-shadow: var(--hl-shadow-ring); cursor: pointer; }
.hl-check input:checked { background: var(--hl-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: none; }

/* Form layout helpers */
.hl-form__pair { display: grid; gap: var(--hl-space-5); }
@media (min-width: 640px) { .hl-form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hl-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hl-space-4) var(--hl-space-5); }
.hl-form__note { flex: 1 1 240px; font-size: var(--hl-text-meta); line-height: 1.45; color: var(--hl-text-muted); }
.hl-form__status { font-size: var(--hl-text-ui); line-height: 1.45; color: var(--hl-error); }
/* Spam trap: present for bots, invisible and unreachable for people */
.hl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Contact: a mist form panel beside an aside tile (7 / 5 from 900px) */
.hl-contact { display: grid; gap: var(--hl-gap); }
@media (min-width: 900px) { .hl-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hl-contact__form { position: relative; background: var(--hl-surface); border-radius: var(--hl-radius-lg); padding: var(--hl-space-6) var(--hl-space-5); }
@media (min-width: 900px) { .hl-contact__form { padding: var(--hl-space-10) var(--hl-space-8); } }
.hl-contact__done { display: grid; justify-items: start; gap: var(--hl-space-4); padding-block: var(--hl-space-10); }
.hl-contact__done[hidden] { display: none; }
.hl-contact__done h2:focus { outline: none; }
.hl-contact__aside { min-height: 0; }
.hl-contact__list { list-style: none; padding: 0; display: grid; gap: var(--hl-space-3); margin-top: var(--hl-space-5); }
.hl-contact__list li { display: grid; gap: 2px; }
.hl-capture { display: flex; gap: 6px; padding: 5px; background: var(--hl-white); border-radius: var(--hl-radius-pill); box-shadow: var(--hl-shadow-ring); max-width: 440px; }
.hl-capture:focus-within { box-shadow: 0 0 0 1px var(--hl-ink), 0 0 0 4px rgba(0, 0, 0, 0.06); }
.hl-capture input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-size: var(--hl-text-ui); outline: none; }

/* ---------- 20. CTA row ---------- */
.hl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hl-space-6); padding-block: var(--hl-space-16); }
.hl-cta__actions { display: flex; flex-wrap: wrap; gap: var(--hl-space-2); }

/* Optional inverse row (not part of the default recipe) */
.hl-row--inverse { background: var(--hl-inverse-bg); color: var(--hl-inverse-body); }
.hl-row--inverse :is(h1, h2, h3, .hl-display, .hl-heading, .hl-heading-sm, .hl-title) { color: var(--hl-inverse-text); }
.hl-row--inverse .hl-btn--primary { background: var(--hl-white); border-color: var(--hl-white); color: var(--hl-ink); }
.hl-row--inverse .hl-btn--primary:hover { background: var(--hl-mist); border-color: var(--hl-mist); }
.hl-row--inverse .hl-btn--ghost { color: var(--hl-white); border-color: rgba(255, 255, 255, 0.3); }
.hl-row--inverse .hl-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hl-row--inverse .hl-btn:focus-visible { outline-color: var(--hl-white); box-shadow: none; }
.hl-row--inverse :focus-visible { box-shadow: 0 0 0 2px var(--hl-inverse-bg), 0 0 0 4px var(--hl-white); }

/* ---------- 21. Footer ---------- */
.hl-footer { padding-block: var(--hl-space-16) var(--hl-space-10); font-size: var(--hl-text-ui); }
.hl-footer__grid { display: grid; gap: var(--hl-space-10) var(--hl-space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-footer__brand { grid-column: 1 / -1; display: grid; gap: var(--hl-space-3); align-content: start; }
.hl-footer__brand img { height: 20px; width: auto; }
.hl-footer__col h3 { margin-bottom: var(--hl-space-4); }
.hl-footer__col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.hl-footer__col a { color: var(--hl-ink); transition: color var(--hl-duration) var(--hl-ease); }
.hl-footer__col a:hover { color: var(--hl-text-muted); }
.hl-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--hl-space-4); margin-top: var(--hl-space-16); font-size: var(--hl-text-meta); color: var(--hl-text-muted); }
@media (min-width: 900px) {
  .hl-footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .hl-footer__brand { grid-column: auto; }
}

/* ---------- 22. Motion helpers ---------- */
.hl-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--hl-duration-slow) var(--hl-ease), transform var(--hl-duration-slow) var(--hl-ease); }
.hl-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hl-reveal { opacity: 1; transform: none; } }
