:root {
  color-scheme: light;
  --canvas: #f5f7fa;
  --paper: #ffffff;
  --ink: #182f46;
  --muted: #506276;
  --blue: #205cba;
  --blue-hover: #17468e;
  --line: #cdd6e0;
  --tint: #eaf0f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--canvas); }
::selection { color: var(--paper); background: var(--blue); }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-hover); }
a:active { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
main:focus { outline: none; }
p { line-height: 1.75; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.16; margin: 0 0 22px; }
h3 { font-size: 1.1rem; line-height: 1.4; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 14px; background: var(--paper); z-index: 2; }
.skip-link:focus { top: 12px; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 100px; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.3rem; font-weight: 650; letter-spacing: -.025em; color: var(--ink); }
nav { display: flex; gap: 32px; align-items: center; }
nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; padding: 76px 0 88px; align-items: center; }
h1 { font-size: clamp(2.8rem, 4.5vw, 4.2rem); line-height: 1.07; font-weight: 600; max-width: 15ch; margin: 0 0 28px; }
h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 48ch; margin: 0; }
.actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin: 30px 0 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 24px; color: var(--paper); background: var(--blue); border-radius: 6px; text-decoration: none; font-size: .95rem; font-weight: 600; }
.button:hover, .button:active { background: var(--blue-hover); color: var(--paper); }
.text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-size: .9rem; }
.small { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.worksheet { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.worksheet-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 17px 24px; background: var(--tint); color: var(--ink); font-size: .75rem; }
.role-heading { padding: 24px 24px 22px; border-bottom: 1px solid var(--line); }
.role-heading p { font-size: .75rem; color: var(--muted); margin: 0 0 9px; }
.role-heading h2 { font-size: 1.5rem; margin: 0 0 10px; }
.role-heading > span { color: var(--muted); font-size: .8rem; }
.assessment { margin: 0; padding: 0 24px; }
.assessment > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.assessment > div:last-child { border: 0; }
.assessment dt { color: var(--blue); font-size: .75rem; font-weight: 650; margin-bottom: 8px; }
.assessment dd { margin: 0; font-size: .85rem; }
.assessment strong { font-weight: 600; }
.assessment p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.worksheet-footer { padding: 17px 24px; background: var(--tint); font-size: .78rem; margin: 0; line-height: 1.6; }
.section { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; border-top: 1px solid var(--line); padding: 72px 0; }
.section-intro h2 { max-width: 20ch; }
.section-intro p { color: var(--muted); font-size: 1rem; margin: 16px 0 0; max-width: 55ch; }
.steps { margin: 0; padding-left: 24px; }
.steps li { padding: 0 0 30px 16px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0 0 10px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.packet { padding: 28px 32px; background: var(--tint); align-self: start; border-radius: 12px; }
.packet h3 { margin: 0 0 20px; }
.packet ul { list-style: none; padding: 0; margin: 0; }
.packet li { padding: 16px 0; border-top: 1px solid #c1cde0; }
.packet li strong, .packet li span { display: block; font-size: .9rem; }
.packet li span { font-size: .85rem; margin-top: 7px; color: var(--muted); line-height: 1.6; }
.packet > p { font-size: .8rem; margin: 16px 0 0; }
.beta { border-top: 2px solid var(--ink); padding-top: 24px; align-self: start; }
.beta h3 { margin: 0 0 18px; }
.beta p { font-size: .95rem; color: var(--muted); margin: 14px 0; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { cursor: pointer; font-size: .95rem; font-weight: 600; line-height: 1.6; padding: 20px 4px; }
.questions summary:hover { color: var(--blue); }
.questions details p { color: var(--muted); font-size: .9rem; margin: 0; padding: 0 4px 24px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 54px 0 68px; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(1.7rem, 2.5vw, 2.3rem); max-width: 23ch; }
.closing p { font-size: .95rem; color: var(--muted); margin: 0; }
.closing .button { flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: 24px 36px; }
.footer .brand { font-size: 1rem; }
.footer nav { gap: 24px; flex-wrap: wrap; }
.footer nav a { font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .worksheet { animation: reveal .65s cubic-bezier(.16,1,.3,1); }
  @keyframes reveal { from { transform: translateY(10px); clip-path: inset(0 0 5% 0 round 12px); } to { transform: none; clip-path: inset(0 round 12px); } }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 40px; }
  .section { gap: 48px; }
  h1 { font-size: 3rem; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .masthead { min-height: 88px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  nav { gap: 16px; }
  nav a { font-size: .8rem; }
  .hero { grid-template-columns: 1fr; padding: 44px 0 48px; gap: 36px; }
  h1 { font-size: clamp(2.55rem, 7.5vw, 3.8rem); max-width: 17ch; }
  .lead { font-size: 1rem; }
  .section { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .section-intro h2 { max-width: 23ch; }
  .section-intro p { font-size: .95rem; }
  .packet { padding: 24px; }
  .closing { flex-direction: column; align-items: flex-start; gap: 26px; padding: 40px 0 48px; }
  .closing h2 { margin-bottom: 16px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer nav { gap: 8px 20px; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 32px); }
  .masthead { gap: 12px; flex-wrap: wrap; padding-block: 16px; }
  .masthead nav { gap: 18px; }
  .actions { gap: 12px; }
  .role-heading, .worksheet-header { padding-inline: 18px; }
  .assessment { padding-inline: 18px; }
  .worksheet-footer { padding-inline: 18px; }
}

/* Optional analytics uses the same paper/ink controls as the public site. */
.analytics-panel { position: fixed; z-index: 10; bottom: 18px; left: 24px; right: 24px; max-width: 920px; margin-inline: auto; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(24,47,70,.16); }
.analytics-panel h2 { font-size: 1.2rem; margin: 0 0 10px; }
.analytics-panel p { font-size: .85rem; line-height: 1.6; margin: 0 0 16px; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-actions button, .analytics-settings { font: inherit; font-size: .85rem; min-height: 44px; border: 1px solid var(--blue); border-radius: 6px; padding: 10px 18px; background: var(--paper); color: var(--blue); cursor: pointer; }
.consent-actions button:hover, .analytics-settings:hover { color: var(--blue-hover); background: var(--tint); }
.analytics-settings { position: fixed; bottom: 12px; left: 12px; z-index: 9; box-shadow: 0 4px 18px rgba(24,47,70,.08); }
[hidden] { display: none !important; }
.privacy-copy { max-width: 76ch; padding-block: 48px 72px; }
.privacy-copy h1 { max-width: 20ch; font-size: clamp(2.5rem,5vw,3.7rem); }
.privacy-copy h2 { font-size: 1.6rem; margin-top: 40px; }
.privacy-copy p { color: var(--muted); }
@media (max-width:600px) { .analytics-panel { left: 12px; right: 12px; bottom: 12px; padding: 18px; max-height: 75vh; overflow-y: auto; } .consent-actions button { flex: 1; padding-inline: 12px; } }

/* Homepage: the mark leads into the three evidence judgments, once. */
.home-motion .assessment dt::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 7px;
  background: var(--blue);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .home-motion .worksheet { animation: none; }
  .home-motion .masthead .brand svg path {
    stroke-dasharray: 96;
    animation: rm-mark-trace 650ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .home-motion .assessment dt::after {
    animation: rm-evidence-line 480ms cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: 260ms;
  }
  .home-motion .assessment > div:nth-child(2) dt::after { animation-delay: 480ms; }
  .home-motion .assessment > div:nth-child(3) dt::after { animation-delay: 700ms; }
  .home-motion .worksheet-footer { position: relative; }
  .home-motion .worksheet-footer::before {
    content: "";
    position: absolute;
    inset: 0 24px auto;
    height: 1px;
    background: var(--blue);
    transform-origin: left;
    animation: rm-evidence-line 420ms cubic-bezier(.16, 1, .3, 1) 920ms both;
  }
  .home-motion .button { transition: background-color 140ms ease-out; }
  .home-motion .masthead nav a,
  .home-motion .text-link { transition: color 140ms ease-out; }
  @keyframes rm-mark-trace {
    from { stroke-dashoffset: 96; }
    to { stroke-dashoffset: 0; }
  }
  @keyframes rm-evidence-line {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* One candidate's path: explanation followed by its fictional working record. */
.home-motion #how-it-works { display: block; }
.home-motion .journey-intro { max-width: 760px; margin-bottom: 40px; }
.home-motion .journey-intro h2 { max-width: 24ch; }
.home-motion .journey-intro p { max-width: 66ch; }
.home-motion .journey-disclosure { font-size: .9rem; }
.home-motion .journey { list-style: none; margin: 0; padding: 0; }
.home-motion .journey > li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.home-motion .journey-copy { position: relative; padding-left: 52px; }
.home-motion .journey-number { position: absolute; left: 0; top: 2px; color: var(--blue); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-motion .journey h3 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 16px; }
.home-motion .journey-copy p { font-size: 1rem; color: var(--muted); margin: 12px 0 0; max-width: 52ch; }
.home-motion .journey-sample { background: var(--tint); padding: 24px 28px; }
.home-motion .journey-sample h4 { font-size: 1rem; line-height: 1.5; margin: 0 0 20px; }
.home-motion .journey-sample dl { margin: 0; }
.home-motion .journey-sample dl > div + div { border-top: 1px solid #c1cde0; margin-top: 16px; padding-top: 16px; }
.home-motion .journey-sample dt { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-bottom: 6px; }
.home-motion .journey-sample dd { font-size: 1rem; line-height: 1.6; margin: 0; }
.home-motion .journey-note { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 20px 0 0; }
@media (max-width: 1050px) { .home-motion .journey > li { gap: 40px; } }
@media (max-width: 760px) {
  .home-motion .journey > li { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .home-motion .journey-copy { padding-left: 40px; }
  .home-motion .journey-sample { padding: 24px; }
}
