/* ==========================================================================
   Vekta — Editorial rebuild
   Type: Fraunces (display serif) · Archivo (body) · Archivo Narrow (condensed)
         · JetBrains Mono (data)
   Palette: warm paper, near-black ink, electric red, acid yellow, cobalt
   Aesthetic: magazine masthead, editorial brutalism, poster pull quotes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Archivo+Narrow:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Palette — signature pale sage */
  --paper:       #e8ebe4;    /* pale sage, Vekta's signature */
  --paper-soft:  #dde3d3;    /* deeper sage for insets, hovers */
  --ink:         #0b0b0b;
  --ink-soft:    #1f1f1f;
  --ink-mid:     #4c4c4c;
  --ink-faint:   #8a8a8a;
  --ink-ghost:   #b9beb0;    /* sage-tinted subtle for footer + comments */
  --red:         #e8402a;
  --red-deep:    #b82c18;
  --acid:        #efe932;
  --cobalt:      #1a37d4;
  --rule:        #0b0b0b;

  /* Type families */
  --serif:   'Fraunces', Georgia, serif;
  --sans:    'Archivo', 'Helvetica Neue', sans-serif;
  --narrow:  'Archivo Narrow', 'Archivo', sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', monospace;

  /* Layout */
  --max: 1480px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

/* --------------------------------------------------------------------------
   Top ticker — magazine dateline band
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}

.ticker-inner {
  display: inline-flex;
  gap: 48px;
  padding-left: 32px;
  animation: ticker 60s linear infinite;
  will-change: transform;
}

.ticker-inner span::before {
  content: '★';
  color: var(--red);
  margin-right: 48px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 40px;
  line-height: 0.9;
  letter-spacing: -1.5px;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand em {
  font-style: italic;
  color: var(--red);
  font-variation-settings: "opsz" 144, "wght" 350;
}

.nav-links {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
}

.nav-link {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border-right: 1.5px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
}

.nav-link:last-child { border-right: none; }

.nav-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-link.active {
  background: var(--red);
  color: var(--paper);
}

/* Featured content tabs — permanent accent colors so the nav itself
   carries the color-block energy of the posters. Active state (red)
   still wins; hover collapses to ink for consistency. */
.nav-link[href="paradox.html"]:not(.active) {
  background: var(--cobalt);
  color: var(--paper);
}

.nav-link[href="paradox.html"]:not(.active):hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-link[href="kit.html"]:not(.active) {
  background: var(--acid);
  color: var(--ink);
}

.nav-link[href="kit.html"]:not(.active):hover {
  background: var(--ink);
  color: var(--acid);
}

/* --------------------------------------------------------------------------
   Page container & section system
   -------------------------------------------------------------------------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
}

.section {
  padding: 80px var(--gutter);
  border-bottom: 3px solid var(--ink);
  position: relative;
}

.section.tight { padding: 56px var(--gutter); }

.section.nobord { border-bottom: none; }

/* Full-bleed variant breaks out of .page container and spans the viewport */
.bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - var(--max)/2 + var(--gutter));
  padding-right: calc(50vw - var(--max)/2 + var(--gutter));
  border-bottom: 3px solid var(--ink);
}

@media (max-width: 1480px) {
  .bleed { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* --------------------------------------------------------------------------
   Masthead (page hero)
   -------------------------------------------------------------------------- */
.masthead {
  padding: 48px var(--gutter) 72px;
  border-bottom: 3px solid var(--ink);
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.masthead-meta .meta-dot {
  color: var(--red);
  margin: 0 8px;
}

.masthead-kicker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
}

.masthead-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(60px, 15vw, 232px);
  line-height: 0.87;
  letter-spacing: -3.5px;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 100%;
}

.masthead-title em {
  font-style: italic;
  color: var(--red);
  font-variation-settings: "opsz" 144, "wght" 350;
}

.masthead-sub {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 920px;
  margin-bottom: 48px;
}

.masthead-sub em {
  font-style: italic;
  color: var(--red);
}

/* Tight variant — AI tab uses it so the color doors sit closer to the title */
.masthead.masthead-tight {
  padding: 48px var(--gutter) 32px;
}

.masthead.masthead-tight .masthead-title {
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}

.masthead.masthead-tight .masthead-meta {
  margin-bottom: 36px;
  padding-bottom: 20px;
}

.masthead-sub-tight {
  max-width: 780px;
  margin-bottom: 0;
}

.masthead-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}

.strip-cell {
  padding: 16px 20px 4px 0;
  border-right: 1.5px solid var(--ink);
}

.strip-cell:last-child { border-right: none; }
.strip-cell:not(:first-child) { padding-left: 20px; }

.strip-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.strip-val {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strip-val em {
  color: var(--red);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Section head — marker + title
   -------------------------------------------------------------------------- */
.sechead {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--ink);
}

.sechead-marker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 14px;
}

.sechead-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -2.2px;
  color: var(--ink);
}

.sechead-title em {
  font-style: italic;
  color: var(--red);
}

.sechead-lede {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 820px;
  margin-top: 0;
  margin-bottom: 32px;
}

.sechead-lede em {
  font-style: italic;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Feature block — marker, body, marginalia
   -------------------------------------------------------------------------- */
.features {
  display: flex;
  flex-direction: column;
}

.feature {
  display: grid;
  grid-template-columns: 160px 1fr 280px;
  gap: 48px;
  padding: 44px 0;
  border-top: 1.5px solid var(--ink);
}

.feature:last-child {
  border-bottom: 1.5px solid var(--ink);
}

.feature-marker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.3;
}

.feature-marker .num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: 44px;
  letter-spacing: -1.5px;
  display: block;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.feature-body h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 18px;
}

