/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 * Hallmark · genre: modern-minimal · design-system: design.md · designed-as-app
 * Hallmark · families: Split Studio (home) · Index-First (blog) · Long Document (articles/404) · theme: Cobalt-dark · nav: N5 · footer: Ft5
 * Hallmark · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive/mobile: pass (34, 49–57) · icons: pass (30)
 */
@import url("tokens.css@v=103.css");

:root {
  --bg-outer: oklch(8% 0.006 255);
  --bg: oklch(13% 0.006 255);
  --surface: oklch(16% 0.006 255);
  --surface-deep: oklch(12% 0.006 255);
  --surface-shell: oklch(16% 0.006 255 / 0.96);
  --surface-nav: oklch(17% 0.006 255 / 0.92);
  --ink: oklch(94% 0.01 82);
  --ink-dark: oklch(13% 0.008 255);
  --muted: oklch(70% 0.014 82);
  --dim: oklch(61% 0.014 82);
  --line: oklch(27% 0.008 255);
  --line-strong: oklch(36% 0.01 255);
  --hot: oklch(70% 0.17 37);
  --blue: oklch(68% 0.15 246);
  --green: oklch(72% 0.14 137);
  --gold: oklch(76% 0.13 82);
  --grid-line: oklch(94% 0.01 82 / 0.035);
  --grid-line-soft: oklch(94% 0.01 82 / 0.024);
  --glow-blue: oklch(68% 0.15 246 / 0.08);
  --font-ui: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1540px;
}

/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 * Non-package site adapter · inherits the graphite / silver / periwinkle landing system.
 * The package catalog lives at pkg.so and is intentionally unaffected.
 */

:root {
  --site-paper: oklch(5.5% 0.012 274);
  --site-paper-raised: oklch(9% 0.014 274);
  --site-paper-soft: oklch(12.5% 0.016 274);
  --site-paper-glass: oklch(15% 0.022 274 / 0.72);
  --site-ink: oklch(97% 0.008 275);
  --site-ink-soft: oklch(78% 0.018 274);
  --site-ink-dim: oklch(61% 0.022 274);
  --site-rule: oklch(31% 0.025 274);
  --site-rule-soft: oklch(22% 0.02 274);
  --site-accent: oklch(78% 0.105 297);
  --site-focus: oklch(82% 0.12 247);
  --site-wash: oklch(67% 0.13 297 / 0.075);
  --site-white-wash: oklch(100% 0 0 / 0.045);
  --site-shadow: oklch(1% 0.01 274 / 0.48);
  --site-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --site-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --site-font-mono: "Geist Mono", ui-monospace, monospace;

  /* Bridge the previous static-page tokens to the landing-page system. */
  --bg-outer: var(--site-paper);
  --bg: var(--site-paper-raised);
  --surface-deep: var(--site-paper-raised);
  --surface-nav: var(--site-paper-glass);
  --ink: var(--site-ink);
  --muted: var(--site-ink-soft);
  --dim: var(--site-ink-dim);
  --line: var(--site-rule-soft);
  --line-strong: var(--site-rule);
  --blue: var(--site-accent);
  --green: var(--site-accent);
  --hot: var(--site-accent);
  --font-ui: var(--site-font-body);
  --font-mono: var(--site-font-mono);
  --color-paper: var(--site-paper);
  --color-paper-2: var(--site-paper-raised);
  --color-ink: var(--site-ink);
  --color-ink-2: var(--site-ink-soft);
  --color-rule: var(--site-rule-soft);
  --color-rule-2: var(--site-rule);
  --color-accent: var(--site-accent);
  --color-accent-ink: var(--site-paper);
  --color-boundary-paper: var(--site-paper);
  --color-boundary-paper-2: var(--site-paper-raised);
  --color-boundary-surface: var(--site-paper-soft);
  --color-boundary-surface-2: var(--site-paper-raised);
  --color-boundary-ink: var(--site-ink);
  --color-boundary-body: var(--site-ink-soft);
  --color-boundary-dim: var(--site-ink-dim);
  --color-boundary-rule: var(--site-rule-soft);
  --color-boundary-rule-strong: var(--site-rule);
  --color-boundary-accent: var(--site-accent);
  --color-boundary-accent-ink: var(--site-paper);
  --color-boundary-grid: var(--site-white-wash);
  --color-boundary-shadow: var(--site-shadow);
  --font-display: var(--site-font-display);
  --font-body: var(--site-font-body);
  --font-code: var(--site-font-mono);
}

html,
body {
  overflow-x: clip;
}

body:not(.brew-home) {
  color: var(--site-ink);
  background:
    radial-gradient(circle at 78% 4rem, var(--site-wash), transparent 32rem),
    var(--site-paper);
  font-family: var(--site-font-body);
}

body:not(.brew-home)::before {
  display: none;
}

.site-shell,
.seo-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
}

.masthead,
.seo-masthead {
  border-color: var(--site-rule-soft);
  background: var(--site-paper-glass);
  box-shadow: 0 18px 52px var(--site-shadow);
  backdrop-filter: blur(20px);
}

