/* ==========================================================================
   HeapByte — design system
   Editorial, typography-led, engineering-first.
   Ported from the original Tailwind v4 token set. No build step required.
   ========================================================================== */

:root {
  --radius: 4px;

  /* Neutrals — warm off-white paper, charcoal ink */
  --paper: oklch(0.984 0.003 106);
  --ink: oklch(0.185 0.006 250);
  --ink-soft: oklch(0.44 0.008 250);
  --surface: oklch(0.962 0.003 106);
  --surface-strong: oklch(0.935 0.004 250);
  --hairline: oklch(0.895 0.004 250);

  --background: var(--paper);
  --foreground: var(--ink);
  --card: oklch(1 0 0);

  /* Restrained Shopify green — CTA and success only */
  --primary: oklch(0.635 0.132 162);
  --primary-foreground: oklch(0.99 0.002 106);

  --muted: var(--surface);
  --muted-foreground: var(--ink-soft);
  --accent: var(--surface-strong);

  /* Deep technical blue — links and secondary actions only */
  --link: oklch(0.505 0.185 264);
  --ring: oklch(0.505 0.185 264);
  --border: var(--hairline);

  --band: oklch(0.155 0.006 250);
  --band-foreground: oklch(0.965 0.003 106);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);

  --shell-max: 1344px;
  --shell-pad: 20px;
}

@media (min-width: 768px) {
  :root { --shell-pad: 40px; }
}
@media (min-width: 1280px) {
  :root { --shell-pad: 64px; }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 3px; }

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

::selection { background: color-mix(in oklab, var(--primary) 24%, transparent); }

.hb-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.hb-skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.hb-shell {
  width: 100%;
  margin-inline: auto;
  max-width: var(--shell-max);
  padding-inline: var(--shell-pad);
}

.hb-rule-top { border-top: 1px solid var(--hairline); }

.hb-section { padding-block: 80px; }
@media (min-width: 768px) { .hb-section { padding-block: 112px; } }
@media (min-width: 1024px) { .hb-section { padding-block: 144px; } }

.hb-section--tight { padding-block: 56px; }
@media (min-width: 768px) { .hb-section--tight { padding-block: 80px; } }

.hb-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .hb-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.hb-muted { color: var(--muted-foreground); }

.hb-hairline-grid {
  border: 1px solid var(--hairline);
  background: var(--hairline);
  display: grid;
  gap: 1px;
}
.hb-hairline-grid > * { background: var(--background); }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.hb-display-2xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 11vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hb-display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hb-display-lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hb-display-md {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hb-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0;
}

.hb-lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hb-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

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

.hb-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.hb-reveal.is-in {
  animation: hb-reveal-in 0.9s var(--ease-editorial) forwards;
}

@keyframes hb-reveal-in {
  to { opacity: 1; transform: none; }
}

.hb-link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  text-decoration: none;
  transition: background-size 0.45s var(--ease-editorial);
}
.hb-link-underline:hover { background-size: 100% 1px; }

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

/* --------------------------------------------------------------------------
   Art direction
   -------------------------------------------------------------------------- */

.hb-blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, black 10%, transparent 75%);
}

.hb-band {
  background: var(--band);
  color: var(--band-foreground);
}
.hb-band .hb-eyebrow,
.hb-band .hb-muted,
.hb-band .hb-lede { color: color-mix(in oklab, var(--band-foreground) 66%, transparent); }
.hb-band a { color: var(--band-foreground); }

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.hb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  transition: background-color 0.25s var(--ease-editorial), border-color 0.25s var(--ease-editorial), color 0.25s var(--ease-editorial);
  cursor: pointer;
}

.hb-action--lg { padding: 16px 28px; font-size: 12px; }

.hb-action--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.hb-action--primary:hover { background: color-mix(in oklab, var(--primary) 88%, black); }

.hb-action--outline {
  border-color: var(--hairline);
  color: var(--foreground);
  background: transparent;
}
.hb-action--outline:hover { border-color: var(--foreground); }

.hb-action--quiet {
  padding-inline: 0;
  color: var(--foreground);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}
