/* Design tokens. Every color, size and duration used by the site comes from here. */
:root {
  /* Palette: black and white with Apple's neutral greys. The accent is
     white; colour only appears inside the product visuals. */
  --midnight: #000000;
  --deep: #141416;
  --deeper: #0a0a0b;
  --raised: #2c2c2e;
  --hairline: #262628;
  --frost: #f5f5f7;
  --haze: #86868b;
  /* The accent is the colour Sqrin draws its frame in: macOS's
     controlAccentColor, default blue in dark appearance. */
  --signal: #0a84ff;
  --signal-bright: #409cff;
  --frame: var(--signal);
  --signal-ink: #ffffff;
  /* macOS's red (systemRed, dark appearance), for a meeting's Leave button. */
  --alert: #ff453a;
  /* A macOS window's close, minimize and zoom buttons. */
  --light-close: #ff5f57;
  --light-minimize: #febc2e;
  --light-zoom: #28c840;
  /* Buttons stay black and white. */
  --button: #f5f5f7;
  --button-hover: #e8e8ed;
  --button-active: #d2d2d7;
  --button-ink: #000000;

  /* The same colors as channels, for translucent variants: rgb(var(--x-rgb) / 0.2). */
  --midnight-rgb: 0 0 0;
  --night-rgb: 0 0 0;
  --hairline-rgb: 38 38 40;
  --frost-rgb: 245 245 247;
  --tint-rgb: 255 255 255;
  --signal-rgb: 10 132 255;
  --signal-bright-rgb: 64 156 255;
  --sky-rgb: 255 255 255;
  --ocean-rgb: 160 160 170;
  /* The aura at the top of the page: the accent blues plus a deeper indigo
     and a pale cyan, so the blobs shift in tone where they overlap. */
  --aura-indigo-rgb: 72 84 236;
  --aura-cyan-rgb: 100 210 255;

  --surface-glass: rgb(36 36 38 / 0.72);
  --surface-glass-line: rgb(var(--tint-rgb) / 0.12);
  /* The footer's top edge: a faint blue-grey line, so it sits in the
     glow of the foot aura rather than cutting across it. */
  --footer-line: rgb(128 128 200 / 0.075);

  /* Type: SF Pro on Apple devices. Everywhere else Inter, the closest open
     font to it (Bunny Fonts, linked in base.html), so the page looks the
     same on Windows, Android and Linux. Scale ≈ 1.25 from 17px. */
  --font: BlinkMacSystemFont, -apple-system, "SF Pro Display", "SF Pro", Inter, "Inter Fallback", sans-serif;
  /* SF Mono on Apple devices, Roboto Mono (Bunny Fonts) elsewhere. */
  --font-mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", "Cascadia Mono", Consolas, "Noto Sans Mono", "DejaVu Sans Mono", "Liberation Mono", monospace;
  --font-rounded: ui-rounded, "SF Pro Rounded", var(--font);
  --text-body: 1.0625rem;     /* 17px */
  --text-lead: 1.3125rem;     /* 21px */
  --text-small: 0.875rem;     /* 14px */
  --text-title: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  --text-display: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);
  --leading-tight: 1.05;
  --leading-body: 1.5;
  --tracking-display: -0.032em;
  --tracking-title: -0.022em;

  /* Layout */
  --measure: 34rem;
  /* The hero title's width (13ch of the display size, about 8 em), used
     to line up the descriptions under titles. */
  --title-measure: calc(var(--text-display) * 8);
  --page: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 9vw, 9rem);
  --radius-control: 980px;
  --radius-window: 14px;
  --radius-panel: 22px;
  /* The floating header (header.js): its corners, how far it hangs below
     the window's top and in from its sides, and the padding inside it. */
  /* Floating, it's a little taller than the 3.25rem bar. Fully round ends:
     half its height, not a huge radius. The same padding at both ends keeps
     it centered and its contents still. */
  --header-float-height: 3.875rem;
  --header-float-radius: calc(var(--header-float-height) / 2);
  --header-float-gap: 0.75rem;
  --header-float-padding: 1.5rem;
  --header-float-duration: 360ms;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 240ms;
  /* The aura's blobs drift on these loops; uneven lengths, so their
     pattern never visibly repeats. */
  --aura-drift-1: 26s;
  --aura-drift-2: 33s;
  --aura-drift-3: 41s;
  --aura-drift-4: 47s;
  /* How far (at most) a blob shies away from the pointer right over its
     middle, and how wide its reach is, as a share of its own width. */
  --aura-push: 140px;
  /* A light blur over the whole aura softens it further, past what the
     gradients alone give. */
  --aura-blur: 24px;
  --aura-reach: 0.6;
  /* Section-link scrolls: the time grows with distance between these two. */
  --scroll-duration-min: 700ms;
  --scroll-duration-max: 1600ms;
  /* Entrances (reveal.js): a long, soft ease-out, so things settle rather
     than stop. Previews travel farther and take longer than text. */
  --reveal-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-duration: 1600ms;
  --reveal-distance: 1.5rem;
  --reveal-blur: 8px;
  --reveal-scale: 0.96;
  --reveal-preview-duration: 2200ms;
  --reveal-preview-delay: 400ms;
  --reveal-preview-distance: 3rem;
  /* Previews tilt back on their top edge by this much, seen from this far. */
  --reveal-preview-tilt: 24deg;
  --reveal-preview-perspective: 1200px;
  --reveal-preview-blur: 6px;
  /* Pricing cards (data-reveal="card") lean back like previews, a little less. */
  --reveal-card-tilt: 20deg;
  /* Side by side, the outer cards also turn their outer edge away by this
     much, mirrored, and swing in toward the middle one. */
  --reveal-card-swing: 16deg;
  --reveal-card-blur: 4px;
  /* data-reveal="late" (the closing download button) comes in like the
     text, but this long after the title above it, as the page's last word;
     its notes follow it, one by one, this far apart (--late-order). */
  --reveal-late-delay: 750ms;
  --reveal-late-stagger: 250ms;
  /* The hero's entrance: the closed MacBook comes in like the text, this
     long after the title. Its lid opens once the visitor scrolls it up the
     window, then the meeting window swings in, 2 s after the lid starts. */
  --reveal-stage-delay: 600ms;
  /* Hovering the closed MacBook, and the scroll a click on it starts:
     slower than section links, stopping this short of centering the open
     laptop (hero.js). */
  --laptop-hover-lift: -5px;
  --laptop-hover-brightness: 1.25;
  --laptop-scroll-duration: 1250ms;
  --laptop-scroll-short: 100px;
  --lid-delay: 100ms;
  --lid-duration: 1800ms;
  --lid-ease: cubic-bezier(0.3, 0, 0.15, 1);
  --meeting-delay: calc(var(--lid-delay) + 2000ms);
  --meeting-duration: 1400ms;
  --meeting-blur: 14px;
  /* The meeting window's parallax (hero.js): it drifts this share of the
     stage's distance from the middle of the window as the page scrolls,
     and up to this far toward the pointer. */
  --parallax-scroll: 0.08;
  --parallax-pointer: 14px;
  /* Product Hunt's badge (in the hero, under the download button and its
     notes, and before the closing title): its height (the image is
     250 × 54, so its width follows: about 213 px) and the room above it in
     the hero. */
  --product-hunt-height: 46px;
  --product-hunt-gap: clamp(1.5rem, 3vw, 2rem);
  /* The closing's "Featured on" badges share a height: Product Hunt's
     54 px at most, as in the hero. */
  --featured-badge-height: clamp(2.5rem, 8vw, 3.375rem);
  /* Watch the Video (video.js): the laptop zooms until its screen fills
     the window, and back, over this long. */
  --watch-duration: 1100ms;
  /* See How It Works scrolls to the laptop over this long first (and
     waits for the lid, if it was closed) before the zoom. */
  --watch-scroll-duration: 1000ms;
  /* Watch the Video comes in this long after it otherwise would. */
  --watch-button-delay: 1000ms;
  --watch-ease: cubic-bezier(0.65, 0, 0.3, 1);
  /* The least room left around the zoomed laptop. */
  --watch-padding: clamp(1rem, 5vmin, 3.5rem);
  /* The hero's large pointer (frame-demo.js): the pointer feature's size
     at the same window width. */
  --hero-pointer-size: clamp(26px, 3.6vw, 37px);
}

