/* Nafez: one column, phone first. Colours, type, shape and spacing come from
   docs/brand.md (issue #67); every colour below is a token from :root. Light
   mode only for the pilot. */

:root {
  /* Colour, as in docs/brand.md (a test checks they match) */
  --cream: #FFF8F1;
  --white: #FFFFFF;
  --ink: #3B2A3F;
  --ink-muted: #6E5F72;
  --peach: #FFB79C;
  --peach-soft: #FFE6DA;
  --coral: #C2553A;
  --apply-bg: #D7F2E1;
  --apply-fg: #1E6B45;
  --maybe-bg: #FFF1C2;
  --maybe-fg: #7A5800;
  --skip-bg: #EEEAF0;
  --skip-fg: #5E5463;
  /* Made from the colours above, written out so older phones get them too */
  --coral-text: #B4492F; /* coral for links and small text on cream (5.1:1) */
  --line: #E7E5E8; /* dividers: ink 12% on white */
  --line-strong: #928795; /* input and button edges: ink-muted 75% on white, 3.3:1 on cream */
  --pressed: #FFEEE5; /* a pressed button: peach-soft 70% on white */
  --error: var(--coral-text);

  /* Shape */
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-input: 12px;
  --shadow: 0 2px 8px rgba(59, 42, 63, 0.08);
  --shadow-lifted: 0 8px 24px rgba(59, 42, 63, 0.18); /* things that float above the page */
  --mascot-shadow: rgba(59, 42, 63, 0.22); /* the soft floor shadow under Nafez */

  /* Spacing: an 8px scale (half a step where text needs it) */
  --space-half: 4px;
  --space-1: 8px;
  --space-1-5: 12px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --tap: 44px; /* the smallest thing a thumb has to hit */
  --page: 640px;

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  font-size: 1rem; /* 16px, never smaller on phones */
  line-height: 1.5;
}

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-4) var(--space-2) var(--space-6);
}

h1, h2 { line-height: 1.2; margin: 0 0 var(--space-2); font-weight: 700; }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin-top: var(--space-4); }
p { margin: 0 0 var(--space-2); }

a { color: var(--coral-text); text-underline-offset: 0.2em; }

.brand { font-weight: 700; letter-spacing: -0.01em; }

.lead { font-size: 1.1875rem; max-width: 30rem; }
.quiet { color: var(--ink-muted); }

/* ---- The landing page (issue #71) ---- */
.wordmark { margin-bottom: var(--space-3); color: var(--coral-text); }
.wordmark .brand { font-size: 1.5rem; }

/* The hero: Nafez on peach-soft, then the headline and the button */
.hero {
  margin: 0 calc(-1 * var(--space-1));
  padding: var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background: var(--peach-soft);
}
.hero h1 { font-size: clamp(2.25rem, 10vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--space-1-5); }
.hero .lead { margin-bottom: var(--space-3); }

/* Nafez, with the soft floor shadow the cut-out lost (docs/brand.md: always
   rendered with its shadow), bobbing slowly; the shadow shrinks as it rises. */
.mascot { position: relative; width: 168px; margin-bottom: var(--space-2); }
.mascot img { position: relative; z-index: 1; display: block; width: 100%; height: auto; animation: bob 3s ease-in-out infinite alternate; }
.mascot::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 3%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--mascot-shadow), transparent);
  animation: bob-shadow 3s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translateY(-6px); } }
@keyframes bob-shadow { to { transform: scaleX(0.82); opacity: 0.6; } }

.in-app { margin: 0 0 var(--space-3); padding: var(--space-1-5) var(--space-2); border-radius: var(--radius-input); background: var(--maybe-bg); color: var(--ink); }
.in-app strong { display: block; color: var(--maybe-fg); }

/* How it works: a real sequence, so numbered */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: var(--tap); margin-bottom: var(--space-2); padding-left: calc(var(--tap) + var(--space-1-5)); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: calc(-1 * var(--space-half));
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--coral-text);
  font-weight: 700;
}
.steps .verdict { margin: 0; padding: 0 var(--space-1); }

