/* ============================================================
   albimeta.com — editorial reskin
   Structure: brigada.dev editorial grid
   Identity:  monochrome — black / white / greys
   Shared by: index.html, case-studies/*, privacy.html, impressum.html
   ============================================================ */

:root {
  color-scheme: dark;

  /* --- Accent = pure contrast (monochrome: white on dark, flips per theme) --- */
  --accent: #ffffff;
  --accent-strong: #ffffff;
  --accent-deep: rgba(255, 255, 255, 0.82);
  --accent-soft: rgba(255, 255, 255, 0.12);

  /* Brand mark dot — monochrome */
  --brand-dot: #ffffff;
  --brand-glow: rgba(255, 255, 255, 0.35);

  /* Scroll beam — glossy line that sweeps the background on scroll */
  --beam-core: rgba(255, 255, 255, 0.18);
  --beam-edge: rgba(255, 255, 255, 0.05);

  /* --- Theme surface (default = black) --- */
  --paper: #000000;
  --paper-strong: #121214;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.54);
  --heading: #ffffff;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(255, 255, 255, 0.24);
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-bg-soft: rgba(255, 255, 255, 0.035);
  --panel-bg-strong: rgba(255, 255, 255, 0.07);
  --neutral-hover: rgba(255, 255, 255, 0.08);
  --grid-line: rgba(255, 255, 255, 0.024);
  --nav-bg: rgba(0, 0, 0, 0.7);
  --nav-bg-scrolled: rgba(0, 0, 0, 0.92);
  --hero-wash: rgba(255, 255, 255, 0.05);
  --ghost-ink: rgba(255, 255, 255, 0.2);
  --low-ink: rgba(255, 255, 255, 0.46);
  --cue-line: rgba(255, 255, 255, 0.2);
  --tag-muted: rgba(255, 255, 255, 0.44);
  --shot-bg: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 1.4rem 3.8rem rgba(0, 0, 0, 0.6);

  --btn-bg: transparent;
  --btn-fg: #ffffff;
  --btn-bg-hover: #ffffff;
  --btn-fg-hover: #000000;
  --btn-border: #ffffff;

  --radius: 0.25rem;
  --radius-chip: 2px;
  --container: 75rem;
  --narrow: 44rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --scroll: 0;
}

:root[data-theme="light"] {
  color-scheme: light;
  --accent: #0a0a0a;
  --accent-strong: #000000;
  --accent-deep: rgba(10, 10, 10, 0.82);
  --accent-soft: rgba(10, 10, 10, 0.1);
  --brand-dot: #0a0a0a;
  --brand-glow: rgba(10, 10, 10, 0.25);
  --beam-core: rgba(10, 10, 10, 0.1);
  --beam-edge: rgba(10, 10, 10, 0.03);
  --paper: #ffffff;
  --paper-strong: #f4f4f5;
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.74);
  --muted: rgba(10, 10, 10, 0.56);
  --heading: #000000;
  --surface: rgba(10, 10, 10, 0.04);
  --surface-strong: rgba(10, 10, 10, 0.07);
  --line: rgba(10, 10, 10, 0.14);
  --line-dark: rgba(10, 10, 10, 0.26);
  --panel-bg: rgba(10, 10, 10, 0.022);
  --panel-bg-soft: #ffffff;
  --panel-bg-strong: rgba(10, 10, 10, 0.05);
  --neutral-hover: rgba(10, 10, 10, 0.05);
  --grid-line: rgba(10, 10, 10, 0.03);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
  --hero-wash: rgba(10, 10, 10, 0.04);
  --ghost-ink: rgba(10, 10, 10, 0.18);
  --low-ink: rgba(10, 10, 10, 0.5);
  --cue-line: rgba(10, 10, 10, 0.2);
  --tag-muted: rgba(10, 10, 10, 0.46);
  --shot-bg: #ffffff;
  --shadow-soft: 0 1.4rem 3.8rem rgba(10, 10, 10, 0.1);
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-bg-hover: rgba(10, 10, 10, 0.82);
  --btn-fg-hover: #ffffff;
  --btn-border: #0a0a0a;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  counter-reset: sec -1;
  font-family: var(--font-sans);
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper);
  background-size: 6.25rem 100%;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

p {
  margin: 0;
}

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

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

/* --- Containers --- */
.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.container-narrow {
  width: min(var(--narrow), calc(100% - 3rem));
}