.masthead .brand-type,
.seo-masthead .brand {
  color: var(--site-ink);
  font-family: var(--site-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav,
.seo-nav {
  color: var(--site-ink-soft);
  font-family: var(--site-font-mono);
}

.nav a:hover,
.seo-nav a:hover {
  color: var(--site-ink);
}

.nav a:focus-visible,
.seo-nav a:focus-visible,
.site-footer a:focus-visible,
.seo-footer a:focus-visible {
  outline-color: var(--site-focus);
}

.blog-hero,
.article-hero,
.not-found,
.seo-hero,
.landing-page-hero {
  background:
    radial-gradient(circle at 82% 18%, var(--site-wash), transparent 29rem),
    linear-gradient(180deg, var(--site-paper-raised), var(--site-paper));
  border-color: var(--site-rule-soft);
}

.blog-hero h1,
.article-hero h1,
.not-found h1,
.seo-hero h1,
.landing-page-hero h1 {
  color: var(--site-ink);
  font-family: var(--site-font-display);
  font-style: normal;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.eyebrow,
.story-kicker,
.kicker,
.section-label span {
  color: var(--site-accent);
  font-family: var(--site-font-mono);
}

.lede,
.poster-lede,
.incident-section > p,
.post-card-copy > p {
  color: var(--site-ink-soft);
}

.button {
  border-radius: 999px;
  font-family: var(--site-font-mono);
  white-space: nowrap;
}

.button.primary {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: var(--site-paper);
}

.button.secondary,
.button.text {
  border-color: var(--site-rule);
  background: var(--site-white-wash);
  color: var(--site-ink);
}

.post-card,
.incident-panel,
.incident-control,
.incident-note {
  border-color: var(--site-rule);
  background:
    linear-gradient(180deg, var(--site-white-wash), transparent 46%),
    var(--site-paper-raised);
  box-shadow: 0 24px 70px var(--site-shadow);
}

.post-card img,
.article-hero-image img {
  border-color: var(--site-rule);
}

.incident-body,
.blog-index {
  border-color: var(--site-rule-soft);
  background: var(--site-paper);
}

.site-footer,
.seo-footer {
  border-color: var(--site-rule-soft);
  background:
    linear-gradient(180deg, var(--site-white-wash), transparent 70%),
    var(--site-paper-raised);
  color: var(--site-ink-dim);
}

.site-footer a,
.seo-footer a {
  color: var(--site-ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .button.primary:hover {
    border-color: var(--site-ink);
    background: var(--site-ink);
    color: var(--site-paper);
  }

  .post-card:hover,
  .incident-control:hover {
    border-color: var(--site-accent);
  }
}

@media (max-width: 40rem) {
  .masthead,
  .seo-masthead {
    box-shadow: 0 12px 36px var(--site-shadow);
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--bg-outer);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(180deg, oklch(9% 0.008 255), var(--bg-outer) 42rem),
    var(--bg-outer);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, oklch(94% 0.01 82 / 0.018) 1px, transparent 1px);
  background-size: 100% 4px, 48px 100%;
  opacity: 0.22;
  mix-blend-mode: screen;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

code {
  font-family: var(--font-mono);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 2px;
  background: transparent;
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--hot), var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-shell {
  width: min(100%, var(--max));
  margin: 0 auto 44px;
  overflow: clip;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2 + 44px));
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, oklch(18% 0.007 255 / 0.96), oklch(13% 0.006 255 / 0.94)),
    var(--surface-nav);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 -1px 0 oklch(94% 0.01 82 / 0.035),
    0 18px 48px oklch(5% 0.006 255 / 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  min-width: 0;
  padding: 2px 8px 2px 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: border-color 160ms ease, background 160ms ease;
}

.brand:hover {
  border-color: var(--line);
  background: oklch(94% 0.01 82 / 0.025);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--surface-deep);
  box-shadow: inset 0 1px 0 oklch(94% 0.01 82 / 0.08);
}

.brand-type {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.35vw, 30px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav a:hover::before {
  opacity: 0.72;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.eyebrow,
.story-kicker,
.section-label span{
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin-top: 14px;
  color: var(--ink);
  font-size: 7.1rem;
  font-weight: 800;
  line-height: 0.88;
  text-transform: none;
}

h1 code {
  font-size: 0.8em;
  white-space: nowrap;
}

.lede {
  width: min(100%, 820px);
  margin-top: 26px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.26;
}

.hero-actions {
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button.primary {
  border-color: var(--hot);
  background: var(--hot);
  color: var(--ink-dark);
}

.button.secondary {
  background: oklch(94% 0.016 78 / 0.04);
}

.button.text {
  border-color: transparent;
  color: var(--muted);
}

.button.text:hover {
  color: var(--ink);
}
.blog-hero,
.blog-index,
.article-hero,
.incident-body{
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-label h2{
  color: var(--ink);
  font-size: 1.95rem;
  line-height: 1;
}

.blog-hero {
  display: grid;
  min-height: 410px;
  align-items: end;
  background:
    linear-gradient(115deg, oklch(7% 0.006 255), oklch(14% 0.014 255) 64%, oklch(10% 0.006 255)),
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px);
  background-size: auto, 100% 4px;
}

.blog-hero-copy {
  max-width: 980px;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 10.5ch;
  font-size: clamp(4.2rem, 8vw, 7.1rem);
}

.blog-index {
  background: oklch(18% 0.006 235 / 0.18);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.56fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  padding-block: clamp(18px, 3vw, 32px);
  border-block: 1px solid var(--line-strong);
}

.post-card img,
.article-hero-image img{
  display: block;
  width: 100%;
  height: auto;
}

.post-card img,
.article-hero-image {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-deep);
}

.post-card-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  min-width: 0;
}

.post-card-copy h2{
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.post-card-copy p{
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.66fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 74% 32%, var(--glow-blue), transparent 36rem),
    linear-gradient(180deg, oklch(12% 0.008 255), var(--surface-shell));
}

.article-hero-copy {
  min-width: 0;
}

.article-hero .lede {
  max-width: 780px;
}

.article-hero .hero-actions {
  margin-top: clamp(14px, 2vw, 24px);
}

.article-hero-image {
  margin: 0;
  box-shadow: 0 24px 80px oklch(6% 0.006 255 / 0.34);
}

.incident-hero h1 {
  max-width: 13.5ch;
  font-size: clamp(3.35rem, 6vw, 5.85rem);
}

.incident-hero .lede {
  max-width: 860px;
}

.incident-body {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  max-width: 1060px;
}

.incident-body p,
.incident-body li {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  line-height: 1.72;
}

.incident-body p {
  margin: 0;
}

.incident-body a {
  color: var(--gold);
  text-decoration-color: oklch(78% 0.12 82 / 0.45);
  text-underline-offset: 0.2em;
}

.incident-answer,
.incident-note,
.incident-panel,
.incident-sources {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: oklch(13% 0.006 255 / 0.82);
}

.incident-answer {
  padding: clamp(20px, 3vw, 34px);
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  font-weight: 700;
  line-height: 1.42;
}

.incident-note {
  padding: clamp(18px, 3vw, 28px);
  border-color: oklch(62% 0.14 35 / 0.48);
}

.incident-section {
  display: grid;
  gap: 16px;
}

.incident-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.incident-panel div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.incident-panel div:nth-child(2n) {
  border-right: 0;
}

.incident-panel div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.incident-panel dt,
.incident-control span,
.incident-sources h2 {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.incident-panel dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.48;
}

.incident-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.incident-control {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: oklch(14% 0.006 255 / 0.74);
}

.incident-control h3 {
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.08;
}

.incident-control p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.incident-sources {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.incident-sources ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px clamp(20px, 4vw, 56px);
  padding: clamp(20px, 2.8vw, 30px) clamp(20px, 4vw, 58px);
  border-top: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, oklch(94% 0.01 82 / 0.018) 1px, transparent 1px),
    linear-gradient(180deg, oklch(94% 0.01 82 / 0.035), transparent 72%),
    var(--bg-outer);
  background-size: 58px 100%, auto, auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-links {
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  min-width: max-content;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 0;
  color: oklch(73% 0.018 82 / 0.74);
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: min(100%, var(--max));
  margin: 0 auto 34px;
  padding: 10px clamp(20px, 3vw, 44px) 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.language-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.language-links a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.i18n-suggestion {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 16px 40px oklch(8% 0.03 260 / 0.28);
  color: var(--ink-dark);
  display: flex;
  gap: 12px;
  left: 16px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  position: fixed;
  z-index: 30;
}

.i18n-suggestion a {
  color: var(--ink-dark);
  font-weight: 700;
}

.i18n-suggestion button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-dark);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 2px 4px;
}

@media (max-width: 1060px) {
  .site-shell {
    width: 100%;
    margin: 0 auto 20px;
  }

  h1 {
    font-size: 5.3rem;
  }

  .lede {
    font-size: 1.32rem;
  }
  .article-hero,
  .post-card,
  .incident-controls {
    grid-template-columns: 1fr;
  }

  .article-hero-image {
    order: -1;
  }
}

@media (max-width: 760px) {
  .masthead {
    align-items: flex-start;
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: oklch(17% 0.006 255 / 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    min-width: 0;
  }

  .button.text {
    justify-content: center;
    border-color: var(--line-strong);
    padding-left: 18px;
  }

  h1 {
    font-size: 3.9rem;
    max-width: 100%;
  }

  .lede {
    font-size: 1.16rem;
    line-height: 1.2;
  }

  .section-label h2{
    font-size: 1.72rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: 100%;
    margin: 0;
  }

  .brand-type {
    font-size: 0.84rem;
  }
  .blog-hero,
  .blog-index,
  .article-hero{
    padding-inline: 18px;
  }

  .section-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .incident-panel {
    grid-template-columns: 1fr;
  }

  .incident-panel div:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .incident-panel div:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: 3.05rem;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: 3.05rem;
  }

  .lede {
    font-size: 1.04rem;
  }
}

/* Localized poster layout */
.landing-main {
  background:
    linear-gradient(180deg, oklch(8% 0.006 255), oklch(10% 0.008 255) 42%, oklch(8% 0.006 255)),
    var(--bg-outer);
}

.poster-hero,
.closing-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.poster-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 0.34fr);
  grid-template-areas:
    "copy scan"
    "foot scan";
  gap: clamp(14px, 2vw, 26px) clamp(24px, 4vw, 58px);
  align-content: space-between;
  padding: clamp(20px, 2.5vw, 30px) clamp(20px, 4vw, 58px) clamp(18px, 2.5vw, 28px);
  background:
    radial-gradient(circle at 88% 18%, oklch(72% 0.14 137 / 0.12), transparent 26rem),
    linear-gradient(118deg, oklch(5.5% 0.006 255), oklch(9% 0.009 255) 56%, oklch(6.5% 0.006 255)),
    var(--bg-outer);
}

