/* ================================================================
   ARUSHI GAUR — portfolio · v2
   Modern light editorial: warm white, ink, ultramarine; signal
   coral reserved for the trap/money moments; dark eval lab.
   Type: Bricolage Grotesque · Instrument Sans · IBM Plex Mono ·
   Newsreader (pull quotes only). No frameworks, no CDNs.
   ================================================================ */

:root {
  --bg:        #f5f7fb;   /* blueprint-cast white */
  --bg-alt:    #edf1f7;
  --card:      #ffffff;
  --ink:       #101013;
  --soft:      #585f6b;
  --faint:     #687080;   /* 4.6:1 on --bg; was #969dab at 2.5:1 */
  --line:      #dde3ec;
  --line-soft: #e8edf4;
  --accent:    #2438e8;   /* ultramarine */
  --accent-ink:#1b2bb4;
  --signal:    #e8451f;   /* coral-orange — traps & money only */
  --green:     #0d8a52;
  --lab-bg:    #0d0f16;
  --lab-card:  rgba(255,255,255,.035);
  --lab-line:  rgba(160,180,255,.16);
  --lab-ink:   #eceef6;
  --lab-soft:  #9aa3bd;
  --lab-accent:#8fa5ff;
  --sans:  'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --disp:  'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --mono:  'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
  --quote: 'Newsreader', Georgia, serif;
  --w: min(1100px, calc(100vw - 2 * var(--pad)));
  --pad: clamp(18px, 4vw, 48px);
  --r: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, .45vw + 14px, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(36, 56, 232, .18); }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 650; }

/* keyboard users can jump past the nav; the link shows only when focused */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 70;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--ink); border-radius: 999px; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 10px; color: #fff; }

/* keyboard focus: visible everywhere, light ring on dark surfaces */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.plate.ink :focus-visible, .lab :focus-visible, .contact-block :focus-visible { outline-color: var(--lab-accent); }

/* ---------------------------------------------------------------
   Type
--------------------------------------------------------------- */
.display {
  font-family: var(--disp);
  font-weight: 800;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.022em;
  line-height: 1.02;
}
h2.display { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -0.01em; line-height: 1.2; }

