/* Neil Fernandes — academic website
   Layout based on Andy Zeng's template. Two themes: linen (light) and ink (dark). */

:root {
  --bg: #f4f2ed;
  --text: #1c1e21;
  --meta: #686c73;
  --faint: #a2a5aa;
  --link: #2c5e4e;
  --rule: #dcd8cf;
  --scrim: rgba(244, 242, 237, .8);
  --printer: #e2ded5;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1a1713;
  --text: #e9e1cf;
  --meta: #a1977f;
  --faint: #6c6455;
  --link: #86b3a0;
  --rule: #363026;
  --scrim: rgba(18, 16, 13, .82);
  --printer: #2c2720;
  color-scheme: dark;
}

/* no-JS fallback: follow the system setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1a1713;
    --text: #e9e1cf;
    --meta: #a1977f;
    --faint: #6c6455;
    --link: #86b3a0;
    --rule: #363026;
    --scrim: rgba(18, 16, 13, .82);
    --printer: #2c2720;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* colours ease over only while the theme is being switched */
html.theming body,
html.theming body *:not(.theme-toggle):not(.theme-toggle *) {
  transition: background-color .35s ease, color .35s ease !important;
}

/* every link: an underline draws left to right on hover (and carries across wrapped lines) */
a,
.linklike > span {
  color: var(--link);
  text-decoration: none;
  padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .25s ease, background-size .45s cubic-bezier(.2, .7, .2, 1);
}
a:hover,
a:focus-visible,
.linklike:hover > span,
.linklike:focus-visible > span { background-size: 100% 1px; }

#main {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Intro ---------- */

#intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-top: 88px;
}

#intro-text { flex: 1; min-width: 0; }
#intro-text p { margin: 0 0 1em; }

/* the bio sits flush on both edges; links wrap like ordinary words (no big gaps at line ends),
   long words hyphenate so the spacing stays even, and names/links themselves never get hyphenated */
#intro-text p:not(.profile-links):not(.email) {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}
#intro-text p a { -webkit-hyphens: manual; hyphens: manual; }

h1 {
  margin: 0 0 .5em;
  font-size: 2.6em;
  font-weight: 500;
  line-height: 1.15;
}

.portrait { position: relative; flex: none; margin-top: 96px; }

#intro-image {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 36px;
  overflow: hidden;
}
#intro-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* keep the profile links in one piece instead of breaking across lines */
.profile-links a,
.profile-links button { white-space: nowrap; }
.profile-links a,
.profile-links button { margin-right: 1.1em; }

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}

#intro-text .email { margin-bottom: 0; color: var(--meta); }

/* lab names: hovering shows a photo of the lab (the script places it) */
.peek {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 280px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.97);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .7, .2, 1);
}
.peek.below { transform: translateY(-6px) scale(.97); }
.peek.show { opacity: 1; transform: none; }
.peek img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; }

/* research interests: height + fade, using the grid 0fr -> 1fr trick */
.collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.collapsible.open,
html:not(.js) .collapsible { grid-template-rows: 1fr; opacity: 1; }
.collapsible-inner {
  min-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.collapsible.open .collapsible-inner { transform: none; }

/* ---------- Arrival ----------
   First visit of a session: a short loading screen where a few things Neil works on tick past,
   then his name appears and glides up into its place while the page settles in around it.
   Clicking, scrolling or pressing a key skips straight to the end. (Driven by the script.) */

.loader { display: none; }
html.arrive .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}
.loader-bg { position: absolute; inset: 0; background: var(--bg); }
.loader-stage {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
}
.loader-ticker,
.loader-name { grid-area: 1 / 1; }

.loader-ticker {
  position: relative;
  width: min(80vw, 22em);
  height: 1.5em;
  overflow: hidden;
  color: var(--meta);
  font-size: 1.35rem;
  font-style: italic;
  text-align: center;
}
.loader-word { position: absolute; left: 0; right: 0; top: 0; line-height: 1.5; white-space: nowrap; }
.loader-name {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  transform-origin: 0 0;
  visibility: hidden;
}
.loader-name .ch { display: inline-block; white-space: pre; }
.loader-bar {
  grid-area: 2 / 1;                  /* same column as the words, so everything stays centred */
  width: 140px;
  height: 1px;
  margin-top: 26px;
  background: var(--rule);
  overflow: hidden;
}
.loader-bar span { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; }