.container-legal {
  width: min(60rem, calc(100% - 3rem));
}

/* --- Mono labels (kicker / mini-label / service-tag) --- */
.kicker,
.kicker-dark,
.mini-label,
.service-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker,
.kicker-dark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--muted);
  counter-increment: sec;
}

.kicker::before,
.kicker-dark::before {
  content: "\00a7 " counter(sec, decimal-leading-zero);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mini-label {
  color: var(--muted);
}

.service-tag {
  color: var(--muted);
}

/* --- Headings --- */
.display,
h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

/* Display voice: high-contrast editorial serif — h1/h2 only; h3 stays sans */
.display,
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.display em,
h1 em,
h2 em {
  font-style: italic;
  color: var(--ink-soft);
}

h2 {
  font-size: clamp(2.25rem, 1.4rem + 2.9vw, 3.55rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

/* --- Scroll progress --- */
/* Glossy vertical line that drifts across the page as you scroll */
.scroll-beam {
  position: fixed;
  top: -12vh;
  left: -10vw;
  z-index: 6;
  width: 18vw;
  max-width: 260px;
  height: 124vh;
  pointer-events: none;
  opacity: 0.7;
  background: linear-gradient(
    104deg,
    transparent 43%,
    var(--beam-edge) 47%,
    var(--beam-core) 50%,
    var(--beam-edge) 53%,
    transparent 57%
  );
  filter: blur(5px);
  transform: translate3d(calc(var(--scroll, 0) * 122vw), 0, 0);
  will-change: transform;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.32);
}

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.brand:hover .brand-mark {
  border-color: var(--accent);
}

.brand-mark span {
  position: static;
}

.brand-mark span:last-child {
  color: var(--muted);
  opacity: 1;
}

/* Teal identity dot — echoes the favicon (A + teal dot) */
.brand-mark::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-dot);
  box-shadow: 0 0 0 2px var(--paper), 0 0 8px var(--brand-glow);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.text-link:hover,
.back-link:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-icon-link {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav-icon-link:hover,
.theme-toggle:hover {
  color: var(--muted);
}

.nav-icon-link::after {
  display: none;
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-border);
}

.button-solid:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  box-shadow: 0 0.7rem 1.8rem var(--accent-soft);
}

.button-outline {
  border-color: var(--line-dark);
  color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  border-color: var(--accent);
}

.nav-cta {
  position: relative;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
}

.nav-cta::after {
  content: "\2192";
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.nav-cta:hover::after {
  transform: translateX(0.18rem);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.18s ease;
}

.icon-button:hover {
  color: var(--muted);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.18s ease;
}

.theme-icon {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

.windows-mark {
  display: grid;
  grid-template-columns: repeat(2, 0.42rem);
  grid-template-rows: repeat(2, 0.42rem);
  gap: 0.1rem;
}

.windows-mark span {
  background: currentColor;
}

.github-mark {
  width: 1.12rem;
  height: 1.12rem;
  fill: currentColor;
}

/* --- Text links --- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s ease, color 0.18s ease;
}

.text-link:hover {
  background-size: 100% 1.5px;
}

.text-link::after {
  content: "\2192";
  font-size: 0.85rem;
  transition: transform 0.18s ease;
}

.text-link:hover::after {
  transform: translateX(0.2rem);
}

.text-link-light {
  color: var(--ink);
}

.action-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.action-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(42rem 26rem at 88% -12%, var(--hero-wash), transparent 70%),
    var(--paper);
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 55%);
  opacity: 0.55;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.display {
  max-width: 18ch;
  margin-top: 1.4rem;
  font-size: clamp(3.2rem, 1.5rem + 7vw, 7.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.034em;
}

/* Centered hero variant (homepage) */
.hero .hero-main {
  text-align: center;
}
.hero .hero-main .kicker {
  justify-content: center;
}
.hero .hero-main .display,
.hero .hero-main .lede,
.hero .hero-main .sublede,
.hero .hero-main .rotating-tagline {
  margin-left: auto;
  margin-right: auto;
}
.hero .hero-main .rotating-tagline {
  display: block;
  text-align: center;
}

.rotating-tagline {
  margin: 1.1rem 0 0;
  font-size: clamp(1.35rem, 0.7rem + 1.9vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variant-ligatures: none;
}

.scramble-stage {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  letter-spacing: -0.005em;
}

.scramble-ghost {
  visibility: hidden;
  white-space: nowrap;
  display: inline-block;
}

.scramble-text {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--ink);
}

.scramble-text .dud {
  color: var(--ink-soft);
  opacity: 0.7;
}

.text-reveal-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.26em;
}

.title-word {
  position: relative;
  display: inline-block;
  color: transparent;
}

.title-word-ghost {
  color: var(--ghost-ink);
}

.title-word-fill {
  position: absolute;
  inset: 0;
  color: var(--ink);
  opacity: 0.18;
  transition: opacity 0.16s linear;
}

.lede {
  max-width: 40rem;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.6;
}

.sublede {
  max-width: 30rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.7rem;
}

.hero-actions-center {
  justify-content: center;
}

.hero-actions .text-link {
  margin-top: 0;
}

.hero-aside {
  display: grid;
  gap: 1.6rem;
  align-content: start;
  padding-top: 0.4rem;
}

.proof-panel {
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line-dark);
}