.hb-action--quiet:hover { border-bottom-color: var(--foreground); }

.hb-band .hb-action--outline {
  border-color: color-mix(in oklab, var(--band-foreground) 26%, transparent);
  color: var(--band-foreground);
}
.hb-band .hb-action--outline:hover { border-color: var(--band-foreground); }

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

.hb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-editorial);
}
.hb-header.is-stuck { border-bottom-color: var(--hairline); }

.hb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
}

.hb-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-decoration: none;
}

.hb-nav { display: none; }
@media (min-width: 1024px) {
  .hb-nav { display: flex; align-items: center; gap: 32px; }
}

.hb-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-nav a {
  font-size: 14px;
  color: var(--foreground);
  text-decoration: none;
  position: relative;
}
.hb-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-editorial);
}
.hb-nav a:hover::after,
.hb-nav .current-menu-item > a::after { transform: scaleX(1); }

.hb-header__cta { display: none; }
@media (min-width: 1024px) { .hb-header__cta { display: inline-flex; } }

.hb-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 8px;
}
@media (min-width: 1024px) { .hb-burger { display: none; } }
.hb-burger i {
  display: block;
  height: 1px;
  background: var(--foreground);
  transition: transform 0.35s var(--ease-editorial), opacity 0.2s;
}
.hb-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hb-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.hb-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hb-drawer {
  position: fixed;
  inset: 68px 0 0;
  background: var(--paper);
  z-index: 55;
  padding: 40px var(--shell-pad);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial), visibility 0.3s;
  overflow-y: auto;
}
.hb-drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.hb-drawer ul { list-style: none; margin: 0 0 32px; padding: 0; }
.hb-drawer li { border-bottom: 1px solid var(--hairline); }
.hb-drawer a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-decoration: none;
}
@media (min-width: 1024px) { .hb-drawer { display: none; } }

/* Scroll progress */
.hb-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--primary);
  z-index: 70;
}

/* --------------------------------------------------------------------------
   Blocks — hero
   -------------------------------------------------------------------------- */

.hb-hero { position: relative; overflow: hidden; }
.hb-hero__inner { position: relative; padding-top: 64px; }
@media (min-width: 768px) { .hb-hero__inner { padding-top: 96px; } }
@media (min-width: 1024px) { .hb-hero__inner { padding-top: 112px; } }

.hb-hero__head { grid-column: span 12; }
@media (min-width: 1024px) { .hb-hero__head { grid-column: span 9; } }

.hb-hero__aside { grid-column: span 12; align-self: end; }
@media (min-width: 1024px) { .hb-hero__aside { grid-column: span 3; } }

.hb-hero__title { margin-top: 28px; }

.hb-hero__standfirst {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.hb-hero__actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.hb-hero__figure { margin-top: 56px; }
@media (min-width: 1024px) { .hb-hero__figure { margin-top: 80px; } }

.hb-hero__figbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}

.hb-hero__stats { display: flex; gap: 40px; }

.hb-counter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: block;
}
@media (min-width: 768px) { .hb-counter { font-size: 48px; } }

.hb-margin-note {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.hb-margin-note__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foreground);
  display: block;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.hb-marquee {
  overflow: hidden;
  padding-block: 20px;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.hb-marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: hb-marquee 42s linear infinite;
}
.hb-marquee span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}
@keyframes hb-marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Blocks — manifesto, section head
   -------------------------------------------------------------------------- */