.k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.mono { font-family: var(--mono); }
.num  { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------
   Section scaffolding
--------------------------------------------------------------- */
.sheet { position: relative; padding: clamp(64px, 8.5vw, 118px) 0; }
.sheet > .inner { width: var(--w); margin: 0 auto; position: relative; }
.sheet.alt { background: var(--bg-alt); }

.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 14px; margin-bottom: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.sheet-head .k b { color: var(--accent); font-weight: 600; }
.sheet-head .of { color: var(--faint); text-align: right; }

.rule { border: 0; border-top: 1px solid var(--line); margin: clamp(28px, 4.4vw, 52px) 0; }

.prose { max-width: 660px; }
.prose p + p, .prose div + p, .prose p + div, .prose ul + p, .prose ol + p { margin-top: 1em; }
.prose h3 + p { margin-top: .45em; }
.lede { font-size: clamp(18px, 1.1vw + 12px, 21px); line-height: 1.5; font-weight: 500; letter-spacing: -0.005em; }

.cols { display: grid; grid-template-columns: minmax(0, 660px) minmax(200px, 290px); gap: clamp(28px, 5vw, 76px); align-items: start; }
.margin-note {
  font-size: 13.5px; line-height: 1.6; color: var(--soft);
  border-left: 2px solid var(--accent);
  padding-left: 14px; margin-top: 6px;
}
.margin-note .k { display: block; margin-bottom: 6px; color: var(--accent-ink); letter-spacing: .14em; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Verdict tags (kept class name .stamp for JS compatibility)
--------------------------------------------------------------- */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 8%, white);
  border: 1px solid color-mix(in srgb, var(--signal) 36%, white);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
/* on the narrowest phones a long verdict wraps inside its tag instead of pushing the card past the screen */
@media (max-width: 380px) { .stamp { white-space: normal; border-radius: 14px; line-height: 1.45; } }
.stamp--green { color: var(--green); background: color-mix(in srgb, var(--green) 8%, white); border-color: color-mix(in srgb, var(--green) 34%, white); }
.stamp--slate { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 7%, white); border-color: color-mix(in srgb, var(--accent) 30%, white); }
.stamp--big { font-size: 13px; padding: 8px 16px; }
.stamp-in { animation: tagIn .34s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes tagIn {
  from { opacity: 0; transform: translateY(6px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .stamp-in { animation: none; } }

/* confidence dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 1px; }
.dot--hi  { background: var(--green); }
.dot--med { background: transparent; border: 2px solid #c7920a; width: 7px; height: 7px; }
.dot--low { background: var(--signal); }

/* ---------------------------------------------------------------
   Reveal on scroll
--------------------------------------------------------------- */
/* Motion is additive, never load-bearing: content is visible from the first
   frame and only slides into place. If a transition never runs (throttled tab,
   odd renderer, JS failure) the page is still fully readable. Nothing on this
   site is allowed to stay invisible because an animation did not fire. */
.reveal { transform: translateY(14px); transition: transform .5s cubic-bezier(.2,.7,.3,1); will-change: transform; }
.reveal.in-view { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: none; } }

/* ---------------------------------------------------------------
   Nav
--------------------------------------------------------------- */
#nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
#nav .bar { width: var(--w); margin: 0 auto; display: flex; align-items: center; gap: 18px; height: 56px; }
#nav .who { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; border-bottom: 2px solid transparent; }
#nav .who:hover { color: var(--accent); }
#nav .who.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
#nav .links { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
#nav .links::-webkit-scrollbar { display: none; }
#nav .links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--soft); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
#nav .links a.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
#nav .links a:hover { color: var(--ink); }
#progress { position: absolute; top: 0; left: 0; height: 2px; background: var(--accent); width: 0; }
/* phones: the link strip scrolls sideways, so its edge fades to say so;
   the spacer lets the last link scroll clear of the fade */
@media (max-width: 720px) {
  #nav .links {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  #nav .links::after { content: ""; flex: 0 0 12px; }
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
#cover { padding: clamp(72px, 10vw, 150px) 0 clamp(56px, 7vw, 110px); position: relative; }
#cover .inner { width: var(--w); margin: 0 auto; position: relative; }
#cover .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
#cover .eyebrow .role {
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 7%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, white);
  border-radius: 999px; padding: 7px 14px;
}
#cover .eyebrow .loc { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

#cover h1 {
  font-family: var(--disp); font-weight: 800;
  font-variation-settings: "opsz" 82;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .98; letter-spacing: -0.026em;
  max-width: 16ch;
}
#cover h1 .amp { color: var(--accent); }
#cover .sub { max-width: 600px; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink); }
#cover .sub b { font-weight: 650; }

.proof-row { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
@media (max-width: 720px) { .proof-row { grid-template-columns: 1fr; } }
.proof {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  padding: 14px 16px;
}
.proof .k { color: var(--accent-ink); letter-spacing: .13em; }
.proof p { font-size: 13.5px; color: var(--soft); margin-top: 5px; line-height: 1.5; }

#cover .cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); color: var(--bg); background: var(--ink);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: transparent; color: var(--accent-ink); border-color: var(--accent); }

/* ---------------------------------------------------------------
   Case banner (framing strips between major blocks)
--------------------------------------------------------------- */
.case-banner {
  width: var(--w); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding: 18px 0 0;
}
.case-banner .cnum { font-family: var(--disp); font-weight: 800; font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -.022em; line-height: 1; }
.case-banner .clabel { width: 100%; margin-bottom: 2px; color: var(--soft); }
.case-banner a.badge { text-decoration: none; transition: border-color .14s ease, color .14s ease; }
.case-banner a.badge:hover { border-color: var(--accent); color: var(--accent); }
.case-banner .cmeta { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.case-banner .badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 7%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, white); border-radius: 999px; padding: 6px 13px;
}
.case-banner .badge + .badge { margin-left: 0; }

/* ---------------------------------------------------------------
   Bid cards (Discover)
--------------------------------------------------------------- */
.bid-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 32px 0 10px; }
@media (max-width: 980px) { .bid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bid-grid { grid-template-columns: 1fr 1fr; } }