.feature-body h3 em {
  font-style: italic;
  color: var(--red);
}

.feature-body .fb-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--red);
  display: inline-block;
}

.feature-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 14px;
}

.feature-body p:last-child { margin-bottom: 0; }

.feature-margin {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1.8;
  color: var(--ink-mid);
  padding-left: 16px;
  border-left: 3px solid var(--red);
  align-self: start;
}

.feature-margin strong {
  color: var(--ink);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Poster pull quote (full-bleed color block)
   -------------------------------------------------------------------------- */
.poster {
  padding: 100px var(--gutter);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.poster-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.poster-kicker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 36px;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
}

.poster-quote {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(42px, 6.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 40px;
}

.poster-quote em {
  color: var(--red);
}

.poster-attr {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Poster — acid yellow variant */
.poster.acid {
  background: var(--acid);
  color: var(--ink);
}
.poster.acid .poster-quote em { color: var(--red); }
.poster.acid .poster-kicker { color: var(--red); border-bottom-color: var(--red); }
.poster.acid .poster-attr { color: var(--ink-mid); }

/* Poster — red variant */
.poster.red {
  background: var(--red);
  color: var(--paper);
}
.poster.red .poster-quote em { color: var(--ink); }
.poster.red .poster-kicker { color: var(--ink); border-bottom-color: var(--ink); }
.poster.red .poster-attr { color: #f8dad1; }

/* Poster — paper variant (giant display title) */
.poster.paper {
  background: var(--paper-soft);
  color: var(--ink);
}
.poster.paper .poster-quote em { color: var(--red); }
.poster.paper .poster-kicker { color: var(--red); border-bottom-color: var(--red); }
.poster.paper .poster-attr { color: var(--ink-mid); }

/* --------------------------------------------------------------------------
   Shipped block (compact colored strip inside a practice accordion)
   Sits below the practice-items as "here's what this looks like when we ship it"
   -------------------------------------------------------------------------- */
.shipped {
  margin-top: 24px;
  padding: 22px 26px 24px;
  background: var(--red);
  color: var(--paper);
}

.shipped-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1.5px solid currentColor;
  margin-bottom: 18px;
}

.shipped-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.shipped-free {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 15.5px;
  line-height: 1.4;
  max-width: 820px;
}

.shipped-free strong {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
  opacity: 0.85;
}

.shipped-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.shipped-items.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.shipped-item {
  padding: 0 20px 0 0;
  border-right: 1.5px solid currentColor;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shipped-item:not(:first-child) {
  padding-left: 20px;
}

.shipped-item:last-child {
  border-right: none;
  padding-right: 0;
}

.shipped-item-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}

.shipped-item h5 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 17px;
  line-height: 1.15;
  margin: 0 0 3px 0;
}

.shipped-item h5 em {
  font-style: italic;
}

.shipped-item p {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0.94;
}

.shipped-outcome {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 13px;
  line-height: 1.3;
}

/* Shipped — RED variant (default) */
.shipped.red { background: var(--red); color: var(--paper); }
.shipped.red h5 em,
.shipped.red .shipped-outcome em { color: var(--ink); }

/* Shipped — PAPER variant (sage) */
.shipped.paper { background: var(--paper-soft); color: var(--ink); }
.shipped.paper h5 em,
.shipped.paper .shipped-outcome em { color: var(--red); }

/* Shipped — COBALT variant */
.shipped.cobalt { background: var(--cobalt); color: var(--paper); }
.shipped.cobalt h5 em,
.shipped.cobalt .shipped-outcome em { color: var(--acid); }

/* Shipped — ACID variant */
.shipped.acid { background: var(--acid); color: var(--ink); }
.shipped.acid h5 em,
.shipped.acid .shipped-outcome em { color: var(--red); }

/* --------------------------------------------------------------------------
   Stats bar (grid of big numbers)
   -------------------------------------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin: 48px 0;
}

.stat {
  padding: 28px 24px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat:last-child { border-right: none; }

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.stat-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(38px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--ink);
}

.stat-num em {
  font-style: italic;
  color: var(--red);
}

.stat-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contents list (magazine TOC on home)
   -------------------------------------------------------------------------- */
.toc {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--ink);
}

.toc-row {
  display: grid;
  grid-template-columns: 100px 1fr 180px 60px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1.5px solid var(--ink);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, padding 0.15s ease;
}

.toc-row:hover {
  background: var(--paper-soft);
  padding-left: 8px;
  padding-right: 8px;
}

.toc-num {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}

.toc-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--ink);
}

.toc-title em {
  font-style: italic;
  color: var(--red);
}

.toc-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.toc-arrow {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 32px;
  color: var(--red);
  text-align: right;
}

/* --------------------------------------------------------------------------
   Dispatch card (work / case study)
   -------------------------------------------------------------------------- */
.dispatch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink);
}

.dispatch > * {
  padding: 36px 32px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dispatch > *:nth-child(2n) { border-right: none; }

.dispatch-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.dispatch-company {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -1.8px;
  color: var(--ink);
  margin-bottom: 4px;
}

.dispatch-company em {
  font-style: italic;
  color: var(--red);
}

.dispatch-role {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.dispatch p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.dispatch-metric {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.dispatch-metric em {
  font-style: italic;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Writing list (editorial index)
   -------------------------------------------------------------------------- */
.writing-list {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--ink);
}

.writing-item {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1.5px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: padding 0.15s ease, background 0.15s ease;
  align-items: start;
}

.writing-item:hover {
  padding-left: 12px;
  background: var(--paper-soft);
}

.writing-item:hover .writing-title { color: var(--red); }

.writing-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-top: 6px;
}

.writing-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.writing-title em {
  font-style: italic;
  color: var(--red);
}

.writing-lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 680px;
}

.writing-arrow {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 32px;
  color: var(--red);
  text-align: right;
  line-height: 1;
  padding-top: 4px;
}

.writing-coming {
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Terms grid (how we work)
   -------------------------------------------------------------------------- */
.terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 3px solid var(--ink);
}

.term {
  padding: 32px 32px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.term:nth-child(2n) { border-right: none; }

.term h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 14px;
}

.term h4 em {
  font-style: italic;
  color: var(--red);
}

.term p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 540px;
}