/* the time-of-day greeting appears under the name, then glides into the start of the bio */
.loader-greeting {
  grid-area: 2 / 1;
  margin: 22px 0 0;
  color: var(--meta);
  font-size: 1.3rem;
  line-height: 1.55;
  white-space: nowrap;
  transform-origin: 0 0;
  opacity: 0;
}

/* while loading, the page waits underneath; the real name stays hidden until the flying one lands */
html.arrive.name-hidden #name,
html.arrive.name-hidden #greeting { visibility: hidden; }
html.arrive.loading .arrive-item,
html.arrive.loading .arrive-fade,
html.arrive.loading .arrive-focus,
html.arrive.loading .section.fade-in .stagger { animation-play-state: paused; }

/* then everything settles in, a beat apart (each item's --a is its delay in ms) */
html.arrive .arrive-item {
  animation: arrive-in .8s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--a, 0) * 1ms);
}
html.arrive .arrive-fade {                 /* long inline text: fade only */
  animation: arrive-fade .9s ease both;
  animation-delay: calc(var(--a, 0) * 1ms);
}
html.arrive .arrive-focus {                /* the photo comes into focus */
  animation: arrive-focus 1.1s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--a, 0) * 1ms);
}
#greeting { display: inline-block; }

@keyframes arrive-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes arrive-fade {
  from { opacity: 0; filter: blur(2px); }
  to   { opacity: 1; filter: none; }
}
@keyframes arrive-focus {
  from { opacity: 0; transform: scale(1.03); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- Sun / moon toggle ---------- */

.theme-toggle {
  position: absolute;
  top: 28px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--meta);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
html:not(.js) .theme-toggle { display: none; }

.theme-toggle svg { width: 22px; height: 22px; overflow: visible; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.theme-toggle .core,
.theme-toggle .rays { transform-origin: 12px 12px; }
.theme-toggle .core { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.theme-toggle .cut  { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.theme-toggle .rays { transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .35s ease; }

:root[data-theme="dark"] .theme-toggle svg   { transform: rotate(15deg); }
:root[data-theme="dark"] .theme-toggle .core { transform: scale(1.6); }
:root[data-theme="dark"] .theme-toggle .cut  { transform: translate(-14px, 10px); }
:root[data-theme="dark"] .theme-toggle .rays { transform: rotate(60deg) scale(.5); opacity: 0; }

/* ---------- Section buttons ---------- */

#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.3em;
  margin-top: 30px;
}

.button {
  padding: .3em 0;
  border: 0;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 1.45em;
  cursor: pointer;
}
.button:hover,
.button.is-checked { color: var(--text); }

/* ---------- Sections ---------- */

.section { padding: 28px 0 72px; }
/* entries rise in one after another when a section opens (JS sets --i) */
.section.fade-in .stagger {
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--base, 0ms) + var(--i, 0) * 60ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.section h3 {
  margin: 0 0 18px;
  font-size: 1.1em;
  font-weight: 600;
}
/* a hairline between one group and the next (e.g. Conference Articles / Preprints).
   The script places it exactly halfway between the last line above and the heading below. */
.section { position: relative; }
.divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -.5px;
  background: var(--rule);
}
.divider + h3 { margin-top: 0; padding-top: 26px; }
.pub + .divider + h3 { margin-top: -4px; }          /* .pub already leaves 30px below it */
.list + .divider + h3 { margin-top: 12px; }
html:not(.js) .section h3:not(:first-child) { padding-top: 26px; border-top: 1px solid var(--rule); }

/* publications / projects */
.pub {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
}
.thumb { flex: none; width: 200px; }
.thumb video { display: block; width: 100%; border-radius: 5px; }
.thumb a { background: none; padding: 0; }

.pub-text { flex: 1; min-width: 0; }
.pub-text h4 {
  margin: 0 0 .15em;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.35;
}
.pub-text h4 a { color: var(--text); }
.pub-text h4 a:hover { color: var(--link); }
.pub-text p {
  margin: 0;
  color: var(--meta);
  font-size: .94em;
  line-height: 1.45;
}
.pub-text b { color: var(--text); font-weight: 600; }

/* the small Preprint / Video / Poster / PDF links: plain underline on hover, no drawing effect */
.pub-text p a { background: none; padding-bottom: 0; }
.pub-text p a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pub-text .note { color: var(--link); font-style: italic; }

/* a little space between those links instead of bullets */
.pub-text p a + a,
.pub-text p a + .bib-toggle { margin-left: .7em; }

/* BibTeX: opens under the entry, with a Copy button */
.bib-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}
.bib-toggle:hover,
.bib-toggle[aria-expanded="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bib-toggle:focus-visible,
.bib-copy:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.bib-box {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.bib-box pre {
  margin: 0;
  padding: 12px 70px 12px 14px;
  max-height: 15em;
  overflow: auto;
  color: var(--text);
  font: .74em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* one line per field; a long value wraps under itself instead of back at the left edge */
.bib-box code { display: block; font: inherit; --h: var(--hang, 4ch); }
.bib-box code > span { display: block; padding-left: var(--h); text-indent: calc(-1 * var(--h)); }
.bib-copy {
  position: absolute;
  top: 7px;
  right: 9px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: var(--bg);
  color: var(--link);
  font: inherit;
  font-size: .8em;
  cursor: pointer;
}
.bib-copy:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html:not(.js) .bib,
html:not(.js) .bib-toggle { display: none; }

/* simple dated lists (awards, teaching, services) */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; margin-bottom: .55em; }
.list .date { flex: none; width: 4em; color: var(--faint); }
.list.wide .date { width: 7.5em; }
.list .sub { display: block; color: var(--meta); font-size: .94em; }
.list.wide li { margin-bottom: .9em; }

.prose { max-width: 66ch; }
.prose p { margin: 0 0 1em; }

/* ---------- Footer ---------- */

#footer {
  padding: 24px 0 40px;
  color: var(--faint);
  font-size: .9em;
}

/* ---------- CV printer ----------
   "Curriculum Vitae" prints the CV out of a little printer at the bottom of the screen.
   Close folds it up on itself and drops it away (see the script). */

html.cv-open { overflow: hidden; }

.cv-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 16px 26px;
  outline: none;
}
.cv-overlay[hidden] { display: none; }

.cv-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .35s ease;
}
.cv-overlay.is-open .cv-backdrop { opacity: 1; }

/* the paper is only visible above the printer */
.cv-feed {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  height: calc(100vh - 130px);
  height: calc(100dvh - 130px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.cv-paper {
  width: calc(100% - 56px);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: #fff;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .25);
  transform: translateY(100%);
  pointer-events: auto;
}
.cv-paper.has-frame { overflow: hidden; }
.cv-pages canvas { display: block; width: 100%; height: auto; }
.cv-pages canvas + canvas { border-top: 1px solid #eee; }
.cv-paper iframe { display: block; width: 100%; height: 100%; border: 0; }

/* feeds out in short pushes, like a real printer */
.cv-overlay.is-open .cv-paper { animation: cv-print 2s ease-in-out .35s forwards; }
@keyframes cv-print {
  0%   { transform: translateY(100%); }
  14%  { transform: translateY(84%); }
  20%  { transform: translateY(84%); }
  36%  { transform: translateY(62%); }
  42%  { transform: translateY(62%); }
  58%  { transform: translateY(38%); }
  64%  { transform: translateY(38%); }
  80%  { transform: translateY(14%); }
  86%  { transform: translateY(14%); }
  100% { transform: translateY(0); }
}

/* bottom row: the printer while printing, then the buttons */
.cv-bottom {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  height: 60px;
}

.cv-printer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--printer);
  color: var(--text);
  font-size: .9em;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .35);
  transform: translateY(140%);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.cv-overlay.is-open .cv-printer { transform: none; }
.cv-overlay.done .cv-printer {          /* printer drops away once the page is out */
  transform: translateY(170%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.5, 0, .75, 0), opacity .35s ease .1s;
}

.cv-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8a33d;
  box-shadow: 0 0 8px #e8a33d;
  animation: cv-blink .5s steps(2) infinite;
}
@keyframes cv-blink { 50% { opacity: .25; } }

.cv-buttons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}
.cv-overlay.done .cv-buttons { pointer-events: auto; }