/* Reset and page-wide typography. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--midnight);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  /* The page colour lives on <html>; the body stays clear so the top
     aura (.aura, in the layout) can sit behind the content. */
  background: transparent;
  color: var(--frost);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The aura: soft blobs of light drifting slowly behind the top of every
   page, fading out below the first screen. Each blob is a radial gradient,
   and the light blur over them all runs on the GPU. */
.aura {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: min(72rem, 150vh);
  overflow: hidden;
  pointer-events: none;
  filter: blur(var(--aura-blur));
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 35%, transparent 85%);
}

.aura i {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  /* Centered on its spot, plus the push away from the pointer (aura.js). */
  translate: calc(-50% + var(--push-x, 0px)) calc(-50% + var(--push-y, 0px));
  /* An eased falloff: a straight fade leaves a visible disc edge. */
  background: radial-gradient(
    closest-side,
    rgb(var(--blob) / var(--strength)),
    rgb(var(--blob) / calc(var(--strength) * 0.62)) 30%,
    rgb(var(--blob) / calc(var(--strength) * 0.28)) 58%,
    rgb(var(--blob) / calc(var(--strength) * 0.08)) 82%,
    rgb(var(--blob) / 0) 100%
  );
  animation: var(--drift) ease-in-out infinite alternate;
  will-change: transform;
}