/* --------------------------------------------------------------------------
   Values list (about)
   -------------------------------------------------------------------------- */
.values {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--ink);
}

.value {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1.5px solid var(--ink);
}

.value-label {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--ink);
}

.value-label em {
  font-style: italic;
  color: var(--red);
}

.value-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Two-col bios
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 3px solid var(--ink);
}

.two-col .col {
  padding: 36px 32px 36px 0;
  border-right: 1.5px solid var(--ink);
}

.two-col .col:last-child {
  padding-left: 32px;
  padding-right: 0;
  border-right: none;
}

.bio-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(44px, 4.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 8px;
}

.bio-name em {
  font-style: italic;
  color: var(--red);
}

.bio-role {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
}

.col p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Image block
   -------------------------------------------------------------------------- */
.image-block {
  margin: 0 0 40px 0;
  width: 100%;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1.5px solid var(--ink);
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.image-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 12px 0 0 0;
  display: flex;
  justify-content: space-between;
  border-top: 1.5px solid var(--ink);
}

/* --------------------------------------------------------------------------
   Phases / 12-month arc
   -------------------------------------------------------------------------- */
.arc {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  position: relative;
}

.phase {
  padding: 36px 24px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.phase:last-child { border-right: none; }

.phase-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--red);
  margin-bottom: 6px;
}

.phase-time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 4px;
}

.phase-title {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.15;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 3px 0 3px 14px;
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.phase-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.btn:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

.btn:active { transform: translate(1px, 1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-acid {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-acid:hover {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
}

.cta-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.cta-row .btn {
  border-right-width: 0;
}

.cta-row .btn:last-child { border-right-width: 2px; }

/* --------------------------------------------------------------------------
   Contact block
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding-top: 20px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 24px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  align-items: baseline;
  border-bottom: 1px solid var(--paper-soft);
}

.contact-row:last-child { border-bottom: none; }

.contact-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-val {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.2;
}

.contact-val a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}

.contact-val a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px var(--gutter) 36px;
  border-top: 3px solid var(--ink);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-word {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(72px, 10vw, 168px);
  line-height: 0.85;
  letter-spacing: -4px;
  color: var(--paper);
}

.footer-word em {
  font-style: italic;
  color: var(--red);
}

.footer-col {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-ghost);
  line-height: 1.8;
}

.footer-col a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.footer-col .footer-head {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-mid);
}

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 22px;
  color: var(--red);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.15;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   Link style inside copy
   -------------------------------------------------------------------------- */
.inline-link {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 1px;
  font-weight: 500;
}

.inline-link:hover {
  background: var(--red);
  color: var(--paper);
  border-bottom-color: var(--red);
}

/* --------------------------------------------------------------------------
   Code block (terminal / install)
   -------------------------------------------------------------------------- */
.code-block {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 36px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  border-left: 5px solid var(--red);
  overflow-x: auto;
  margin: 20px 0;
  position: relative;
}

.code-block[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--ink-mid);
}

.code-block pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-block .comment {
  color: var(--ink-ghost);
  font-style: italic;
}

.code-block .red   { color: var(--red); }
.code-block .acid  { color: var(--acid); }

/* --------------------------------------------------------------------------
   Gate stack — 7-step horizontal flow
   -------------------------------------------------------------------------- */
.gates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin: 40px 0;
}

.gate {
  padding: 26px 16px 22px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate:last-child { border-right: none; }

.gate-num {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}

.gate-cmd {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 12px;
  margin-top: 2px;
  border-bottom: 1.5px solid var(--ink);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.gate-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-mid);
}

/* --------------------------------------------------------------------------
   Link row (for GitHub / docs / etc.)
   -------------------------------------------------------------------------- */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0 8px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.link-row a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 18px;
  border-right: 1.5px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}

.link-row a:last-child { border-right: none; }

.link-row a:hover {
  background: var(--ink);
  color: var(--paper);
}

.link-row a .arrow {
  color: var(--red);
  margin-left: 8px;
}

.link-row a:hover .arrow { color: var(--acid); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .feature { grid-template-columns: 120px 1fr 240px; gap: 32px; }
  .sechead { grid-template-columns: 120px 1fr; gap: 32px; }
  .toc-row { grid-template-columns: 80px 1fr 140px 40px; gap: 24px; }
  .masthead-strip { grid-template-columns: repeat(2, 1fr); }
  .masthead-strip .strip-cell:nth-child(2) { border-right: none; }
  .masthead-strip .strip-cell:nth-child(3),
  .masthead-strip .strip-cell:nth-child(4) {
    border-top: 1.5px solid var(--ink);
    margin-top: 16px;
    padding-top: 16px;
  }

  .gates { grid-template-columns: repeat(4, 1fr); }
  .gate:nth-child(4) { border-right: none; }
  .gate:nth-child(5), .gate:nth-child(6), .gate:nth-child(7) {
    border-top: 1.5px solid var(--ink);
  }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }

  .nav-inner { gap: 14px; padding: 14px var(--gutter); }
  .nav-brand { font-size: 30px; }
  .nav-links {
    border: none;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-link {
    padding: 6px 10px;
    border: 1.5px solid var(--ink);
    font-size: 10.5px;
    letter-spacing: 1.5px;
    margin-left: -1.5px;
  }

  .masthead { padding: 32px var(--gutter) 56px; }
  .masthead-meta { flex-direction: column; gap: 6px; align-items: flex-start; font-size: 10px; }

  .section { padding: 56px var(--gutter); }

  .sechead { grid-template-columns: 1fr; gap: 16px; }
  .sechead-marker { padding-bottom: 0; }

  .feature {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .feature-margin {
    border-left: none;
    border-top: 2px solid var(--red);
    padding-left: 0;
    padding-top: 14px;
  }

  .poster { padding: 64px var(--gutter); }
  .poster-quote { font-size: clamp(32px, 8vw, 56px); }

  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1.5px solid var(--ink); }

  .dispatch { grid-template-columns: 1fr; }
  .dispatch > * { border-right: none; }

  .terms { grid-template-columns: 1fr; }
  .term { border-right: none; }

  .two-col { grid-template-columns: 1fr; }
  .two-col .col {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1.5px solid var(--ink);
  }
  .two-col .col:last-child { padding-left: 0; border-bottom: none; }

  .toc-row {
    grid-template-columns: 60px 1fr 40px;
    gap: 16px;
  }
  .toc-cat { display: none; }

  .writing-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .writing-arrow { display: none; }

  .arc { grid-template-columns: 1fr; }
  .phase { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .phase:last-child { border-bottom: none; }

  .value { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }

  .contact { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-word { font-size: 72px; letter-spacing: -2px; }

  .gates { grid-template-columns: 1fr; }
  .gate { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .gate:last-child { border-bottom: none; }
  .gate:nth-child(n+5) { border-top: none; }

  .code-block { padding: 22px 20px 22px 24px; }
  .code-block pre { font-size: 12.5px; line-height: 1.7; }

  .link-row { flex-direction: column; }
  .link-row a { padding: 12px 14px; font-size: 11px; border-right: none; border-bottom: 1.5px solid var(--ink); }
  .link-row a:last-child { border-bottom: none; }
}

/* ==========================================================================
   Practice accordion — <details>/<summary> on home
   ========================================================================== */
.practice {
  border-top: 1.5px solid var(--ink);
}

.practice:last-of-type {
  border-bottom: 1.5px solid var(--ink);
}

.practice summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  gap: 32px;
  align-items: baseline;
  transition: background 0.15s ease, padding 0.15s ease;
  border-left: 2px solid transparent;
}

.practice summary::-webkit-details-marker { display: none; }
.practice summary::marker { content: ''; }

.practice summary:hover {
  border-left-color: var(--red);
  padding-left: 12px;
}

.practice-num {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.3;
  padding-top: 14px;
}

.practice-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -1.8px;
  color: var(--ink);
  margin: 0;
}

.practice-title em {
  font-style: italic;
  color: var(--red);
}

.practice-indicator {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: 36px;
  color: var(--red);
  text-align: right;
  line-height: 1;
  padding-top: 12px;
  transition: transform 0.2s ease;
}

.practice[open] .practice-indicator {
  transform: rotate(45deg);
}

.practice-body {
  padding: 4px 0 36px 172px;
  animation: practiceFade 0.25s ease;
}

@keyframes practiceFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.practice-lede {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 24px;
}

.practice-lede em {
  font-style: italic;
  color: var(--red);
}

.practice-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink);
  margin-top: 16px;
}

