/* =========================================================================
   Atlas, who holds it up — piece 11
   ========================================================================= */

/* ---------- page tuning -------------------------------------------------
   Values this page sets differently from css/mlfk.css, plus everything only
   this page uses. Kept explicit rather than folded into the shared file so no
   other page shifts by a pixel.
   --------------------------------------------------------------------- */
  .page { row-gap: clamp(2.6rem,6vw,4.2rem); }
  .band { padding: clamp(1.9rem,4.5vw,3rem) 0; }
  a.eyebrow { text-decoration: none; color: var(--text-muted); }
  a.eyebrow:hover { color: var(--gold); }
  h1 { font-size: clamp(2.1rem,5.8vw,3.4rem); margin: 1.1rem 0 0; max-width: 22ch; }
  .lede { margin-top: 1.2rem; }
  .whofor { margin-top: 1.4rem; }
  strong { font-weight: 600; color: inherit; }
  /* The title arrives the way weight arrives: each phrase descends a little
     too far, compresses at the bottom of the drop, and settles — the gold
     flash is the moment of strain when the load lands on the shoulders. */
  h1 span {
    display: inline-block;
    animation: settle 1100ms cubic-bezier(.26,.9,.32,1.18) both,
               strain 1100ms linear both;
  }
  h1 span:nth-child(1) { animation-delay: 0ms, 0ms; }
  h1 span:nth-child(2) { animation-delay: 380ms, 380ms; }
  h1 span:nth-child(3) { animation-delay: 760ms, 760ms; }
  @keyframes settle {
    0% { transform: translateY(-0.65em) scaleY(1.04);
    opacity: 0;
    } 55% { transform: translateY(0.08em) scaleY(0.96);
    opacity: 1;
    } 100% { transform: translateY(0) scaleY(1);
    opacity: 1;
    };
  }
  @keyframes strain {
    0% { color: var(--text-primary); }
    45% { color: var(--text-primary); }
    62% { color: var(--gold); }
    80% { color: var(--gold); }
    100% { color: var(--text-primary); }
  }
  .sec { column-gap: 2.4rem; }
  .step { padding-top: 0.55rem; font-size: 0.64rem; letter-spacing: 0.2em; color: var(--gold); }
@media (max-width:840px) {
    .sec { grid-template-columns: 1fr; }
    .sec > *, .step { grid-column: 1; }
}
  .hint { color: var(--acc,var(--gold)); }
  .instr-status { text-align: right; }
  .instr-cap b { color: var(--text-secondary); font-style: normal; font-weight: 600; }
  .slabs.wide { grid-template-columns: minmax(0,1fr); }
  .slab canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
  }
  /* the hero owns a draggable seam; keep vertical page scroll alive */
  #cvHero { touch-action: pan-y; cursor: ns-resize; }
  .slab .cap b { color: var(--acc,var(--gold)); font-weight: 600; }
  .instr-ctl { gap: 0.8rem 1.8rem; padding: 1.2rem 0 0; }
  input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 22px;
    background: transparent;
    cursor: pointer;
    margin: 0;
  }
  input[type=range]::-webkit-slider-runnable-track {
    height: 3px;
    background: var(--border-strong);
    border-radius: 2px;
  }
  input[type=range]::-moz-range-track {
    height: 3px;
    background: var(--border-strong);
    border-radius: 2px;
  }
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--acc,var(--gold));
    margin-top: -6.5px;
    border: 2px solid var(--bg-page);
    box-shadow: 0 0 0 1px var(--acc,var(--gold));
  }
  input[type=range]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--acc,var(--gold));
    border: 2px solid var(--bg-page);
    box-shadow: 0 0 0 1px var(--acc,var(--gold));
  }
  .btn { font-size: 0.72rem; padding: 0.36rem 0.85rem; }
  .btn[aria-pressed="true"] {
    background: var(--acc,var(--text-primary));
    color: var(--bg-page);
    border-color: var(--acc,var(--text-primary));
  }
  .btn:disabled { opacity: 0.4; cursor: default; }
  .btn:focus-visible, input[type=range]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  /* ---------- the bench (instrument 05) --------------------------------- */
  .benchWrap { margin: 0 0 1.1rem; }
  .benchQ {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.05rem,2.6vw,1.3rem);
    margin: 0 0 0.9rem;
  }
  .benchTopic { color: var(--acc,var(--gold)); }
  .benchPair {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr));
    gap: 0.9rem;
  }
  .benchCard {
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
  }
  .benchCard:hover { border-color: var(--acc,var(--gold)); transform: translateY(-2px); }
  .benchCard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .benchCard.picked { border-color: var(--acc,var(--gold)); background: var(--gold-subtle); }
  .benchSame { margin-top: 0.7rem; }

  table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
  td {
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0.4rem;
    vertical-align: top;
  }
  tr:last-child td { border-bottom: 0; }
  td:first-child { width: 46%; }
  td:last-child { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
  .bigline { max-width: 34ch; }
  .seriesnav { font-size: 0.88rem; padding-top: 1.4rem; }
  .seriesnav a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-border);
  }
  .seriesnav a:hover { color: var(--gold-hover); }
  footer { font-size: 0.78rem; }