/* The main light, wide and centered above the title. */
.aura i:nth-child(1) {
  --blob: var(--signal-rgb);
  --strength: 0.42;
  left: 50%;
  top: 4%;
  width: clamp(30rem, 70vw, 64rem);
  animation-name: aura-drift-1;
  animation-duration: var(--aura-drift-1);
}

.aura i:nth-child(2) {
  --blob: var(--aura-indigo-rgb);
  --strength: 0.36;
  left: 22%;
  top: 14%;
  width: clamp(24rem, 52vw, 46rem);
  animation-name: aura-drift-2;
  animation-duration: var(--aura-drift-2);
}

.aura i:nth-child(3) {
  --blob: var(--signal-bright-rgb);
  --strength: 0.28;
  left: 80%;
  top: 8%;
  width: clamp(22rem, 48vw, 42rem);
  animation-name: aura-drift-3;
  animation-duration: var(--aura-drift-3);
}

/* A small pale highlight that wanders between the others. */
.aura i:nth-child(4) {
  --blob: var(--aura-cyan-rgb);
  --strength: 0.18;
  left: 62%;
  top: 26%;
  width: clamp(16rem, 34vw, 30rem);
  animation-name: aura-drift-4;
  animation-duration: var(--aura-drift-4);
}

@keyframes aura-drift-1 {
  0% { transform: translate(-6vw, -2vw) scale(1); }
  50% { transform: translate(4vw, 3vw) scale(1.12); }
  100% { transform: translate(8vw, -3vw) scale(0.94); }
}

@keyframes aura-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14vw, 6vw) scale(0.86); }
  100% { transform: translate(6vw, -4vw) scale(1.15); }
}

@keyframes aura-drift-3 {
  0% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-16vw, 8vw) scale(0.9); }
  100% { transform: translate(-6vw, -2vw) scale(1.1); }
}

@keyframes aura-drift-4 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-22vw, -8vw) scale(1.2); }
  100% { transform: translate(10vw, 4vw) scale(1); }
}

/* A smaller, fainter aura at the foot of every page, rising from the
   bottom edge. It reaches up to the element marked data-aura-top (the
   home page's closing download button) at most; aura.js sets its height. */
.aura--foot {
  top: auto;
  bottom: 0;
  height: var(--aura-foot-height, min(24rem, 60vh));
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 100%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 100%, #000 30%, transparent 85%);
}

.aura--foot i:nth-child(1) {
  --strength: 0.28;
  left: 50%;
  top: 84%;
  width: clamp(26rem, 60vw, 54rem);
}

.aura--foot i:nth-child(2) {
  --strength: 0.24;
  left: 26%;
  top: 92%;
  width: clamp(22rem, 46vw, 40rem);
}

.aura--foot i:nth-child(3) {
  --strength: 0.18;
  left: 76%;
  top: 88%;
  width: clamp(20rem, 40vw, 36rem);
}