/* The privacy promise */
.promise { margin-top: var(--space-4); padding: var(--space-3) var(--space-2) var(--space-1); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow); }
.promise h2 { margin-top: 0; }
.promise-lead { font-size: 1.1875rem; font-weight: 500; }
.privacy { margin: 0 0 var(--space-2); padding-left: var(--space-3); }
.privacy li { margin-bottom: var(--space-1); }

/* The FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--tap); padding: var(--space-1) 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* Open or closed, shown by + and − */
.faq summary::after { content: "+"; flex: none; color: var(--coral-text); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-muted); }

.sign-in-note { margin: var(--space-1-5) 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.sign-in-note a { color: var(--ink); font-weight: 500; } /* coral on peach-soft is just under AA */

/* ---- The header, footer and Privacy page (issue #75) ---- */
/* One footer under every screen: the contact email and the Privacy page */
.site-foot { max-width: var(--page); margin: 0 auto; padding: var(--space-2) var(--space-2) var(--space-5); border-top: 1px solid var(--line); color: var(--ink-muted); }
.site-foot p { margin-bottom: var(--space-1); }
.site-foot a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; overflow-wrap: anywhere; }

/* The header: the same "nafez" wordmark as the landing page; the page you're on in ink, underlined in coral */
.bar-brand { color: var(--coral-text); font-size: 1.25rem; }
.bar-home { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.pages a[aria-current="page"] { color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 var(--coral); }

/* The Privacy page: a short document, easy to scan */
.doc h1 { font-size: clamp(2.25rem, 10vw, 3rem); letter-spacing: -0.02em; }
.doc h2 { margin-top: var(--space-4); }
.doc ul { margin: 0 0 var(--space-2); padding-left: var(--space-3); }
.doc li { margin-bottom: var(--space-1-5); }
.doc #privacy-email { overflow-wrap: anywhere; }
.doc .updated { margin-top: var(--space-4); }
.doc .primary { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Buttons and links */
button { font: inherit; cursor: pointer; }

.primary {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-1-5) var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--white);
  font-weight: 500;
}
.primary:hover { background: var(--coral-text); }
.primary:disabled { opacity: 0.6; cursor: progress; }

.link {
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, input[type="file"]:focus-visible::file-selector-button { outline: 3px solid var(--coral); outline-offset: 2px; }

/* The bar at the top, signed in */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-2);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--line);
}
.who { color: var(--ink-muted); }
#seeker-name { color: var(--ink); }
.pages { display: flex; gap: var(--space-3); width: 100%; }
.pages a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }

/* The Profile form */
form { margin-top: var(--space-3); }
fieldset { margin: 0 0 var(--space-4); padding: 0; border: 0; }
legend, .field > label { display: block; margin-bottom: var(--space-1); font-weight: 700; }
.field { margin-bottom: var(--space-4); }
.choice { display: flex; gap: var(--space-1-5); align-items: center; min-height: var(--tap); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--coral); flex: none; }
input[type="text"], textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-1) var(--space-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
input[type="text"]:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }
.example { margin: var(--space-1) 0 0; color: var(--ink-muted); }
.error { margin: var(--space-1) 0 0; padding-left: var(--space-1); border-left: 3px solid var(--error); color: var(--error); font-weight: 700; }
.saved { margin-top: var(--space-1-5); color: var(--apply-fg); font-weight: 700; }

/* ---- Onboarding's steps (issue #72) ---- */
.onboard-progress { margin-bottom: var(--space-2); }
.step-count { margin-bottom: var(--space-1); color: var(--ink-muted); font-weight: 500; }
.progress-bar { display: flex; gap: var(--space-1); }
.progress-bar span { flex: 1; height: var(--space-1); border-radius: var(--radius-pill); background: var(--line); }
.onboard-progress.step-1 span:nth-child(-n + 1),
.onboard-progress.step-2 span:nth-child(-n + 2),
.onboard-progress.step-3 span { background: var(--coral); }

/* Step 1 is the CV box, with Nafez and the magnifying glass; on step 2 it
   shrinks to Nafez beside the reading status. */