.hb-manifesto__statement {
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hb-manifesto__principles {
  margin-top: 56px;
  display: grid;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
@media (min-width: 768px) {
  .hb-manifesto__principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hb-manifesto__principles dt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hb-manifesto__principles dd {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.hb-section-head { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .hb-section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hb-section-head__left { grid-column: span 7; }
  .hb-section-head__right { grid-column: 9 / span 4; align-self: end; }
}
.hb-section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Blocks — standards band
   -------------------------------------------------------------------------- */

.hb-standards { padding-block: 96px; }
@media (min-width: 768px) { .hb-standards { padding-block: 128px; } }

.hb-standards__list {
  margin-top: 56px;
  display: grid;
  gap: 1px;
  background: color-mix(in oklab, var(--band-foreground) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--band-foreground) 14%, transparent);
}
@media (min-width: 768px) { .hb-standards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .hb-standards__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hb-standards__item {
  background: var(--band);
  padding: 32px 28px;
}
.hb-standards__item h3 { font-size: 17px; margin-bottom: 10px; }
.hb-standards__item p {
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--band-foreground) 62%, transparent);
}

/* --------------------------------------------------------------------------
   Blocks — services
   -------------------------------------------------------------------------- */

.hb-services__group + .hb-services__group { margin-top: 72px; }

.hb-services__group-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.hb-services__group-head h3 { font-size: 22px; }

.hb-services__grid {
  margin-top: 32px;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 768px) { .hb-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .hb-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hb-service-card {
  background: var(--background);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.35s var(--ease-editorial);
}
.hb-service-card:hover { background: var(--surface); }
.hb-service-card h4 { font-size: 19px; }
.hb-service-card p { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); }
.hb-service-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

.hb-index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.hb-index-list li { border-bottom: 1px solid var(--border); }
.hb-index-list a {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  text-decoration: none;
  color: inherit;
  transition: padding-inline-start 0.4s var(--ease-editorial);
}
.hb-index-list a:hover { padding-inline-start: 12px; }
@media (min-width: 768px) {
  .hb-index-list a { grid-template-columns: 64px 1fr 1.2fr auto; align-items: baseline; gap: 32px; }
}
.hb-index-list__title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.hb-index-list__desc { font-size: 14px; color: var(--muted-foreground); }

/* --------------------------------------------------------------------------
   Blocks — work
   -------------------------------------------------------------------------- */

.hb-work-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .hb-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hb-work-card { text-decoration: none; color: inherit; display: block; }
.hb-work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.hb-work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-editorial);
}
.hb-work-card:hover .hb-work-card__media img { transform: scale(1.03); }
.hb-work-card__body { margin-top: 20px; display: grid; gap: 8px; }
.hb-work-card__title { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.025em; }
.hb-work-card__summary { font-size: 15px; color: var(--muted-foreground); }

.hb-results {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 768px) { .hb-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hb-results__item { background: var(--background); padding: 28px; }
.hb-results__value {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
  display: block;
}
.hb-results__label { font-size: 14px; margin-top: 8px; display: block; }
.hb-results__note { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; display: block; }

/* --------------------------------------------------------------------------
   Blocks — code pane
   -------------------------------------------------------------------------- */

.hb-code {
  margin: 0;
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band);
  color: var(--band-foreground);
}
.hb-code__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--band-foreground) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  color: color-mix(in oklab, var(--band-foreground) 60%, transparent);
}
.hb-code__dots { display: flex; gap: 6px; }
.hb-code__dots i {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--band-foreground) 22%, transparent);
}
.hb-code__body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}
.hb-code__body code { font-family: inherit; }

.tok-key { color: oklch(0.78 0.13 300); }
.tok-str { color: oklch(0.82 0.12 150); }
.tok-com { color: oklch(0.62 0.02 250); font-style: italic; }
.tok-fn  { color: oklch(0.82 0.11 230); }
.tok-num { color: oklch(0.84 0.11 70); }

/* --------------------------------------------------------------------------
   Blocks — FAQ accordion
   -------------------------------------------------------------------------- */

.hb-faq { border-top: 1px solid var(--border); }
.hb-faq__item { border-bottom: 1px solid var(--border); }
.hb-faq__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: inherit;
}
.hb-faq__icon {
  flex: none;
  width: 16px; height: 16px;
  position: relative;
  margin-top: 6px;
}
.hb-faq__icon::before,
.hb-faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-editorial);
}
.hb-faq__icon::after { transform: rotate(90deg); }
.hb-faq__trigger[aria-expanded="true"] .hb-faq__icon::after { transform: rotate(0deg); }