.cv-btn {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: .9em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 24px -12px rgba(0, 0, 0, .4);
  opacity: 0;
  transition: color .2s ease, translate .2s ease;
}
.cv-btn:hover,
.cv-btn:focus-visible { color: var(--link); translate: 0 -2px; }

/* the buttons pop up one at a time after the printer has gone */
.cv-overlay.done .cv-btn {
  animation: cv-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(.4s + var(--n, 0) * .13s);
}
@keyframes cv-pop {
  from { opacity: 0; transform: translateY(18px) scale(.6); }
  to   { opacity: 1; transform: none; }
}

/* folding the CV away (pieces built by the script when Close is pressed) */
.cv-fold {
  position: fixed;
  z-index: 3;
  perspective: 1800px;
  pointer-events: none;
}
.cv-fold-sheet { position: absolute; inset: 0; transform-style: preserve-3d; }
.cv-fold-col {
  position: absolute;
  top: 0;
  bottom: 0;
  transform-style: preserve-3d;
  transform-origin: 0 50%;          /* the right half folds over the centre line */
}
.cv-fold-panel { position: absolute; left: 0; right: 0; transform-style: preserve-3d; }
.cv-fold-top    { transform-origin: 50% 100%; }   /* top third folds down */
.cv-fold-bottom { transform-origin: 50% 0; }      /* bottom third folds up */
.cv-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.cv-back {                            /* the plain back of the paper */
  background: linear-gradient(#f4f2ee, #e8e5de);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  transform: rotateY(180deg);
}

/* downloading: the page pours into a tray in the top-right corner (strips built by the script) */
.cv-genie { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.cv-genie-strip {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.dl-tray {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 11px 11px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: .88em;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .35);
  overflow: hidden;
  pointer-events: none;
}
.dl-icon { display: block; width: 24px; height: 24px; color: var(--link); }
.dl-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dl-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-arrow { transition: opacity .2s ease, transform .25s ease; }
.dl-tick { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease .1s; }
.dl-tray.done .dl-arrow { opacity: 0; transform: translateY(5px); }
.dl-tray.done .dl-tick { stroke-dashoffset: 0; }
.dl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule); }
.dl-bar span { display: block; height: 100%; background: var(--link); transform: scaleX(0); transform-origin: 0 50%; }
.dl-tray.done .dl-bar span { transform: scaleX(1); }

