/* ============================================================
   Motif — GTM Engineer Evaluation landing page
   Built on the Motif design system (retro-desktop / Report.app)
   ============================================================ */

/* ---- accent override hook (Tweaks) — rebound to Motif DS teal ---- */
.motif-theme {
  --accent: #008080;
  --accent-soft: #D5E8E8;
  --accent-deep: #005F5F;
  --accent-top: #1FA3A3;
  --flag: #B23B2E;
}
.motif-theme[data-accent="orange"] {
  --accent: #E8502B;
  --accent-soft: #FDE1D7;
  --accent-deep: #B83D1E;
  --accent-top: #F47A5A;
}
.motif-theme[data-accent="indigo"] {
  --accent: #4F46E5;
  --accent-soft: #E2E0FB;
  --accent-deep: #322BA6;
  --accent-top: #7C75F0;
}
/* keep the DS primary button + tabs in sync with the chosen accent */
.motif-theme .motif-btn--primary {
  background: linear-gradient(to bottom, var(--accent-top) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  border-color: var(--accent-deep);
}
.motif-theme .motif-btn--primary:hover {
  background: linear-gradient(to bottom, var(--accent-top), var(--accent) 55%, var(--accent-deep));
}

/* ---- base --------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--desktop);
  background-image:
    radial-gradient(rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.chrome { font-family: var(--f-chrome); }
.motif-btn { white-space: nowrap; }
.menu-links a, .brand, .footer .fnav a { white-space: nowrap; }

/* eyebrow / section tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-chrome); font-size: 15px; letter-spacing: 0.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow .num {
  display: inline-block; padding: 1px 7px 2px;
  background: var(--ink); color: var(--paper);
  border-radius: 2px; font-size: 13px;
}
.eyebrow--muted { color: var(--muted); }

/* shared headings */
.display {
  font-family: var(--f-body); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.02; color: var(--ink);
  margin: 0; text-wrap: balance;
}
.h-xl { font-size: clamp(40px, 6vw, 76px); }
.h-lg { font-size: clamp(32px, 4.4vw, 54px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.lead {
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55;
  color: var(--ink-soft); max-width: 42ch; text-wrap: pretty;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--deep  { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; max-width: 56ch; }

/* ============================================================
   Menu bar (classic desktop)
   ============================================================ */
.menubar {
  position: sticky; top: 0; z-index: 50;
  height: 46px; display: flex; align-items: center;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.55) 0, rgba(255,255,255,.55) 1px, transparent 1px, transparent calc(100% - 1px), rgba(0,0,0,.18) calc(100% - 1px), rgba(0,0,0,.18) 100%),
    repeating-linear-gradient(0deg, var(--titlebar-light) 0 1px, var(--titlebar-dark) 1px 2px);
}
.menubar .wrap { display: flex; align-items: center; gap: 22px; width: 100%; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-chrome); font-size: 23px; color: var(--ink);
  letter-spacing: 0.5px;
}
.brand .mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: radial-gradient(circle at 32% 28%, #7FD4D4, var(--accent) 60%, var(--accent-deep));
  box-shadow: inset 1px 1px rgba(255,255,255,.6), 0 1px 1px rgba(0,0,0,.25);
}
.menu-links { display: none; gap: 4px; margin-left: 8px; }
.menu-links a {
  font-family: var(--f-chrome); font-size: 16px; color: var(--ink-soft);
  padding: 3px 11px; border-radius: 3px;
}
.menu-links a:hover { background: rgba(255,255,255,.4); color: var(--ink); }
.menubar .spacer { flex: 1; }
.menubar .plate {
  display: none; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--plate-bg); border: 1px solid var(--ink);
  padding: 2px 11px 3px; font-family: var(--f-chrome); font-size: 15px;
  box-shadow: inset 1px 1px rgba(255,255,255,.7), 0 1px rgba(0,0,0,.15);
}
.plate .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
@media (min-width: 880px) { .menu-links { display: inline-flex; } .menubar .plate { display: inline-flex; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(54px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-cta .motif-btn { font-size: 16px; padding: 9px 20px 10px; }
.trustline {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.trustline .label { font-family: var(--f-chrome); font-size: 14px; color: var(--muted); letter-spacing: 0.4px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.logo-chip {
  font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px; opacity: 0.85;
}
.logo-chip::before { content: ""; width: 13px; height: 13px; border-radius: 4px; background: var(--orb, var(--muted)); box-shadow: inset 1px 1px rgba(255,255,255,.4); }

/* hero report mini */
.hero-visual { position: relative; }
.hero-visual .motif-window { transform: rotate(-1.1deg); }
.hero-visual .floattag {
  position: absolute; z-index: 5; font-family: var(--f-chrome); font-size: 13px;
  background: var(--white); border: 1px solid var(--ink); padding: 4px 10px;
  box-shadow: 2px 2px rgba(0,0,0,.18); display: inline-flex; align-items: center; gap: 7px;
}
.floattag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.floattag.tag-tr { top: -16px; right: -10px; transform: rotate(2deg); }
.floattag.tag-bl { bottom: -18px; left: -14px; transform: rotate(-2deg); background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* layout = centered variant */
.motif-theme[data-hero="centered"] .hero { padding: clamp(72px, 11vw, 140px) 0 clamp(72px, 11vw, 140px); }
.motif-theme[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.motif-theme[data-hero="centered"] .hero-copy { max-width: 760px; margin: 0 auto; }
.motif-theme[data-hero="centered"] .hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.motif-theme[data-hero="centered"] .hero .lead { max-width: 56ch; margin-left: auto; margin-right: auto; }
.motif-theme[data-hero="centered"] .hero-cta { justify-content: center; }
.motif-theme[data-hero="centered"] .trustline { align-items: center; text-align: center; }
.motif-theme[data-hero="centered"] .logo-row { justify-content: center; }
.motif-theme[data-hero="centered"] .hero-visual { max-width: 760px; margin: 52px auto 0; width: 100%; }
.motif-theme[data-hero="centered"] .hero-visual .motif-window { transform: rotate(0); }

/* ============================================================
   Clay orbs (the Clay nod) — playful 3D placeholder objects
   ============================================================ */
.orb {
  position: absolute; border-radius: 48% 52% 56% 44% / 52% 48% 54% 46%;
  filter: saturate(1.05);
  box-shadow:
    inset 6px 8px 14px rgba(255,255,255,.55),
    inset -8px -10px 20px rgba(0,0,0,.22),
    6px 10px 22px rgba(0,0,0,.18);
  pointer-events: none; z-index: 0;
  animation: bob 7s ease-in-out infinite;
}
.orb.c-coral  { background: radial-gradient(circle at 34% 30%, #FFB59C, #F4663F 58%, #C9381A); }
.orb.c-amber  { background: radial-gradient(circle at 34% 30%, #FFE3A0, #F2B441 58%, #C98A19); }
.orb.c-teal   { background: radial-gradient(circle at 34% 30%, #9BE8DC, #2BB6A3 58%, #178374); }
.orb.c-violet { background: radial-gradient(circle at 34% 30%, #CBBCFA, #8A6CF0 58%, #5B45C0); }
.orb.c-lime   { background: radial-gradient(circle at 34% 30%, #DCEFA0, #A8C84A 58%, #79962B); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--rot,0deg) + 3deg)); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
.motif-theme[data-clay="off"] .orb { display: none; }

/* keep orbs behind text: isolate each host, lift its content above the orbs */
.hero, .report-stage, .cta-final { isolation: isolate; }
.hero > .wrap,
.report-stage > .report,
.report-stage > .cohort,
.cta-final > .wrap { position: relative; z-index: 1; }

/* ============================================================
   The problem — enrichment table (Clay column nod)
   ============================================================ */
.enrich {
  background: var(--white); border: 1px solid var(--ink);
  box-shadow: 3px 3px rgba(0,0,0,.18); overflow: hidden;
}
.enrich-head, .enrich-row { display: grid; grid-template-columns: 200px repeat(5, 1fr) 1.4fr; }
.enrich-head > div, .enrich-row > div {
  padding: 11px 12px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  font-size: 13px; display: flex; align-items: center; min-width: 0;
}
.enrich-head { background: var(--paper-deep); }
.enrich-head > div {
  font-family: var(--f-chrome); font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.3px; text-transform: none;
}
.enrich-row > div:first-child { font-weight: 600; color: var(--ink); }
.enrich-row .cand { gap: 8px; }
.enrich-row .cand .pic { width: 18px; height: 18px; border-radius: 50%; background: var(--orb,#bbb); flex: none; box-shadow: inset 1px 1px rgba(255,255,255,.4); }
.enrich .check { justify-content: center; color: var(--positive); font-family: var(--f-chrome); font-size: 15px; }
.enrich .verdict-col {
  background: repeating-linear-gradient(45deg, var(--accent-soft) 0 9px, transparent 9px 18px);
  color: var(--accent); font-family: var(--f-chrome); font-size: 14px; font-weight: 400;
  border-right: none; justify-content: center; gap: 6px;
}
.enrich-head .verdict-col { background: var(--accent); color: #fff; border-right: none; }
.enrich-row:last-child > div { border-bottom: none; }
.enrich-foot {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
  margin-top: 16px; font-size: 14px; color: var(--muted); font-family: var(--f-chrome);
}
.problem-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.prob-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 46ch; }
.prob-points li { position: relative; padding-left: 26px; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.prob-points li b { color: var(--ink); font-weight: 700; }
.prob-points li::before { content: "✕"; position: absolute; left: 0; top: 1px; font-family: var(--f-chrome); font-size: 13px; color: var(--flag); }
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; }
  .enrich-head, .enrich-row { grid-template-columns: 130px repeat(5, 1fr) 1.3fr; }
  .enrich-head > div, .enrich-row > div { padding: 9px 7px; font-size: 11px; }
}

/* problem = cards variant */
.problem-cards { display: none; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.problem-cards .motif-card { display: flex; flex-direction: column; gap: 10px; }
.problem-cards .big { font-family: var(--f-body); font-weight: 800; font-size: 40px; color: var(--accent); letter-spacing: -0.02em; }
.motif-theme[data-problem="cards"] .enrich-wrap { display: none; }
.motif-theme[data-problem="cards"] .problem-cards { display: grid; }
.motif-theme[data-problem="cards"] .problem-grid { grid-template-columns: 1fr; }
@media (max-width: 820px) { .problem-cards { grid-template-columns: 1fr; } }

/* problem = slop résumé variant */
.resume-wrap { display: none; position: relative; }
.motif-theme[data-problem="resume"] .enrich-wrap,
.motif-theme[data-problem="resume"] .problem-cards { display: none; }
.motif-theme[data-problem="resume"] .resume-wrap { display: block; }
.resume .motif-window__body { padding: 0; }
.resume-paper { padding: 22px 24px 24px; background: var(--white); position: relative; }
.resume-name { font-family: var(--f-body); font-weight: 800; font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.resume-title { font-family: var(--f-chrome); font-size: 14px; color: var(--accent); margin-top: 6px; }
.resume-contact { font-size: 11.5px; color: var(--muted); margin-top: 7px; padding-bottom: 13px; border-bottom: 1px solid var(--rule); }
.resume-sec { font-family: var(--f-chrome); font-size: 12.5px; color: var(--ink-soft); letter-spacing: .4px; text-transform: uppercase; margin: 15px 0 9px; }
.resume-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.resume-list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.resume-list li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--muted); font-size: 11px; }
.flag { display: inline-block; margin-left: 6px; font-family: var(--f-chrome); font-size: 11px; color: #fff; background: var(--flag); padding: 0 6px; border-radius: 2px; white-space: nowrap; vertical-align: middle; }
.skills-blob { display: flex; flex-wrap: wrap; gap: 5px; }
.skills-blob .sk { font-family: var(--f-chrome); font-size: 11px; color: var(--ink-soft); background: var(--paper-deep); border: 1px solid var(--rule); padding: 1px 7px; }
.skills-blob .sk--more { color: var(--muted); background: transparent; border-style: dashed; }
.resume-stamp { position: absolute; top: 54px; right: -10px; z-index: 6; transform: rotate(7deg); font-family: var(--f-chrome); font-size: 15px; color: var(--flag); border: 2px solid var(--flag); padding: 4px 11px; background: rgba(255,255,255,.78); letter-spacing: 1px; box-shadow: 1px 1px rgba(0,0,0,.1); }
.resume-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; margin-top: 16px; font-family: var(--f-chrome); font-size: 14px; color: var(--muted); }
.resume-foot b { color: var(--ink); }
@media (max-width: 880px) { .resume-stamp { font-size: 13px; top: 48px; } }

/* ---- résumé as a doc under review (Google-Docs-style comments) ---- */
.motif-theme[data-problem="resume"] .problem-grid { display: block; max-width: 1000px; margin-inline: auto; }
.motif-theme[data-problem="resume"] .problem-intro { display: block; margin-bottom: clamp(28px, 4vw, 46px); }
.motif-theme[data-problem="resume"] .pi-head { max-width: 62ch; }
.motif-theme[data-problem="resume"] .prob-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: none; margin-top: 26px; }
.motif-theme[data-problem="resume"] .prob-points li { padding: 15px 16px; border: 1px solid var(--rule); background: var(--white); box-shadow: 2px 2px rgba(0,0,0,.07); }
.motif-theme[data-problem="resume"] .prob-points li::before { position: static; display: inline-block; margin-bottom: 9px; font-size: 14px; }
@media (max-width: 760px) { .motif-theme[data-problem="resume"] .prob-points { grid-template-columns: 1fr; } }
.resume-review { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(18px, 2.4vw, 36px); align-items: start; }
.resume-summary { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.resume-job { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink); margin: 2px 0 8px; }
.resume-job:not(:first-of-type) { margin-top: 13px; }
.resume-job .dt { font-family: var(--f-chrome); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.gdoc-rail { position: relative; min-height: 1px; }
.gdoc-comment { position: absolute; left: 0; right: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.07); transition: box-shadow .16s, border-color .16s, top .18s ease; }
.gdoc-comment.is-active { border-color: var(--accent); box-shadow: 0 2px 5px rgba(0,0,0,.10), 0 12px 30px rgba(0,0,0,.13); }
.gdoc-c-head { display: flex; align-items: center; gap: 9px; }
.gdoc-ava { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-family: var(--f-body); font-weight: 700; font-size: 11.5px; color: #fff; letter-spacing: .02em; }
.gdoc-ava.sm { width: 22px; height: 22px; font-size: 10px; }
.gdoc-meta { min-width: 0; line-height: 1.2; }
.gdoc-meta .nm { font-family: var(--f-body); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.gdoc-meta .nm small { font-weight: 600; color: var(--muted); }
.gdoc-meta .tm { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.gdoc-body { font-family: var(--f-body); font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 7px; text-wrap: pretty; }
.gdoc-thread { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.gdoc-meta .rep { font-size: 11.5px; line-height: 1.42; color: var(--ink-soft); margin-top: 2px; text-wrap: pretty; }

.gdoc-hl { background: rgba(255,201,71,.40); border-bottom: 2px solid rgba(240,170,25,.85); padding: 0 1px; cursor: pointer; transition: background .15s; }
.gdoc-hl.is-active { background: rgba(255,201,71,.78); }

@media (max-width: 880px) {
  .motif-theme[data-problem="resume"] .problem-intro { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .resume-review { grid-template-columns: 1fr; }
  .gdoc-rail { position: static; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; height: auto !important; }
  .gdoc-comment { position: static; }
}

/* ============================================================
   Tiers (category section)
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--white); box-shadow: 3px 3px rgba(0,0,0,.18); }
.tier { padding: 26px 24px 28px; border-right: 1px solid var(--rule); position: relative; }
.tier:last-child { border-right: none; }
.tier--top { background: var(--accent-soft); }
.tier .tier-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tier .tname { font-family: var(--f-chrome); font-size: 18px; color: var(--ink); }
.tier--top .tname { color: var(--accent); }
.tier .pay { font-family: var(--f-chrome); font-size: 15px; color: var(--muted); }
.tier--top .pay { color: var(--accent-deep); }
.tier .orb-sm { width: 40px; height: 40px; position: relative; margin-bottom: 16px; animation: none; box-shadow: inset 4px 5px 8px rgba(255,255,255,.5), inset -5px -6px 12px rgba(0,0,0,.22), 3px 5px 12px rgba(0,0,0,.16); }
.tier .tier-ava { width: 60px; height: 60px; display: block; margin-bottom: 16px; font-size: 11px; }
.tier .tier-ava::part(frame) { box-shadow: inset 4px 5px 8px rgba(255,255,255,.45), inset -5px -6px 12px rgba(0,0,0,.2), 3px 5px 12px rgba(0,0,0,.16); }
.tier-ava--lime::part(frame)  { background: radial-gradient(circle at 34% 30%, #DCEFA0, #A8C84A 58%, #79962B); }
.tier-ava--teal::part(frame)  { background: radial-gradient(circle at 34% 30%, #9BE8DC, #2BB6A3 58%, #178374); }
.tier-ava--coral::part(frame) { background: radial-gradient(circle at 34% 30%, #FFB59C, #F4663F 58%, #C9381A); }
.tier p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.tier .badge-row { margin-top: 16px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } .tier { border-right: none; border-bottom: 1px solid var(--rule); } .tier:last-child { border-bottom: none; } }

/* ---- role ladder (visual hierarchy) ---- */
.ladder { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: end; gap: clamp(6px, 1.3vw, 16px); margin-top: clamp(30px, 4vw, 52px); }
.rung { display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--white); box-shadow: 4px 5px 0 rgba(0,0,0,.13); }
.rung-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px 7px; border-bottom: 1px solid var(--ink); background: repeating-linear-gradient(0deg, var(--titlebar-light) 0 1px, var(--titlebar-dark) 1px 2px); font-size: 14px; color: var(--ink); }
.rung-bar .lvl { color: var(--ink-soft); letter-spacing: .5px; }
.rung-bar .pay { color: var(--ink); white-space: nowrap; }
.rung-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.rung-name { font-family: var(--f-body); font-weight: 800; font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.rung-desc { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.rung .motif-badge { align-self: flex-start; margin-top: auto; }
.rung--1 { min-height: 186px; }
.rung--2 { min-height: 248px; }
.rung--3 { min-height: 312px; }
.rung--top { border-color: var(--accent); box-shadow: 4px 5px 0 var(--accent-soft); }
.rung--top .rung-bar { background: var(--accent); border-bottom-color: var(--accent); color: #fff; }
.rung--top .rung-bar .lvl { color: rgba(255,255,255,.82); }
.rung--top .rung-bar .pay { color: #fff; }
.rung--top .rung-name { color: var(--accent); }
.ladder-arrow { align-self: center; font-family: var(--f-body); font-size: clamp(20px, 2.4vw, 30px); color: var(--muted); line-height: 1; padding-bottom: clamp(34px, 5vw, 78px); }
@media (max-width: 760px) {
  .ladder { grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
  .ladder .rung { min-height: 0; }
  .ladder-arrow { justify-self: center; transform: rotate(45deg); padding: 0; }
}

/* ---- what top-1% looks like: examples ---- */
.role-top { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.role-top .section-head { margin: 0 !important; max-width: none; text-align: left; }
.role-top .ladder { margin-top: 4px; margin-bottom: 34px; }
@media (max-width: 860px) { .role-top { grid-template-columns: 1fr; gap: 28px; } }
.examples { margin-top: clamp(40px, 5vw, 64px); }
/* collapsible architect expansion */
.rung--top { cursor: pointer; transition: box-shadow .2s, transform .2s; position: relative; }
.rung--top:hover { box-shadow: 5px 5px rgba(0,0,0,.18); transform: translateY(-1px); }
.rung--top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rung-toggle { position: absolute; top: calc(100% + 9px); left: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--accent); }
.rung-toggle i { font-style: normal; transition: transform .3s ease; }
.rung--top[aria-expanded="true"] .rung-toggle i { transform: rotate(180deg); }
.examples.arch-expand { position: relative; margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .55s cubic-bezier(.4,0,.2,1), opacity .4s ease, margin-top .55s ease; }
.examples.arch-expand.open { max-height: 2400px; opacity: 1; margin-top: clamp(28px, 4vw, 48px); }
.arch-connector { position: absolute; left: 50%; top: calc(-1 * clamp(28px, 4vw, 48px)); width: 2px; height: clamp(28px, 4vw, 48px); background: var(--accent); transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform .4s ease .1s; }
.examples.arch-expand.open .arch-connector { transform: translateX(-50%) scaleY(1); }
.examples-intro { font-family: var(--f-chrome); font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-soft); padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.ex-list { display: flex; flex-direction: column; gap: 16px; }
.ex { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 3vw, 44px); align-items: center; background: var(--white); border: 1px solid var(--ink); box-shadow: 3px 3px rgba(0,0,0,.14); padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px); }
.ex-k { font-size: 14px; color: var(--accent); letter-spacing: .4px; margin-bottom: 10px; }
.ex-text h3 { font-family: var(--f-body); font-weight: 700; font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -0.015em; margin: 0 0 10px; line-height: 1.15; }
.ex-text p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.ex-text p i { font-style: italic; color: var(--ink); }
.ex-viz { display: flex; align-items: center; justify-content: center; min-height: 116px; background: var(--paper); border: 1px solid var(--rule); padding: 20px 16px; }

/* handoff diagram */
.ho { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.ho-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ho-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px 8px; }
.ho-arr { color: var(--muted); font-size: 13px; }
.ho-node { font-family: var(--f-chrome); font-size: 13px; color: var(--ink); background: var(--white); border: 1px solid var(--ink); padding: 6px 11px; box-shadow: 2px 2px rgba(0,0,0,.14); }
.ho-node--ae { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ho-edge { flex: 1; max-width: 150px; position: relative; height: 1px; background: var(--ink); }
.ho-edge::after { content: "▸"; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 11px; }
.ho-lbl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--f-chrome); font-size: 11px; color: var(--ink-soft); background: var(--paper); padding: 0 6px; }
.ho-back { display: flex; justify-content: center; }
.ho-lbl--back { position: static; transform: none; font-family: var(--f-chrome); font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 1px dashed var(--accent); padding: 3px 10px; }

/* enrichment compare */
.enr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.enr-col { display: flex; flex-direction: column; gap: 6px; }
.enr-h { font-family: var(--f-chrome); font-size: 12px; letter-spacing: .3px; margin-bottom: 3px; }
.enr-col--weak .enr-h { color: var(--muted); }
.enr-col--strong .enr-h { color: var(--accent); }
.enr-src { font-family: var(--f-chrome); font-size: 12px; padding: 4px 9px; border: 1px solid var(--rule); }
.enr-col--weak .enr-src { color: var(--muted); background: var(--paper-deep); text-decoration: line-through; text-decoration-color: var(--rule-deep); }
.enr-col--strong .enr-src { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }

/* systems loop */
.sys-loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.sys-node { font-family: var(--f-chrome); font-size: 13px; color: var(--ink); background: var(--white); border: 1px solid var(--ink); padding: 6px 12px; box-shadow: 2px 2px rgba(0,0,0,.14); }
.sys-node--acc { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.sys-arr { color: var(--muted); font-size: 13px; }
.sys-return { width: 100%; text-align: center; font-size: 11.5px; color: var(--accent); margin-top: 4px; }

@media (max-width: 720px) {
  .ex { grid-template-columns: 1fr; gap: 18px; }
  .ex-viz { order: 2; }
}

/* ============================================================
   How it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--ink); box-shadow: 3px 3px rgba(0,0,0,.16); display: flex; flex-direction: column; }
.step .step-bar {
  height: 26px; display: flex; align-items: center; padding: 0 10px; gap: 7px;
  border-bottom: 1px solid var(--ink); font-family: var(--f-chrome); font-size: 13px; color: var(--ink-soft);
  background: linear-gradient(to bottom, var(--window-top), var(--window-bg) 70%, var(--window-bot));
}
.step .lights { display: flex; gap: 5px; }
.step .lights i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); display: block; }
.step .lights i:nth-child(1){ background:#f0c674;} .step .lights i:nth-child(2){ background:#cd6f4b; } .step .lights i:nth-child(3){ background:#8fae6a; }
.step-body { padding: 22px 22px 26px; }
.step .snum { font-family: var(--f-chrome); font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.step h3 { font-family: var(--f-body); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 10px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.step .tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Report.app centerpiece
   ============================================================ */
.report-stage { position: relative; }
.report { max-width: 1000px; margin: 0 auto; }
.report .motif-window { box-shadow: inset 1px 1px rgba(255,255,255,.6), 5px 6px 0 rgba(0,0,0,.16); }
.report .motif-window__body { padding: 0; }
.report-tabsbar { display: flex; align-items: flex-end; padding: 12px 16px 0; background: var(--window-bg); border-bottom: 1px solid var(--ink); }
.report-canvas { padding: clamp(20px, 3vw, 30px); background: var(--paper); }
.report-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.cand-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.cand-head .avatar { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #9BE8DC, #2BB6A3 58%, #178374); box-shadow: inset 2px 3px 5px rgba(255,255,255,.5), inset -3px -4px 8px rgba(0,0,0,.2); flex: none; }
.cand-head .who { line-height: 1.2; }
.cand-head .who b { font-family: var(--f-body); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.cand-head .who span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-line { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 0; }
.summary-line b { color: var(--ink); }
.rec-banner {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  background: var(--positive-soft); border: 1px solid var(--positive); padding: 12px 14px;
}
.rec-banner .rdot { width: 12px; height: 12px; border-radius: 50%; background: var(--positive); flex: none; box-shadow: 0 0 0 3px rgba(26,79,42,.15); }
.rec-banner b { font-family: var(--f-body); font-weight: 700; color: var(--positive); font-size: 15px; }
.rec-banner span { font-size: 13px; color: var(--ink-soft); }

/* heatmap */
.heat-card { background: var(--white); border: 1px solid var(--rule); padding: 16px; }
.heat-card .ht { font-family: var(--f-chrome); font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.heat-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; margin-bottom: 9px; }
.heat-row .hl { font-size: 12.5px; color: var(--ink-soft); }
.heat-cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.heat-cells i { height: 16px; display: block; border: 1px solid rgba(0,0,0,.08); }
.hc0{background:var(--heat-0);} .hc1{background:var(--heat-1);} .hc2{background:var(--heat-2);} .hc3{background:var(--heat-3);} .hc4{background:var(--heat-4);}
.heat-legend { display: flex; align-items: center; gap: 6px; font-family: var(--f-chrome); font-size: 12px; color: var(--muted); margin-top: 14px; }
.heat-legend i { width: 15px; height: 12px; display: inline-block; border: 1px solid rgba(0,0,0,.1); }

/* evidence */
.evidence { margin-top: 22px; }
.evidence .ev-title { font-family: var(--f-chrome); font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.transcript {
  background: #1b1a17; color: #e7e2d6; border: 1px solid var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.7;
  padding: 16px 18px; overflow: hidden;
}
.transcript .u { color: #7fb6ff; }
.transcript .a { color: #f0a07a; }
.transcript .note { color: #8c8675; }
.transcript .hl { background: color-mix(in srgb, var(--accent) 32%, transparent); color: color-mix(in srgb, var(--accent) 55%, white); padding: 0 3px; }
.transcript .ann {
  display: inline-block; margin-left: 8px; font-family: var(--f-chrome); font-size: 12px;
  color: var(--accent); background: var(--accent-soft); padding: 0 6px; border-radius: 2px; vertical-align: middle;
}
@media (max-width: 820px) { .report-top { grid-template-columns: 1fr; } .verdict-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Rubric
   ============================================================ */
.rubric { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rubric .r-item { display: flex; gap: 16px; padding: 22px; background: var(--paper); border: 1px solid var(--rule); }
.rubric .r-num { font-family: var(--f-chrome); font-size: 22px; color: var(--accent); flex: none; line-height: 1; }
.rubric .r-item h4 { font-family: var(--f-body); font-weight: 700; font-size: 17px; margin: 0 0 7px; letter-spacing: -0.01em; }
.rubric .r-item p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.rubric .r-item--anti { background: var(--card-inner); }
@media (max-width: 760px) { .rubric { grid-template-columns: 1fr; } }

/* pull quote */
.pull {
  max-width: 56ch; margin: clamp(40px,6vw,64px) auto 0; text-align: center;
}
.pull q { font-family: var(--f-body); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.pull .cite { display: block; margin-top: 18px; font-family: var(--f-chrome); font-size: 14px; color: var(--muted); }

/* social proof */
.proof-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 8px; }
.proof-logos .pl { background: var(--paper); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 10px; font-family: var(--f-body); font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.proof-logos .pl .o { width: 14px; height: 14px; border-radius: 4px; background: var(--orb,#bbb); box-shadow: inset 1px 1px rgba(255,255,255,.4); }
@media (max-width: 820px) { .proof-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .proof-logos { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Final CTA + footer
   ============================================================ */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final .display { margin-bottom: 22px; }
.cta-final .lead { margin: 0 auto 32px; max-width: 48ch; }
.cta-final .hero-cta { justify-content: center; }

.footer { background: var(--ink); color: var(--paper); padding: 44px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: center; }
.footer .brand { color: var(--paper); }
.footer .brand .mark { box-shadow: inset 1px 1px rgba(255,255,255,.4); }
.footer .fnav { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--f-chrome); font-size: 15px; color: #b9b3a4; }
.footer .fnav a:hover { color: var(--paper); }
.footer .fine { width: 100%; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; margin-top: 4px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #8e8879; }

/* ============================================================
   Sandbox preview — mock virtual workstation
   ============================================================ */
.sandbox-wrap { margin-top: clamp(36px, 5vw, 56px); position: relative; }
.sandbox-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; font-family: var(--f-chrome); font-size: 14px; color: var(--muted); }
.sandbox-cap b { color: var(--accent); }
.sandbox {
  position: relative; border: 1px solid var(--ink); background: var(--desktop);
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px); background-size: 5px 5px;
  box-shadow: inset 1px 1px rgba(255,255,255,.5), 5px 6px 0 rgba(0,0,0,.16);
  overflow: hidden;
}
/* static screenshot of the sandbox (replaces the recorded demo player) */
.sandbox.shot { padding: 0; background: var(--ink); background-image: none; }
.sandbox.shot img { display: block; width: 100%; height: auto; }
/* sandbox top menu strip */
.sandbox-bar {
  height: 28px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  border-bottom: 1px solid var(--ink); font-family: var(--f-chrome); font-size: 13px; color: var(--ink);
  background: repeating-linear-gradient(0deg, var(--titlebar-light) 0 1px, var(--titlebar-dark) 1px 2px);
}
.sandbox-bar .sb-apple { font-weight: 400; }
.sandbox-bar .sb-sp { flex: 1; }
.sandbox-bar .sb-rec { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.sandbox-bar .sb-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: recblink 1.4s steps(1) infinite; }
.sandbox-bar .sb-clock { color: var(--ink-soft); }
@keyframes recblink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sandbox-bar .sb-rec i { animation: none; } }

/* tiled window grid */
.sandbox-desk { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 14px; padding: 16px; }
.mini { background: var(--window-bg); border: 1px solid var(--ink); box-shadow: 2px 2px rgba(0,0,0,.18); display: flex; flex-direction: column; min-width: 0; }
.mini-bar { height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-bottom: 1px solid var(--ink); background: linear-gradient(to bottom, var(--window-top), var(--window-bg) 70%, var(--window-bot)); font-family: var(--f-chrome); font-size: 12.5px; color: var(--ink-soft); }
.mini-bar .ml { display: flex; gap: 5px; flex: none; }
.mini-bar .ml i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); display: block; }
.mini-bar .ml i:nth-child(1){ background:#e6634a;} .mini-bar .ml i:nth-child(2){ background:#f0c674;} .mini-bar .ml i:nth-child(3){ background:#8fae6a;}
.mini-bar .mt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body { padding: 11px 12px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); overflow: hidden; flex: 1; }

.mini.win-claude { grid-row: span 2; }
.mini.win-claude .mini-body { background: #1b1a17; color: #e7e2d6; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; line-height: 1.65; }
.mini.win-claude .u { color: #7fb6ff; } .mini.win-claude .a { color: #f0a07a; } .mini.win-claude .note { color: #8c8675; } .mini.win-claude .ok { color: #9cc78a; }
.mini.win-claude .cursor { display: inline-block; width: 7px; height: 13px; background: #e7e2d6; vertical-align: text-bottom; animation: recblink 1s steps(1) infinite; }

/* clay-style table */
.clay-grid { width: 100%; border-collapse: collapse; font-size: 11px; }
.clay-grid th, .clay-grid td { border: 1px solid var(--rule-soft); padding: 4px 7px; text-align: left; white-space: nowrap; }
.clay-grid th { background: var(--paper-deep); font-family: var(--f-chrome); font-weight: 400; color: var(--ink-soft); font-size: 11px; }
.clay-grid td.run { color: var(--accent); }
.clay-grid td.dirty { color: #b8731c; }
.clay-grid .enr { background: var(--accent-soft); }

/* crm messy */
.crm-list { font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.7; }
.crm-list .bad { color: #b8431c; text-decoration: line-through; opacity: .8; }
.crm-list .flag { color: var(--accent); }
.crm-list .dupe { background: var(--accent-soft); }

/* n8n flow */
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow .node { background: var(--white); border: 1px solid var(--ink); padding: 4px 8px; font-family: var(--f-chrome); font-size: 11px; color: var(--ink); box-shadow: 1px 1px rgba(0,0,0,.15); }
.flow .node.acc { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.flow .arr { color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .sandbox-desk { grid-template-columns: 1fr; }
  .mini.win-claude { grid-row: auto; }
  .clay-grid .opt { display: none; }
}

/* ---- sandbox demo player (screen recording) ---- */
.demo .sandbox-bar .demo-scene-name { font-family: var(--f-chrome); font-size: 13px; color: var(--ink-soft); }
.demo-stage { position: relative; height: 452px; background: var(--white); overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.scene.is-active { opacity: 1; visibility: visible; }

/* shared app frame for scenes */
.app { position: absolute; inset: 20px; background: var(--window-bg); border: 1px solid var(--ink); box-shadow: 3px 3px rgba(0,0,0,.16); display: flex; flex-direction: column; overflow: hidden; }
.app-bar { height: 27px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 11px; border-bottom: 1px solid var(--ink); font-family: var(--f-chrome); font-size: 13px; color: var(--ink-soft); background: linear-gradient(to bottom, var(--window-top), var(--window-bg) 70%, var(--window-bot)); }
.app-bar .ml { display: flex; gap: 5px; flex: none; }
.app-bar .ml i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); display: block; }
.app-bar .ml i:nth-child(1){ background:#e6634a;} .app-bar .ml i:nth-child(2){ background:#f0c674;} .app-bar .ml i:nth-child(3){ background:#8fae6a;}
.app-body { flex: 1; overflow: hidden; padding: 16px 18px; background: var(--white); }

/* scene 1 — case brief */
.scene-brief { display: flex; align-items: center; justify-content: center; background: var(--paper-deep); padding: 24px; }
.brief-card { max-width: 640px; background: var(--white); border: 1px solid var(--ink); box-shadow: 5px 6px 0 rgba(0,0,0,.16); }
.brief-head { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--ink); background: var(--window-bg); font-size: 13px; color: var(--ink-soft); }
.brief-head .badge { font-family: var(--f-chrome); font-size: 12px; background: var(--ink); color: var(--paper); padding: 2px 9px; }
.brief-body { margin: 0; padding: 24px 26px; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.brief-body b { color: var(--accent); }
.brief-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }

/* scene 2 — explore data */
.crm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.crm-table th, .crm-table td { border-bottom: 1px solid var(--rule-soft); padding: 7px 9px; text-align: left; white-space: nowrap; }
.crm-table th { font-family: var(--f-chrome); font-weight: 400; color: var(--muted); font-size: 12px; }
.crm-table td.warn { color: #b8731c; } .crm-table td.null { color: #b8431c; }
.crm-annot { margin-top: 14px; font-family: var(--f-chrome); font-size: 13px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent); padding: 7px 11px; display: inline-block; }

/* scene 3 — terminal */
.app--term .app-body { background: #1b1a17; }
.term-body { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.85; color: #e7e2d6; }
.term-body .u { color: #7fb6ff; } .term-body .a { color: #f0a07a; } .term-body .note { color: #8c8675; } .term-body b { color: #ffd27a; font-weight: 600; }
.term-body .cursor { display: inline-block; width: 7px; height: 14px; background: #e7e2d6; vertical-align: text-bottom; margin-left: 2px; animation: recblink 1s steps(1) infinite; }

/* scene 4 — build */
.build-body { display: flex; flex-direction: column; gap: 16px; }
.flow.big { gap: 9px; }
.flow.big .node { font-size: 12.5px; padding: 6px 11px; }
.clay-grid.build-grid th, .clay-grid.build-grid td { font-size: 12.5px; padding: 6px 10px; }
.build-grid .enr { font-variant-numeric: tabular-nums; }
.build-status { font-family: var(--f-chrome); font-size: 13.5px; color: var(--positive); background: var(--positive-soft); border: 1px solid var(--positive); padding: 8px 12px; }
.build-status .ok { font-weight: 700; margin-right: 4px; }

/* controls */
.demo-controls { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--ink); background: var(--window-bg); }
.demo-play { flex: none; width: 30px; height: 26px; border: 1px solid var(--ink); background: var(--plate-bg); cursor: pointer; font-size: 12px; color: var(--ink); box-shadow: inset 1px 1px rgba(255,255,255,.7), 0 1px rgba(0,0,0,.15); }
.demo-play:active { box-shadow: inset 1px 1px rgba(0,0,0,.2); }
.demo-track { flex: 1; height: 8px; background: var(--paper-deep); border: 1px solid var(--rule-deep); cursor: pointer; position: relative; }
.demo-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.demo-chips { display: flex; gap: 5px; flex: none; }
.demo-chips .dc { font-family: var(--f-chrome); font-size: 12px; color: var(--ink-soft); background: var(--plate-bg); border: 1px solid var(--rule-deep); padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.demo-chips .dc.sel { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) {
  .demo-stage { height: 380px; }
  .app { inset: 12px; }
  .demo-chips .dc { padding: 4px 6px; font-size: 11px; }
  .demo-chips .dc { font-size: 0; }
  .demo-chips .dc::first-letter { font-size: 12px; }
}

/* entrance/sub animations — only when motion is welcome; base state stays visible */
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes rowScan { 0% { background: transparent; } 30% { background: var(--accent-soft); } 100% { background: transparent; } }
@keyframes nodeLight { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .scene-brief.is-active .brief-card { animation: popIn .5s both; }
  .scene-crm .cr { opacity: 0; }
  .scene-crm.is-active .cr { animation: lineIn .4s both, rowScan 1.1s both; animation-delay: calc(var(--i) * .42s); }
  .scene-crm .crm-annot { opacity: 0; }
  .scene-crm.is-active .crm-annot { animation: lineIn .5s both; animation-delay: 2.7s; }
  .scene-claude .tline { opacity: 0; }
  .scene-claude.is-active .tline { animation: lineIn .45s both; animation-delay: calc(var(--i) * .9s + .2s); }
  .scene-build .flow.big .node { opacity: .35; }
  .scene-build.is-active .flow.big .node { animation: nodeLight .45s both; animation-delay: calc(var(--i) * .5s); }
  .scene-build .build-grid tbody tr { opacity: 0; }
  .scene-build.is-active .build-grid tbody tr { animation: lineIn .4s both; animation-delay: calc(var(--i) * .35s + 2.6s); }
  .scene-build .build-status { opacity: 0; }
  .scene-build.is-active .build-status { animation: popIn .5s both; animation-delay: 4.2s; }
}

/* ============================================================
   Cohort analysis (centerpiece)
   ============================================================ */
.cohort { max-width: 1060px; margin: 0 auto; }
.cohort .motif-window { box-shadow: inset 1px 1px rgba(255,255,255,.6), 5px 6px 0 rgba(0,0,0,.16); }
.cohort .motif-window__body { padding: 0; }
.cohort-tabsbar { display: flex; align-items: flex-end; padding: 12px 16px 0; background: var(--window-bg); border-bottom: 1px solid var(--ink); }
.cohort-canvas { padding: clamp(18px, 3vw, 28px); background: var(--paper); }
.cohort-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--f-chrome); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.cohort-meta b { color: var(--ink); }
.cohort-meta .livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); display: inline-block; }
.cohort-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: stretch; }

/* scatter plot */
.plot { position: relative; background: var(--white); border: 1px solid var(--rule); height: 408px; }
.plot-area { position: absolute; inset: 16px 16px 32px 34px; }
/* axis tick numbers */
.ax-ticks-x { position: absolute; left: 34px; right: 16px; bottom: 20px; display: flex; justify-content: space-between; font-family: var(--f-chrome); font-size: 10px; color: var(--muted); pointer-events: none; }
.ax-ticks-x span:nth-child(2) { transform: translateX(-50%); }
.ax-ticks-y { position: absolute; left: 16px; top: 16px; bottom: 32px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; font-family: var(--f-chrome); font-size: 10px; color: var(--muted); pointer-events: none; }
.plot .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--rule-soft); }
.dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%,-50%); background: var(--muted); cursor: pointer; z-index: 2; }
.dot:hover { transform: translate(-50%,-50%) scale(1.55); z-index: 8; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink); }
.dot-sel { width: 16px; height: 16px; z-index: 6; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.dot-sel > b { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: max-content; white-space: nowrap; font-family: var(--f-chrome); font-weight: 400; font-size: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--ink); padding: 2px 8px; box-shadow: 2px 2px rgba(0,0,0,.14); }
.dot-tip { position: absolute; transform: translate(-50%,-150%); white-space: nowrap; font-family: var(--f-chrome); font-size: 11.5px; color: var(--white); background: var(--ink); padding: 3px 8px; pointer-events: none; z-index: 20; }
.plot-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.plot-legend .lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-ramp { display: inline-block; width: 46px; height: 8px; border: 1px solid var(--rule); background: linear-gradient(90deg, var(--paper-deep), var(--accent)); }
.lg-sel { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink); }
.ax { position: absolute; font-family: var(--f-chrome); font-size: 12px; color: var(--muted); }
.ax-x { bottom: 9px; left: 52%; transform: translateX(-50%); }
.ax-y { left: 7px; top: 50%; transform: rotate(-90deg); transform-origin: left center; white-space: nowrap; }
.quad { position: absolute; left: 40px; top: 20px; font-family: var(--f-chrome); font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 1px dashed var(--accent); padding: 3px 8px; z-index: 2; }

/* signals (outlier insights) */
.signals { display: flex; flex-direction: column; gap: 10px; }
.signals .sig-title { font-family: var(--f-chrome); font-size: 13px; color: var(--ink-soft); margin-bottom: 1px; }
.sig { display: flex; gap: 11px; background: var(--white); border: 1px solid var(--rule); padding: 12px 13px; }
.sig .sig-mark { font-family: var(--f-chrome); font-size: 13px; color: var(--accent); flex: none; line-height: 1.5; }
.sig .sig-body { min-width: 0; }
.sig .sig-k { font-family: var(--f-chrome); font-size: 11.5px; color: var(--accent); letter-spacing: .3px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.sig p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.sig p b { color: var(--ink); }

@media (max-width: 880px) { .cohort-top { grid-template-columns: 1fr; } .plot { height: 320px; } }

/* ---- live cohort controls ---- */
.cohort-controls { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: flex-end; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }
.ctl { display: flex; flex-direction: column; gap: 7px; }
.ctl-lbl { font-size: 11px; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.seg-x, .chip-filter { display: flex; flex-wrap: wrap; }
.chip-filter { gap: 4px; }
.seg-x { border: 1px solid var(--ink); }
.seg-x button { font-family: var(--f-chrome); font-size: 12.5px; color: var(--ink-soft); background: var(--white); border: none; border-right: 1px solid var(--ink); padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.seg-x button:last-child { border-right: none; }
.seg-x button.sel { background: var(--accent); color: #fff; }
.chip-filter button { font-family: var(--f-chrome); font-size: 12.5px; color: var(--ink-soft); background: var(--white); border: 1px solid var(--rule-deep); padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.chip-filter button.sel { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.score-filter { display: flex; align-items: center; gap: 9px; }
.score-filter input[type=range] { width: 128px; accent-color: var(--accent); cursor: pointer; }
.score-val { font-size: 12.5px; color: var(--accent); min-width: 34px; }

/* wide interactive plot */
.plot--wide { height: 364px; }
.plot-count { position: absolute; right: 12px; top: 9px; font-size: 11.5px; color: var(--muted); z-index: 4; }
.dot { transition: left .55s cubic-bezier(.4,0,.2,1), opacity .25s, transform .15s; }
.dot.dim { opacity: .12 !important; }
.dot.dim > b { opacity: 0; }
@media (max-width: 880px) { .plot--wide { height: 300px; } .cohort-controls { gap: 14px 18px; } .score-filter input[type=range] { width: 96px; } }

.brand-caret { display: inline-block; width: 0.5em; height: 1.05em; margin-left: -0.32em; background: var(--accent); vertical-align: -0.16em; }
.rotword { display: inline-block; color: var(--accent); transition: opacity .28s ease, transform .28s ease, color .28s ease; }
.rotword.rot-out { opacity: 0; transform: translateY(-0.18em); }
/* tier escalation: deeper as the role gets more senior */
.rotword[data-level="0"] { color: color-mix(in oklab, var(--accent) 52%, var(--paper)); }
.rotword[data-level="1"] { color: var(--accent); }
.rotword[data-level="2"] { color: color-mix(in oklab, var(--accent) 70%, #000); }

/* ---- scatter + profile split ---- */
.cohort-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.cohort-split .mprofile { margin-top: 0; }
.cohort-split .plot--wide { height: auto; min-height: 388px; }
.mprofile { margin: 0; background: var(--white); border: 1px solid var(--rule); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mp-head { display: flex; align-items: flex-start; gap: 12px; }
.mp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.mp-ava { width: 46px; height: 46px; display: block; flex: none; }
.mp-id { flex: 1; min-width: 0; }
.mp-id b { font-family: var(--f-body); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.mp-id span { font-size: 12.5px; color: var(--muted); }
.mp-score { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.mp-score-num { font-family: var(--f-body); font-weight: 800; font-size: clamp(34px, 4vw, 46px); line-height: 0.82; letter-spacing: -0.03em; color: var(--accent); }
.mp-score-lbl { font-family: var(--f-chrome); font-size: 12px; color: var(--ink); line-height: 1.15; text-align: right; }
.mp-score-lbl small { display: block; font-family: var(--f-body); font-size: 11px; color: var(--muted); margin-top: 2px; }
.mprofile .telemetry { margin-top: auto; }
@media (max-width: 900px) { .cohort-split { grid-template-columns: 1fr; } .cohort-split .plot--wide { min-height: 320px; } }

/* ---- profile: overall badge ---- */
.mp-overall { display: block; }
.mp-overall .motif-badge { font-size: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; }
.mp-overall svg { width: 11px; height: 11px; fill: currentColor; flex: none; }

/* ---- profile: ranked proficiencies (technical / strategic) ---- */
.prof-block { margin: 2px 0 6px; }
.prof-cap { font-size: 11px; color: var(--muted); margin-bottom: 10px; letter-spacing: .2px; }
.prof-cap span { color: var(--rule-deep); }
.prof-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.prof-h { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.prof-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule-soft); }
.prof-row:last-child { border-bottom: none; }
.pr-k { font-size: 12.5px; color: var(--ink-soft); line-height: 1.2; }
.pr-rank { font-family: var(--f-chrome); font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; flex: none; }
.pr-rank i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); }
.pr-rank.pr-top { color: var(--positive); }
.pr-bar { grid-column: 1 / -1; height: 4px; margin-top: 6px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, color-mix(in oklab, var(--positive) 45%, var(--accent)), var(--positive)); }
@media (max-width: 480px) { .prof-cols { grid-template-columns: 1fr; gap: 2px 0; } }

/* ---- profile: tools vs JD ---- */
.jd-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; margin: 12px 0 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.jd-h { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 5px; }
.jd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; }
.jd-k { font-family: var(--f-chrome); font-size: 13px; color: var(--ink); }
.jd-v { font-family: var(--f-chrome); font-size: 11.5px; padding: 2px 9px; border: 1px solid var(--rule); }
.jd-exc { color: var(--positive); background: var(--positive-soft); border-color: var(--positive); }
.jd-pro { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.jd-none { color: var(--muted); background: var(--paper-deep); border-style: dashed; }

/* ---- profile: CTAs ---- */
.mp-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mp-cta .motif-btn { font-size: 13px; padding: 7px 14px 8px; }

/* ---- tools-used: more button + pipeline meta bar ---- */
.chip-more { font-family: var(--f-chrome); font-size: 12.5px; color: var(--accent); background: transparent; border: 1px dashed var(--rule-deep); padding: 5px 11px; cursor: pointer; }
.chip-more:hover { border-color: var(--accent); }
.pipe-bar { display: inline-flex; width: 132px; height: 7px; border: 1px solid var(--rule); margin-left: 6px; vertical-align: middle; }
.pipe-done { background: var(--positive); }
.pipe-prog { background: repeating-linear-gradient(45deg, var(--accent) 0 3px, var(--accent-soft) 3px 6px); }

/* ---- candidate scorecard (eval criteria) ---- */
.scorecard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 2px 0 0; }
.sc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border: 1px solid var(--rule); padding: 9px 12px; }
.sc-k { font-size: 12.5px; line-height: 1.25; color: var(--ink-soft); }
.sc-item .motif-verdict { flex: none; padding: 2px 9px; }
.sc-item .motif-verdict__value { font-size: 13px; }
.sc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.sc-tools-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-right: 2px; }
.prof { font-family: var(--f-chrome); font-size: 12px; color: var(--ink); background: var(--paper-deep); border: 1px solid var(--rule); padding: 3px 9px; }
.prof i { font-style: normal; color: var(--accent); margin-left: 5px; }
@media (max-width: 760px) { .scorecard { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .scorecard { grid-template-columns: 1fr; } }

/* drill-down: behind one dot */
.drill { margin-top: 30px; }
.drill-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 16px; }
.drill-head h3 { font-family: var(--f-body); font-weight: 700; font-size: 21px; letter-spacing: -0.015em; margin: 0; }
.drill-head .hint { font-family: var(--f-chrome); font-size: 13px; color: var(--muted); }
.drill-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.telemetry { background: var(--white); border: 1px solid var(--rule); }
.telemetry .tt { font-family: var(--f-chrome); font-size: 13px; color: var(--ink-soft); padding: 12px 15px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.telemetry .tt .motif-badge { font-size: 11px; }
.tfacts { padding: 4px 15px 8px; }
.tfact { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 13px; }
.tfact:last-child { border-bottom: none; }
.tfact .k { color: var(--muted); }
.tfact .v { color: var(--ink); font-weight: 600; text-align: right; }
.tfact .v small { color: var(--muted); font-weight: 400; font-family: var(--f-chrome); margin-left: 5px; }
.tfact .v .pos { color: var(--positive); }
.tfact .tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
@media (max-width: 820px) { .drill-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Tweaks panel
   ============================================================ */
#tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 200; width: 286px; display: none; }
#tweaks.on { display: block; }
#tweaks .motif-window__body { padding: 16px; }
.tweak-grp { margin-bottom: 16px; }
.tweak-grp:last-child { margin-bottom: 0; }
.tweak-grp > label { display: block; font-family: var(--f-chrome); font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.seg { display: flex; border: 1px solid var(--ink); }
.seg button {
  flex: 1; font-family: var(--f-chrome); font-size: 13px; padding: 6px 4px; cursor: pointer;
  background: var(--window-bg); color: var(--ink-soft); border: none; border-right: 1px solid var(--ink);
}
.seg button:last-child { border-right: none; }
.seg button.sel { background: var(--accent-soft); color: var(--accent); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 34px; height: 28px; border: 1px solid var(--ink); cursor: pointer; padding: 0; box-shadow: inset 1px 1px rgba(255,255,255,.4); }
.swatches button.sel { outline: 2px solid var(--ink); outline-offset: 2px; }
.tweak-foot { font-family: var(--f-chrome); font-size: 12px; color: var(--muted); margin-top: 4px; }