.resume { margin: var(--space-3) 0 var(--space-1); padding: var(--space-3) var(--space-2); border-radius: var(--radius-card); background: var(--peach-soft); }
.resume .mascot { width: 144px; }
.resume.compact { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2); }
.resume.compact .mascot { flex: none; width: 96px; margin-bottom: 0; }
.resume.compact .resume-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.resume.compact .resume-about, .resume.compact input[type="file"]:disabled { display: none; }
/* What Nafez has to say comes first; choosing another CV after it */
.resume.compact .status { order: -1; margin: 0 0 var(--space-1-5); font-weight: 500; }
.resume.compact .reading-stage { order: -3; margin: 0; } /* the stage and bar first, full width, then the note */
.resume.compact .reading { order: -2; align-self: stretch; margin: var(--space-1) 0 var(--space-1-5); }
.start-typing { margin-bottom: var(--space-2); }

/* Step 3: Nafez jumps for joy once, with confetti, then bobs */
.onboard-done { position: relative; }
/* The confetti bursts from Nafez's head, in front of him (the "I applied" card's pieces, a bit bigger) */
.onboard-done .confetti { z-index: 2; left: 100px; top: calc(var(--space-4) + var(--space-2)); transform: scale(1.4); }
.onboard-done .confetti span { animation-duration: 2.6s; } /* slower than the card's: this screen stays */
.onboard-done .mascot { width: 200px; margin: var(--space-4) 0 var(--space-3); } /* room for the jump */
.onboard-done .mascot img { animation: cheer 0.8s ease-out both, bob 3s ease-in-out 0.8s infinite alternate; }
@keyframes cheer {
  0% { transform: translateY(0) scale(1.08, 0.9); }
  40% { transform: translateY(-24px) scale(0.95, 1.06); }
  70% { transform: translateY(0) scale(1.05, 0.95); }
  100% { transform: translateY(0) scale(1); }
}
.resume input[type="file"] { width: 100%; font: inherit; color: var(--ink-muted); }
.resume input[type="file"]::file-selector-button {
  min-height: var(--tap);
  margin-right: var(--space-1-5);
  padding: var(--space-1) var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.resume input[type="file"]:disabled::file-selector-button { opacity: 0.6; cursor: progress; }
.status { margin: var(--space-1-5) 0 0; font-weight: 700; }
/* While the CV is read: the stage in words, over a bar like onboarding's steps.
   The fill glides to each new width, so the AI's slow creep reads as steady progress. */
.reading { margin-top: var(--space-1); }
.reading-stage { margin: var(--space-1-5) 0 0; font-weight: 700; }
.reading-stage:empty { margin: 0; }
.reading-bar { height: var(--space-1); border-radius: var(--radius-pill); background: var(--white); overflow: hidden; }
.reading-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width 0.9s ease-out; }
.reading:not([hidden]) + .status { font-weight: 400; color: var(--ink-muted); } /* the note under the bar: keep typing, or the draft (errors stay bold) */
#resume-cancel { margin-top: var(--space-1); }
.resume .link { color: var(--ink); } /* coral on peach-soft is 4.47:1, just under AA */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.message {
  padding: var(--space-1-5) var(--space-2);
  border-left: 4px solid var(--maybe-fg);
  border-radius: var(--radius-input);
  background: var(--maybe-bg);
}

/* ---- The Daily List (issue #73) ---- */
/* Nafez waving beside the greeting, the list's date under it */
.list-head { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-1); }
.list-head .mascot { flex: none; width: 88px; margin-bottom: 0; }
.list-head h1 { margin-bottom: var(--space-half); font-size: 1.5rem; line-height: 1.25; }
.list-head .list-date { margin: 0; }

/* ---- Special states (issue #74) ---- */
/* While sign-in is checked: Nafez thinking */
.state-loading { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); padding-top: var(--space-4); }
.state-loading .mascot { width: 120px; margin-bottom: 0; }

/* No list, or nothing on it: Nafez in the middle of the moment, the note under
   him. The waving Nafez in the header steps aside meanwhile. */
.list-nafez { width: 144px; margin: var(--space-4) 0 var(--space-1); }
.list-nafez.pose-think img { animation-duration: 4s; } /* thinking: slower */
.list-nafez:not([hidden]) + .list-note { font-size: 1.125rem; color: var(--ink); max-width: 30rem; }
#daily-list:has(#list-nafez:not([hidden])) .list-head .mascot { display: none; }

