/* ============================================================
   The Delegation Quotient — precision-instrument editorial
   bone paper / ink black / vermillion signal
   Fraunces display · IBM Plex Sans body · IBM Plex Mono metric
   ============================================================ */

:root {
  --paper: #f4f1e9;
  --paper-deep: #ebe7db;
  --ink: #141310;
  --ink-soft: #3d3a33;
  --ink-faint: #8a857a;
  --signal: #d9481c;
  --signal-deep: #b23512;
  --pine: #1d4a38;
  --hairline: rgba(20, 19, 16, 0.16);
  --hairline-strong: rgba(20, 19, 16, 0.35);

  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* paper grain */
  background-image:
    radial-gradient(rgba(20,19,16,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

em { font-style: italic; }
strong { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 1em 1.7em;
  box-shadow: 4px 4px 0 var(--signal);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--signal);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--signal);
}
.btn-large { font-size: 1.1rem; padding: 1.1em 2em; }

.btn-arrow { font-family: var(--mono); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 1em 1.7em;
  border: 1px solid var(--hairline-strong);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ink-faint);
  padding: 1em 0.5em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--ink); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.masthead-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.masthead-mark-rule {
  display: inline-block;
  width: 26px;
  height: 4px;
  background: var(--signal);
}
.masthead-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
}
.masthead-nav a:hover { color: var(--signal); }
.masthead-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.65em 1.1em;
  text-decoration: none;
  cursor: pointer;
}
.masthead-cta:hover { background: var(--signal); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  color: var(--ink-faint);
  margin-bottom: 2.2rem;
}
.hero-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.hero-line { display: block; }
.hero-line em {
  font-weight: 600;
  font-style: italic;
}
.hero-line-accent {
  font-weight: 900;
  margin-top: 0.35em;
}
.hero-line-accent em {
  color: var(--signal);
  font-style: italic;
  font-weight: 900;
}
.hero-sub {
  margin-top: 2rem;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.hero-actions { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-actions-note { color: var(--ink-faint); }

/* staggered hero reveal */
.hero-eyebrow, .hero-line, .hero-sub, .hero-actions {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero-line:nth-child(1) { animation-delay: 0.15s; }
.hero-line:nth-child(2) { animation-delay: 0.3s; }
.hero-line:nth-child(3) { animation-delay: 0.45s; }
.hero-sub { animation-delay: 0.65s; }
.hero-actions { animation-delay: 0.8s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Dial ---------- */
.hero-dial {
  opacity: 0;
  animation: rise 0.9s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.dial-svg { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
.dial-track {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 2;
}
.dial-arc {
  fill: none;
  stroke: var(--signal);
  stroke-width: 7;
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: 160px 160px;
  stroke-dasharray: 880;
  stroke-dashoffset: 880;
  animation: sweep 1.6s 1s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes sweep {
  to { stroke-dashoffset: 247; } /* 7.2 / 10 of circumference */
}
.dial-arc-result { animation: none; }
.dial-ticks line { stroke: var(--hairline-strong); stroke-width: 1.5; }
.dial-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 78px;
  fill: var(--ink);
  text-anchor: middle;
}
.dial-label {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.3em;
  fill: var(--ink-faint);
  text-anchor: middle;
}

/* ---------- Claim ---------- */
.claim {
  background: var(--ink);
  color: var(--paper);
}
.claim-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.claim-rule {
  color: rgba(244, 241, 233, 0.5);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(244, 241, 233, 0.2);
}
.claim-text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  max-width: 26em;
}
.claim-text em { font-weight: 600; }
.claim-mark {
  color: var(--paper);
  background: var(--signal);
  padding: 0 0.25em;
  font-weight: 600;
}

/* ---------- Sections shared ---------- */
.section-eyebrow {
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Framework ---------- */
.framework-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.moves {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-strong);
}
.move {
  padding: 2.2rem 2rem 2.2rem 0;
  border-right: 1px solid var(--hairline);
}
.move:last-child { border-right: none; }
.move + .move { padding-left: 2rem; }
.move-index {
  font-size: 1rem;
  color: var(--signal);
  margin-bottom: 1.4rem;
}
.move-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.move-desc { color: var(--ink-soft); font-size: 0.97rem; }
.framework-coda {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38em;
}

/* ---------- Tiers ---------- */
.tiers { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tiers-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.tier-list {
  list-style: none;
  margin-top: 3rem;
  border-top: 1px solid var(--hairline-strong);
}
.tier {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.tier:hover { padding-left: 0.8rem; background: rgba(217, 72, 28, 0.04); }
.tier-range { color: var(--ink-faint); padding-top: 0.45rem; }
.tier-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.tier-body p { color: var(--ink-soft); max-width: 44em; }
.tier-top .tier-range { color: var(--signal); font-weight: 500; }
.tier-top h3 { color: var(--signal-deep); }
.tiers-cta { margin-top: 3rem; }

/* ---------- Quiz ---------- */
.quiz {
  background: var(--ink);
  color: var(--paper);
  min-height: 70vh;
}
.quiz-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}
.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}
.quiz-head-label { color: rgba(244,241,233,0.55); }
.quiz-progress { color: var(--paper); font-size: 0.85rem; }
.quiz-track {
  height: 3px;
  background: rgba(244,241,233,0.15);
  margin-bottom: 3.5rem;
}
.quiz-fill {
  height: 100%;
  width: 0%;
  background: var(--signal);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.quiz-dimension {
  color: var(--signal);
  margin-bottom: 1.2rem;
}
.quiz-question {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  margin-bottom: 2.2rem;
}
.quiz-options { display: grid; gap: 0.8rem; }
.quiz-option {
  text-align: left;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(244,241,233,0.25);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.quiz-option:hover {
  border-color: var(--signal);
  background: rgba(217, 72, 28, 0.12);
  transform: translateX(4px);
}
.quiz-option .opt-key {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(244,241,233,0.5);
  flex-shrink: 0;
}
.quiz-stage.fading { opacity: 0; transform: translateY(8px); }
.quiz-stage {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* gate */
.gate-sub { color: rgba(244,241,233,0.7); margin: -1rem 0 2rem; max-width: 36em; }
.gate-form { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.gate-input {
  flex: 1 1 280px;
  font-family: var(--body);
  font-size: 1rem;
  padding: 1em 1.2em;
  background: rgba(244,241,233,0.07);
  border: 1px solid rgba(244,241,233,0.3);
  color: var(--paper);
  outline: none;
}
.gate-input:focus { border-color: var(--signal); }
.gate-input::placeholder { color: rgba(244,241,233,0.4); }
.gate-skip {
  margin-top: 1.4rem;
  background: none;
  border: none;
  color: rgba(244,241,233,0.45);
  font-family: var(--body);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gate-skip:hover { color: var(--paper); }

/* results */
.results-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.results-dial .dial-num { fill: var(--paper); }
.results-dial .dial-track { stroke: rgba(244,241,233,0.2); }
.results-tier {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--signal);
  margin-bottom: 1rem;
}
.results-read { color: rgba(244,241,233,0.85); margin-bottom: 2.2rem; max-width: 38em; }
.results-dims { display: grid; gap: 1.1rem; margin-bottom: 2.2rem; }
.dim-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: rgba(244,241,233,0.8);
}
.dim-head .mono { color: rgba(244,241,233,0.55); }
.dim-track { height: 5px; background: rgba(244,241,233,0.15); }
.dim-fill {
  height: 100%;
  width: 0%;
  background: var(--signal);
  transition: width 1s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.results-next {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(244,241,233,0.85);
  border-left: 3px solid var(--signal);
  padding-left: 1.2rem;
  margin-bottom: 2.4rem;
  max-width: 36em;
}
.results-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.quiz .btn-primary { box-shadow: 4px 4px 0 var(--signal-deep); background: var(--signal); }
.quiz .btn-primary:hover { box-shadow: 6px 6px 0 var(--signal-deep); }
.quiz .btn-secondary { color: var(--paper); border-color: rgba(244,241,233,0.4); }
.quiz .btn-secondary:hover { background: var(--paper); color: var(--ink); }
.quiz .btn-ghost { color: rgba(244,241,233,0.5); }
.quiz .btn-ghost:hover { color: var(--paper); }
.results-copied { margin-top: 1rem; color: var(--signal); }

/* ---------- Author ---------- */
.author-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.author-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-top: 0.5rem;
}
.author-text .section-title { margin-bottom: 1.6rem; }
.author-text p { color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 36em; }
.author-links { display: flex; gap: 2rem; margin-top: 1.8rem; }
.author-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
}
.author-link:hover { color: var(--signal); }
.author-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline-strong);
  border-left: 1px solid var(--hairline-strong);
}
.fact {
  border-right: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  padding: 1.6rem 1.3rem;
}
.fact-num {
  font-size: 1.7rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--signal);
  margin-bottom: 0.5rem;
}
.fact-label { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Final CTA ---------- */
.final { border-top: 1px solid var(--hairline); }
.final-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
  text-align: center;
}
.final-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(244,241,233,0.6); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-note { font-size: 0.85rem; }
.footer-note a { color: var(--paper); text-decoration: none; }
.footer-note a:hover { color: var(--signal); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero-dial { max-width: 260px; margin: 0 auto; }
  .moves { grid-template-columns: 1fr; border-top: none; }
  .move { border-right: none; border-top: 1px solid var(--hairline); padding: 1.8rem 0; }
  .move + .move { padding-left: 0; }
  .results-grid { grid-template-columns: 1fr; gap: 2rem; }
  .results-dial { max-width: 240px; margin: 0 auto; }
  .author-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tier { grid-template-columns: 1fr; gap: 0.4rem; }
  .masthead-nav { display: none; }
}

/* ============ v2: ticker ============ */
.ticker {
  background: var(--signal);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker-rail {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: tick 38s linear infinite;
}
.ticker-rail span {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.7rem 0;
}
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-rail { animation-play-state: paused; }

/* ============ v2: interactive dial ============ */
.dial-drag-wrap { cursor: grab; touch-action: none; }
.dial-drag-wrap:active { cursor: grabbing; }
.dial-handle { cursor: grab; }
.dial-handle circle:first-child { filter: drop-shadow(0 2px 6px rgba(20,19,16,0.35)); }
.dial-hint {
  text-align: center;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.1rem;
  min-height: 1.4em;
  transition: color 0.2s;
}
.dial-hint::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--signal); border-radius: 50%; margin-right: 0.55em; vertical-align: 1px; }
#heroDialArc { transition: stroke-dashoffset 0.08s linear; }

/* ============ v2: scroll reveals ============ */
.rv > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.rv.rv-in > * { opacity: 1; transform: none; }
.rv.rv-in .claim-text { transition-delay: 0.12s; }

/* ============ v2: tier ghost numerals ============ */
.tier { position: relative; overflow: hidden; }
.tier::before {
  content: attr(data-num);
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(30%);
  font-family: var(--display);
  font-weight: 900;
  font-size: 7rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 72, 28, 0.0);
  transition: -webkit-text-stroke-color 0.3s, transform 0.3s;
  pointer-events: none;
}
.tier:hover::before {
  -webkit-text-stroke-color: rgba(217, 72, 28, 0.5);
  transform: translateY(-50%) translateX(0);
}

/* ============ v2: quiz caselets ============ */
.quiz-kbd-hint { color: rgba(244,241,233,0.4); }
.quiz-scene {
  display: inline-block;
  color: var(--paper);
  background: var(--signal);
  padding: 0.45em 0.9em;
  margin-bottom: 1.6rem;
}
.quiz-case {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.quiz-art { width: 150px; height: 150px; }
.quiz-art svg { width: 100%; height: 100%; display: block; }
.quiz-art .ln { stroke: rgba(244,241,233,0.8); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.quiz-art .ac { stroke: var(--signal); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.quiz-art .fl { fill: var(--signal); stroke: none; }
.quiz-art .dim2 { stroke: rgba(244,241,233,0.3); }
.quiz-setup {
  font-size: 1.02rem;
  color: rgba(244,241,233,0.7);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.quiz-question { margin-bottom: 0; }
.quiz-option.picked {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
}
.quiz-option .opt-key { transition: color 0.15s; }
.quiz-option:hover .opt-key { color: var(--signal); }

/* results guess line */
.results-guess {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px dashed rgba(244,241,233,0.35);
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}
.results-guess .mono { color: var(--signal); }
.results-guess span:last-child { color: rgba(244,241,233,0.85); font-size: 0.95rem; }

@media (max-width: 700px) {
  .quiz-case { grid-template-columns: 1fr; gap: 1.2rem; }
  .quiz-art { width: 110px; height: 110px; }
  .tier::before { display: none; }
  .quiz-kbd-hint { display: none; }
}

/* ============ Articles ============ */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.article-eyebrow { display: flex; gap: 1rem; align-items: baseline; color: var(--ink-faint); margin-bottom: 1.6rem; }
.article-eyebrow .cat { color: var(--signal); }
.article-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}
.article-standfirst {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline-strong);
}
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2.6rem 0 1rem;
}
.article-body blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  border-left: 3px solid var(--signal);
  padding-left: 1.4rem;
  margin: 2.2rem 0;
  color: var(--ink);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: 0.92rem; }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.article-body th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.article-body code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-deep); padding: 0.1em 0.4em; }