.practice-item {
  padding: 18px 28px 20px 0;
  border-bottom: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}

.practice-item:nth-child(2n) {
  padding-left: 28px;
  padding-right: 0;
  border-right: none;
}

.practice-item h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.practice-item h4 em {
  font-style: italic;
  color: var(--red);
}

.practice-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
}

.practice-callout {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 16px 0;
  margin-bottom: 12px;
}

.practice-callout a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 1px;
}

.practice-callout a:hover {
  background: var(--red);
  color: var(--paper);
}

/* ==========================================================================
   AI hub — two-box layout
   ========================================================================== */
.ai-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin: 32px 0 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ai-box {
  padding: 48px 48px 44px;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.ai-box:last-child { border-right: none; }

/* When .ai-box is a link — full-block click target */
a.ai-box { cursor: pointer; }

a.ai-box:hover .ai-box-arrow {
  background: var(--ink);
  color: var(--paper);
}

/* Color variants — cobalt = the engagement, red = the op-ed */
.ai-box.cobalt {
  background: var(--cobalt);
  color: var(--paper);
}

.ai-box.cobalt .ai-box-kicker {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

.ai-box.cobalt h3 { color: var(--paper); }
.ai-box.cobalt h3 em { color: var(--acid); }

.ai-box.cobalt .ai-box-lede { color: var(--paper); opacity: 0.95; }
.ai-box.cobalt .ai-box-lede em { color: var(--acid); }

.ai-box.cobalt .ai-box-list {
  border-top-color: rgba(232, 235, 228, 0.35);
}

.ai-box.cobalt .ai-box-list li {
  color: var(--paper);
  border-bottom-color: rgba(232, 235, 228, 0.2);
  opacity: 0.92;
}

.ai-box.cobalt .ai-box-list li::before { color: var(--acid); }

.ai-box.cobalt .ai-box-arrow {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

a.ai-box.cobalt:hover .ai-box-arrow {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.ai-box.red {
  background: var(--red);
  color: var(--paper);
}

.ai-box.red .ai-box-kicker {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ai-box.red h3 { color: var(--paper); }
.ai-box.red h3 em { color: var(--ink); }

.ai-box.red .ai-box-lede { color: var(--paper); opacity: 0.95; }
.ai-box.red .ai-box-lede em { color: var(--ink); }

.ai-box.red .ai-box-list {
  border-top-color: rgba(232, 235, 228, 0.35);
}

.ai-box.red .ai-box-list li {
  color: var(--paper);
  border-bottom-color: rgba(232, 235, 228, 0.2);
  opacity: 0.92;
}

.ai-box.red .ai-box-list li::before { color: var(--ink); }

.ai-box.red .ai-box-stats {
  border-top-color: rgba(232, 235, 228, 0.35);
  border-bottom-color: rgba(232, 235, 228, 0.35);
}

.ai-box.red .ai-box-stat {
  border-right-color: rgba(232, 235, 228, 0.2);
}

.ai-box.red .ai-box-stat-num { color: var(--paper); }
.ai-box.red .ai-box-stat-num em { color: var(--ink); }
.ai-box.red .ai-box-stat-label { color: var(--paper); opacity: 0.85; }

.ai-box.red .ai-box-arrow {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

a.ai-box.red:hover .ai-box-arrow {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Arrow CTA — a button-looking span inside a clickable block */
.ai-box-arrow {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 2px solid currentColor;
  align-self: flex-start;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* ==========================================================================
   Cheatsheet callout (kit.html) — acid yellow poster with dock-diagram
   ========================================================================== */
.cheat-callout {
  padding: 88px var(--gutter) 96px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--acid);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  position: relative;
}

.cheat-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 10px,
    var(--acid) 10px 20px
  );
}

.cheat-callout-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cheat-callout-copy {
  max-width: 620px;
}

.cheat-callout-kicker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
}

.cheat-callout-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.96;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.cheat-callout-title em {
  font-style: italic;
  color: var(--red);
}

.cheat-callout-lede {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 560px;
}

.cheat-callout-lede em {
  font-style: italic;
  color: var(--red);
}

.cheat-callout-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1.5px solid var(--ink);
}

.cheat-callout-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1.5px solid var(--ink);
}

.cheat-callout-steps .cc-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
}

.cheat-callout-steps .cc-txt {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.cheat-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cheat-callout-btn:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.cheat-callout-btn .arrow {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-size: 18px;
  line-height: 1;
}

/* Dock diagram — stylized side-by-side window mockup */
.cheat-callout-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dock-stage {
  display: flex;
  gap: 14px;
  padding: 24px;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  transform: rotate(-1.5deg);
  max-width: 520px;
  width: 100%;
}

.dock-win {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px;
}

.dock-win-claude { flex: 1.5; }
.dock-win-cheat  { flex: 1; background: var(--acid); }

.dock-chrome {
  display: flex;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.dock-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
  display: inline-block;
}

.dock-chrome i:nth-child(1) { background: var(--red); }
.dock-chrome i:nth-child(2) { background: var(--acid); }
.dock-chrome i:nth-child(3) { background: var(--cobalt); }

.dock-win-cheat .dock-chrome i:nth-child(2) { background: var(--ink); }

.dock-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}

.dock-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
  padding-top: 6px;
}