.poster-hero::before,
.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, oklch(94% 0.01 82 / 0.026) 1px, transparent 1px);
  background-size: 100% 38px, 52px 100%;
  opacity: 0.34;
  pointer-events: none;
}

.closing-cta div {
  display: flex;
  flex-wrap: wrap;
}

.poster-hero-copy {
  grid-area: copy;
  align-self: end;
  min-width: 0;
  max-width: 1080px;
}

.poster-hero-copy > .eyebrow {
  margin-top: clamp(8.25rem, 15.5vw, 11.25rem);
}

.poster-hero h1 {
  max-width: min(100%, 14.75ch);
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(5rem, 7.35vw, 8.6rem);
  font-weight: 850;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.poster-hero h1 span {
  display: block;
}

html[lang="en"] .poster-hero h1 {
  max-width: min(100%, 17.1ch);
  font-size: clamp(4.8rem, 6.9vw, 8.3rem);
}

.poster-lede {
  min-width: 0;
  max-width: 33em;
  margin-top: 12px;
  color: oklch(84% 0.016 82);
  font-size: clamp(1.22rem, 1.62vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
}

.poster-hero-foot {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-width: min(100%, 42rem);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.closing-cta h2 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(2.75rem, 5.1vw, 5.9rem);
  font-weight: 820;
  line-height: 0.9;
}

.closing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: end;
  padding: clamp(184px, 22vw, 312px) clamp(20px, 4vw, 58px);
  padding-block: clamp(92px, 11vw, 156px);
  background:
    linear-gradient(122deg, oklch(7% 0.006 255), oklch(13% 0.01 255) 72%, oklch(8% 0.006 255)),
    var(--bg-outer);
}

.closing-cta > .eyebrow,
.closing-cta h2,
.closing-cta > div {
  grid-column: 1;
}

.closing-cta h2 {
  max-width: 18ch;
}

.closing-cta > div {
  gap: 12px;
}

@media (max-width: 900px) {
  .masthead {
    align-items: flex-start;
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: oklch(17% 0.006 255 / 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 4px 16px;
  }
}

@media (max-width: 1180px) {
  .poster-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "scan"
      "foot";
  }

}

@media (max-width: 980px) {
  .poster-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "scan"
      "foot";
  }
  .closing-cta {
    grid-template-columns: 1fr;
  }
  .closing-cta > .eyebrow,
  .closing-cta h2,
  .closing-cta > div {
    grid-column: 1;
  }

}

@media (max-width: 760px) {
  .poster-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "scan"
      "foot";
    min-height: auto;
    align-content: start;
    gap: 20px;
    padding-top: clamp(34px, 8svh, 72px);
    padding-bottom: clamp(22px, 5svh, 38px);
  }

  .poster-hero-copy > .eyebrow {
    margin-top: 0;
  }

  .poster-hero h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.2vw, 4.65rem);
    line-height: 0.92;
  }

  html[lang="en"] .poster-hero h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.2vw, 4.65rem);
  }

  .poster-lede {
    margin-top: 10px;
    font-size: clamp(1rem, 3.6vw, 1.14rem);
    line-height: 1.28;
  }

  .poster-hero-foot {
    max-width: 100%;
    padding-top: 12px;
  }

  .poster-hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .poster-hero .button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: clamp(0.68rem, 2.85vw, 0.78rem);
  }

  .poster-hero .button.primary {
    grid-column: 1 / -1;
  }
  .closing-cta h2 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

}