.bid-card {
  text-align: left; font-family: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 15px 14px; position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 8px; min-height: 150px;
  color: var(--ink);
}
.bid-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16, 16, 19, .07); }
.bid-card.static { cursor: default; }
.bid-card.static:hover { border-color: var(--line); transform: none; box-shadow: none; }
.bid-card .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.bid-card .name { font-family: var(--disp); font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: -.01em; }
.bid-card .fmt { font-size: 13px; color: var(--soft); line-height: 1.4; flex: 1; }
.bid-card .amt { font-family: var(--mono); font-weight: 600; font-size: clamp(14px, 1.4vw, 17px); border-top: 1px solid var(--line-soft); padding-top: 9px; }
.bid-card.low-hint .amt { color: var(--signal); }
.bid-card.picked { border: 2px solid var(--accent); padding: 15px 14px 13px; }
.bid-card.picked::after {
  content: "YOUR AWARD"; position: absolute; top: -11px; right: 10px;
  font-family: var(--mono); font-weight: 600; font-size: 9.5px; letter-spacing: .12em;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: 3px 9px;
}
.bid-card:disabled { cursor: default; opacity: .45; }
.bid-card.picked:disabled { opacity: 1; }

/* the letter excerpt */
.letter {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(16, 16, 19, .08);
  padding: clamp(20px, 3.4vw, 36px);
  max-width: 680px; border-radius: var(--r);
  font-size: 15px; line-height: 1.75;
}
.letter p { font-family: var(--quote); font-size: 16.5px; }
.letter .lh { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; margin-bottom: 16px; gap: 8px; flex-wrap: wrap; }
.letter .hl { background: linear-gradient(transparent 6%, rgba(232, 69, 31, .18) 7%, rgba(232, 69, 31, .18) 90%, transparent 91%); box-shadow: inset 0 -2px 0 rgba(232,69,31,.55); transition: background .5s ease .2s, box-shadow .5s ease .2s; }
.letter .hl.off { background: transparent; box-shadow: none; }

/* leveling table */
.level-table { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--card); border-radius: var(--r); overflow: hidden; }
.level-table th, .level-table td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.level-table th { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); border-bottom: 1.5px solid var(--ink); }
.level-table th:first-child, .level-table td:first-child { text-align: left; }
.level-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.level-table td.lbl { font-family: var(--sans); color: var(--soft); font-size: 13.5px; }
.level-table tr.plugs td { color: var(--signal); }
.level-table tr.leveled td { font-weight: 600; border-top: 2px solid var(--ink); border-bottom: none; font-size: 15px; }
.level-table td.win { color: var(--green); }
.table-scroll { overflow-x: auto; border-radius: var(--r); }

.money-line { margin-top: 36px; }
.money-line .big {
  font-family: var(--disp); font-weight: 800; font-variation-settings: "opsz" 60;
  font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.025em; line-height: 1.05;
}
.money-line .big .was { color: var(--faint); position: relative; white-space: nowrap; }
.money-line .big .was::after { content: ""; position: absolute; left: -2%; right: -2%; top: 53%; height: 3px; background: var(--signal); transform: rotate(-2deg); border-radius: 2px; }
.money-line .big .now { color: var(--signal); white-space: nowrap; }

.outcome { display: none; margin-top: clamp(30px, 5vw, 48px); }
.outcome.open { display: block; }

.replay { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: none; border: none; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.replay:hover { color: var(--accent); }

/* ---------------------------------------------------------------
   Hypothesis cards
--------------------------------------------------------------- */
.hyp-stack { display: grid; gap: 12px; margin-top: 30px; }
.hyp {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  padding: 20px 20px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px;
}
.hyp .hid { font-family: var(--mono); font-weight: 600; font-size: 12.5px; color: var(--accent-ink); padding-top: 3px; }
.hyp .claim { font-weight: 550; font-size: 16px; line-height: 1.45; letter-spacing: -.005em; }
.hyp .predict { grid-column: 2; display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.pbtn {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--ink); background: var(--bg); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: border-color .12s ease, color .12s ease;
}
.pbtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.hyp .verdict { grid-column: 2; display: none; margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 16px; }
.hyp.done .verdict { display: block; }
.hyp.done .predict { display: none; }
.hyp .verdict .stamp { margin-bottom: 12px; }
.hyp .vtext { font-size: 14.5px; line-height: 1.62; max-width: 62ch; color: var(--ink); }
.hyp .called { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; margin-top: 12px; }

blockquote.q {
  border-left: 2.5px solid var(--accent); padding: 2px 0 2px 16px; margin: 12px 0 12px;
  font-family: var(--quote); font-style: italic; font-size: 17.5px; line-height: 1.55; color: var(--ink);
  font-weight: 450;
}
blockquote.q footer { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

.change-list { margin-top: 14px; display: grid; gap: 9px; }
.change-list .item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; font-size: 14.5px; line-height: 1.55; }
.change-list .item .k { color: var(--accent-ink); letter-spacing: .1em; }

/* ---------------------------------------------------------------
   Choice blocks
--------------------------------------------------------------- */
.choice { margin-top: 26px; }
.choice .opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.copt {
  text-align: left; font-family: inherit; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 17px 15px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.copt:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,16,19,.06); }
