/* ---------------------------------------------------------------- Sections & cards */

.section { margin-top: 2.25rem; }
.section:first-child { margin-top: 0; }

.section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2rem;
  margin-bottom: 0.7rem;
}
.section__title {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
}
.section__link .icon { width: 0.95em; height: 0.95em; }
.section__actions { display: flex; gap: 0.4rem; margin-left: auto; }
.section__link + .section__actions { margin-left: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__body { padding: 1.25rem; }
.card__body--compact { padding: 0.35rem 1.25rem; }
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card__title { font-size: 1rem; font-weight: 700; }
.card__footer {
  padding: 0.75rem 1.25rem;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.card--accent { border-top: 3px solid var(--accent); }

/* Divided list inside a card */
.list { margin: 0; padding: 0; list-style: none; }
.list > li + li { border-top: 1px solid var(--border); }

/* Key/value details */
.details { display: grid; gap: 0.85rem; margin: 0; }
.details__row { display: grid; gap: 0.15rem; }
.details dt { display: flex; align-items: center; gap: 0.4rem; color: var(--subtle); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.details dt .icon { width: 0.9rem; height: 0.9rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Avatars */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--border);
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}
.avatar--xs { width: 22px; height: 22px; font-size: 0.6rem; }
.avatar--sm { width: 32px; height: 32px; font-size: 0.72rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar--xl { width: 112px; height: 112px; font-size: 2.1rem; }

/* People who no longer work here: greyed out photos, and faded wherever they're still named */
.avatar--former { filter: grayscale(1); opacity: 0.7; }
.person--former { opacity: 0.6; }
.person--former .avatar--former { opacity: 1; }
a.person--former:hover, a.person--former:focus-visible { opacity: 1; }

.avatar--c1 { background: #2b4fb3; }
.avatar--c2 { background: var(--accent); }
.avatar--c3 { background: var(--navy-2); }
.avatar--c4 { background: var(--purple); }
.avatar--c5 { background: #b7c9f7; color: var(--navy); }
.avatar--c6 { background: #3d6f9e; }
.avatar--c7 { background: #b03a78; }
.avatar--c8 { background: #b5653a; }

.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); }
.avatar-stack > * { display: inline-flex; }
.avatar-stack > * + * { margin-left: -6px; }
.avatar-stack--xs .avatar { border-width: 1.5px; }
.avatar-stack--xs > * + * { margin-left: -3px; }

/* Person with avatar, name and title on one row */
.person-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.6rem 0;
  color: inherit;
}
a.person-row:hover { text-decoration: none; }
a.person-row:hover .person-row__name { color: var(--accent-strong); }
.person-row__text { display: grid; min-width: 0; line-height: 1.35; }
.person-row__name { overflow: hidden; color: var(--navy); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.person-row__title { overflow: hidden; color: var(--muted); font-size: 0.85rem; text-overflow: ellipsis; white-space: nowrap; }
.person-row__aside { margin-left: auto; color: var(--subtle); font-size: 0.8rem; white-space: nowrap; }

/* ---------------------------------------------------------------- Chips & badges */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.chip .icon { width: 1em; height: 1em; }
a.chip:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }
.chip--active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.chip__count { min-width: 1.2rem; padding: 0 0.3rem; background: rgb(20 26 61 / 0.06); border-radius: 999px; font-size: 0.7rem; font-variant-numeric: tabular-nums; text-align: center; }

/* Category colours, shared by chips, calendar entries and agenda icons */
.tone--company { --tone: var(--accent-strong); --tone-soft: var(--accent-soft); }
.tone--conference { --tone: #5b33d6; --tone-soft: #efe9fd; }
.tone--holiday { --tone: #4d7a16; --tone-soft: #eef6e1; }
.tone--social { --tone: #9a6200; --tone-soft: #fcf1d9; }
.tone--other { --tone: #555d73; --tone-soft: #eef0f5; }
.tone--time_off { --tone: #c2410c; --tone-soft: #fdeee6; }
.tone--birthday { --tone: #b03a78; --tone-soft: #fbe8f2; }
.tone--anniversary { --tone: #0f766e; --tone-soft: #e0f2f0; }
.tone--hackathon { --tone: #0369a1; --tone-soft: #e0f2fe; }
.tone--career_day { --tone: #252d63; --tone-soft: #e6e8f3; }
.chip[class*="tone--"] { background: var(--tone-soft); border-color: transparent; color: var(--tone); }

.badge {
  display: inline-block;
  padding: 0 0.4rem;
  background: var(--navy);
  border-radius: 3px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  vertical-align: middle;
}
.badge--muted { background: var(--border); color: var(--muted); }
.badge--accent { background: var(--accent); }
.badge--away { background: #c2410c; }
.badge--onboarding { background: #0f766e; }
a.badge:hover { color: #fff; text-decoration: none; filter: brightness(0.92); }

/* ---------------------------------------------------------------- Empty states */

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}
.empty-state > .icon { width: 1.75rem; height: 1.75rem; color: var(--accent-light); }
.empty-state p { max-width: 36ch; margin: 0; }

/* ---------------------------------------------------------------- Quick links */

.quick-links__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.quick-link {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.quick-link:hover { border-color: var(--accent-light); box-shadow: var(--shadow-hover); }

.quick-link__anchor {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
}
.quick-link__anchor:hover { text-decoration: none; }
.quick-link__favicon { width: 20px; height: 20px; flex: none; border-radius: 3px; }
.quick-link__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  background: var(--navy);
  border-radius: 3px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.quick-link__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-link__external { margin-left: auto; color: var(--border-strong); opacity: 0; transition: opacity 0.12s ease; }
.quick-link:hover .quick-link__external { opacity: 1; }

.quick-link__handle,
.quick-link__controls { display: none; }

.quick-links.is-editing .quick-link { border-style: dashed; border-color: var(--border-strong); box-shadow: none; }
.quick-links.is-editing .quick-link__anchor { padding-left: 0.2rem; cursor: default; }
.quick-links.is-editing .quick-link__external { display: none; }
.quick-links.is-editing .quick-link__handle {
  display: flex;
  align-self: stretch;
  align-items: center;
  padding: 0 0.1rem 0 0.4rem;
  color: var(--subtle);
  cursor: grab;
}
.quick-links.is-editing .quick-link__controls { display: flex; align-items: center; padding-right: 0.3rem; }
.quick-link__controls .btn { padding: 0.25rem; color: var(--subtle); }
.quick-link__controls .btn:hover { color: var(--navy); }
.quick-link__controls .btn--danger-ghost:hover { color: var(--danger); }
.quick-link--ghost { opacity: 0.4; }

.quick-links__add { display: none; margin-top: 0.75rem; }
.quick-links.is-editing .quick-links__add { display: block; }
.quick-links__form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) auto;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.quick-links__form .form-errors { grid-column: 1 / -1; }
.quick-links__empty { display: none; }
.quick-links:not(:has(.quick-link)) .quick-links__empty { display: block; }

@media (max-width: 640px) {
  .quick-links__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links__form { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- News cards */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-card:hover { box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-1px); }
.news-card:hover .news-card__title { color: var(--accent-strong); }

.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.news-card__media img,
.news-card__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }

.news-card__body { display: grid; gap: 0.4rem; align-content: start; padding: 1rem 1.15rem 1.25rem; }
.news-card__title { color: var(--navy); font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.news-card__meta { color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; }
.news-card__excerpt { margin: 0; color: var(--muted); font-size: 0.9rem; }

.news-card--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.news-card--feature .news-card__media { aspect-ratio: auto; min-height: 280px; }
.news-card--feature .news-card__body { align-content: center; padding: 2rem; }
.news-card--feature .news-card__title { font-size: 1.5rem; }
.news-card--feature .news-card__excerpt { font-size: 1rem; }
@media (max-width: 760px) {
  .news-card--feature { grid-template-columns: minmax(0, 1fr); }
  .news-card--feature .news-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .news-card--feature .news-card__body { padding: 1.25rem; }
}

/* ---------------------------------------------------------------- Agenda (upcoming dates) */

.agenda { margin: 0; padding: 0; list-style: none; }
.agenda__item { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 0; }
.agenda > .agenda__item + .agenda__item { border-top: 1px solid var(--border); }
.agenda__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--tone-soft);
  border-radius: 50%;
  color: var(--tone);
}
.agenda__icon .icon { width: 1rem; height: 1rem; }
.agenda__content { display: grid; min-width: 0; line-height: 1.35; }
.agenda__title { overflow: hidden; color: var(--navy); font-weight: 600; text-overflow: ellipsis; }
a.agenda__title:hover { color: var(--accent-strong); }
.agenda__meta { color: var(--muted); font-size: 0.8rem; }
.agenda__title .badge { margin-left: 0.3rem; }
.agenda__actions { display: flex; flex-shrink: 0; align-items: center; gap: 0.15rem; margin-left: auto; }

.date-badge {
  display: inline-grid;
  justify-items: center;
  width: 44px;
  flex: none;
  padding: 0.25rem 0 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.1;
}
.date-badge__month { color: var(--accent-strong); font-size: 0.62rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.date-badge__day { color: var(--navy); font-size: 1.1rem; font-weight: 750; }
.date-badge--today { background: var(--accent); border-color: var(--accent); }
.date-badge--today .date-badge__month,
.date-badge--today .date-badge__day { color: #fff; }

/* ---------------------------------------------------------------- Prose (rendered Markdown) */

.prose { color: var(--text); font-size: 1rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.8em 0 0.6em; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose h4 { font-size: 1rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.25em; }
.prose a { text-decoration: underline; text-decoration-color: rgb(37 99 214 / 0.4); text-underline-offset: 2px; }
.prose img { border-radius: var(--radius); }
.prose blockquote { padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--accent-light); color: var(--muted); }
.prose code { padding: 0.1rem 0.35rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 3px; font-size: 0.85em; }
.prose pre { padding: 1rem; overflow-x: auto; background: var(--navy); border-radius: var(--radius); color: #e7eaf6; line-height: 1.5; }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.prose th, .prose td { padding: 0.5rem 0.65rem; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-muted); }
.prose hr { margin: 2rem 0; }
.prose input[type="checkbox"] { margin-right: 0.4rem; accent-color: var(--accent); }
.prose li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.4rem; }
.prose .footnotes { color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------- Pagination & tabs */

.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- Statuses, steps and seats (in-person events) */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.5rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
}
.status--success { background: #e8f5ec; border-color: #c3e4cd; color: #17713a; }
.status--waiting { background: #fdf3e1; border-color: #f1d7a6; color: #8a5300; }
.status--proposed { background: transparent; border-style: dashed; border-color: var(--border-strong); }

.quote {
  width: fit-content;
  max-width: 100%;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0.65rem;
  background: var(--surface-muted);
  border-left: 3px solid var(--border-strong);
  color: var(--text);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.quote--small { font-size: 0.8rem; }

.steps { display: grid; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.step { position: relative; display: flex; gap: 0.7rem; padding-bottom: 1rem; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  bottom: 0.3rem;
  left: calc(0.625rem - 1px);
  width: 2px;
  background: var(--border);
}
.step > .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--subtle); }
.step__text { display: grid; gap: 0.1rem; min-width: 0; line-height: 1.4; }
.step__text strong { color: var(--navy); font-size: 0.925rem; font-weight: 650; }
.step__text small { color: var(--muted); font-size: 0.8rem; }
.step--done > .icon { color: #17713a; }
.step--current > .icon { color: #b26a00; }
.step--stopped > .icon { color: var(--danger); }
.step--todo strong { color: var(--muted); font-weight: 500; }

.step-status { display: flex; align-items: flex-start; gap: 0.4rem; color: var(--text); font-size: 0.85rem; line-height: 1.4; }
.step-status .icon { width: 1rem; height: 1rem; flex: none; margin-top: 0.1rem; color: var(--subtle); }
.step-status--done .icon { color: #17713a; }
.step-status--current .icon { color: #b26a00; }
.step-status--stopped .icon { color: var(--danger); }
.step-status--todo { color: var(--muted); }

/* One square per place, filled for each person going */
.seats { display: flex; flex-wrap: wrap; gap: 3px; }
.seat { width: 14px; height: 14px; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 2px; }
.seat--filled { background: var(--accent); border-color: var(--accent); }
.seat--over { background: var(--purple); border-color: var(--purple); }
.seats-bar { width: 100%; height: 8px; appearance: none; background: var(--border); border: 0; border-radius: 4px; overflow: hidden; }
.seats-bar::-webkit-progress-bar { background: var(--border); }
.seats-bar::-webkit-progress-value { background: var(--accent); }
.seats-bar::-moz-progress-bar { background: var(--accent); }

/* Approve / decline and select / pass over buttons */
.decision { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.decision__form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.decision__form .input { width: auto; min-width: 0; flex: 1 1 9rem; }
.decision__more > summary { list-style: none; }
.decision__more > summary::-webkit-details-marker { display: none; }
.decision__more[open] { display: grid; flex-basis: 100%; gap: 0.4rem; justify-items: start; }
.decision__more[open] > summary { color: var(--muted); }
.decision__more .decision__form { width: 100%; }
.input.input--sm { height: 2rem; padding: 0.25rem 0.5rem; font-size: 0.85rem; }

/* ---------------------------------------------------------------- Sources (where something came from) */

.source-links { display: inline-flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; min-width: 0; }
.source-link { display: inline-flex; align-items: center; gap: 0.2rem; max-width: 100%; color: var(--muted); white-space: nowrap; }
.source-link span { overflow: hidden; text-overflow: ellipsis; }
.source-link .icon { width: 1em; height: 1em; color: var(--subtle); }
.source-link:hover, .source-link:hover .icon { color: var(--accent-strong); }

.sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.85rem; padding: 0.85rem 2.25rem; background: var(--surface-muted); border-top: 1px solid var(--border); }
.sources__label { color: var(--subtle); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sources__list { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0; padding: 0; font-size: 0.875rem; list-style: none; }
@media (max-width: 600px) {
  .sources { padding: 0.85rem 1.25rem; }
}

/* Files that stay where something came from: "2 attachments available on Slack" (SourcesHelper) */
.attachments { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.attachments-link { max-width: 100%; white-space: normal; }
.attachments-link .icon { flex: none; color: var(--accent); }
.attachments-link:hover .icon { color: var(--accent-strong); }

/* ---------------------------------------------------------------- The SerpApi cat (MascotHelper) */

.mascot { display: block; height: auto; overflow: visible; pointer-events: none; -webkit-user-select: none; user-select: none; }
.mascot__zz { fill: var(--purple); font-family: var(--font); font-weight: 900; transition: opacity 1.2s ease-in-out 0.3s; }

/* The footer cat wakes when you point at it (sleepy_cat_controller.js): its Z's vanish, its
   eyes open and follow the pointer, and a little while after you leave it dozes off again.
   Awake, it swipes at a click, or a pointer lingering by its paw: the paw is only out while
   .is-swatting, and the controller moves it, and leans the cat about its seat on the ledge. */
.mascot[data-controller~="sleepy-cat"] { pointer-events: auto; transform-origin: 50% 92%; }
.mascot__paw { visibility: hidden; pointer-events: none; }
.mascot.is-swatting .mascot__paw { visibility: visible; }
.mascot__eyes { opacity: 0; transition: opacity 0.4s ease; }
.mascot__pupil { transform-box: fill-box; transform-origin: 50% 76%; transition: translate 0.15s ease-out; }
.mascot__shut { transition: opacity 0.4s ease; }
.mascot.is-awake .mascot__eyes { opacity: 1; transition-duration: 0.05s; }
.mascot.is-awake .mascot__shut { opacity: 0; transition-duration: 0.05s; }
.mascot.is-awake .mascot__zz { opacity: 0; transition: opacity 0.15s ease-out; }
.mascot.is-drowsy .mascot__pupil { transition-duration: 0.8s; }

@media (prefers-reduced-motion: no-preference) {
  .mascot__bob { animation: mascot-bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .mascot__zz text { animation: mascot-zz 2.8s ease-in-out infinite; }
  .mascot__zz text:nth-of-type(2) { animation-delay: 0.5s; }
  .mascot__zz text:nth-of-type(3) { animation-delay: 1s; }
  .mascot.is-startled { animation: mascot-startle 0.4s ease-out; transform-origin: 50% 92%; }
  .mascot.is-drowsy .mascot__pupil { animation: mascot-doze 2.4s ease-in-out forwards; }
  .mascot.is-drowsy .mascot__eyes { animation: mascot-eyes-open-out 2.4s ease-in forwards; }
  .mascot.is-drowsy .mascot__shut { animation: mascot-eyes-shut-in 2.4s ease-out forwards; }
}

@keyframes mascot-bob {
  50% { transform: translateY(-14px) rotate(3deg); }
}
@keyframes mascot-zz {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
/* A tiny jolt from the ledge up, as if something made a noise. */
@keyframes mascot-startle {
  20% { scale: 0.97 1.07; }
  50% { scale: 1.01 0.98; }
  75% { scale: 1 1.01; }
}
/* Heavy lids: they droop, it fights them for a moment, then they win. */
@keyframes mascot-doze {
  30% { scale: 1 0.45; }
  45% { scale: 1 0.7; }
  80%, 100% { scale: 1 0.1; }
}
/* Open eyes out, closed ones in, once the lids are nearly down. */
@keyframes mascot-eyes-open-out {
  0%, 75% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mascot-eyes-shut-in {
  0%, 72% { opacity: 0; }
  100% { opacity: 1; }
}
