@layer site-base {
@media (max-width: 1199px) {
  .site-header nav > ul.nav-list {
    display: none;
  }

  .site-header .nav-mobile {
    display: block;
    position: relative;
  }
}
}
@layer site-theme {
:root {
  --accent: #c8ff00;
  --accent-text: #09090b;
  --background: #ffffff;
  --text: #09090b;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --surface: #fafafa;
  --button-bg: #09090b;
  --button-text: #ffffff;
  --shadow-color: #09090b;
  --invert-bg: #09090b;
  --invert-text: #fafafa;
  --accent-2: #18181b;
  --accent-2-text: #d4d4d8;
  --accent-3: #fafafa;
  --accent-3-text: #09090b;
  --success: #047857;
  --error: #b91c1c;
  --status-text: #ffffff;
  --font-heading: "Syne", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-meta: "JetBrains Mono", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-size-xs-value: 0.75rem;
  --font-size-xs: calc(var(--font-size-xs-value) * var(--k-font-size-xs));
  --font-size-sm-value: 0.875rem;
  --font-size-sm: calc(var(--font-size-sm-value) * var(--k-font-size-sm));
  --font-size-md-value: 1rem;
  --font-size-md: calc(var(--font-size-md-value) * var(--k-font-size-md));
  --font-size-lg-value: 1.25rem;
  --font-size-lg: calc(var(--font-size-lg-value) * var(--k-font-size-lg));
  --font-size-xl-value: 3rem;
  --font-size-xl: calc(var(--font-size-xl-value) * var(--k-font-size-xl));
  --font-size-2xl-value: 4rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 6rem;
  --font-size-3xl: calc(var(--font-size-3xl-value) * var(--k-font-size-3xl));
  --space-1-value: 0.25rem;
  --space-1: calc(var(--space-1-value) * var(--k-space-1));
  --space-2-value: 0.5rem;
  --space-2: calc(var(--space-2-value) * var(--k-space-2));
  --space-3-value: 0.75rem;
  --space-3: calc(var(--space-3-value) * var(--k-space-3));
  --space-4-value: 1rem;
  --space-4: calc(var(--space-4-value) * var(--k-space-4));
  --space-5-value: 1.5rem;
  --space-5: calc(var(--space-5-value) * var(--k-space-5));
  --space-6-value: 2rem;
  --space-6: calc(var(--space-6-value) * var(--k-space-6));
  --space-7-value: 3rem;
  --space-7: calc(var(--space-7-value) * var(--k-space-7));
  --space-8-value: 6rem;
  --space-8: calc(var(--space-8-value) * var(--k-space-8));
  --radius: 0rem;
  --radius-button: 0px;
  --measure: 44rem;
  --gap: 1.5rem;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 6px 6px 0 0 var(--shadow-color);
  --focus: var(--text);
  --topbar-height: 2.25rem;
  --k-font-size-xs: 1;
  --k-font-size-sm: 1;
  --k-font-size-md: 1;
  --k-font-size-lg: 1;
  --k-font-size-xl: 1;
  --k-font-size-2xl: 1;
  --k-font-size-3xl: 1;
  --k-space-1: 1;
  --k-space-2: 1;
  --k-space-3: 1;
  --k-space-4: 1;
  --k-space-5: 1;
  --k-space-6: 1;
  --k-space-7: 1;
  --k-space-8: 1;
}
@media (max-width: 1023px) {
  :root {
    --k-font-size-lg: 0.95;
    --k-font-size-xl: 0.9;
    --k-font-size-2xl: 0.85;
    --k-font-size-3xl: 0.85;
    --k-space-5: 0.9;
    --k-space-6: 0.85;
    --k-space-7: 0.85;
    --k-space-8: 0.8;
  }
}
@media (max-width: 639px) {
  :root {
    --k-font-size-lg: 0.9;
    --k-font-size-xl: 0.85;
    --k-font-size-2xl: 0.78;
    --k-font-size-3xl: 0.7;
    --k-space-4: 0.9;
    --k-space-5: 0.8;
    --k-space-6: 0.75;
    --k-space-7: 0.7;
    --k-space-8: 0.65;
  }
}

/* --- Page: a heavy rule across the top, acid selection --- */

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

body {
  border-top: 4px solid var(--text);
  font-size: var(--font-size-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.is-style-inverted :focus-visible,
.is-style-ticker :focus-visible,
.is-style-terminal :focus-visible {
  outline-color: var(--accent);
}

/* The acid accent is a fill, not an ink: links are the text colour, underlined. Not buttons: this layer is above
   base.css, so a plain `a` here would beat the base button colours (dark text on the dark button). */
a:not(.button) {
  color: var(--text);
}

.block-rich-text a:not(.button) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.block-rich-text a:not(.button):hover {
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
}

main {
  padding-block: 0 var(--space-8);
}

/* A page made of Sections: bands meet edge to edge, the last one meets the footer. */
main > .block-section + .block-section {
  margin-block-start: 0;
}

main > .block-section:last-child {
  margin-block-end: calc(-1 * var(--space-8));
}

/* --- Header: a telemetry bar, then a sticky row of ruled cells --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--background);
  border-bottom: 1px solid var(--text);
}

/* The default header: the main row is a sticky Section, so the bar above it scrolls away and the row stays. */
.site-header > .block-section-sticky {
  background: var(--background);
  border-bottom: 1px solid var(--text);
}

/* A Section holding a header or footer bar takes no band padding (the bar has its own, as in base CSS). */
.block-section:has(> .block-section-inner > .wrap) {
  padding-block: 0;
}

/* The telemetry bar: small mono capitals on a ruled strip, with a dot that pulses. */
.block-section.is-style-topbar {
  display: flex;
  align-items: center;
  min-height: var(--topbar-height);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--text);
  background: var(--background);
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.is-style-topbar .block-stack {
  gap: var(--space-1) var(--space-5);
}

.is-style-topbar .block-rich-text {
  font-size: inherit;
}

.is-style-topbar .block-rich-text p {
  margin: 0;
}

.is-style-topbar .badge {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.is-style-topbar .badge-dot {
  background: var(--success);
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot {
    animation: kinetic-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes kinetic-pulse {
  50% {
    opacity: 0.3;
    transform: scale(1.6);
  }
}

/* The main row: the brand cell, the menu as ruled cells, then the call to action. */
.site-header-inner {
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  min-height: 4.5rem;
  padding-block: 0;
}

.site-header-inner > .block-stack {
  align-items: center;
  gap: var(--space-3);
  padding-inline-end: var(--space-6);
  border-inline-end: 1px solid var(--text);
}

/* The logo tile when there is no logo image: the mockup's small solid square (the letter is not drawn). */
.site-logo-tile {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0;
  background: var(--text);
  color: var(--text);
  font-size: 0;
}

.site-logo {
  height: 2rem;
}

.site-name {
  margin-inline-end: 0;
  font-size: var(--font-size-lg);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.site-header nav:not(.language-switcher) {
  display: flex;
  align-self: stretch;
  margin-inline-end: auto;
}

.site-header nav > ul {
  flex-wrap: nowrap;
  gap: 0;
  counter-reset: kinetic-nav;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header nav > ul > li {
  display: flex;
  border-inline-start: 1px solid var(--text);
  counter-increment: kinetic-nav;
}

.site-header nav > ul > li:last-child {
  border-inline-end: 1px solid var(--text);
}

.site-header nav > ul a {
  display: flex;
  align-items: center;
  padding-inline: var(--space-5);
  color: var(--text);
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.site-header nav > ul a::before {
  content: counter(kinetic-nav, decimal-leading-zero) '.';
  margin-inline-end: 0.5ch;
}

.site-header nav > ul a:hover,
.site-header nav > ul a[aria-current='page'] {
  background: var(--text);
  color: var(--background);
  text-decoration: none;
}

.language-switcher {
  display: flex;
  align-items: center;
  padding-inline: var(--space-4);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

.language-switcher a[aria-current] {
  background: var(--accent);
  color: var(--accent-text);
}

/* The call to action fills the row's height, in a padded cell like the mockup's. */
.site-header-inner > .block-button {
  display: flex;
  flex-shrink: 0;
  align-self: stretch;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
}

.site-header-inner > .block-button .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-block: 0;
}

@media (max-width: 767px) {
  .site-header-inner {
    gap: var(--space-4);
    min-height: 3.75rem;
  }

  .site-header-inner > .block-stack {
    margin-inline-end: auto;
    padding-inline-end: 0;
    border-inline-end: 0;
  }

  .site-header nav:not(.language-switcher) {
    align-items: center;
    margin-inline-end: 0;
  }
}

/* The row never wraps (a wrapped row would drop the button under the brand), so it makes room before it runs out:
   below the 1200px page width the menu becomes the menu button (the theme's `menuCollapseWidth`), from 768px laid
   out as on phones. The mockup's row (brand, four numbered cells, "Start Project") needs about 1,100px of the
   1,152px the page width leaves. The panel opens under the button, aligned to its start (the button sits beside the
   brand, not at the row's end). */
@media (min-width: 768px) and (max-width: 1199px) {
  .site-header nav:not(.language-switcher) {
    align-items: center;
    padding-inline: var(--space-4);
  }

  .site-header .nav-mobile .nav-mobile-list {
    inset-inline: 0 auto;
  }
}

/* The mobile menu (Step 94): a square mono button, and a ruled panel with a hard shadow. */
.nav-mobile-toggle {
  padding: var(--space-2) var(--space-4);
  border-color: var(--text);
  background: var(--text);
  color: var(--background);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-mobile-toggle:hover,
.nav-mobile[open] > .nav-mobile-toggle {
  border-color: var(--text);
  background: var(--accent);
  color: var(--accent-text);
}

.nav-mobile .nav-mobile-list {
  min-width: 14rem;
  padding: 0;
  border-color: var(--text);
  background: var(--background);
  box-shadow: var(--shadow-lg);
  counter-reset: kinetic-nav;
}

.nav-mobile .nav-mobile-list li {
  counter-increment: kinetic-nav;
}

.nav-mobile .nav-mobile-list li + li {
  border-top: 1px solid var(--text);
}

.nav-mobile .nav-mobile-list a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
}

.nav-mobile .nav-mobile-list a::before {
  content: counter(kinetic-nav, decimal-leading-zero) '.';
  margin-inline-end: 0.5ch;
}

.nav-mobile .nav-mobile-list a:hover,
.nav-mobile .nav-mobile-list a[aria-current='page'] {
  background: var(--text);
  color: var(--background);
}

/* --- Headings: Syne, uppercase, tight --- */

.block-heading,
.post-title,
.blog-title,
.post-card-title,
.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h1.block-heading,
h1.post-title,
h1.blog-title {
  font-size: clamp(2.25rem, 8vw, var(--font-size-3xl));
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2.block-heading {
  font-size: clamp(1.875rem, 5vw, var(--font-size-xl));
  line-height: 1;
}

h3.block-heading {
  font-weight: 700;
  line-height: 1.1;
}

h4.block-heading {
  font-weight: 700;
}

.block-rich-text h2 {
  font-size: var(--font-size-lg);
}

.block-rich-text h3,
.block-rich-text h4 {
  font-size: var(--font-size-md);
}

.block-rich-text li::marker {
  color: var(--text);
}

/* `*word*` in a heading: an acid highlight with the accent's text colour, as the mockup marks "radically fast". */
.block-heading em {
  padding-inline: 0.12em;
  background: var(--accent);
  color: var(--accent-text);
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.block-rich-text blockquote {
  padding-inline-start: var(--space-5);
  border-inline-start: 4px solid var(--accent);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Sections: ruled bands --- */

.block-section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--text);
}

.block-section[data-tone='dark'] {
  color: var(--invert-text);
  border-bottom-color: transparent;
}

.block-section.is-style-inverted {
  border-bottom-color: transparent;
}

.block-section-inner > .block + .block-grid,
.block-section-inner > .block + .block-columns,
.block-section-inner > .block + .block-card {
  margin-block-start: var(--space-7);
}

.block-section .block-grid {
  gap: var(--space-5);
}

.block-section .block-columns {
  gap: var(--space-6) var(--space-7);
}

.block-columns-col > .block + .block {
  margin-block-start: var(--space-4);
}

/* Grid lines: a 40px graph-paper grid on the chalk surface (the hero). The columns in it sit on its bottom line. */
.block-section.is-style-lines {
  background-color: var(--surface);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}

.is-style-lines .block-section-inner > .block-heading {
  margin-block: var(--space-5) 0;
}

.is-style-lines .block-columns {
  align-items: end;
  margin-block-start: var(--space-7);
}

.is-style-lines .block-rich-text.is-style-eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-end: 0.5rem;
  border: 1px solid var(--text);
  background: var(--accent);
}

/* The marquee band: a strip in the inverted colours; the list scrolls across it. */
.block-section.is-style-ticker {
  --background: var(--invert-bg);
  --text: var(--invert-text);
  --text-muted: color-mix(in srgb, var(--invert-text) 72%, var(--invert-bg));
  --border: color-mix(in srgb, var(--invert-text) 24%, var(--invert-bg));
  --surface: color-mix(in srgb, var(--invert-text) 8%, var(--invert-bg));
  padding-block: var(--space-4);
  padding-inline: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--invert-bg);
  background: var(--invert-bg);
  color: var(--invert-text);
}

.is-style-ticker > .block-section-inner {
  max-width: none;
}

/* Marquee: a bullet list that enters from the right and leaves on the left (the percentage padding is the width of
   the band, so the list starts just outside it and its own width carries it fully across). It pauses on hover and
   stands still, wrapped, for visitors who ask for less motion. */
.block-rich-text.is-style-marquee {
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 80%, var(--background));
  font-family: var(--font-meta);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.is-style-marquee ul {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0 0 0 100%;
  list-style: none;
  animation: kinetic-marquee 30s linear infinite;
}

.is-style-marquee li {
  display: flex;
  align-items: center;
  margin: 0;
  text-wrap: nowrap;
}

.is-style-marquee li::before {
  content: '\2022';
  margin-inline: var(--space-6);
  color: var(--accent);
}

.is-style-marquee li p {
  margin: 0;
}

.is-style-marquee:hover ul {
  animation-play-state: paused;
}

@keyframes kinetic-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* A seamless loop: the same list twice, side by side. Each copy is at least as wide as the band and slides left by
   exactly its own width, so when the first has gone the second stands where it began. */
.is-style-marquee:has(> ul + ul) {
  display: flex;
}

.is-style-marquee:has(> ul + ul) ul {
  flex: none;
  justify-content: space-around;
  width: auto;
  min-width: 100%;
  padding: 0;
  animation: kinetic-marquee-loop 40s linear infinite;
}

@keyframes kinetic-marquee-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-style-marquee ul,
  .is-style-marquee:has(> ul + ul) ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    padding: 0 var(--gap);
    animation: none;
  }

  .is-style-marquee:has(> ul + ul) ul + ul {
    display: none;
  }

  .is-style-marquee li:first-child::before {
    content: none;
  }
}

/* --- Buttons: square, mono capitals --- */

.button {
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.button:hover {
  filter: none;
  text-decoration: none;
}

.button-primary {
  border-color: var(--button-bg);
}

.button-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--text);
  color: var(--background);
}

.button-link {
  padding-inline: 0;
  border-color: transparent;
  text-decoration: underline;
}

.latest-posts-view-all {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* On the inverted colours the buttons flip: acid, or the text colour in the terminal (the mockup's intake button). */
.is-style-inverted .button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.is-style-inverted .button-primary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--background);
}

.is-style-inverted .button-secondary {
  border-color: var(--text);
}

/* --- Cards: ruled boxes, no shadows --- */

.block-card {
  border: 1px solid var(--text);
  background: var(--background);
  box-shadow: none;
}

.block-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.block-card-inner > .block {
  margin-block-start: 0;
}

.block-card .block-heading {
  font-weight: 700;
}

.block-card .block-rich-text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.block-card .block-rich-text p {
  margin: 0;
}

.block-card .block-rich-text p + p {
  margin-block-start: var(--space-2);
}

.is-style-inverted .block-card,
.block-card.is-style-inverted {
  border-color: var(--border);
}

/* The shared variants, restated (this layer is above the base one): chalk, graphite, inverted, outline and dots. */
.block-card.is-style-surface {
  background: var(--surface);
}

.block-card.is-style-muted {
  background: var(--surface);
  color: var(--text);
}

.block-card.is-style-inverted {
  background: var(--invert-bg);
  color: var(--invert-text);
}

.block-card.is-style-outlined {
  background: transparent;
}

.block-card.is-style-dots,
.block-section.is-style-dots {
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px);
  background-size: 0.5rem 0.5rem;
}

.block-image img {
  display: block;
  border-radius: 0;
}

.block-image figcaption {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

.block-divider {
  border-color: var(--text);
}

/* --- Own variants --- */

/* Eyebrow: a small mono label in capitals. */
.block-rich-text.is-style-eyebrow {
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.block-rich-text.is-style-eyebrow p {
  margin: 0;
}

.block-card .block-rich-text.is-style-eyebrow {
  font-size: 0.6875rem;
}

/* Lead: the larger introduction under a heading. */
.block-rich-text.is-style-lead {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  line-height: 1.4;
}

.block-card .block-rich-text.is-style-lead p,
.block-rich-text.is-style-lead p {
  font-size: inherit;
  line-height: inherit;
}

/* Giant figure: a huge Syne number; the italic part (the unit) becomes an acid chip. */
.block-rich-text.is-style-figure {
  color: var(--text);
}

.block-rich-text.is-style-figure p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.block-card.is-style-inverted .block-rich-text.is-style-figure p {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

.block-card .block-rich-text.is-style-figure {
  font-size: inherit;
}

.is-style-figure em {
  margin-inline-start: 0.08em;
  padding: 0.04em 0.2em;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.45em;
  font-style: normal;
  letter-spacing: 0;
}

/* A stat cell is narrow: its figure scales with the viewport but stays below the hero size, so the unit chip (M+, %)
   never leaves the cell. */
.is-style-stat .block-rich-text.is-style-figure p {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
}

/* Spec row: a label and its value on one line, mono capitals, under a rule. */
.block-stack.is-style-spec {
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.is-style-spec .block-rich-text {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  text-transform: uppercase;
}

.is-style-spec .block-rich-text p {
  margin: 0;
}

.is-style-spec .block-rich-text:first-child {
  color: var(--text-muted);
}

.is-style-spec .block-rich-text:last-child {
  color: var(--text);
  font-weight: 700;
  text-align: end;
}

.is-style-inverted .is-style-spec .block-rich-text a:not(.button) {
  color: var(--accent);
  text-decoration-thickness: 1px;
}

.is-style-inverted .is-style-spec .block-rich-text a:not(.button):hover {
  background: var(--accent);
  color: var(--accent-text);
}

/* Cell footer: sits at the bottom of its cell under a rule. */
.block-stack.is-style-foot {
  width: 100%;
  margin-block-start: auto;
  padding-block-start: var(--space-5);
  border-top: 1px solid var(--border);
}

/* Ruled cells: a grid whose lines are 1px gaps over the text colour, one frame around it. Each cell is a card. */
.block-grid.is-style-lattice,
.block-section .block-grid.is-style-lattice {
  gap: 1px;
  border: 1px solid var(--text);
  background: var(--text);
}

.is-style-lattice > .block-card {
  display: flex;
  flex-direction: column;
  border: 0;
}

.is-style-lattice > .block-card > .block-card-inner {
  flex: 1;
  padding: var(--space-6) var(--space-6) var(--space-7);
}

.is-style-lattice > .block-card-span-2 .block-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
}

.is-style-lattice > .block-card-span-2 .block-rich-text {
  max-width: 36rem;
}

.is-style-lattice > .block-card .block-heading {
  font-size: var(--font-size-lg);
}

/* Stat cell: label and figure above, a ruled title and line below. */
.block-card.is-style-stat > .block-card-inner {
  justify-content: space-between;
  gap: var(--space-7);
}

.is-style-stat .block-heading {
  font-family: var(--font-meta);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.is-style-stat .block-stack {
  gap: var(--space-2);
}

.is-style-stat .block-rich-text.is-style-eyebrow + .block-rich-text {
  margin-block-start: var(--space-2);
}

.is-style-stat .block-rich-text {
  font-size: var(--font-size-xs);
}

/* Matrix table: a framed card of rows. A row is Columns; it inverts on hover and the domain tag turns acid. */
.block-card.is-style-matrix {
  border-color: var(--text);
}

.block-card.is-style-matrix > .block-card-inner {
  gap: 0;
  padding: 0;
}

.block-columns.is-style-row,
.block-columns.is-style-row-head {
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--text);
  transition:
    background-color 0.15s,
    color 0.15s;
}

.block-columns.is-style-row-head {
  display: none;
  padding-block: var(--space-3);
  border-top: 0;
  background: var(--surface);
}

@media (min-width: 768px) {
  .block-columns.is-style-row,
  .block-columns.is-style-row-head {
    grid-template-columns: 4fr 3fr 3fr 2fr;
  }

  .block-columns.is-style-row-head {
    display: grid;
  }
}

.is-style-row-head .block-rich-text {
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.is-style-row-head > .block-columns-col:last-child,
.is-style-row > .block-columns-col:last-child {
  text-align: end;
}

.block-columns.is-style-row:hover {
  background: var(--text);
  color: var(--background);
}

.is-style-row .block-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-lg);
  line-height: 1.1;
  text-transform: uppercase;
}

.is-style-row .block-heading::before {
  content: '';
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border: 1px solid var(--text);
  background: var(--accent);
}

.is-style-row .block-rich-text {
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

.is-style-row > .block-columns-col:last-child .block-rich-text {
  color: inherit;
  font-weight: 700;
}

.block-columns.is-style-row:hover .block-rich-text {
  color: var(--background);
}

.block-columns.is-style-row:hover .badge {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

/* A link in a row (the year cell's "2026 →" to a case study) makes the whole row its target, as the mockup's rows
   are clickable: the link's box is stretched over the row. It keeps the row's colours and turns acid on hover, like
   the mockup's arrow. */
.block-columns.is-style-row:has(a:not(.button)) {
  position: relative;
  cursor: pointer;
}

.is-style-row .block-rich-text a:not(.button) {
  color: inherit;
  text-decoration: none;
}

.is-style-row .block-rich-text a:not(.button)::after {
  content: '';
  position: absolute;
  inset: 0;
}

.is-style-row .block-rich-text a:not(.button):hover,
.block-columns.is-style-row:hover .block-rich-text a:not(.button) {
  background: transparent;
  color: var(--accent);
}

.block-columns.is-style-row:has(a:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.is-style-row .block-rich-text a:focus-visible {
  outline: none;
}

/* Price row: one engagement scope with its price. */
.block-card.is-style-scope > .block-card-inner {
  padding: var(--space-4) var(--space-5);
}

.is-style-scope .block-stack {
  gap: var(--space-3) var(--space-5);
}

.is-style-scope .block-stack > .block-rich-text {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text);
}

.is-style-scope .block-stack .block-stack {
  gap: var(--space-1);
}

.is-style-scope .block-stack .block-stack .block-rich-text:last-child {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

.is-style-scope .block-stack .block-stack .block-rich-text:first-child {
  color: var(--text);
}

/* Terminal: the intake form's card, always inverted (its colours are re-pointed like an inverted band's). */
.block-card.is-style-terminal {
  --background: var(--invert-bg);
  --text: var(--invert-text);
  --text-muted: color-mix(in srgb, var(--invert-text) 72%, var(--invert-bg));
  --border: color-mix(in srgb, var(--invert-text) 24%, var(--invert-bg));
  --surface: color-mix(in srgb, var(--invert-text) 8%, var(--invert-bg));
  border-color: var(--border);
  background: var(--invert-bg);
  color: var(--invert-text);
}

.block-card.is-style-terminal > .block-card-inner {
  padding: var(--space-7) var(--space-6);
}

.is-style-terminal .block-form {
  max-width: none;
}

.is-style-terminal .button-primary,
.is-style-terminal .form-submit {
  width: 100%;
  justify-content: center;
  border-color: var(--text);
  background: var(--text);
  color: var(--background);
  padding-block: var(--space-4);
}

.is-style-terminal .button-primary:hover,
.is-style-terminal .form-submit:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

/* --- Badges: square mono tags --- */

.badge {
  border-radius: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tile {
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-meta);
  font-weight: 700;
}

.button .tile {
  border: 0;
  background: transparent;
  color: inherit;
}

.accordion-item {
  border-color: var(--text);
}

.accordion-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-transform: uppercase;
}

.accordion-title::after {
  color: var(--text);
}

/* --- Archives and posts --- */

.blog-header {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--text);
}

.blog-index,
.post-article {
  padding-block: var(--space-7) 0;
}

.post-article > .post-header,
.post-article > .post-body {
  max-width: var(--measure);
  margin-inline: auto;
}

.post-card {
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--background);
  transition: box-shadow 0.15s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
}

.post-card-content {
  padding: var(--space-5);
}

.post-card-date,
.post-date {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card-tag,
.post-tag {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pagination a {
  border-radius: 0;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagination a:hover {
  border-color: var(--text);
  background: var(--accent);
  color: var(--accent-text);
}

.post-fields {
  padding-block: var(--space-4);
  border-block: 1px solid var(--text);
}

/* --- Forms: mono labels, ruled fields, acid focus --- */

.form-field label {
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field-checkbox label {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.form-field input[type='text'],
.form-field input[type='email'],
.form-field input[type='tel'],
.form-field input[type='date'],
.form-field textarea,
.form-field select {
  padding: var(--space-3) var(--space-4);
  border-color: var(--text);
  border-radius: 0;
  background: var(--background);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

.is-style-inverted .form-field input[type='text'],
.is-style-inverted .form-field input[type='email'],
.is-style-inverted .form-field input[type='tel'],
.is-style-inverted .form-field input[type='date'],
.is-style-inverted .form-field textarea,
.is-style-inverted .form-field select,
.is-style-terminal .form-field input[type='text'],
.is-style-terminal .form-field input[type='email'],
.is-style-terminal .form-field input[type='tel'],
.is-style-terminal .form-field input[type='date'],
.is-style-terminal .form-field textarea,
.is-style-terminal .form-field select {
  border-color: var(--border);
  background: var(--surface);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-success {
  border-color: var(--success);
  border-radius: 0;
  background: var(--success);
  color: var(--status-text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.form-error {
  border-color: var(--error);
  border-radius: 0;
  background: var(--error);
  color: var(--status-text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Footer: ruled, mono --- */

.site-footer {
  border-top: 1px solid var(--text);
  background: var(--background);
  color: var(--text);
  padding-block: var(--space-7);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

.site-footer .wrap {
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.site-footer-nav ul {
  gap: var(--space-2) var(--space-5);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer-nav a {
  color: var(--text);
}

.site-footer-text {
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
}

/* The four columns above the footer line. */
.site-footer > .block-section {
  padding-block: 0 var(--space-7);
  margin-block-end: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.site-footer .block-columns {
  gap: var(--space-6);
}

.site-footer .block-columns-col > .block + .block {
  margin-block-start: var(--space-3);
}

.site-footer .block-heading {
  color: var(--text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.site-footer .block-rich-text {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.8;
}

.site-footer .block-rich-text p {
  margin: 0;
}

.site-footer .block-rich-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .block-rich-text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

}