.article-body .tpl {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.7;
  padding: 1.6rem 1.8rem; margin: 1.8rem 0; white-space: pre-wrap;
}
.article-cta {
  margin-top: 3.5rem;
  padding: 2.2rem;
  background: var(--ink);
  color: var(--paper);
}
.article-cta p { font-family: var(--display); font-size: 1.25rem; margin-bottom: 1.4rem; }
.article-cta .btn-primary { background: var(--signal); box-shadow: 4px 4px 0 var(--signal-deep); }
.article-footer-nav { margin-top: 2.5rem; display: flex; justify-content: space-between; font-size: 0.9rem; }
.article-footer-nav a { color: var(--signal); text-decoration: none; }

/* index */
.alist { max-width: 860px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.alist-group { margin-bottom: 3rem; }
.alist-group-title { color: var(--ink-faint); margin-bottom: 0.5rem; }
.alist-item {
  display: block;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.2s ease;
}
.alist-item:hover { padding-left: 0.7rem; }
.alist-item:hover .alist-title { color: var(--signal); }
.alist-title { font-family: var(--display); font-weight: 600; font-size: 1.45rem; margin-bottom: 0.35rem; transition: color 0.2s; }
.alist-desc { color: var(--ink-soft); font-size: 0.97rem; max-width: 46em; }
.alist-meta { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.5rem; }

.results-upsell { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(244,241,233,0.2); font-size: 0.95rem; color: rgba(244,241,233,0.7); max-width: 38em; }
.results-upsell a { color: var(--signal); font-weight: 600; }

/* ============ Pro + Teams ============ */
.team-banner {
  margin-top: 1.6rem;
  display: inline-block;
  background: var(--signal);
  color: var(--paper);
  padding: 0.6em 1em;
}
.pro-guidance { display: grid; gap: 1rem; margin: 0 0 2.2rem; }
.guide {
  border: 1px solid rgba(244,241,233,0.25);
  padding: 1.2rem 1.4rem;
}
.guide-first { border-color: var(--signal); background: rgba(217,72,28,0.1); }
.guide-head { color: var(--signal); margin-bottom: 0.5rem; }
.guide p { color: rgba(244,241,233,0.85); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.team-form { display: grid; gap: 0.9rem; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.tf-area { min-height: 110px; resize: vertical; font-family: var(--body); }
select.gate-input { appearance: none; -webkit-appearance: none; }
select.gate-input option { color: #141310; }
.team-form .btn-primary { justify-self: start; }
.quiz .form-status { color: rgba(244,241,233,0.7); font-size: 0.9rem; min-height: 1.3em; }
.quiz .form-status-ok { color: #7fc8a4; }
.quiz .form-status-error { color: #ff8a65; }
@media (max-width: 700px) { .tf-row { grid-template-columns: 1fr; } }

/* ============ Instrument ladder ============ */
.hero-pro-link { color: var(--signal); text-decoration: none; }
.hero-pro-link:hover { text-decoration: underline; }
.instrument { border-top: 1px solid var(--hairline); }
.instrument-inner { max-width: var(--max); margin: 0 auto; padding: 6rem 1.5rem; }
.inst-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1.2rem; margin-top: 3rem; align-items: stretch; }
.inst-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  border: 1px solid var(--hairline-strong);
  padding: 2rem 1.8rem;
  text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.inst-card:hover { transform: translateY(-4px); border-color: var(--signal); box-shadow: 6px 6px 0 rgba(217,72,28,0.15); }
.inst-label { color: var(--ink-faint); }
.inst-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.inst-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; flex: 1; }
.inst-link { color: var(--signal); font-weight: 600; font-size: 0.95rem; }
.inst-card-featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.inst-card-featured .inst-label { color: rgba(244,241,233,0.55); }
.inst-card-featured p { color: rgba(244,241,233,0.75); }
.inst-card-featured:hover { border-color: var(--signal); }
@media (max-width: 860px) { .inst-grid { grid-template-columns: 1fr; } }

/* in-widget pro nudge */
.pro-nudge {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; flex-wrap: wrap;
  border: 1px dashed rgba(244,241,233,0.35);
  padding: 0.9rem 1.2rem;
  margin-bottom: 2.6rem;
  font-size: 0.88rem;
  color: rgba(244,241,233,0.7);
}
.pro-nudge a { color: var(--signal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pro-nudge a:hover { text-decoration: underline; }