@media (max-width: 520px) {
  .poster-hero,
  .closing-cta {
    padding-inline: 18px;
  }

  .poster-hero h1 {
    font-size: clamp(2.12rem, 10.75vw, 2.9rem);
  }

  .closing-cta h2 {
    font-size: clamp(2.25rem, 9.8vw, 3.05rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Hallmark · genre: modern-minimal · macrostructure: Index-First / Long Document
 * design-system: design.md · designed-as-app · theme: Cobalt-dark
 * nav: N5 · footer: Ft5 · enrichment: supplied incident artwork only
 */

.masthead {
  top: var(--space-md);
  width: min(calc(100% - (var(--space-md) * 2)), 64rem);
  min-height: 4.5rem;
  margin-inline: auto;
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  background: var(--surface-nav);
  box-shadow: none;
  z-index: var(--z-sticky);
}

.masthead .brand {
  flex: 0 1 auto;
}

.masthead .nav {
  gap: var(--space-lg);
}

.masthead .nav a,
.masthead .brand,
.site-footer a,
.post-card .button {
  white-space: nowrap;
}

.blog-hero,
.blog-index,
.article-hero,
.incident-body {
  padding-inline: clamp(var(--space-md), 5vw, var(--space-2xl));
}

.blog-hero {
  min-height: auto;
  padding-block: var(--space-3xl) var(--space-4xl);
  border-block-end: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
}

.blog-hero-copy {
  width: min(100%, 68rem);
  margin-inline: auto;
}

.blog-hero h1 {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-transform: none;
}

.blog-hero .eyebrow,
.article-hero .eyebrow,
.story-kicker {
  color: var(--color-accent);
  font-family: var(--font-code);
}

.blog-index {
  width: min(100%, 78rem);
  margin-inline: auto;
  padding-block: var(--space-3xl) var(--space-4xl);
  background: transparent;
}

.blog-index > .section-label {
  margin-block-end: var(--space-xl);
  padding-block-end: var(--space-md);
  border-block-end: var(--rule-hair) solid var(--color-rule-2);
}

.post-list {
  gap: 0;
}

.post-card {
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  border-block: 0;
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.post-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
}

.post-card:nth-child(even) > a {
  grid-column: 2;
  grid-row: 1;
}

.post-card:nth-child(even) .post-card-copy {
  grid-column: 1;
  grid-row: 1;
}

.post-card > a {
  align-self: center;
}

.post-card img {
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.post-card-copy {
  gap: var(--space-md);
}

.post-card-copy h2 {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.post-card-copy p:not(.story-kicker) {
  max-width: 62ch;
  color: var(--color-ink-2);
  font-size: var(--text-base);
  line-height: 1.6;
}

.post-card .button.primary {
  min-width: 0;
  min-height: 44px;
  padding: var(--space-sm) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
}

.post-card .button.primary::after {
  content: " →";
}

.article-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.62fr);
  width: min(100%, 84rem);
  margin-inline: auto;
  padding-block: var(--space-3xl) var(--space-4xl);
  border-block-end: var(--rule-hair) solid var(--color-rule);
  background: transparent;
}

.article-hero h1,
.incident-hero h1 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-transform: none;
}

.article-hero .lede {
  max-width: 62ch;
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.55;
}

.article-hero-image {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.article-hero-image img {
  border: 0;
  border-radius: 0;
}

.incident-body {
  width: min(100%, 72ch);
  margin-inline: auto;
  padding-block: var(--space-3xl) var(--space-4xl);
}

.incident-body p,
.incident-body li {
  color: var(--color-ink-2);
  font-size: var(--text-base);
  line-height: 1.72;
}

.incident-body .article-highlight {
  color: var(--color-accent);
  font-weight: 700;
}

.incident-answer,
.incident-note,
.incident-panel,
.incident-sources {
  border: 0;
  border-block-start: var(--rule-hair) solid var(--color-rule-2);
  border-radius: 0;
  background: transparent;
}

.incident-answer,
.incident-note,
.incident-sources {
  padding: var(--space-lg) 0 0;
}

.incident-answer {
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: 1.5;
}

.incident-section {
  gap: var(--space-md);
  padding-block-start: var(--space-xl);
}

.incident-section .section-label {
  display: block;
  margin-block-end: 0;
}

.incident-section .section-label span {
  display: none;
}

.incident-section .section-label h2,
.incident-sources h2 {
  max-width: 24ch;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: none;
}

.incident-panel {
  grid-template-columns: minmax(0, 1fr);
}

.incident-panel div,
.incident-panel div:nth-child(2n),
.incident-panel div:nth-last-child(-n + 2) {
  padding: var(--space-md) 0;
  border-inline: 0;
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.incident-panel dt,
.incident-control span {
  color: var(--color-accent);
  font-family: var(--font-code);
}

.incident-panel dd {
  color: var(--color-ink-2);
}

.incident-controls {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.incident-control {
  min-height: 0;
  padding: var(--space-lg) 0;
  border: 0;
  border-block-end: var(--rule-hair) solid var(--color-rule);
  border-radius: 0;
  background: transparent;
}

.incident-control h3 {
  max-width: 32ch;
  font-size: var(--text-lg);
}

.site-footer {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl) clamp(var(--space-md), 5vw, var(--space-2xl)) var(--space-xl);
  background: var(--color-paper-2);
}

.site-footer > p {
  max-width: 28ch;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: none;
}

.site-footer > .footer-links {
  grid-column: 1;
  grid-row: auto;
  justify-content: flex-start;
  min-width: 0;
  padding-block-start: var(--space-md);
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

@media (hover: hover) and (pointer: fine) {
  .post-card .button.primary:hover,
  .post-card .button.primary:focus-visible {
    color: var(--color-ink);
    transform: translateY(calc(var(--rule-hair) * -1));
  }
}

@media (max-width: 60rem) {
  .article-hero,
  .post-card,
  .post-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card:nth-child(even) > a,
  .post-card:nth-child(even) .post-card-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .post-card > a {
    width: min(100%, 24rem);
  }

  .article-hero-image {
    order: 0;
    width: min(100%, 32rem);
  }
}

@media (max-width: 40rem) {
  .masthead {
    top: var(--space-sm);
    width: min(calc(100% - (var(--space-md) * 2)), 30rem);
    min-height: 4rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .masthead .brand-type {
    font-size: var(--text-sm);
  }

  .masthead .nav {
    top: calc(100% + var(--space-xs));
    padding: var(--space-xs) var(--space-md) var(--space-md);
    border: var(--rule-hair) solid var(--color-rule-2);
    border-radius: var(--radius-card);
    background: var(--color-paper-2);
  }

  .blog-hero,
  .article-hero {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .blog-hero h1 {
    font-size: var(--text-4xl);
  }

  .article-hero h1,
  .incident-hero h1 {
    font-size: var(--text-3xl);
  }

  .article-hero .lede {
    font-size: var(--text-base);
  }

  .blog-index,
  .incident-body {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .post-card {
    gap: var(--space-lg);
  }

  .post-card-copy h2 {
    font-size: var(--text-xl);
  }

  .site-footer > p {
    font-size: var(--text-2xl);
  }
}

@media (pointer: coarse) {
  .post-card .button,
  .site-footer a {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead a,
  .post-card a,
  .site-footer a {
    transition: none;
  }

  .masthead a:hover,
  .post-card a:hover,
  .site-footer a:hover {
    transform: none;
  }
}

/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 * Hallmark · genre: modern-minimal · macrostructure: Split Studio · theme: Cobalt-dark
 * enrichment: real product captures · nav: N5 · footer: Ft5 · tone: technical/blunt · anchor hue: cobalt
 * contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive/mobile: pass (34, 49–57) · icons: pass (30)
 */

.brew-home {
  min-width: 0;
  background: var(--color-boundary-paper);
  color: var(--color-boundary-ink);
  font-family: var(--font-body);
}

.brew-home::before {
  background:
    linear-gradient(var(--color-boundary-grid) var(--rule-hair), var(--color-boundary-transparent) var(--rule-hair)),
    linear-gradient(90deg, var(--color-boundary-grid) var(--rule-hair), var(--color-boundary-transparent) var(--rule-hair));
  background-size: 100% var(--space-xl), var(--space-xl) 100%;
  opacity: 0.14;
}

.brew-home main,
.brew-footer {
  width: min(100%, 96rem);
  margin-inline: auto;
}

.brew-nav {
  position: fixed;
  inset-block-start: var(--space-md);
  inset-inline-start: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: min(calc(100% - (var(--space-md) * 2)), 42rem);
  min-height: 3.5rem;
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-boundary-rule-strong);
  border-radius: calc(var(--radius-lg) * 4);
  background: color-mix(in oklch, var(--color-boundary-paper-2) 88%, var(--color-boundary-transparent));
  box-shadow: 0 var(--space-sm) var(--space-xl) calc(var(--space-sm) * -1) var(--color-boundary-shadow);
  backdrop-filter: blur(var(--space-md)) saturate(120%);
  transform: translateX(-50%);
}

.brew-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
  color: var(--color-boundary-ink);
  font-family: var(--font-wordmark);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brew-brand img {
  width: 2rem;
  height: 2rem;
}

.brew-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-inline-start: auto;
}

.brew-nav-links a,
.brew-footer-meta a,
.brew-languages a {
  color: var(--color-boundary-body);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.brew-download,
.brew-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: var(--rule-hair) solid var(--color-boundary-accent);
  border-radius: calc(var(--radius-lg) * 3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.brew-download {
  padding-inline: var(--space-md);
  background: var(--color-boundary-accent);
  color: var(--color-boundary-accent-ink);
}

.brew-cta {
  justify-self: start;
  padding-inline: var(--space-lg);
  background: var(--color-boundary-transparent);
  color: var(--color-boundary-ink);
}

.brew-home a:focus-visible {
  outline: 2px solid var(--color-boundary-warn);
  outline-offset: var(--space-2xs);
}

.brew-home a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.brew-nav-links a:active,
.brew-footer-meta a:active,
.brew-languages a:active {
  color: var(--color-boundary-accent);
}

.brew-download:active,
.brew-cta:active {
  transform: translateY(var(--rule-hair));
}

.brew-download[aria-disabled="true"],
.brew-cta[aria-disabled="true"],
.brew-download[data-state="loading"],
.brew-cta[data-state="loading"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.brew-download[data-state="error"],
.brew-cta[data-state="error"] {
  border-color: var(--color-boundary-danger);
  color: var(--color-boundary-danger);
}

.brew-download[data-state="success"],
.brew-cta[data-state="success"] {
  border-color: var(--color-boundary-success);
  color: var(--color-boundary-success);
}

.brew-hero {
  display: grid;
  grid-template-columns: minmax(22rem, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "copy capture"
    "promises capture";
  align-items: center;
  column-gap: clamp(var(--space-xl), 6vw, var(--space-4xl));
  row-gap: var(--space-xl);
  min-height: min(74svh, 52rem);
  padding: calc(var(--space-4xl) + var(--space-md)) clamp(var(--space-md), 6vw, var(--space-3xl)) var(--space-2xl);
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule);
}

.brew-hero-title {
  grid-area: copy;
  display: grid;
  justify-items: start;
  gap: var(--space-md);
  min-width: 0;
}

.brew-kicker,
.brew-eyebrow {
  margin: 0;
  color: var(--color-boundary-accent);
  font-family: var(--font-code);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brew-kicker {
  font-size: var(--text-base);
}

.brew-hero h1 {
  min-width: 0;
  max-width: 12ch;
  margin: 0;
  color: var(--color-boundary-ink);
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-display-s));
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.brew-hero h1 span {
  color: var(--color-boundary-accent);
}

.brew-hero-lede {
  max-width: 42ch;
  margin: var(--space-xs) 0 0;
  color: var(--color-boundary-body);
  font-size: var(--text-base);
  line-height: 1.55;
}

.brew-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-block-start: var(--space-sm);
}

.brew-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-boundary-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.brew-hero-capture {
  position: relative;
  grid-area: capture;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}

@media (min-width: 60.001rem) {
  .brew-hero-capture {
    transform: scale(0.84);
  }
}

.brew-hero-capture::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 8%;
  inset-block-end: 2%;
  height: 16%;
  border-radius: var(--radius-pill);
  background: var(--color-boundary-accent);
  filter: blur(var(--space-xl));
  opacity: 0.72;
}

.brew-hero-capture img {
  display: block;
  width: 100%;
  height: auto;
}

.brew-promises {
  grid-area: promises;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brew-promises li {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  min-width: 0;
  padding-inline: var(--space-md);
  border-inline-start: var(--rule-hair) solid var(--color-boundary-rule);
}

.brew-promises li:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.brew-promises span,
.brew-capture figcaption {
  color: var(--color-boundary-dim);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brew-promises strong {
  color: var(--color-boundary-ink);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.brew-promises small {
  color: var(--color-boundary-body);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.brew-difference {
  display: grid;
  gap: var(--space-2xl);
  min-width: 0;
  padding: clamp(var(--space-2xl), 8vw, var(--space-3xl)) clamp(var(--space-md), 6vw, var(--space-3xl));
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule);
  background: var(--color-boundary-paper-2);
  color: var(--color-boundary-ink);
}

.brew-difference-head {
  gap: var(--space-lg);
}

.brew-difference-head h2 {
  max-width: 16ch;
}

.brew-decision-map {
  display: grid;
  min-width: 0;
  border-block: var(--rule-hair) solid var(--color-boundary-rule-strong);
}

.brew-decision-lane {
  display: grid;
  align-content: start;
  gap: var(--space-xl);
  min-width: 0;
  padding-block: var(--space-xl);
}

.brew-decision-lane + .brew-decision-lane {
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule-strong);
}

.brew-decision-lane > header {
  display: grid;
  gap: var(--space-xs);
}

.brew-decision-lane > header span,
.brew-decision-lane small,
.brew-decision-context dt {
  color: var(--color-boundary-dim);
  font-family: var(--font-code);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
}

.brew-decision-lane > header h3 {
  min-width: 0;
  max-width: 22ch;
  margin: 0;
  color: var(--color-boundary-ink);
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.8vw, var(--text-2xl));
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.brew-decision-simple,
.brew-decision-outcomes {
  display: grid;
  gap: var(--space-xl);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brew-decision-simple li,
.brew-decision-gate {
  position: relative;
  display: grid;
  gap: var(--space-2xs);
  min-width: 0;
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-boundary-rule-strong);
  background: var(--color-boundary-paper);
}

.brew-decision-simple li:not(:last-child)::after,
.brew-decision-context::after,
.brew-decision-gate::after {
  content: "";
  position: absolute;
  inset-block-start: calc(100% + var(--rule-hair));
  inset-inline-start: 50%;
  width: var(--space-xs);
  height: var(--space-xs);
  border-inline-end: var(--rule-hair) solid var(--color-boundary-rule-strong);
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule-strong);
  transform: translate(-50%, calc(var(--space-sm) - var(--rule-hair))) rotate(45deg);
}

.brew-decision-simple li:not(:last-child)::before,
.brew-decision-context::before,
.brew-decision-gate::before {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 50%;
  height: var(--space-xl);
  border-inline-start: var(--rule-hair) solid var(--color-boundary-rule-strong);
}

.brew-decision-simple strong,
.brew-decision-gate strong {
  color: var(--color-boundary-ink);
  font-size: var(--text-base);
  line-height: 1.4;
}

.brew-decision-simple code {
  color: var(--color-boundary-body);
  font-family: var(--font-code);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.brew-decision-context {
  position: relative;
  display: grid;
  gap: 0 var(--space-lg);
  min-width: 0;
  margin: 0 0 var(--space-xl);
}

.brew-decision-context > div {
  display: grid;
  gap: var(--space-2xs);
  min-width: 0;
  padding-block: var(--space-sm);
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule);
}

.brew-decision-context dt,
.brew-decision-context dd {
  min-width: 0;
  margin: 0;
}

.brew-decision-context dd {
  color: var(--color-boundary-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

.brew-decision-gate {
  justify-self: stretch;
  margin-block-end: var(--space-xl);
  border-color: var(--color-boundary-accent);
}

.brew-decision-gate small {
  color: var(--color-boundary-accent);
}

.brew-decision-outcomes {
  gap: var(--space-xs);
}

.brew-decision-outcomes li {
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-boundary-rule-strong);
  color: var(--color-boundary-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
}

.brew-decision-outcomes li::before {
  content: "";
  display: inline-block;
  width: var(--space-2xs);
  height: var(--space-2xs);
  margin-inline-end: var(--space-xs);
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.brew-decision-outcomes .brew-decision-apply { color: var(--color-boundary-success); }
.brew-decision-outcomes .brew-decision-approve { color: var(--color-boundary-warn); }
.brew-decision-outcomes .brew-decision-deny { color: var(--color-boundary-danger); }

@media (min-width: 40rem) {
  .brew-decision-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brew-decision-context > div:last-child {
    grid-column: 1 / -1;
  }

  .brew-decision-outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60.001rem) {
  .brew-difference-head {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    align-items: end;
    column-gap: clamp(var(--space-xl), 7vw, var(--space-4xl));
  }

  .brew-decision-map {
    grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1.32fr);
  }

  .brew-decision-lane {
    padding: var(--space-xl);
  }

  .brew-decision-lane:first-child {
    padding-inline-start: 0;
  }

  .brew-decision-lane:last-child {
    padding-inline-end: 0;
  }

  .brew-decision-lane + .brew-decision-lane {
    border-block-start: 0;
    border-inline-start: var(--rule-hair) solid var(--color-boundary-rule-strong);
  }
}

.brew-risk,
.brew-feature,
.brew-pricing,
.brew-footer {
  min-width: 0;
  padding: clamp(var(--space-3xl), 12vw, var(--space-4xl)) clamp(var(--space-md), 6vw, var(--space-3xl));
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule);
}

.brew-risk {
  display: grid;
  gap: calc(var(--space-2xl) + var(--space-sm));
  background: var(--color-boundary-paper-2);
  color: var(--color-boundary-ink);
}

.brew-split,
.brew-feature {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(var(--space-xl), 7vw, var(--space-4xl));
}

.brew-copy {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
}

.brew-copy h2 {
  min-width: 0;
  max-width: 14ch;
  margin: 0;
  color: var(--color-boundary-ink);
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.brew-copy p {
  max-width: 65ch;
  margin: 0;
  color: var(--color-boundary-body);
  font-size: var(--text-base);
  line-height: 1.65;
}

.brew-how-it-works {
  display: grid;
  gap: var(--space-xs);
  margin-block-start: var(--space-sm);
}

.brew-how-it-works h3 {
  margin: 0;
  color: var(--color-boundary-dim);
  font-size: var(--text-sm);
}

.brew-how-it-works p {
  color: var(--color-boundary-dim);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.brew-session {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brew-chat-message {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-sm);
  min-width: 0;
}

.brew-chat-avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--rule-hair) solid var(--color-boundary-rule-strong);
  border-radius: 50%;
  background: var(--color-boundary-surface);
  color: var(--color-boundary-body);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 800;
}

.brew-chat-message-agent .brew-chat-avatar {
  border: 0;
  background: url("assets/claude-icon.svg") center / cover no-repeat;
  color: transparent;
}

.brew-chat-message:is(.brew-chat-message-tool, .brew-chat-message-result) .brew-chat-avatar {
  border: 0;
  background: transparent;
  color: var(--color-boundary-dim);
  font-size: 0;
}

.brew-chat-message:is(.brew-chat-message-tool, .brew-chat-message-result) .brew-chat-avatar::before {
  content: "•";
  font-size: var(--text-lg);
  line-height: 1;
}

.brew-chat-body {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
}

.brew-chat-speaker {
  color: var(--color-boundary-dim);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brew-chat-bubble {
  justify-self: start;
  min-width: 0;
  max-width: min(100%, 42rem);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-boundary-rule);
  border-radius: var(--radius-md);
  background: var(--color-boundary-surface);
  color: var(--color-boundary-ink);
}

.brew-chat-message-agent .brew-chat-bubble {
  border-color: var(--color-boundary-rule-strong);
  background: var(--color-boundary-surface-2);
}

.brew-chat-message-tool .brew-chat-bubble {
  border-color: var(--color-boundary-warn);
  background: var(--color-boundary-warn-soft);
}

.brew-chat-message-result .brew-chat-bubble {
  width: 100%;
  background: var(--color-boundary-paper);
}

.brew-chat-bubble p,
.brew-chat-bubble pre,
.brew-chat-bubble code {
  min-width: 0;
  margin: 0;
}

.brew-chat-bubble p {
  color: var(--color-boundary-ink);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.4;
}

.brew-chat-bubble code {
  color: var(--color-boundary-warn);
  font-family: var(--font-code);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.brew-chat-message-result code {
  color: var(--color-boundary-body);
}

.brew-chat-message-approval .brew-chat-avatar {
  border-color: var(--color-boundary-warn);
  background: var(--color-boundary-warn);
  color: var(--color-boundary-paper);
}

.brew-chat-message-approval .brew-chat-bubble {
  width: 100%;
  border-color: var(--color-boundary-warn);
  background: var(--color-boundary-warn-soft);
}

.brew-chat-message-approval strong {
  color: var(--color-boundary-warn);
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.4vw, var(--text-xl));
  line-height: 1.1;
  text-transform: uppercase;
}

.brew-exfiltration {
  display: grid;
  min-width: 0;
}

.brew-alert {
  display: grid;
  gap: var(--space-xs);
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: var(--space-2xl) clamp(var(--space-md), 6vw, var(--space-3xl));
  border-block: var(--rule-hair) solid var(--color-boundary-danger);
  background: var(--color-boundary-danger);
  color: var(--color-boundary-paper);
  text-align: center;
}

.brew-alert strong {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 7vw, var(--text-display-s));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brew-alert span {
  font-family: var(--font-code);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
}

.brew-after {
  position: relative;
  padding-block: calc(var(--space-2xl) + var(--space-sm)) var(--space-2xl);
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule-strong);
}

.brew-after > .brew-copy {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
}

.brew-after > .brew-session {
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: subgrid;
  column-gap: normal;
}

.brew-after .brew-chat-message {
  grid-column: 2;
}

.brew-after .brew-session > :nth-child(-n + 3) {
  opacity: 0.4;
}

.brew-chat-divider {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-block-start: var(--space-sm);
  color: var(--color-boundary-accent);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

.brew-chat-divider span {
  grid-column: 1;
}

.brew-chat-divider::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  border-block-start: var(--rule-hair) solid var(--color-boundary-accent);
}

@media (min-width: 75rem) {
  .brew-risk > .brew-split:first-child .brew-chat-message-tool .brew-chat-bubble {
    position: relative;
  }

  .brew-risk > .brew-split:first-child .brew-chat-message-tool .brew-chat-bubble::before {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: calc(100% + var(--space-md));
    width: calc(var(--space-3xl) - (var(--space-md) * 2) + clamp(var(--space-xl), 7vw, var(--space-4xl)) + var(--space-xl) + var(--space-sm));
    border-block-start: var(--rule-hair) dashed var(--color-boundary-warn);
    transform: translateY(-50%);
  }

  .brew-risk > .brew-split:first-child .brew-chat-message-tool .brew-chat-bubble::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: calc(100% + var(--space-sm));
    width: calc(var(--space-xs) - var(--rule-hair) * 2);
    height: calc(var(--space-xs) - var(--rule-hair) * 2);
    border-block-start: var(--rule-hair) solid var(--color-boundary-warn);
    border-inline-end: var(--rule-hair) solid var(--color-boundary-warn);
    transform: translateY(-50%) rotate(45deg);
  }
}

@media (min-width: 60.001rem) {
  .brew-after .brew-session > :nth-child(4),
  .brew-after .brew-session > :nth-child(5) {
    grid-row: 4;
  }

  .brew-after .brew-session > :nth-child(6) {
    grid-row: 5;
  }

  .brew-after .brew-session > :nth-child(7) {
    grid-row: 6;
  }

  .brew-after .brew-session > :nth-child(8),
  .brew-after .brew-session > :nth-child(9) {
    grid-row: 7;
  }

  .brew-after .brew-chat-divider {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) var(--space-xl);
    align-self: center;
    align-items: center;
    gap: var(--space-md);
    z-index: 2;
    padding: 0;
    pointer-events: none;
    transform: translateY(calc(var(--space-xs) + var(--space-2xs)));
  }

  .brew-after .brew-chat-divider span {
    grid-column: 1;
    grid-row: 1;
  }

  .brew-after .brew-chat-divider::before {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: calc(var(--space-xl) + clamp(var(--space-xl), 7vw, var(--space-4xl)) + var(--space-md) * 2 + var(--rule-hair) * 4);
    border-block-start: var(--rule-hair) dashed var(--color-boundary-accent);
  }

  .brew-after .brew-chat-divider::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: calc((clamp(var(--space-xl), 7vw, var(--space-4xl)) + var(--space-md) * 2 + var(--rule-hair) * 4) * -1);
    width: calc(var(--space-xs) - var(--rule-hair) * 2);
    height: calc(var(--space-xs) - var(--rule-hair) * 2);
    border-block-start: var(--rule-hair) solid var(--color-boundary-accent);
    border-inline-end: var(--rule-hair) solid var(--color-boundary-accent);
    transform: translateY(-50%) rotate(45deg);
  }
}

.brew-proof {
  align-items: center;
}

.brew-feature {
  align-items: center;
  background: var(--color-boundary-paper);
  color: var(--color-boundary-ink);
}

.brew-feature-reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
  background: var(--color-boundary-surface);
  color: var(--color-boundary-ink);
}

.brew-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
  align-items: end;
  gap: clamp(var(--space-xl), 7vw, var(--space-4xl));
  border-block-start: var(--rule-hair) solid var(--color-boundary-accent);
  background: var(--color-boundary-surface-2);
  color: var(--color-boundary-ink);
}

.brew-pricing h2 {
  min-width: 0;
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.brew-pricing p {
  max-width: 45ch;
  margin: 0;
  color: var(--color-boundary-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.5;
}

.brew-capture {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
  margin: 0;
}

.brew-capture img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.brew-capture-gate {
  width: min(100%, 46rem);
  justify-self: end;
}

/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
.brew-access {
  display: grid;
  gap: var(--space-2xl);
  min-width: 0;
  padding: clamp(var(--space-3xl), 12vw, var(--space-4xl)) clamp(var(--space-md), 6vw, var(--space-3xl));
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule);
  background: var(--color-boundary-surface);
  color: var(--color-boundary-ink);
}

.brew-access > .brew-copy {
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: clamp(var(--space-xl), 7vw, var(--space-4xl));
}

.brew-access > .brew-copy .brew-eyebrow {
  grid-column: 1 / -1;
}

.brew-access-body {
  display: grid;
  gap: var(--space-lg);
  min-width: 0;
  width: min(100%, 75rem);
  justify-self: center;
}

.brew-access-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  min-width: 0;
  width: 100%;
  margin: 0;
}

.brew-access-screen {
  position: relative;
  min-width: 0;
}

.brew-access-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.brew-access-ring {
  position: absolute;
  inset-inline-start: 75.5%;
  width: 18.5%;
  height: 5.9%;
  border: calc(var(--rule-hair) * 2) solid var(--color-boundary-accent);
  border-radius: var(--radius-pill);
  transform: translateY(-25%);
}

.brew-access-ring::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 100%;
  width: calc(32.5% + 3px);
  border-block-start: calc(var(--rule-hair) * 2) solid var(--color-boundary-accent);
}

.brew-access-ring-none { inset-block-start: 46%; }
.brew-access-ring-trusted { inset-block-start: 55.2%; }
.brew-access-ring-read { inset-block-start: 65.6%; }

.brew-access-notes {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--space-lg);
  min-width: 0;
  margin: 0;
  padding-inline-start: var(--space-xl);
}

.brew-access-notes::before {
  content: "";
  position: absolute;
  inset-block: 28%;
  inset-inline-start: 0;
  border-inline-start: calc(var(--rule-hair) * 2) solid var(--color-boundary-accent);
}

.brew-access-note {
  position: relative;
  display: grid;
  gap: var(--space-xs);
}

.brew-access-note::before {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--text-sm) / 2);
  inset-inline-start: calc(var(--space-xl) * -1);
  width: var(--space-lg);
  border-block-start: calc(var(--rule-hair) * 2) solid var(--color-boundary-accent);
}