.copt .t { font-family: var(--disp); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.copt .d { font-size: 13px; line-height: 1.5; color: var(--soft); }
.copt.picked { border: 2px solid var(--accent); padding: 16px 16px 14px; }
.choice .result {
  display: none; margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: color-mix(in srgb, var(--accent) 4%, white);
  padding: 16px 18px; font-size: 14.5px; line-height: 1.62; max-width: 700px;
}
.choice.done .result { display: block; }

/* ---------------------------------------------------------------
   Build — sheet fragment
--------------------------------------------------------------- */
.frag { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; margin-top: 24px; }
.frag .frag-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--bg-alt); }
.frag table { width: 100%; border-collapse: collapse; }
.frag th, .frag td { padding: 12px 13px; text-align: right; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); }
.frag th:first-child, .frag td:first-child { text-align: left; }
.frag th { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.frag td { font-family: var(--mono); }
.frag td .dot { margin-right: 7px; }
.frag td button.cell {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, white);
  border: 1.5px dashed color-mix(in srgb, var(--signal) 50%, white); border-radius: 6px;
  padding: 5px 9px; cursor: pointer;
}
.frag td button.cell:hover { border-style: solid; background: color-mix(in srgb, var(--signal) 11%, white); }
.pop {
  display: none; margin: 0 16px 16px; border: 1px solid var(--line); border-left: 3px solid var(--signal);
  background: var(--bg); padding: 14px 16px; font-size: 14px; line-height: 1.6; border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--quote); font-style: italic;
}
.pop.open { display: block; }
.pop .src { font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: block; margin-top: 8px; }

.honesty { width: 100%; border-collapse: collapse; margin-top: 10px; background: var(--card); border-radius: var(--r); overflow: hidden; }
.honesty th, .honesty td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: top; }
.honesty th { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.honesty th.real { color: var(--green); }
.honesty th.real, .honesty td.real { border-right: 1px solid var(--line); padding-right: 18px; }
.honesty td { line-height: 1.55; }

/* ---------------------------------------------------------------
   Measure — dark lab
--------------------------------------------------------------- */
.lab {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(84, 110, 255, .12), transparent 60%),
    linear-gradient(var(--lab-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lab-line) 1px, transparent 1px),
    var(--lab-bg);
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: var(--lab-ink);
}
.lab .sheet-head { border-bottom-color: rgba(160,180,255,.22); }
.lab .k { color: var(--lab-soft); }
.lab .sheet-head .k b { color: var(--lab-accent); }
.lab a { color: var(--lab-accent); }
.lab .rule { border-top-color: rgba(160,180,255,.18); }
.lab .margin-note { border-left-color: var(--lab-accent); color: var(--lab-soft); }
.lab .margin-note .k { color: var(--lab-accent); }
.lab blockquote.q { border-left-color: var(--lab-accent); color: var(--lab-ink); }
.lab .lede { color: var(--lab-ink); }

.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin-top: 28px; }
.mcard { border: 1px solid var(--lab-line); border-radius: var(--r); padding: 18px 18px 16px; background: var(--lab-card); }
.mcard .mk { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lab-accent); }
.mcard .mv { font-family: var(--disp); font-weight: 800; font-size: 24px; letter-spacing: -.015em; margin-top: 9px; line-height: 1.12; }
.mcard .md { font-size: 13px; color: var(--lab-soft); margin-top: 9px; line-height: 1.55; }
.mcard .pending { font-family: var(--mono); font-size: 11px; color: var(--lab-soft); border: 1px dashed rgba(160,180,255,.4); border-radius: 999px; padding: 4px 10px; display: inline-block; margin-top: 10px; }