@media (prefers-reduced-motion: reduce) {
  .aura i {
    animation: none;
  }
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--signal-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--signal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Sections focused by a section link (anchors.js) take focus only so
   keyboard and screen reader users continue from there. A ring around a
   whole section would just look like a glitch. */
[tabindex="-1"]:focus {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

kbd {
  font-family: var(--font);
}

strong {
  font-weight: 600;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-control);
  background: var(--signal);
  color: var(--signal-ink);
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared components: header, footer, buttons, keycaps, glass banner, prose. */

/* Header */
/* Clear over the top of the page; header.js floats it as a round glass
   panel (.is-floating) once the page has scrolled. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(100% - 2 * var(--gutter), var(--page));
  height: 3.25rem;
  /* Centered, but written out rather than auto so it can animate. */
  margin-left: max(var(--gutter), (100% - var(--page)) / 2);
  border: 1px solid transparent;
  /* Round from the start, unseen while the bar is clear, so only the
     background and border fade in as it floats. */
  border-radius: var(--header-float-radius);
  transition:
    width var(--header-float-duration) var(--ease),
    height var(--header-float-duration) var(--ease),
    margin var(--header-float-duration) var(--ease),
    padding var(--header-float-duration) var(--ease),
    translate var(--header-float-duration) var(--ease),
    background-color var(--header-float-duration) var(--ease),
    border-color var(--header-float-duration) var(--ease),
    box-shadow var(--header-float-duration) var(--ease);
}

/* Floating: once the page's title reaches it (header.js), the bar
   lets go of the window's edges and becomes a rounded glass panel hanging
   just below the top. It widens by its new padding, so on wide screens
   the logo, links and button stay where they were. */
.site-header.is-floating .site-header__inner {
  width: min(100% - 2 * var(--header-float-gap), var(--page) + 2 * var(--header-float-padding));
  /* Taller, without moving the page: the extra height hangs below. */
  height: var(--header-float-height);
  /* Grown out by its padding, so on wide screens the logo, links and
     button stay exactly where they were. In narrow windows it hangs
     --header-float-gap in from both sides. */
  margin-left: max(var(--header-float-gap), (100% - var(--page)) / 2 - var(--header-float-padding));
  margin-bottom: calc(3.25rem - var(--header-float-height));
  padding-inline: var(--header-float-padding);
  translate: 0 var(--header-float-gap);
  border-color: rgb(var(--hairline-rgb) / 0.4);
  background: rgb(var(--midnight-rgb) / 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  /* A close, firm shadow and a wide, soft one; on the black page they show
     where it passes over light (the aura, the demos). */
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.35),
    0 12px 36px rgb(0 0 0 / 0.55);
}

.site-header__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: var(--text-small);
}

.site-footer__links a {
  color: var(--haze);
}

.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] {
  color: var(--frost);
  text-decoration: none;
}

/* Header links are already white, so hover dims them a little instead. */
.site-header__links a {
  color: var(--frost);
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.site-header__links a:hover {
  color: rgb(var(--frost-rgb) / 0.72);
  text-decoration: none;
}

@media (max-width: 40rem) {
  .site-header__links {
    display: none;
  }

  .site-header__inner > .button {
    margin-left: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--frost);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--signal-bright);
}

/* The header's logo is larger than the footer's. */
.site-header .brand {
  gap: 0.75rem;
  font-size: 1.25rem;
}

.site-header .brand .mark {
  width: 2rem;
  height: 2rem;
}

.brand--quiet {
  color: var(--haze);
}

.brand--quiet .mark {
  color: var(--haze);
}

/* The footer's logo takes on the header's colors when pointed at. */
.brand--quiet,
.brand--quiet .mark {
  transition: color var(--duration) var(--ease);
}

.brand--quiet:hover {
  color: var(--frost);
}

.brand--quiet:hover .mark {
  color: var(--signal-bright);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--footer-line);
  padding-block: 2.5rem 3rem;
  font-size: var(--text-small);
  color: var(--haze);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__legal {
  margin-left: auto;
}

/* On phones the footer stacks, centered: the logo, the links, then the
   copyright. */
@media (max-width: 40rem) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__legal {
    margin-left: 0;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.4rem;
  /* As a <button>, without the browser's border and font, so it matches
     the link buttons. */
  border: 0;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-control);
  background: var(--button);
  color: var(--button-ink);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color var(--duration) var(--ease);
}

.button__icon {
  width: 0.95em;
  height: 1.1em;
  flex: none;
  /* The logo's leaf makes it look low; nudge it up to sit on the text. */
  margin-top: -0.15em;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.button:active {
  background: var(--button-active);
}

/* The focus ring follows the pill, not the global 6 px corners. */
.button:focus-visible {
  border-radius: var(--radius-control);
}

.button--quiet {
  background: transparent;
  color: var(--frost);
  box-shadow: inset 0 0 0 1px rgb(var(--frost-rgb) / 0.5);
}

.button--quiet:hover {
  background: rgb(var(--frost-rgb) / 0.1);
}

.button--quiet:active {
  background: rgb(var(--frost-rgb) / 0.18);
}

.button--small {
  min-height: 1.75rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.8125rem;
}

.button__icon {
  width: 1.1em;
  height: 1.1em;
}

/* Keycaps, drawn like the ones in the app's banner. */
.keys {
  display: inline-flex;
  gap: 0.2em;
  vertical-align: 0.06em;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.45em;
  padding-inline: 0.3em;
  border: 1px solid rgb(var(--tint-rgb) / 0.22);
  border-radius: 0.36em;
  background: rgb(var(--tint-rgb) / 0.1);
  box-shadow: 0 0.1em 0 rgb(0 0 0 / 0.45);
  color: var(--frost);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1;
}

kbd.is-pressed,
.keys.is-pressed kbd {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
  box-shadow: none;
  transform: translateY(0.06em);
}

/* Glass banner, the same shape the app shows during picking. */
.glass {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-line);
  border-radius: var(--radius-panel);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.35);
}