/* The 404 page (web/404.html): Nafez shrugging, then the way back */
.not-found .mascot { width: 200px; margin: var(--space-4) 0 var(--space-2); }
.not-found h1 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.not-found .primary { display: flex; align-items: center; justify-content: center; margin-top: var(--space-3); text-decoration: none; }

/* The delayed banner: sleepy Nafez beside the copy, above yesterday's list */
/* The maintenance message (docs/runbooks/rollback.md): full width above every screen */
.maintenance { margin: 0; padding: var(--space-1-5) var(--space-2); background: var(--maybe-bg); color: var(--ink); font-weight: 500; text-align: center; }
.delayed { display: flex; gap: var(--space-1-5); align-items: center; margin: var(--space-2) 0; padding: var(--space-1-5) var(--space-2); border-radius: var(--radius-card); background: var(--maybe-bg); }
.delayed .mascot { flex: none; width: 72px; margin-bottom: 0; }
.delayed .mascot img { animation-duration: 5s; } /* sleepy: slowest */
.delayed p { margin: 0; color: var(--ink); font-weight: 500; }

.cards { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.card {
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.card h2 { margin: 0 0 var(--space-half); font-size: 1.25rem; }
.card p { margin: 0 0 var(--space-1-5); }
.card p.verdict { margin-bottom: var(--space-1); }
/* The Verdict badge: always the word, never only the colour */
.verdict {
  display: inline-block;
  margin-bottom: var(--space-1);
  padding: var(--space-half) var(--space-1-5);
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.verdict.apply { background: var(--apply-bg); color: var(--apply-fg); }
.verdict.maybe { background: var(--maybe-bg); color: var(--maybe-fg); }
.verdict.skip { background: var(--skip-bg); color: var(--skip-fg); }
.card .where, .card .details { color: var(--ink-muted); }
.card .reason { font-size: 1.0625rem; }
.card .stretch strong { color: var(--maybe-fg); }
/* The Tip: the one thing to do, set apart */
.card .tip { padding: var(--space-1-5) var(--space-2); border-radius: var(--radius-input); background: var(--peach-soft); }
.card .details { font-size: 0.9375rem; }
.card .open {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-2);
  border: 1.5px solid var(--coral);
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
}
.card .open:hover { background: var(--pressed); }

/* Card actions: big enough to tap on a phone */
.actions { margin-top: var(--space-2); padding-top: var(--space-1-5); border-top: 1px solid var(--line); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.actions button:not(.link) {
  min-height: var(--tap);
  padding: var(--space-half) var(--space-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
}
.actions button.thumb { width: var(--tap); padding: 0; font-size: 1.25rem; line-height: 1; }
.actions button[aria-pressed="true"] { border: 2px solid var(--coral); background: var(--pressed); font-weight: 500; }
.actions .applied { font-weight: 500; }
.actions .applied[aria-pressed="true"] { border-color: var(--apply-fg); background: var(--apply-bg); color: var(--apply-fg); }
.actions .give-feedback { margin-left: auto; }
.quick-reasons { margin-top: var(--space-1-5); }
.quick-reasons p { margin: 0 0 var(--space-1); }
.quick-reasons button { margin: 0 var(--space-1) var(--space-1) 0; }
/* Give feedback's box, and I'm interested's on a Skip card (issue #94) */
.comment, .interested-box { margin-top: var(--space-1-5); }
.comment label, .interested-box label { display: block; margin-bottom: var(--space-1); font-weight: 700; }
.comment textarea, .interested-box textarea { display: block; margin-top: var(--space-1); font-weight: 400; } /* not the label's bold */
.comment .send-comment, .interested-box .send-interested { border-color: var(--coral); color: var(--coral-text); font-weight: 500; }
.action-status { margin: var(--space-1-5) 0 0; font-weight: 700; }
.actions .undo { margin-top: var(--space-half); }

/* Skipped (N), folded: open or closed shown by + and − */
.skipped { margin-top: var(--space-4); border-top: 1px solid var(--line); }
.skipped summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--tap); padding: var(--space-1) 0; color: var(--skip-fg); font-weight: 700; cursor: pointer; list-style: none; }
.skipped summary::-webkit-details-marker { display: none; }
.skipped summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.skipped[open] summary::after { content: "−"; }
/* Skips are cards like Apply and Maybe (issue #93), a little quieter: no shadow, on cream */
.skipped-intro { margin: 0 0 var(--space-1); }
.skipped .cards { margin-top: var(--space-2); }
.card-skip { box-shadow: none; border: 1px solid var(--line); background: var(--cream); }

/* "I applied": Nafez jumps above a small card, with confetti, for about 2 seconds */
.celebrate {
  position: fixed;
  left: 50%;
  bottom: var(--space-3);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  width: max-content;
  max-width: calc(100% - var(--space-4));
  padding: var(--space-1-5) var(--space-3) var(--space-1-5) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-lifted);
  transform: translateX(-50%);
  animation: pop-in 0.35s ease-out both;
  pointer-events: none; /* nothing to press: taps reach the card underneath */
}
.celebrate p { margin: 0; font-size: 1.125rem; font-weight: 700; }
.celebrate .mascot { flex: none; width: 72px; margin: calc(-1 * var(--space-4)) 0 0; }
.celebrate .mascot img { animation: cheer 0.8s ease-out both; }
.celebrate .mascot::after { display: none; } /* mid-jump: no floor under Nafez */
@keyframes pop-in { from { transform: translateX(-50%) translateY(var(--space-2)) scale(0.9); opacity: 0; } }

/* Confetti: 12 pieces burst from behind Nafez and fall away */
.confetti { position: absolute; left: var(--space-5); top: 0; width: 0; height: 0; pointer-events: none; }
.confetti span {
  position: absolute;
  width: var(--space-1);
  height: var(--space-1-5);
  border-radius: 2px;
  background: var(--coral);
  opacity: 0;
  animation: confetti 1.4s ease-out both;
}
.confetti span:nth-child(3n + 2) { background: var(--peach); }
.confetti span:nth-child(3n + 3) { background: var(--apply-fg); }
.confetti span:nth-child(4n) { background: var(--maybe-bg); border-radius: 50%; width: var(--space-1); height: var(--space-1); }
.confetti span:nth-child(1) { --x: -80px; --y: -70px; --r: 200deg; }
.confetti span:nth-child(2) { --x: -50px; --y: -100px; --r: -160deg; }
.confetti span:nth-child(3) { --x: -18px; --y: -115px; --r: 240deg; }
.confetti span:nth-child(4) { --x: 16px; --y: -110px; --r: -220deg; }
.confetti span:nth-child(5) { --x: 48px; --y: -95px; --r: 180deg; }
.confetti span:nth-child(6) { --x: 80px; --y: -65px; --r: -200deg; }
.confetti span:nth-child(7) { --x: -95px; --y: -30px; --r: 150deg; }
.confetti span:nth-child(8) { --x: 100px; --y: -25px; --r: -140deg; }
.confetti span:nth-child(9) { --x: -64px; --y: -45px; --r: 260deg; animation-delay: 0.1s; }
.confetti span:nth-child(10) { --x: 66px; --y: -42px; --r: -260deg; animation-delay: 0.1s; }
.confetti span:nth-child(11) { --x: -30px; --y: -80px; --r: 300deg; animation-delay: 0.15s; }
.confetti span:nth-child(12) { --x: 32px; --y: -78px; --r: -300deg; animation-delay: 0.15s; }
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  60% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 40px)) rotate(var(--r)); opacity: 0; }
}

/* Nafez, and the CV bar, hold still for anyone who asks for less motion (after every rule that moves them) */
@media (prefers-reduced-motion: reduce) {
  .mascot img, .mascot::after, .onboard-done .mascot img, .celebrate .mascot img, .celebrate { animation: none; }
  .confetti { display: none; }
  .reading-fill { transition: none; } /* the CV bar still moves, in steps */
}

[hidden] { display: none !important; }
.resume > :last-child { margin-bottom: 0; }