.lab .copt { background: var(--lab-card); border-color: var(--lab-line); color: var(--lab-ink); box-shadow: none; }
.lab .copt .d { color: var(--lab-soft); }
.lab .copt:hover { border-color: var(--lab-accent); }
.lab .copt.picked { border: 2px solid var(--lab-accent); }
.lab .choice .result { background: rgba(143,165,255,.07); border-color: rgba(143,165,255,.3); border-left-color: var(--lab-accent); color: var(--lab-ink); }

.lab-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
.lab-table th, .lab-table td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--lab-line); }
.lab-table th { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--lab-soft); border-bottom: 1.5px solid rgba(160,180,255,.4); }
.lab-table th:first-child, .lab-table td:first-child { text-align: left; }
.lab-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--lab-ink); }
.lab-table td:first-child { font-family: var(--sans); font-weight: 550; }
.lab-table .fn { color: var(--lab-soft); font-size: 11.5px; }

.delta-good { color: #5fe3a1; font-weight: 600; }
.delta-bad  { color: #ff9d8a; font-weight: 600; }
.delta-flat { color: var(--lab-soft); }

.arc { display: grid; gap: 14px; margin-top: 20px; max-width: 720px; }
.arc-item {
  border: 1px solid var(--lab-line); border-left: 3px solid #5fe3a1;
  border-radius: 0 var(--r) var(--r) 0; background: var(--lab-card);
  padding: 16px 18px 15px;
}
.arc-item .delta { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: -.01em; display: block; margin-bottom: 8px; color: var(--lab-ink); }
.arc-item .delta .delta-good { font-size: inherit; }
.arc-item p { font-size: 13.5px; line-height: 1.62; color: var(--lab-soft); }
.arc-item p b { color: var(--lab-ink); font-weight: 600; }

.defense { counter-reset: d; display: grid; gap: 11px; margin-top: 18px; max-width: 680px; }
.defense .layer { counter-increment: d; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; font-size: 14.5px; line-height: 1.6; color: var(--lab-ink); }
.defense .layer::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--lab-accent); }

/* ---------------------------------------------------------------
   go2work case + about
--------------------------------------------------------------- */
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.beat--wide { grid-column: span 2; }
@media (max-width: 900px) { .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .beats { grid-template-columns: 1fr; } .beat--wide { grid-column: span 1; } }
.beat { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 18px 18px 16px; }
.beat .bk { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.beat p { font-size: 13.5px; color: var(--soft); margin-top: 8px; line-height: 1.55; }
.beat .bv { font-family: var(--disp); font-weight: 800; font-size: 22px; letter-spacing: -.015em; margin-top: 8px; line-height: 1.15; color: var(--ink); }
.beat p b { color: var(--ink); font-weight: 600; }
/* context, not a decision: framed differently so it never reads as one */
.beat--context { grid-column: 1 / -1; background: transparent; border-style: dashed; }

.award-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; }
@media (max-width: 640px) { .award-grid { grid-template-columns: 1fr; } }

.hashlab {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  padding: 18px 18px 16px; max-width: 720px; margin-top: 26px;
}
.hashlab input {
  display: block; width: 100%; margin-top: 12px;
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 11px 13px;
}
.hashlab input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hashlab .hash-out {
  font-size: 12.5px; word-break: break-all; line-height: 1.7;
  color: var(--accent-ink); margin-top: 12px;
  background: color-mix(in srgb, var(--accent) 4%, white);
  border: 1px dashed color-mix(in srgb, var(--accent) 25%, white);
  border-radius: 6px; padding: 10px 12px;
}
.hashlab .cap { font-size: 13px; color: var(--soft); line-height: 1.55; margin-top: 12px; }
.hash-out span.chg { animation: chgFlash .8s ease both; border-radius: 2px; }
@keyframes chgFlash { 0% { background: rgba(36, 56, 232, .35); } 100% { background: transparent; } }

/* result entrance */
@keyframes resIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.choice.done .result { animation: resIn .32s ease both; }