/* Long-form text for legal and help pages. */
.prose {
  max-width: 40rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 6rem) var(--section);
}

.prose h1 {
  font-size: var(--text-title);
  line-height: 1.1;
  letter-spacing: var(--tracking-title);
}

.prose .prose__updated {
  margin-top: 0.75rem;
  color: var(--haze);
  font-size: var(--text-small);
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.012em;
}

.prose p,
.prose ul {
  margin-top: 1rem;
  color: rgb(var(--frost-rgb) / 0.86);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* The changelog: a release's date sits close under its version. */
.prose .release h2 + .prose__updated {
  margin-top: 0.25rem;
}

/* Entrances: reveal.js sets html.reveal before the first paint and adds
   .is-revealed as each element scrolls into view. The individual translate
   and scale properties leave any transform an element already has alone;
   previews, which have none, also tilt back on their top edge (the bottom
   farther away, narrower) and swing upright.
   The blur is only on the way in: a filter left on, even blur(0), would
   stop the glass inside a preview from blurring what's behind it.
   With reduced motion, or in print, nothing is hidden. */
/* Headings set this tight hang their descenders (p, y) below their box,
   and Safari clips a filtered element, blurred on its way in, to that box.
   This gives them room to paint without taking up any space. */
h1[data-reveal],
h2[data-reveal] {
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .reveal [data-reveal] {
    transition:
      opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      translate var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      scale var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      filter var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms);
  }

  .reveal [data-reveal="preview"] {
    --reveal-duration: var(--reveal-preview-duration);
    /* Previews wait a moment more, so the text they illustrate leads. */
    --preview-delay: calc(var(--reveal-delay, 0ms) + var(--reveal-preview-delay));
    transform-origin: 50% 0;
    transition:
      opacity var(--reveal-duration) var(--reveal-ease) var(--preview-delay),
      translate var(--reveal-duration) var(--reveal-ease) var(--preview-delay),
      transform var(--reveal-duration) var(--reveal-ease) var(--preview-delay),
      filter var(--reveal-duration) var(--reveal-ease) var(--preview-delay);
  }

  .reveal [data-reveal="late"] {
    /* Set steps (--late-order) rather than reveal.js's stagger, which
       only spaces out what enters in the same batch. */
    --late-delay: calc(var(--reveal-late-delay) + var(--late-order, 0) * var(--reveal-late-stagger));
    transition:
      opacity var(--reveal-duration) var(--reveal-ease) var(--late-delay),
      translate var(--reveal-duration) var(--reveal-ease) var(--late-delay),
      scale var(--reveal-duration) var(--reveal-ease) var(--late-delay),
      filter var(--reveal-duration) var(--reveal-ease) var(--late-delay);
  }

  /* Cards come in like text, leaning back a little on their top edge. */
  .reveal [data-reveal="card"] {
    transform-origin: 50% 0;
    transition:
      opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      translate var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      scale var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms),
      filter var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms);
  }

  .reveal [data-reveal]:not(.is-revealed) {
    opacity: 0;
    translate: 0 var(--reveal-distance);
    scale: var(--reveal-scale);
    filter: blur(var(--reveal-blur));
  }

  .reveal [data-reveal="preview"]:not(.is-revealed) {
    translate: 0 var(--reveal-preview-distance);
    scale: none;
    transform: perspective(var(--reveal-preview-perspective)) rotateX(calc(-1 * var(--reveal-preview-tilt)));
    filter: blur(var(--reveal-preview-blur));
  }

  .reveal [data-reveal="card"]:not(.is-revealed) {
    transform: perspective(var(--reveal-preview-perspective)) rotateY(var(--reveal-card-turn, 0deg)) rotateX(calc(-1 * var(--reveal-card-tilt)));
    filter: blur(var(--reveal-card-blur));
  }
}