.hb-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-editorial);
}
.hb-faq__panel[data-open="true"] { grid-template-rows: 1fr; }
.hb-faq__panel > div { overflow: hidden; }
.hb-faq__panel p {
  padding-bottom: 24px;
  max-width: 70ch;
  font-size: 15px;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Blocks — quote, process rail, tags, stats, CTA
   -------------------------------------------------------------------------- */

.hb-quote { padding-block: 96px; }
.hb-quote blockquote {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hb-quote figcaption { margin-top: 32px; }

.hb-rail {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.hb-rail::-webkit-scrollbar { display: none; }
.hb-rail__step {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 80vw, 360px);
  background: var(--background);
  padding: 32px 28px;
}
.hb-rail__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}
.hb-rail__step h3 { font-size: 20px; margin: 12px 0 10px; }
.hb-rail__step p { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); }

.hb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hb-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--muted-foreground);
}
.hb-tags--ink li {
  border-color: color-mix(in oklab, var(--band-foreground) 22%, transparent);
  color: color-mix(in oklab, var(--band-foreground) 72%, transparent);
}

.hb-stats { display: grid; gap: 40px; }
@media (min-width: 640px) { .hb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hb-cta { padding-block: 96px; }
@media (min-width: 768px) { .hb-cta { padding-block: 144px; } }
.hb-cta__title { font-size: clamp(32px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.hb-cta__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Editorial article body
   -------------------------------------------------------------------------- */

.hb-prose { max-width: 70ch; }
.hb-prose > * + * { margin-top: 1.4em; }
.hb-prose h2 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 2.2em; }
.hb-prose h3 { font-size: 20px; margin-top: 1.8em; }
.hb-prose ul, .hb-prose ol { padding-left: 20px; }
.hb-prose li + li { margin-top: 8px; }
.hb-prose blockquote {
  margin: 2em 0;
  padding-left: 24px;
  border-left: 2px solid var(--primary);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.35;
}
.hb-prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-strong);
  padding: 2px 6px;
  border-radius: 3px;
}
.hb-prose pre {
  background: var(--band);
  color: var(--band-foreground);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.hb-prose pre code { background: none; padding: 0; }

.hb-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.hb-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.hb-crumbs a { color: inherit; text-decoration: none; }
.hb-crumbs a:hover { color: var(--foreground); }

/* --------------------------------------------------------------------------
   Ladder (numbered list used on process / about)
   -------------------------------------------------------------------------- */

.hb-ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.hb-ladder li {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .hb-ladder li { grid-template-columns: 80px 1fr 1.4fr; gap: 40px; align-items: start; }
}
.hb-ladder__index { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted-foreground); }
.hb-ladder__title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.hb-ladder__body { font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.hb-team { display: grid; gap: 40px; }
@media (min-width: 640px) { .hb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hb-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hb-team__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  filter: grayscale(1);
  transition: filter 0.6s var(--ease-editorial);
}
.hb-team__member:hover .hb-team__portrait { filter: grayscale(0); }
.hb-team__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hb-team__name { font-family: var(--font-display); font-size: 20px; margin-top: 20px; letter-spacing: -0.02em; }
.hb-team__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-foreground); margin-top: 6px; }

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

.hb-footer { border-top: 1px solid var(--hairline); padding-block: 72px 40px; }
.hb-footer__top { display: grid; gap: 48px; }
@media (min-width: 1024px) { .hb-footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.hb-footer__statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.hb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hb-footer ul a { font-size: 14px; color: var(--foreground); text-decoration: none; }
.hb-footer ul a:hover { text-decoration: underline; }
.hb-footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.hb-field { display: grid; gap: 8px; margin-bottom: 20px; }
.hb-field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hb-field input,
.hb-field textarea,
.hb-field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-editorial);
}
.hb-field input:focus,
.hb-field textarea:focus,
.hb-field select:focus { outline: none; border-bottom-color: var(--foreground); }

/* --------------------------------------------------------------------------
   Editor-only
   -------------------------------------------------------------------------- */

.hb-block-empty {
  border: 1px dashed var(--hairline);
  padding: 40px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
}

.editor-styles-wrapper .hb-shell { max-width: 100%; }