.dock-lines span {
  display: block;
  height: 8px;
  background: var(--ink);
  opacity: 0.85;
  border-radius: 1px;
}

.dock-lines span:nth-child(1) { width: 70%; }
.dock-lines span:nth-child(2) { width: 90%; }
.dock-lines span:nth-child(3) { width: 55%; background: var(--red); opacity: 1; }
.dock-lines span:nth-child(4) { width: 82%; }
.dock-lines span:nth-child(5) { width: 60%; }

.dock-lines.tight span {
  height: 5px;
}
.dock-lines.tight span:nth-child(1) { width: 100%; }
.dock-lines.tight span:nth-child(2) { width: 85%; }
.dock-lines.tight span:nth-child(3) { width: 70%; background: var(--red); opacity: 1; }
.dock-lines.tight span:nth-child(4) { width: 100%; }
.dock-lines.tight span:nth-child(5) { width: 92%; }
.dock-lines.tight span:nth-child(6) { width: 65%; }
.dock-lines.tight span:nth-child(7) { width: 100%; }
.dock-lines.tight span:nth-child(8) { width: 78%; }

@media (max-width: 980px) {
  .cheat-callout { padding: 48px var(--gutter) 56px; }
  .cheat-callout-inner { grid-template-columns: 1fr; gap: 40px; }
  .cheat-callout-title { font-size: 38px; }
  .dock-stage { transform: rotate(-1deg); max-width: 420px; margin: 0 auto; }
}

/* ==========================================================================
   LOGO ISSUE — logos.html takeover treatment
   Twelve full-bleed poster rows rotating through four palette colors.
   Each row: marker | typographic "wordmark" | giant Fraunces name | dossier.
   ========================================================================== */

body.issue { background: var(--paper); }

.issue-banner {
  padding: 64px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 3px solid var(--ink);
}

.issue-banner-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.issue-banner-meta .meta-dot {
  color: var(--red);
  margin: 0 8px;
}

.issue-banner-kicker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
}

.issue-banner-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(54px, 9vw, 160px);
  line-height: 0.92;
  letter-spacing: -3px;
  color: var(--ink);
  margin-bottom: 32px;
}

.issue-banner-title em {
  font-style: italic;
  color: var(--red);
}

.issue-banner-sub {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 920px;
}