.brew-access-note dt,
.brew-access-note dd {
  margin: 0;
}

.brew-access-note dt {
  color: var(--color-boundary-accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brew-access-note dd {
  color: var(--color-boundary-body);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.brew-access-note code {
  color: var(--color-boundary-ink);
  font-family: var(--font-code);
}

.brew-access-note sup {
  margin-inline-start: var(--space-2xs);
  font-size: var(--text-xs);
  line-height: 0;
}

.brew-access-note sup a,
.brew-access-footnote a {
  color: var(--color-boundary-accent);
}

.brew-access-footnote {
  width: calc(100% / 3);
  margin: 0;
  padding-block-start: var(--space-md);
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule);
  color: var(--color-boundary-dim);
  font-size: var(--text-xs);
  line-height: 1.6;
  justify-self: end;
}

.brew-access-footnote code {
  color: var(--color-boundary-body);
  font-family: var(--font-code);
}

.brew-log-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--space-lg) 0 0;
  padding: 0;
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule-strong);
  list-style: none;
}

.brew-log-fields li {
  padding: var(--space-sm) 0;
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule);
  color: var(--color-boundary-warn);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
}

.brew-log-fields li:nth-child(odd) {
  padding-inline-end: var(--space-md);
}

.brew-footer {
  display: grid;
  justify-items: start;
  gap: var(--space-xl);
  border-block-end: 0;
  background: var(--color-boundary-paper-2);
  color: var(--color-boundary-ink);
}