/* custody chain (warm-up, call one) */
.custody { display: none; margin-top: 16px; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice.done .custody { display: flex; animation: resIn .4s ease both .15s; }
.custody .cn {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--card);
}
.custody .arr { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.custody .cn.hot {
  color: var(--signal);
  border-color: color-mix(in srgb, var(--signal) 45%, white);
  background: color-mix(in srgb, var(--signal) 7%, white);
  animation: hotPulse 1.5s ease-in-out 2 .4s;
}
@keyframes hotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 69, 31, 0); } 50% { box-shadow: 0 0 0 6px rgba(232, 69, 31, .16); } }
.custody .k { width: 100%; margin-top: 4px; }

/* wax seal (warm-up, call three) */
.sealviz { display: none; margin-top: 18px; position: relative; max-width: 440px; }
.choice.done .sealviz { display: block; animation: resIn .4s ease both .1s; }
.sealviz .env { border: 1px solid var(--line); border-radius: 10px; background: var(--card); height: 96px; position: relative; overflow: hidden; }
.sealviz .env::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px;
  background: linear-gradient(to bottom right, var(--bg-alt), transparent 70%);
  border-bottom: 1px dashed var(--line);
}
.sealviz .env::after {
  content: "QUESTION · ANSWER KEY · RATIONALE"; position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--faint);
}
.sealviz .wax {
  position: absolute; right: 24px; top: 18px; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8674a, var(--signal) 60%, #a33013);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  box-shadow: 0 6px 18px rgba(232, 69, 31, .35);
  animation: waxStamp .5s cubic-bezier(.2, 1.3, .4, 1) both .25s;
}
@keyframes waxStamp {
  0% { opacity: 0; transform: scale(2.1) rotate(-14deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}
.sealviz .cap { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .choice.done .result, .choice.done .custody, .choice.done .sealviz { animation: none; }
  .custody .cn.hot, .sealviz .wax, .hash-out span.chg { animation: none; }
}

.portrait {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 14px 36px rgba(16, 16, 19, .09);
  margin-bottom: 18px;
}
.portrait:empty { display: none; }
.portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .portrait { max-width: 260px; } }

.timeline { margin-top: 30px; display: grid; max-width: 700px; }
.trow { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.trow .yr { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--accent-ink); padding-top: 4px; }
.trow .what { font-size: 14.5px; line-height: 1.6; }
.trow .what b { font-weight: 650; }
@media (max-width: 540px) { .trow { grid-template-columns: 1fr; gap: 4px; } }

.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .receipts { grid-template-columns: 1fr; } }
.receipt { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 18px 18px 16px; }
.receipt .t { font-family: var(--disp); font-weight: 700; font-size: 15.5px; margin-bottom: 7px; letter-spacing: -.01em; }
.receipt p { font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.receipt p b { color: var(--ink); font-weight: 600; }

.contact-block {
  margin-top: 44px; border-radius: 14px; background: var(--ink); color: var(--bg);
  padding: clamp(26px, 4.5vw, 48px);
}
.contact-block .k { color: var(--lab-accent); }
.contact-block .lede { color: #fff; }
.contact-block .row { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 22px; }
.contact-block a { color: #fff; }
.contact-block a:hover { color: var(--lab-accent); }
.contact-block a.big { font-family: var(--mono); font-weight: 600; font-size: clamp(14px, 1.8vw, 18px); }

footer.colophon { padding: 44px 0 64px; }
footer.colophon .inner { width: var(--w); margin: 0 auto; }
footer.colophon p { font-size: 13px; color: var(--faint); line-height: 1.65; max-width: 64ch; }

/* ---------------------------------------------------------------
   Multi-page additions: hub doors, play widgets, static positions
--------------------------------------------------------------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .portrait { max-width: 220px; } }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
@media (max-width: 700px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px 18px; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.door:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 16, 19, .09); color: var(--ink); }
.door .k { color: var(--accent-ink); letter-spacing: .13em; }
.door .dt { font-family: var(--disp); font-weight: 800; font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.015em; }
.door p { font-size: 13.5px; line-height: 1.55; color: var(--soft); flex: 1; }
.door .go { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.door:hover .go { color: var(--accent); }

.nowcard {
  margin-top: 16px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 28%, white);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 4%, white);
  padding: 18px 20px 16px;
}
.nowcard .k { color: var(--accent-ink); }
.nowcard .nowname {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.018em; margin-top: 4px;
}
.nowcard p { font-size: 13.5px; color: var(--soft); margin-top: 7px; line-height: 1.55; max-width: 92ch; }
.nowcard p b { color: var(--ink); }

/* stat line (go2work) */
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 30px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 14px 16px; }
.stat b { font-family: var(--disp); font-weight: 800; font-size: 23px; letter-spacing: -.015em; display: block; }
.stat span { font-size: 12.5px; color: var(--soft); display: block; margin-top: 3px; line-height: 1.4; }

/* screenshot gallery (self-hiding) */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; margin-top: 20px; align-items: start; }
.screens:empty { display: none; }
.screens figure { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); margin: 0; }
.screens img { display: block; width: 100%; height: auto; }