.issue-banner-sub em {
  font-style: italic;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Issue row — one poster per company, full viewport width
   -------------------------------------------------------------------------- */
.issue-row {
  padding: 56px var(--gutter) 60px;
  background: var(--paper-soft);
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.issue-row + .issue-row { border-top: none; }

.issue-row-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 280px 1fr 340px;
  gap: 36px;
  align-items: center;
}

.issue-row-marker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  align-self: flex-start;
  justify-self: start;
  white-space: nowrap;
  opacity: 0.85;
}

.issue-row-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  min-width: 200px;
  max-width: 240px;
  padding: 20px 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  justify-self: start;
}

.wm-img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.issue-row-name {
  align-self: center;
}

.issue-row-name h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(48px, 5.6vw, 96px);
  line-height: 0.94;
  letter-spacing: -2px;
  margin: 0;
}

.issue-row-name h2 em {
  font-style: italic;
}

.issue-row-dossier {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 16px;
  font-size: 13px;
  line-height: 1.45;
  align-self: center;
}

.doss-pair {
  display: contents;
}

.doss-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.65;
  padding-top: 2px;
}

.doss-v {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: currentColor;
}

.doss-v em {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.doss-v.doss-tbd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Color variants — follow poster convention so em-accents stay readable */
.issue-row.paper-soft {
  background: var(--paper-soft);
  color: var(--ink);
}
.issue-row.paper-soft .issue-row-name h2 em { color: var(--red); }

.issue-row.acid {
  background: var(--acid);
  color: var(--ink);
}
.issue-row.acid .issue-row-name h2 em { color: var(--red); }

.issue-row.cobalt {
  background: var(--cobalt);
  color: var(--paper);
}
.issue-row.cobalt .issue-row-name h2 em { color: var(--acid); }

.issue-row.red {
  background: var(--red);
  color: var(--paper);
}
.issue-row.red .issue-row-name h2 em { color: var(--ink); }

/* Divider between operator and consulting sections */
.issue-divide {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter);
  background: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.issue-divide-line {
  flex: 1;
  height: 1.5px;
  background: var(--ink);
}

.issue-divide-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Wordmark — typographic placeholders for each brand
   Each wm-* is a distinct treatment evoking the company's own mark
   -------------------------------------------------------------------------- */
.wm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

/* EY — yellow tile with bold dark EY */
.wm-ey {
  padding: 0;
}
.wm-ey .wm-tile {
  background: #FFE600;
  color: #2E2E38;
  font-family: var(--sans);
  font-weight: 900;
  font-style: italic;
  font-size: 64px;
  letter-spacing: -2px;
  padding: 18px 24px 14px;
  border: 3px solid #2E2E38;
  display: inline-block;
}

/* Digg — rounded orange pill, lowercase */
.wm-digg {
  background: #EB5634;
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -2px;
  padding: 14px 28px 16px;
  border-radius: 14px;
  text-transform: lowercase;
}

/* Pandora — all caps serif, thin kerning */
.wm-pandora {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-size: 32px;
  letter-spacing: 6px;
  color: currentColor;
  font-style: normal;
  text-transform: uppercase;
}

/* Spotify — green pill with "dot" and lowercase */
.wm-spotify {
  background: #1DB954;
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -1.5px;
  padding: 14px 26px 14px 18px;
  border-radius: 999px;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wm-spotify .wm-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  position: relative;
}

/* BEGiN — tall sans with red lowercase i */
.wm-begin {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -3px;
  color: currentColor;
  text-transform: none;
}
.wm-begin em {
  font-style: normal;
  color: #E8402A;
  display: inline-block;
  transform: translateY(-4px);
}

/* FirstVet — teal pill with plus sign */
.wm-firstvet {
  background: #004E67;
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.5px;
  padding: 14px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wm-firstvet .wm-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #EFE932;
  color: #004E67;
  font-weight: 900;
  font-size: 28px;
}

/* Tana — stamped condensed lowercase */
.wm-tana {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 72px;
  letter-spacing: -2px;
  text-transform: lowercase;
  color: currentColor;
  border-bottom: 4px solid currentColor;
  padding-bottom: 6px;
}

/* We Will Write — monogrammed W.W.W. */
.wm-www {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 500;
  font-size: 72px;
  letter-spacing: -1px;
  color: currentColor;
  font-style: italic;
}
.wm-www em {
  font-family: var(--sans);
  font-weight: 900;
  font-style: normal;
  font-size: 36px;
  color: var(--red);
  margin: 0 4px;
  vertical-align: middle;
}

/* Plick — pink rounded */
.wm-plick {
  background: #FF4D8F;
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -1.5px;
  padding: 12px 24px 14px;
  border-radius: 12px;
  text-transform: lowercase;
}

/* Lightbringer — ornate italic serif */
.wm-lightbringer {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-style: italic;
  font-size: 44px;
  letter-spacing: -1px;
  color: currentColor;
  text-transform: none;
  font-weight: 400;
}

/* Söderberg & Partners — S&P monogram, gold accent */
.wm-soderberg {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 500;
  font-size: 86px;
  letter-spacing: -3px;
  color: currentColor;
  font-style: normal;
}
.wm-soderberg em {
  font-style: italic;
  color: #D4B254;
  font-weight: 400;
  margin: 0 -4px;
}

/* AAC Clyde Space — industrial stacked */
.wm-aac {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 6px;
  color: currentColor;
  text-align: left;
  text-transform: uppercase;
  line-height: 1;
}
.wm-aac em {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 4px;
  opacity: 0.7;
  display: inline-block;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Logo Issue — mobile
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .issue-row-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .issue-row { padding: 40px var(--gutter); }
  .issue-row-marker { justify-self: start; }
  .issue-row-name h2 { font-size: 44px; }
  .issue-row-logo { min-height: 90px; }
  .issue-row-dossier { grid-template-columns: 80px 1fr; }

  .issue-banner { padding: 40px var(--gutter) 56px; }
  .issue-banner-title { font-size: 48px; }

  .issue-divide { padding: 32px var(--gutter); }
  .issue-divide-label { font-size: 10px; letter-spacing: 2px; }

  .wm-ey .wm-tile { font-size: 44px; padding: 12px 18px 10px; }
  .wm-digg { font-size: 38px; padding: 10px 20px 12px; }
  .wm-pandora { font-size: 22px; letter-spacing: 4px; }
  .wm-spotify { font-size: 32px; padding: 10px 20px 10px 14px; }
  .wm-spotify .wm-dot { width: 14px; height: 14px; }
  .wm-begin { font-size: 44px; }
  .wm-firstvet { font-size: 22px; padding: 10px 16px; }
  .wm-firstvet .wm-mark { width: 26px; height: 26px; font-size: 20px; }
  .wm-tana { font-size: 48px; }
  .wm-www { font-size: 48px; }
  .wm-www em { font-size: 24px; }
  .wm-plick { font-size: 38px; padding: 10px 18px; }
  .wm-lightbringer { font-size: 32px; }
  .wm-soderberg { font-size: 60px; }
  .wm-aac { font-size: 22px; letter-spacing: 4px; }
}

/* --------------------------------------------------------------------------
   AI panels — CSS-only tab reveal below the two doors (no JS)
   Default: #fluency is visible. When URL hash is #paradox, flip.
   -------------------------------------------------------------------------- */
.ai-panel { display: none; }
#fluency { display: block; }
#paradox:target { display: block; }
html:has(#paradox:target) #fluency { display: none; }

/* Active door indicator — thick ink bar at the bottom of the selected door */
.ai-box::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--ink);
  transition: height 0.18s ease;
  pointer-events: none;
}