.brew-footer-statement {
  max-width: 28ch;
  margin: 0;
  color: var(--color-boundary-ink);
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 6vw, var(--text-display));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brew-footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
  padding-block-start: var(--space-md);
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule);
}

.brew-footer-meta nav,
.brew-languages {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brew-footer-meta > span {
  color: var(--color-boundary-dim);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.brew-languages {
  flex-wrap: wrap;
}

@media (hover: hover) and (pointer: fine) {
  .brew-download:hover,
  .brew-download:focus-visible {
    border-color: var(--color-boundary-ink);
    background: var(--color-boundary-ink);
    color: var(--color-boundary-paper);
    transform: translateY(calc(var(--rule-hair) * -1));
  }

  .brew-cta:hover,
  .brew-cta:focus-visible {
    border-color: var(--color-boundary-accent);
    background: var(--color-boundary-accent);
    color: var(--color-boundary-accent-ink);
    transform: translateY(calc(var(--rule-hair) * -1));
  }

  .brew-nav-links a:hover,
  .brew-footer-meta a:hover,
  .brew-languages a:hover {
    color: var(--color-boundary-accent);
  }
}

@media (max-width: 60rem) {
  .brew-hero,
  .brew-split,
  .brew-feature,
  .brew-feature-reverse,
  .brew-pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  .brew-after > .brew-copy,
  .brew-after > .brew-session,
  .brew-after .brew-chat-message,
  .brew-chat-divider {
    grid-column: 1;
    grid-row: auto;
  }

  .brew-after > .brew-session,
  .brew-chat-divider {
    grid-template-columns: minmax(0, 1fr);
  }

  .brew-chat-divider {
    font-size: var(--text-xs);
    text-align: end;
  }

  .brew-chat-divider span {
    justify-self: end;
  }

  .brew-chat-divider::before {
    inset-inline-start: 20%;
  }

  .brew-chat-divider::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 20%;
    border-block: 0.28rem solid transparent;
    border-inline-end: 0.45rem solid var(--color-boundary-accent);
    transform: translateY(-50%);
  }

  .brew-hero {
    grid-template-areas:
      "copy"
      "capture"
      "promises";
    align-content: end;
    gap: var(--space-3xl);
    min-height: auto;
  }

  .brew-feature-reverse .brew-copy {
    order: -1;
  }

  .brew-capture-gate {
    width: 100%;
    justify-self: stretch;
  }

  .brew-access > .brew-copy,
  .brew-access-diagram {
    grid-template-columns: minmax(0, 1fr);
  }

  .brew-access-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    padding-block-start: var(--space-xl);
    padding-inline-start: 0;
  }

  .brew-access-footnote {
    width: 100%;
  }

  .brew-access-note {
    padding-inline-start: var(--space-md);
    border-inline-start: calc(var(--rule-hair) * 2) solid var(--color-boundary-accent);
  }

  .brew-access-ring::after {
    display: none;
  }

  .brew-access-notes::before,
  .brew-access-note::before {
    display: none;
  }
}