/* chain play (warm-up call one) */
.chainplay { margin-top: 22px; }
.chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chain .arr { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.cnode {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 15px; cursor: pointer; transition: border-color .14s ease, transform .14s ease;
}
.cnode:hover { border-color: var(--accent); transform: translateY(-2px); }
.cnode.hit { border-color: var(--accent); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 6%, white); }
.chainplay.done .cnode.mid {
  color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, white);
  background: color-mix(in srgb, var(--signal) 7%, white);
  animation: hotPulse 1.5s ease-in-out 2 .2s;
}
.chain-reveal { display: none; margin-top: 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, white); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: color-mix(in srgb, var(--accent) 4%, white); padding: 14px 17px; font-size: 14.5px; line-height: 1.6; max-width: 640px; }
.chainplay.done .chain-reveal { display: block; animation: resIn .3s ease both; }

details.why { margin-top: 14px; max-width: 680px; }
details.why summary {
  cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
details.why summary::before { content: "+"; font-size: 14px; }
details.why[open] summary::before { content: "–"; }
details.why summary::-webkit-details-marker { display: none; }
details.why p { font-size: 14px; line-height: 1.62; color: var(--soft); margin-top: 10px; }

/* submission sim (warm-up call three) */
.subsim { margin-top: 22px; max-width: 640px; }
.subsim .qcard { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 16px 18px; }
.subsim .qhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); padding-bottom: 9px; margin-bottom: 12px; }
.subsim .qtext { font-family: var(--quote); font-size: 16.5px; line-height: 1.65; }
.subsim .qkey { font-size: 13px; color: var(--soft); margin-top: 10px; font-family: var(--mono); }
.subsim .sub-flag {
  display: none; margin-top: 12px; border: 1px solid color-mix(in srgb, var(--signal) 35%, white);
  border-left: 3px solid var(--signal); border-radius: 0 var(--r) var(--r) 0;
  background: color-mix(in srgb, var(--signal) 5%, white); padding: 13px 16px; font-size: 14px; line-height: 1.6;
}
.subsim .sub-flag .k { color: var(--signal); display: block; margin-bottom: 5px; }
.subsim.s1 .sub-flag { display: block; animation: resIn .3s ease both; }
.subsim.s2 .sub-flag { display: block; border-left-color: var(--green); border-color: color-mix(in srgb, var(--green) 32%, white); background: color-mix(in srgb, var(--green) 5%, white); }
.subsim.s2 .sub-flag .k { color: var(--green); }
.subsim .sealviz { display: none; }
.subsim.s2 .sealviz { display: block; animation: resIn .35s ease both; }

/* static positions (case-study page) */
.choice.static .opts { margin-top: 4px; }
.copt-static { cursor: default; position: relative; }
.copt-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.copt-static.my { border: 2px solid var(--accent); }
.copt-static.my:hover { border-color: var(--accent); }
.mychip {
  position: absolute; top: -11px; left: 14px;
  font-family: var(--mono); font-weight: 600; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 9px;
}
.posr { font-size: 13px; line-height: 1.55; color: var(--ink); border-top: 1px dashed var(--line-soft); padding-top: 9px; margin-top: 4px; }
.posr.dim { color: var(--faint); }
.lab .copt-static:hover { border-color: var(--lab-line); }
.lab .copt-static.my, .lab .copt-static.my:hover { border-color: var(--lab-accent); }
.lab .mychip { background: var(--lab-accent); color: var(--lab-bg); }
.lab .posr { color: var(--lab-ink); border-top-color: rgba(160, 180, 255, .2); }
.lab .posr.dim { color: var(--lab-soft); }