.ai-box.cobalt::after { background: var(--acid); }
.ai-box.red::after    { background: var(--ink); }

/* Default active state: cobalt door, since fluency panel is visible */
.ai-box.cobalt::after { height: 6px; }

html:has(#paradox:target) .ai-box.cobalt::after { height: 0; }
html:has(#paradox:target) .ai-box.red::after    { height: 6px; }

.ai-box-kicker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 4px;
}

.ai-box h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin: 0;
}

.ai-box h3 em {
  font-style: italic;
  color: var(--red);
}

.ai-box-lede {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.ai-box-lede em {
  font-style: italic;
  color: var(--red);
}

.ai-box-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  border-top: 1.5px solid var(--ink);
}

.ai-box-list li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--paper-soft);
  position: relative;
}

.ai-box-list li:last-child { border-bottom: none; }

.ai-box-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.ai-box-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  margin: 4px 0 8px;
}

.ai-box-stat {
  padding: 14px 10px 14px 0;
  border-right: 1px solid var(--paper-soft);
}

.ai-box-stat:last-child { border-right: none; padding-right: 0; }
.ai-box-stat:not(:first-child) { padding-left: 12px; }

.ai-box-stat-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 4px;
}

.ai-box-stat-num em {
  font-style: italic;
  color: var(--red);
}

.ai-box-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1.3;
}

.ai-box-cta {
  margin-top: auto;
  padding-top: 12px;
}

/* ==========================================================================
   Responsive — accordion + ai-boxes
   ========================================================================== */
@media (max-width: 820px) {
  .practice summary {
    grid-template-columns: 80px 1fr 32px;
    gap: 16px;
    padding: 22px 0;
  }
  .practice-num { padding-top: 10px; font-size: 12px; letter-spacing: 2px; }
  .practice-title { font-size: 30px; }
  .practice-indicator { font-size: 28px; padding-top: 6px; }
  .practice-body { padding: 4px 0 28px 0; }
  .practice-items { grid-template-columns: 1fr; }
  .practice-item { border-right: none; padding: 16px 0; }
  .practice-item:nth-child(2n) { padding-left: 0; padding-right: 0; }

  .ai-boxes { grid-template-columns: 1fr; }
  .ai-box { border-right: none; border-bottom: 2px solid var(--ink); padding: 36px 24px; }
  .ai-box:last-child { border-bottom: none; }
  .ai-box-stat-num { font-size: 22px; }
  .masthead.masthead-tight { padding: 28px var(--gutter) 20px; }
  .masthead.masthead-tight .masthead-title { font-size: 44px; }

  .shipped { padding: 18px 18px 20px; margin-top: 20px; }
  .shipped-head { grid-template-columns: 1fr; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; }
  .shipped-free { font-size: 14.5px; }
  .shipped-items, .shipped-items.two-up { grid-template-columns: 1fr; }
  .shipped-item { border-right: none; padding: 14px 0; border-bottom: 1.5px solid currentColor; }
  .shipped-item:not(:first-child) { padding-left: 0; }
  .shipped-item:last-child { border-bottom: none; padding-bottom: 0; }
  .shipped-item:first-child { padding-top: 0; }
}

/* ==========================================================================
   Cheatsheet floating button — the "crazy color" sticker top-right
   ========================================================================== */
.cheat-fab {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 200;
  background: var(--acid);
  color: var(--ink);
  padding: 12px 16px 10px;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-3deg);
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2),
              box-shadow 0.2s ease,
              background 0.2s ease;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cheat-fab .fab-hint {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.cheat-fab .fab-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cheat-fab .fab-arrow {
  color: var(--red);
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-size: 14px;
  line-height: 1;
}

.cheat-fab:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
  background: var(--acid);
}

.cheat-fab:active {
  transform: rotate(-1deg) translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--red);
}