@media (max-width: 40rem) {
  .brew-nav {
    inset-block-start: var(--space-sm);
    width: min(calc(100% - (var(--space-md) * 2)), 30rem);
  }

  .brew-nav-links {
    display: none;
  }

  .brew-nav .brew-download {
    margin-inline-start: auto;
  }

  .brew-hero {
    gap: var(--space-2xl);
    padding-block-start: var(--space-3xl);
    padding-block-end: calc(var(--space-3xl) + var(--space-xl));
  }

  .brew-hero h1 {
    font-size: var(--text-display-s);
  }

  .brew-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-md);
  }

  .brew-promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .brew-promises li,
  .brew-promises li:first-child {
    padding: var(--space-md) 0;
    border-inline-start: 0;
    border-block-start: var(--rule-hair) solid var(--color-boundary-rule);
  }

  .brew-risk,
  .brew-difference,
  .brew-feature,
  .brew-access,
  .brew-pricing,
  .brew-footer {
    padding-inline: var(--space-md);
  }

  .brew-chat-message {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .brew-chat-avatar {
    width: 2rem;
    height: 2rem;
  }

  .brew-alert {
    padding-block: var(--space-xl);
  }

  .brew-alert strong {
    font-size: var(--text-2xl);
  }

  .brew-log-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .brew-log-fields li:nth-child(odd) {
    padding-inline-end: 0;
  }

  .brew-footer-meta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-md);
  }

  .brew-footer-meta nav {
    flex-wrap: wrap;
  }
}