/* while the file is being fetched: a small sweep along the bar */
.dl-tray.busy .dl-bar span { width: 35%; transform: none; animation: dl-busy 1.1s ease-in-out infinite; }
@keyframes dl-busy { from { translate: -100% 0; } to { translate: 290% 0; } }

/* done or failed: the tray can be used (Open / Try again) */
.dl-tray.done,
.dl-tray.failed { pointer-events: auto; }
.dl-link {
  margin-left: .45em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}
.dl-link:hover,
.dl-link:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background: none; }
.dl-bang { opacity: 0; }
.dl-tray.failed .dl-icon { color: #c4583f; }
.dl-tray.failed .dl-arrow { opacity: 0; }
.dl-tray.failed .dl-bang { opacity: 1; }
.dl-tray.failed .dl-bar { display: none; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  #main { padding: 0 18px; }
  #intro { flex-direction: column-reverse; gap: 24px; padding-top: 72px; }
  .portrait { margin-top: 0; }
  #intro-image { width: 128px; height: 128px; border-radius: 24px; }
  h1 { font-size: 2.2em; }
  #filters { margin-top: 22px; }
  .button { font-size: 1.25em; }
  .pub { flex-direction: column; gap: 10px; }
  .thumb { width: 100%; max-width: 360px; }
  .thumb:empty { display: none; }
  .list.wide li { flex-direction: column; }
  .list.wide .date { width: auto; }
  .theme-toggle { top: 16px; right: 10px; }
  .bib-box pre { padding: 30px 12px 12px; }   /* Copy sits above the text, so the text gets the full width */
  .bib-box code { --h: 4ch; }
  #intro-text p:not(.profile-links):not(.email) { text-align: left; }   /* a narrow column justified gets big gaps */
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle svg, .theme-toggle .core, .theme-toggle .cut, .theme-toggle .rays { transition-duration: .01ms; }
  .section.fade-in .stagger { animation: none; }
  a, .linklike > span, .collapsible, .collapsible-inner, .cv-printer, .cv-backdrop { transition: none; }
  .peek, .peek.below { transform: none; transition: opacity .12s ease; }
  .dl-tray.busy .dl-bar span { animation: none; }
  .cv-overlay.is-open .cv-paper { animation: none; transform: none; }
  .cv-overlay.done .cv-btn { animation: none; opacity: 1; }
}