/* ---------------------------------------------------------------
   Guard1 page: device mockup, ladder, reasons, trade-off table
--------------------------------------------------------------- */
.devicewrap { margin-top: 26px; max-width: 680px; }
.modes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.modebtn {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 17px; cursor: pointer; transition: border-color .14s ease, color .14s ease, transform .14s ease;
}
.modebtn:hover { border-color: var(--accent); transform: translateY(-1px); }
.modebtn.is-on { border-color: var(--accent); color: #fff; background: var(--accent); }

.device {
  border-radius: 20px; padding: 16px 16px 26px;
  background: #d8d6cd; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(16, 16, 19, .14);
  position: relative; transition: background-color .45s ease;
}
.device .dev-home {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 4px; border-radius: 999px; background: rgba(0, 0, 0, .28);
}
.dev-screen {
  border-radius: 10px; padding: 16px 16px 14px; font-family: var(--mono);
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
}
@media (prefers-reduced-motion: reduce) {
  .device, .dev-screen { transition: none; }
}
.dev-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; opacity: .75; }
.dev-dir { font-weight: 600; }
.dev-plate { margin-top: 14px; padding: 12px 14px; border-radius: 8px; border: 1px dashed currentColor; }
.dev-lbl { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.dev-plate .dev-val { display: block; font-size: clamp(19px, 3vw, 26px); font-weight: 600; letter-spacing: .1em; margin-top: 5px; }
.dev-scan { display: block; font-size: 9.5px; letter-spacing: .1em; opacity: .65; margin-top: 5px; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dev-field { border-radius: 6px; padding: 8px 10px; background: rgba(127, 127, 127, .11); }
.dev-field .dev-val { font-size: 12.5px; margin-top: 3px; display: block; }
.dev-photos { display: flex; gap: 10px; margin-top: 12px; }
.dev-slot {
  flex: 1; text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px dashed currentColor; border-radius: 6px; padding: 13px 6px; opacity: .7;
}
.dev-slot.filled { opacity: 1; border-style: solid; }
.dev-note { margin-top: 12px; font-size: 10px; letter-spacing: .06em; padding: 8px 10px; border-radius: 6px; background: rgba(127, 127, 127, .13); }

.device[data-mode="light"] .dev-screen { background: var(--bg); color: #16161a; }
.device[data-mode="dark"] { background: #2a2a2e; }
.device[data-mode="dark"] .dev-screen { background: #15161a; color: #e8e9ee; }
.device[data-mode="night"] { background: #150404; }
.device[data-mode="night"] .dev-screen {
  background: #0a0000; color: #ff4d4d;
  box-shadow: inset 0 0 60px rgba(255, 0, 0, .09);
}
.device[data-mode="night"] .dev-field,
.device[data-mode="night"] .dev-note { background: rgba(255, 60, 60, .09); }
#mode-cap { margin-top: 12px; display: block; }

.ladder { display: grid; gap: 10px; margin-top: 16px; }
.rung { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.rung .rn { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--accent-ink); }
.rung b { font-family: var(--disp); font-weight: 700; font-size: 15px; display: block; letter-spacing: -.01em; }
.rung span:not(.rn) { font-size: 13.5px; color: var(--soft); line-height: 1.55; display: block; margin-top: 3px; }

ul.reasons { margin: 12px 0 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
ul.reasons li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
ul.reasons li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: 12px; }

.tradeoffs th, .tradeoffs td { font-size: 13.5px; }
.tradeoffs td.real { font-weight: 550; }

/* document shot: blur baked into the image, one sentence legible */
.docshot {
  max-width: 680px; margin: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 16px 44px rgba(16, 16, 19, .10); overflow: hidden;
}
.docshot .lh {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
}
.docshot img { display: block; width: 100%; height: auto; }
.docshot figcaption {
  font-size: 12.5px; line-height: 1.55; color: var(--soft);
  padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--bg-alt);
}
/* the sentence, restated in selectable text under the image */
.letter-line {
  max-width: 680px; margin-top: 14px; font-family: var(--quote); font-size: 16px;
  line-height: 1.7; color: var(--ink);
}


.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .sheet { padding: 56px 0; }
  .bid-card { min-height: 134px; }
}

.cell-static {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, white);
  border: 1px solid color-mix(in srgb, var(--signal) 40%, white); border-radius: 6px;
  padding: 5px 9px; display: inline-block;
}
.pop.open { display: block; }