.proof-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.proof-list li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.proof-list span {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-weight: 600;
}

.hero .mini-label {
  color: var(--low-ink);
}

/* --- Sections --- */
.section {
  scroll-margin-top: 4.5rem;
  padding: 5.75rem 0;
}

.section-header {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-bottom: 2.1rem;
}

.section-header h2 {
  max-width: 20ch;
  margin-top: 0.85rem;
}

.section-intro {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Proof strip --- */
.proof-strip {
  border-block: 1px solid var(--line);
  padding-top: 1.6rem;
}

.proof-strip-lead {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  color: var(--tag-muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.proof-strip-grid div {
  min-height: 7.5rem;
  padding: 1.5rem 1.3rem;
  border-right: 1px solid var(--line);
}

.proof-strip-grid div:last-child {
  border-right: 0;
}

.proof-strip-grid strong {
  display: block;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.proof-strip-grid span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* --- Contact form (with Turnstile) --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 2.1rem 0 1.4rem;
  text-align: left;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-field input,
.contact-field textarea {
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.4;
  padding: 0.75rem 0.9rem;
  background: var(--paper-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--line-dark);
  background: var(--paper);
}

.contact-field textarea {
  resize: vertical;
  min-height: 7rem;
  font-family: inherit;
}

.contact-form .cf-turnstile {
  min-height: 65px;
}

.contact-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 0.2rem;
}

.contact-form-actions .button {
  align-self: flex-start;
}

.contact-form-actions .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form-status {
  margin: 0;
  min-height: 1.1em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-form-status.is-success { color: var(--ink); }
.contact-form-status.is-error   { color: #ef4444; }

.contact-alt-lead {
  margin: 1.6rem 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Featured work (below hero) --- */
.featured-work {
  border-block: 1px solid var(--line);
  padding: 5rem 0 5.25rem;
  background: var(--paper);
  scroll-margin-top: 4.5rem;
}

.featured-work-head {
  margin-bottom: 1.3rem;
}

.featured-work-lead,
.tech-strip-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fw-slash {
  color: var(--accent);
  opacity: 0.75;
  margin-right: 0.35rem;
}

.featured-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.work-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.3rem 1.2rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.work-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    14rem 14rem at var(--spot-x, 50%) var(--spot-y, 0%),
    var(--accent-soft),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.work-tile:hover,
.work-tile:focus-visible {
  border-color: var(--line-dark);
  transform: translateY(-2px);
  outline: none;
}

.work-tile:hover::before,
.work-tile:focus-visible::before {
  opacity: 1;
}

.work-tile:hover .work-tile-arrow,
.work-tile:focus-visible .work-tile-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.work-tile-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-tile-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--heading);
}

.work-tile-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.work-tile-stack {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--low-ink);
}

.work-tile-metric {
  margin: 0;
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.work-tile-metric span {
  color: var(--ink);
  font-weight: 500;
}

.work-tile-arrow {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--low-ink);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

/* Tech-stack strip below tiles */
.tech-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.tech-strip-label {
  margin: 0;
  white-space: nowrap;
}

.tech-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-strip-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
}

@media (max-width: 1023px) {
  .featured-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .featured-work-grid {
    grid-template-columns: 1fr;
  }
  .tech-strip {
    gap: 0.4rem 0.6rem;
  }
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  transition: border-color 0.2s ease;
}

.testimonial-card:hover {
  border-color: var(--line-dark);
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.6;
}

.testimonial-card blockquote p::before {
  content: "\201C";
  color: var(--accent);
  margin-right: 0.12em;
  font-weight: 600;
}

.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.testimonial-card figcaption span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Fit (who for / who not for) --- */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fit-panel {
  position: relative;
  padding: 1.6rem 1.5rem;
}

.fit-panel:first-child {
  border-right: 1px solid var(--line);
}

.fit-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cue-line);
}

.fit-panel:first-child::before {
  background: var(--accent);
}

.fit-panel h2 {
  max-width: 13ch;
  margin-top: 0.7rem;
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.15rem);
}