@media (max-width: 820px) {
  .cheat-fab {
    top: auto;
    bottom: 16px;
    right: 14px;
    padding: 10px 12px 8px;
    font-size: 10px;
    letter-spacing: 2px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .cheat-fab .fab-hint { display: none; }
}

/* ==========================================================================
   Cheatsheet page — skinny-by-design reference, built to sit beside Claude
   ========================================================================== */
body.cheat {
  background: var(--paper);
}

.cheat-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.cheat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.cheat-brand {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none;
  line-height: 0.9;
}

.cheat-brand em {
  font-style: italic;
  color: var(--red);
}

.cheat-close {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.cheat-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.cheat-header {
  padding: 4px 0 22px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.cheat-header .cheat-kicker {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cheat-header h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: 44px;
  line-height: 0.92;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.cheat-header h1 em {
  font-style: italic;
  color: var(--red);
}

.cheat-header p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.cheat-section {
  margin-bottom: 32px;
}

.cheat-section-label {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cheat-section h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.7px;
  color: var(--ink);
  margin-bottom: 14px;
}

.cheat-section h2 em {
  font-style: italic;
  color: var(--red);
}

.cheat-section h3 {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: uppercase;
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}

.cheat-hint {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mid);
  margin-top: 10px;
}

/* Session rhythm flow */
.cheat-flow {
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cheat-flow-step {
  background: var(--paper);
  border-left: 3px solid var(--red);
  padding: 8px 12px;
}

.cheat-flow-cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.2px;
}

.cheat-flow-cmd .k {
  color: var(--red);
}

.cheat-flow-note {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-mid);
  margin-top: 2px;
}

.cheat-flow-arrow {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  color: var(--red);
  text-align: center;
  padding: 3px 0;
}

.cheat-flow-gate {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-mid);
  text-align: center;
  padding: 2px 0;
  text-transform: uppercase;
}

/* Cheat tables (dense tabular data) */
.ct {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-size: 13px;
}

.ct td {
  padding: 8px 8px 8px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--ink-ghost);
  color: var(--ink-soft);
  line-height: 1.45;
}

.ct tr:last-child td {
  border-bottom: none;
}

.ct td.k {
  font-family: var(--mono);
  color: var(--red);
  white-space: nowrap;
  width: 1%;
  padding-right: 12px;
  font-size: 12px;
  font-weight: 500;
}

.ct td.when {
  font-family: var(--mono);
  color: var(--ink);
  width: 1%;
  white-space: nowrap;
  padding-right: 12px;
  font-size: 11.5px;
  font-weight: 500;
}

.ct td.desc {
  padding-right: 0;
}

.ct td.note {
  font-size: 11.5px;
  color: var(--ink-mid);
}

/* Status line decoder chips */
.cheat-status {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cheat-status-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}

.cheat-status-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 6px 0;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.cheat-status-chip.g { background: #b5d158; }
.cheat-status-chip.y { background: var(--acid); }
.cheat-status-chip.r { background: var(--red); color: var(--paper); }

.cheat-status-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cheat-status-text strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* Extending list (numbered) */
/* Worked-example step list (cheatsheet §01) */
.cheat-walk {
  list-style: none;
  counter-reset: walk;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.cheat-walk li {
  counter-increment: walk;
  padding: 8px 0 10px 34px;
  border-bottom: 1px solid var(--ink-ghost);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
}

.cheat-walk li:last-child { border-bottom: none; }

.cheat-walk li::before {
  content: counter(walk, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 1px;
}

.cheat-walk code,
.cheat-walk .k {
  font-family: var(--mono);
  color: var(--red);
  font-size: 11.5px;
  background: var(--paper-soft);
  padding: 1px 5px;
}

.cheat-walk .out {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
  margin-top: 3px;
  padding-left: 0;
}

.cheat-walk .out::before {
  content: "+ ";
  color: var(--red);
  font-weight: 700;
}

/* Tip rows (cheatsheet §01 practical tips, etc.) */
.cheat-tips {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}

.cheat-tips li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--ink-ghost);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
}

.cheat-tips li:last-child { border-bottom: none; }

.cheat-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

.cheat-tips code {
  font-family: var(--mono);
  color: var(--red);
  font-size: 11.5px;
  background: var(--paper-soft);
  padding: 1px 5px;
}

.cheat-tips em {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-style: italic;
  color: var(--ink);
  font-size: 13px;
}

.cheat-extend {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.cheat-extend li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-ghost);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.cheat-extend li:last-child {
  border-bottom: none;
}

.cheat-extend li::before {
  content: counter(extend, decimal-leading-zero);
  counter-increment: extend;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 1px;
}

.cheat-extend { counter-reset: extend; }

.cheat-extend code {
  font-family: var(--mono);
  color: var(--red);
  font-size: 11.5px;
  background: var(--paper-soft);
  padding: 1px 5px;
}

.cheat-page-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-align: center;
}

.cheat-page-footer em {
  font-style: italic;
  color: var(--red);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 14px;
}

/* Inline mono in cheat copy */
.cheat-wrap code,
.cheat-wrap .k-inline {
  font-family: var(--mono);
  color: var(--red);
  font-size: 12px;
  background: var(--paper-soft);
  padding: 1px 5px;
}

@media (max-width: 520px) {
  .cheat-wrap { padding: 16px 16px 48px; }
  .cheat-header h1 { font-size: 36px; }
  .cheat-section h2 { font-size: 22px; }
  .ct { font-size: 12.5px; }
  .cheat-flow-cmd { font-size: 12.5px; }
  .cheat-status-row { grid-template-columns: 80px 1fr; }
}