@media (pointer: coarse) {
  .brew-download,
  .brew-cta,
  .brew-nav-links a,
  .brew-footer-meta a,
  .brew-languages a {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brew-download,
  .brew-cta {
    transition: none;
  }

  .brew-download:hover,
  .brew-download:focus-visible,
  .brew-download:active,
  .brew-cta:hover,
  .brew-cta:focus-visible,
  .brew-cta:active {
    transform: none;
  }
}

/* Hallmark · homepage restraint pass · 2026-07-20
 * Copy and proof preserved. Visual treatment only.
 */
.brew-kicker,
.brew-eyebrow {
  color: var(--color-boundary-body);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.brew-hero h1,
.brew-copy h2,
.brew-pricing h2,
.brew-footer-statement {
  font-weight: 700;
}

.brew-hero h1 {
  font-size: clamp(var(--text-4xl), 4.6vw, var(--text-display-s));
  line-height: 1;
}

.brew-hero h1 span { color: inherit; }

.brew-hero-capture::after { display: none; }

@media (min-width: 60.001rem) {
  .brew-hero-capture { transform: scale(0.9); }
}

.brew-promises {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--space-lg);
  padding-block-start: var(--space-md);
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule);
}

.brew-promises li,
.brew-promises li:first-child {
  padding: 0;
  border: 0;
}

.brew-promises span { display: none; }

.brew-chat-bubble p {
  font-size: var(--text-base);
  font-weight: 600;
}

.brew-chat-message-approval strong {
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));
}

.brew-alert {
  width: auto;
  margin-inline: 0;
  padding: var(--space-xl);
  border: var(--rule-hair) solid var(--color-boundary-danger);
  background: var(--color-boundary-surface-2);
  color: var(--color-boundary-ink);
  text-align: start;
}

.brew-alert strong {
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.05;
}

.brew-alert span {
  color: var(--color-boundary-body);
  font-family: var(--font-body);
  font-weight: 500;
}

.brew-hero-capture img,
.brew-capture img,
.brew-access-screen img {
  border-radius: var(--radius-card);
}

.brew-capture figcaption {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.brew-access-note dt {
  color: var(--color-boundary-ink);
  letter-spacing: 0;
  text-transform: none;
}

.brew-access-diagram {
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
  gap: var(--space-xl);
  align-items: center;
}

.brew-access > .brew-copy {
  column-gap: clamp(var(--space-xl), 7vw, var(--space-4xl));
  row-gap: var(--space-md);
}

.brew-access-ring,
.brew-access-notes::before,
.brew-access-note::before {
  display: none;
}

.brew-access-notes {
  gap: 0;
  padding: 0;
  border-block-start: var(--rule-hair) solid var(--color-boundary-rule-strong);
}

.brew-access-note {
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-block-end: var(--rule-hair) solid var(--color-boundary-rule);
}

@media (max-width: 60rem) {
  .brew-access-diagram {
    grid-template-columns: minmax(0, 1fr);
  }

  .brew-access-notes {
    padding-block-start: 0;
  }

  .brew-access-note {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

@media (max-width: 40rem) {
  .brew-alert { padding: var(--space-lg); }

  .brew-feature .brew-text-link {
    max-width: 26ch;
    line-height: 1.4;
    white-space: normal;
  }

  .brew-promises {
    gap: 0;
    padding-block-start: 0;
    border-block-start: 0;
  }
}

/* Final non-package cascade: legacy page families contain literal colors. */
body:not(.brew-home) {
  color: var(--site-ink);
  background:
    radial-gradient(circle at 78% 4rem, var(--site-wash), transparent 32rem),
    var(--site-paper);
  font-family: var(--site-font-body);
}

.site-shell,
.seo-shell {
  background: transparent;
}

.masthead,
.seo-masthead {
  border-color: var(--site-rule-soft);
  background: var(--site-paper-glass);
  box-shadow: 0 18px 52px var(--site-shadow);
  backdrop-filter: blur(20px);
}

.blog-hero,
.article-hero,
.not-found,
.seo-hero,
.landing-page-hero {
  border-color: var(--site-rule-soft);
  background:
    radial-gradient(circle at 82% 18%, var(--site-wash), transparent 29rem),
    linear-gradient(180deg, var(--site-paper-raised), var(--site-paper));
}

.blog-hero h1,
.article-hero h1,
.not-found h1,
.seo-hero h1,
.landing-page-hero h1 {
  color: var(--site-ink);
  font-family: var(--site-font-display);
  font-style: normal;
  letter-spacing: -0.055em;
}

.incident-body,
.blog-index {
  border-color: var(--site-rule-soft);
  background: var(--site-paper);
}

.post-card,
.incident-panel,
.incident-control,
.incident-note {
  border-color: var(--site-rule);
  background:
    linear-gradient(180deg, var(--site-white-wash), transparent 46%),
    var(--site-paper-raised);
  box-shadow: 0 24px 70px var(--site-shadow);
}

.site-footer,
.seo-footer {
  border-color: var(--site-rule-soft);
  background:
    linear-gradient(180deg, var(--site-white-wash), transparent 70%),
    var(--site-paper-raised);
  color: var(--site-ink-dim);
}