.fit-panel ul {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.15rem 0 0;
  list-style: none;
}

.fit-panel li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.5;
}

.fit-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.32rem;
  height: 0.32rem;
  background: var(--accent);
}

.fit-panel-muted {
  background: var(--panel-bg);
}

.fit-panel-muted li::before {
  background: var(--tag-muted);
}

/* --- Services / expertise --- */
.section-services {
  position: relative;
}

.services-shell {
  display: grid;
  grid-template-columns: minmax(17rem, 0.74fr) minmax(0, 1.26fr);
  gap: 2.2rem;
  align-items: start;
}

.services-lead {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1.1rem;
}

.services-lead .section-header {
  margin-bottom: 0;
}

.services-lead .section-header h2 {
  max-width: 13ch;
}

.pain-panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.pain-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}

.pain-panel ul {
  display: grid;
  gap: 0.9rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.pain-panel li {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pain-panel li strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
}

.pain-panel li span {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: 1.4rem 1.35rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.2s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover,
.service-card.is-active {
  background: var(--panel-bg-strong);
}

.service-card:hover::after,
.service-card.is-active::after {
  opacity: 1;
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.service-card-top span {
  font-family: var(--font-mono);
  color: var(--tag-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card h3 {
  max-width: 17ch;
  margin-top: 1.5rem;
}

.service-card > p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.service-card-bottom {
  display: grid;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.service-card-bottom strong {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card-bottom span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-reset: flow-step;
}

.service-flow span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 5.6rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  counter-increment: flow-step;
}

.service-flow span::before {
  content: counter(flow-step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-flow span:last-child {
  border-right: 0;
}

.service-flow span:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -0.6rem;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 0.78rem;
  z-index: 2;
}

/* --- Projects / build cards --- */
.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.build-card {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-height: 100%;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  transition: transform 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.build-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.build-card h3 {
  max-width: 18ch;
}

.build-card h3 a {
  color: inherit;
  text-decoration: none;
  background-image: none;
  transition: color 0.18s ease;
}

.build-card h3 a:hover,
.build-card h3 a:focus-visible {
  color: var(--accent);
}

.build-card p.build-outcome {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0.55rem 0.8rem;
  border-left: 2px solid var(--accent);
  background: var(--panel-bg-strong);
}

.build-card p {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.build-card p strong {
  color: var(--ink);
  font-weight: 600;
}

.build-card ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0.2rem 0 0;
  list-style: none;
}

.build-card-dark {
  background: var(--paper-strong);
}

.build-card-dark:hover {
  border-color: var(--accent);
}

/* --- Stack chips --- */
ul.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0.2rem 0 0;
  list-style: none;
}

ul.stack-chips li {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  line-height: 1.4;
}

.build-card .stack-chips li::before,
.build-card .build-metrics li::before {
  content: none;
}

.stack-chips-light li {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--ink-soft);
}

/* --- Metric rows --- */
ul.build-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  padding: 0.9rem 0 0;
  margin: 0.4rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

ul.build-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0;
  min-width: 4.5rem;
}

.build-metrics li strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.build-metrics li span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Engagements --- */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.engagement-card {
  padding: 1.5rem 1.1rem;
  border-top: 1px solid var(--line-dark);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.engagement-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-2px);
}

.engagement-card .mini-label {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.engagement-card h3 {
  margin-top: 0.7rem;
}

.engagement-card h3 + p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

/* --- Featured case study --- */
.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
  gap: 1.4rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.featured-case-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.featured-case-copy h3 {
  max-width: 24ch;
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem);
}

.featured-case-copy p:last-child {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.featured-case .stack-chips {
  margin-top: 0.4rem;
}

.featured-case-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-case-stats div {
  min-height: 7rem;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.featured-case-stats div:nth-child(2n) {
  border-right: 0;
}

.featured-case-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.featured-case-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.featured-case-stats span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-case-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.featured-case-grid div {
  padding: 1.2rem 1.2rem 0;
  border-right: 1px solid var(--line);
}

.featured-case-grid div:last-child {
  border-right: 0;
}

.featured-case-grid span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-case-grid p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.case-link-row {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* --- FAQ --- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-item summary span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.8rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Contact --- */
.contact-section {
  background: var(--paper-strong);
}

.contact-block {
  text-align: center;
}

.contact-block .kicker {
  justify-content: center;
}

.contact-block h2 {
  margin-top: 0.7rem;
}

.contact-block p:nth-of-type(2) {
  margin: 1rem auto 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.contact-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* --- Contact centerpiece: the email address as the brand gesture --- */
.contact-email-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-top: 2.3rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 0.9rem + 4.8vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--heading);
  border-bottom: 1px solid var(--line-dark);
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  border-bottom-color: var(--accent);
}

.contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-copy:hover,
.contact-copy:focus-visible {
  color: var(--ink);
  border-color: var(--line-dark);
}

.contact-copy svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.footer-meta a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-meta a:hover {
  color: var(--ink);
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(1.8rem) scale(0.986);
  filter: blur(7px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 0.7, 0.16, 1),
    transform 0.85s cubic-bezier(0.22, 0.7, 0.16, 1),
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- Case study page --- */
.case-hero {
  padding: 6.5rem 0 2.6rem;
  border-bottom: 1px solid var(--line);
}

.case-title {
  margin-top: 0.8rem;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.case-lede {
  margin-top: 1.1rem;
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.6;
}

.case-hero .stack-chips {
  margin-top: 1.4rem;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin: 1.6rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.case-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 6rem;
}

.case-metrics li strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
}

.case-metrics li span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-article {
  padding: 2.8rem 0 4.4rem;
}

.case-section {
  margin-top: 2.4rem;
}

.case-section:first-child {
  margin-top: 0;
}

.case-section h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.case-section h3 {
  font-size: 1.12rem;
  margin-top: 1.6rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.case-section p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.68;
  margin-top: 0.7rem;
}

.case-section ul,
.case-section ol {
  margin: 0.85rem 0 0;
  padding-left: 1.3rem;
  color: var(--ink-soft);
}

.case-section li {
  margin: 0.5rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.case-section li strong {
  color: var(--ink);
  font-weight: 600;
}

.case-section .stack-chips {
  margin: 0.4rem 0 1rem;
}

.case-cta {
  margin-top: 3rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.case-cta h2 {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.case-cta .hero-actions {
  margin-top: 1.1rem;
}

/* --- Field Notes (section hub + article chrome) ---
   Reuses .case-hero / .case-article / .work-tile / .featured-work-grid / .case-cta.
   Only the section-specific extras live here. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.field-notes-promise {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.field-notes-list-section {
  padding-top: 2.8rem;
}

.field-notes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-note-meta {
  margin: 0;
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.field-note-card.is-coming-soon {
  border-style: dashed;
  cursor: default;
}

.field-notes-cta {
  margin-top: 2.4rem;
}

/* Article byline (Field Note pages) */
.field-note-byline {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* "The boring decision" callout */
.boring-callout {
  margin: 2rem 0 0.4rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.boring-callout-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.boring-callout-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--heading);
}

.field-note-backline {
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .field-notes-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Legal pages --- */
.legal-body {
  background: var(--paper);
}

.legal-main {
  padding-top: 3rem;
  padding-bottom: 3.4rem;
}

.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.legal-hero,
.legal-card,
.notice-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.legal-hero {
  margin-top: 1.4rem;
}

.legal-hero p:last-child,
.legal-copy p,
.notice-card li {
  color: var(--muted);
}

.legal-grid,
.legal-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-card h2,
.notice-card h2 {
  font-size: 1.28rem;
}

.legal-copy {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.muted-inline {
  color: var(--muted);
}

.notice-card {
  background: var(--accent-soft);
  border-color: var(--line-dark);
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .hero-layout,
  .featured-case,
  .services-shell {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip-grid div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .services-lead {
    position: static;
  }

  .build-grid,
  .engagement-grid,
  .featured-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-case-grid div:nth-child(2) {
    border-right: 0;
  }

  .featured-case-grid div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .nav-row {
    grid-template-columns: auto 1fr auto;
  }

  .nav-cta {
    display: none;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .container-narrow,
  .container-legal {
    width: min(var(--container), calc(100% - 1.6rem));
  }

  .nav-row {
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .nav-tools {
    grid-row: 1;
    grid-column: 2;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .proof-strip-grid,
  .fit-grid,
  .service-grid,
  .build-grid,
  .engagement-grid,
  .featured-case-stats,
  .featured-case-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip-grid div,
  .fit-panel:first-child,
  .service-card,
  .featured-case-stats div,
  .featured-case-grid div {
    border-right: 0;
  }

  .proof-strip-grid div,
  .featured-case-stats div,
  .featured-case-grid div {
    border-bottom: 1px solid var(--line);
  }

  .proof-strip-grid div:last-child,
  .featured-case-stats div:last-child,
  .featured-case-grid div:last-child {
    border-bottom: 0;
  }

  .featured-case-grid div:last-child {
    grid-column: auto;
    border-top: 0;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 1.1rem;
  }

  .service-flow {
    grid-template-columns: 1fr;
  }

  .service-flow span {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-flow span:not(:last-child)::after {
    display: none;
  }

  .service-flow span:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .status-dot,
  .hero-manifest .manifest-rows li {
    animation: none;
  }
}

/* ============================================================
   Hero v2 — asymmetric editorial layout + signature manifest
   ============================================================ */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  align-content: start;
  text-align: left;
}

.hero-copy .kicker {
  justify-content: flex-start;
}

.hero-copy .display {
  max-width: 16ch;
  margin-top: 1.1rem;
  font-size: clamp(3rem, 1.1rem + 5.6vw, 5.7rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* teal full-stop accent on the headline */
.hero-copy .display .dot {
  color: var(--accent);
}

.hero-copy .rotating-tagline {
  margin: 1.15rem 0 0;
  text-align: left;
}

.hero-copy .lede {
  margin-top: 1.25rem;
  max-width: 42rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin: 1.7rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 1px solid var(--line);
}

.hero-proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-proof strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--heading);
}

.hero-proof em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--ink-soft);
}

.hero-proof span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-copy .hero-actions {
  justify-content: flex-start;
}

/* --- Signature panel: systems in production --- */
.hero-manifest {
  position: relative;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--panel-bg-strong), var(--panel-bg-soft)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-manifest::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 62%);
  opacity: 0.75;
}

.manifest-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.manifest-head .fw-slash {
  color: var(--accent);
  opacity: 1;
}

.manifest-rows {
  display: grid;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}

.manifest-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.62rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.manifest-rows li + li {
  border-top: 1px dashed var(--line);
}

.manifest-rows .m-name {
  color: var(--ink);
  font-weight: 500;
}

.manifest-rows .m-arrow {
  color: var(--accent);
}

.manifest-rows .m-val {
  color: var(--muted);
  text-align: right;
}

.manifest-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.status-dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.6s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-glow); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-manifest {
    max-width: 34rem;
  }
}

@media (max-width: 760px) {
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.2rem;
  }

  .hero-proof li {
    padding-left: 0;
    border-left: 0;
  }

  /* Stack manifest rows so mono values never clip on narrow screens */
  .manifest-rows li {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  .manifest-rows .m-arrow {
    display: none;
  }

  .manifest-rows .m-val {
    text-align: left;
    color: var(--ink-soft);
  }
}

/* --- Brand wordmark H1 + role line --- */
.hero-copy .brand-display {
  letter-spacing: -0.02em;
}

.brand-display .dot {
  color: var(--accent);
}

.brand-display .tld {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}

.role-line {
  margin: 0.95rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.role-line span {
  color: var(--accent);
  margin: 0 0.28rem;
}

/* Manifest panel drifts in for parallax (JS sets transform); keep it smooth */
.hero-manifest {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Manifest print-in: JS adds .is-printing, then reveals rows one by one */
.hero-manifest.is-printing .manifest-head,
.hero-manifest.is-printing .manifest-rows li,
.hero-manifest.is-printing .manifest-foot {
  opacity: 0;
  transform: translateX(-8px);
}

.hero-manifest.print-go .manifest-head,
.hero-manifest.print-go .manifest-rows li,
.hero-manifest.print-go .manifest-foot {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.7, 0.16, 1);
  transition-delay: var(--print-delay, 0ms);
}

/* ============================================================
   Interactive layer v14 — living hero field, command palette,
   ops diagnostic. Monochrome only; reduced-motion safe.
   ============================================================ */

/* --- Living hero: dot-matrix canvas behind the hero grid --- */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Nav tools: palette hint + CTA --- */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.palette-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.palette-hint:hover {
  color: var(--ink);
  border-color: var(--line-dark);
  background: var(--neutral-hover);
}

.palette-hint-slash {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 760px) {
  .palette-hint-key {
    display: none;
  }
}

/* --- Command palette --- */
.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 13vh 1rem 1rem;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.palette-backdrop[hidden] {
  display: none;
}

:root[data-theme="light"] .palette-backdrop {
  background: rgba(255, 255, 255, 0.66);
}

.palette-backdrop.is-open {
  opacity: 1;
}

.palette {
  width: min(37rem, 100%);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.16s cubic-bezier(0.22, 0.7, 0.16, 1);
}

.palette-backdrop.is-open .palette {
  transform: none;
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.palette-prompt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.palette-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  outline: none;
}

.palette-input::placeholder {
  color: var(--muted);
}

.palette-esc,
.palette-foot kbd {
  padding: 0.14rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.palette-list {
  max-height: min(21rem, 46vh);
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  overflow-y: auto;
}

.palette-group {
  padding: 0.65rem 0.75rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.palette-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.palette-item.is-active {
  background: var(--surface-strong);
}

.palette-item.is-active .palette-item-label::before {
  content: "> ";
  font-family: var(--font-mono);
  color: var(--accent);
}

.palette-item-label {
  font-size: 0.92rem;
  color: var(--ink);
}

.palette-item-hint {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
}

.palette-empty {
  padding: 1.1rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.palette-foot {
  display: flex;
  gap: 1.2rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.palette-foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

/* --- Copy toast --- */
.copy-toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  z-index: 240;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- Ops diagnostic --- */
.diag-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--panel-bg-strong), var(--panel-bg-soft)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.diag-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.diag-dots {
  display: inline-flex;
  gap: 0.32rem;
}

.diag-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.diag-title .fw-slash {
  color: var(--accent);
}

.diag-progress {
  margin-left: auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.diag-body {
  padding: 1.5rem 1.4rem 1.6rem;
  min-height: 16rem;
  display: grid;
  align-content: start;
}

.diag-screen {
  display: grid;
  gap: 0.85rem;
}

.diag-line {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(5px);
  animation: diagIn 0.32s ease forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}

@keyframes diagIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diag-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.diag-prompt {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.35rem;
}

.diag-line-muted {
  font-size: 0.7rem;
  color: var(--muted);
}

.diag-line-soft {
  color: var(--muted);
  max-width: 38rem;
}

.diag-line strong {
  color: var(--heading);
  font-weight: 600;
}

.diag-q {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--heading);
  max-width: 34rem;
}

.diag-opts {
  display: grid;
  gap: 0.5rem;
}

.diag-opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.diag-opt:hover {
  border-color: var(--line-dark);
  background: var(--neutral-hover);
  transform: translateX(3px);
}

.diag-opt kbd {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.diag-keys {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diag-score {
  font-size: 1.05rem;
  color: var(--heading);
}

.diag-bar {
  letter-spacing: 0.08em;
  color: var(--accent);
}

.diag-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.diag-again {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.diag-again:hover {
  color: var(--ink);
}

/* ============================================================
   M365 Governance Health-Check tool  (/tools/health-check/)
   Scoped UI for the self-assessment. Reuses site tokens only.
   ============================================================ */
.hc-hero {
  padding-bottom: 2rem;
}

.hc-meta-line {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.hc-section {
  padding-top: 2.4rem;
  padding-bottom: 5rem;
}

.hc-shell {
  position: relative;
}

.hc-stage {
  outline: none;
}

.hc-stage[hidden] {
  display: none;
}

.hc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.4rem, 1rem + 2.4vw, 2.6rem);
}

.hc-eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hc-eyebrow .fw-slash {
  color: var(--accent);
}

/* ---------- Intro ---------- */
.hc-intro-card {
  animation: hc-fade-up 0.5s ease both;
}

.hc-intro-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hc-intro-lede {
  margin: 1rem 0 0;
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.62;
}

.hc-intro-points {
  display: grid;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.hc-intro-points li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.hc-intro-points strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.hc-intro-points span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hc-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 1.8rem;
}

.hc-intro-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.hc-start .hc-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hc-start:hover .hc-arrow {
  transform: translateX(3px);
}

/* ---------- Quiz ---------- */
.hc-quiz-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hc-quiz-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hc-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  min-width: 4.2rem;
}

.hc-progress {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-strong);
  overflow: hidden;
}

.hc-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hc-question-region {
  min-height: 1px;
}

.hc-dim {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hc-question {
  margin: 0 0 1.2rem;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 34ch;
}

.hc-options {
  display: grid;
  gap: 0.6rem;
}

.hc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.hc-option:hover {
  border-color: var(--line-dark);
  background: var(--surface-strong);
  color: var(--ink);
}

.hc-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hc-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.hc-option-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-chip);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.hc-option.is-selected .hc-option-key {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.hc-option-label {
  flex: 1;
}

.hc-option-tick {
  flex: none;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hc-option.is-selected .hc-option-tick {
  opacity: 1;
  transform: scale(1);
}

.hc-quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 0.3rem;
}

.hc-keyhint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  order: 3;
  flex-basis: 100%;
  text-align: center;
}

.hc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hc-nav-btn:hover {
  border-color: var(--line-dark);
  color: var(--ink);
}

.hc-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hc-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hc-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* slide transitions between questions */
.hc-slide-in-right {
  animation: hc-slide-right 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hc-slide-in-left {
  animation: hc-slide-left 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hc-slide-right {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hc-slide-left {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hc-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Result ---------- */
.hc-result-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: hc-fade-up 0.5s ease both;
}

.hc-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.2rem;
}

.hc-gauge {
  position: relative;
  flex: none;
  width: 150px;
  height: 150px;
}

.hc-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hc-gauge-track {
  fill: none;
  stroke: var(--surface-strong);
  stroke-width: 8;
}

.hc-gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
}

.hc-gauge[data-band="reactive"] .hc-gauge-fill { stroke: #e5484d; }
.hc-gauge[data-band="patchy"]   .hc-gauge-fill { stroke: #f0a23b; }
.hc-gauge[data-band="solid"]    .hc-gauge-fill { stroke: #46a758; }
.hc-gauge[data-band="ready"]    .hc-gauge-fill { stroke: #30a46c; }

.hc-gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.hc-score {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hc-score-max {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.hc-result-verdict {
  flex: 1;
  min-width: 15rem;
}

.hc-band {
  margin: 0.2rem 0 0;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hc-band-line {
  margin: 0.7rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  line-height: 1.58;
}

/* fixes */
.hc-fixes-label {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.hc-fix-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hcfix;
}

.hc-fix {
  position: relative;
  counter-increment: hcfix;
  padding: 1.1rem 1.2rem 1.1rem 3.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.hc-fix::before {
  content: counter(hcfix);
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-chip);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.hc-fix-dim {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hc-fix-title {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.hc-fix-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.58;
}

.hc-fixes-empty {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.58;
}

/* breakdown */
.hc-breakdown {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.hc-breakdown-label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hc-breakdown-label .fw-slash {
  color: var(--accent);
}

.hc-breakdown-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-bd-row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr 2.6rem;
  align-items: center;
  gap: 0.8rem;
}

.hc-bd-name {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.hc-bd-track {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-strong);
  overflow: hidden;
}

.hc-bd-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hc-bd-fill[data-tier="low"]  { background: #e5484d; }
.hc-bd-fill[data-tier="mid"]  { background: #f0a23b; }
.hc-bd-fill[data-tier="high"] { background: #46a758; }

.hc-bd-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* CTA */
.hc-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.2rem, 1rem + 1.4vw, 1.8rem);
}

.hc-cta-text {
  margin: 0 0 1.2rem;
  max-width: 60ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hc-cta-crosslink {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.hc-cta-crosslink a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hc-result-foot {
  display: flex;
  justify-content: center;
}

.hc-retake {
  font-family: var(--font-mono);
}

@media (max-width: 540px) {
  .hc-bd-row {
    grid-template-columns: 1fr 2.4rem;
    grid-template-areas:
      "name name"
      "track val";
    gap: 0.3rem 0.6rem;
  }
  .hc-bd-name { grid-area: name; }
  .hc-bd-track { grid-area: track; }
  .hc-bd-val { grid-area: val; }

  .hc-quiz-foot .hc-keyhint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-slide-in-right,
  .hc-slide-in-left,
  .hc-intro-card,
  .hc-result-card {
    animation: none !important;
  }
  .hc-progress-fill,
  .hc-bd-fill,
  .hc-gauge-fill {
    transition: none !important;
  }
}
