/*
 * Cosminova — landing page.
 *
 * The palette is taken from the renderer's own output rather than chosen: the
 * background is the colour of the sky a few degrees after sunset, and the
 * accent is the amber off the horizon band in the TRAPPIST-1 e frame. That is
 * why the page and the screenshots sit together instead of fighting.
 */

:root {
  /* Sampled from the twilight frames: near-black with a blue cast, never #000,
     so the screenshots' true blacks still read as black against it. */
  --ink: #05070c;
  --ink-1: #090d15;
  --ink-2: #0f1520;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e8ecf3;
  --text-dim: #97a1b2;
  --text-faint: #66707f;

  /* The horizon amber, and a hotter version for hover states. */
  --amber: #f0a860;
  --amber-hot: #ffc184;
  --amber-glow: rgba(240, 168, 96, 0.22);

  --shell: min(1180px, 100% - 3rem);
  --radius: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The sticky header would otherwise cover the top of a jumped-to section. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Inter, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--amber);
  text-decoration-color: rgba(240, 168, 96, 0.4);
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--amber-hot);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: #12100c;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* Transparent over the hero video and only acquiring a background once the
     page scrolls under it, so the opening frame is never boxed in. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.nav.is-stuck {
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

/* The mark, from the same master the tab icon is built from, so the header and
   the browser tab are the same picture. A 128 px raster drawn at 22 so it
   stays sharp past 2x. */
.nav__mark {
  width: 22px;
  height: 22px;
  background: url('assets/logo.png') center / contain no-repeat;
  flex: none;
}

.nav__name {
  font-size: 0.86rem;
  letter-spacing: 0.3em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text) !important;
}

.nav__cta:hover {
  border-color: var(--amber);
  background: rgba(240, 168, 96, 0.1);
}

/* ----------------------------------------------------------------- hero */

/*
 * The type sits in the upper part of the frame rather than the centre, because
 * the picture behind it has its subject low: the star and the horizon band are
 * in the bottom third. Centring the text put the words straight over the star,
 * which cost legibility and hid the one bright thing in the shot.
 */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(7rem, 16vh, 11rem) 0 6rem;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Left at full brightness. The frames are mostly dark sky with one bright
     thing in them, so anything taken off here turns the hero into a grey panel
     and throws away the only colour on the page. */
  filter: saturate(112%);
}

/*
 * The slides are stacked and cross-faded on opacity, which the compositor can
 * do without touching layout. Only the active one is opaque.
 *
 * The slow scale is what stops a still image from looking like a still image
 * during the eight seconds it is up. It runs on the active slide only, so the
 * fade out is a straight fade rather than a fade plus a snap back to 1.
 */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

/* Duration tracks the slide interval in main.js, so the zoom finishes about
   when the slide hands over rather than stopping dead partway. */
.hero__slide.is-active {
  opacity: 1;
  animation: hero-drift 8.6s linear both;
}

@keyframes hero-drift {
  from {
    scale: 1;
  }
  to {
    scale: 1.06;
  }
}

/* The caption and the dots, on one line along the bottom of the hero. */
.hero__slideshow {
  position: absolute;
  inset: auto 0 3.6rem 0;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  pointer-events: none;
}

.hero__caption {
  max-width: 40ch;
  font-size: 0.86rem;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  /* Both lines animate together on a change of slide, so the caption arrives
     with its picture rather than swapping under it. */
  animation: caption-in 0.7s var(--ease) both;
}

.hero__caption-title {
  display: block;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero__caption-note {
  color: #b9c2cf;
}

@keyframes caption-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero__dots {
  display: flex;
  gap: 0.55rem;
  pointer-events: auto;
  flex: none;
}

/* Deliberately larger than it looks: the dot is 8px but the hit area is 22px,
   which is the difference between usable and not on a phone. */
.hero__dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: background 0.3s var(--ease), scale 0.3s var(--ease);
}

.hero__dot:hover::before {
  background: rgba(255, 255, 255, 0.6);
}

.hero__dot[aria-selected='true']::before {
  background: var(--amber);
  scale: 1.25;
}

.hero__dot:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 50%;
}

/* On a phone the note wraps to four lines and crowds the dots, and the slide's
   name alone already answers what the picture is. */
@media (max-width: 560px) {
  .hero__slideshow {
    inset: auto 0 2.8rem 0;
    align-items: center;
  }

  .hero__caption-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active {
    animation: none;
  }

  .hero__caption {
    animation: none;
  }
}

/*
 * Retuned for the slideshow. The single sunset this replaced had a nearly
 * black upper sky with its one bright band low in the frame, so the scrim
 * could darken the top and leave the middle alone.
 *
 * That assumption does not survive eight pictures. A lensed accretion disc
 * fills the centre of the frame with the brightest thing on the page, directly
 * behind the title and the lede, and Saturn and the Sun sit there too. So the
 * wash now carries through the middle as well, and there is a soft column
 * behind the text on top of it.
 *
 * Still deliberately restrained: the title and lede carry their own shadows,
 * which is what lets this stay light enough to see the picture through.
 */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* A soft ellipse behind the text column. Darkens where the words are
       without laying a visible band across the whole width. */
    radial-gradient(
      120% 62% at 50% 26%,
      rgba(5, 7, 12, 0.58) 0%,
      rgba(5, 7, 12, 0.34) 45%,
      rgba(5, 7, 12, 0) 100%
    ),
    /* Top for the header, a carried-through middle for the bright centre of
       the frame, and a landing on the page colour at the fold. */
      linear-gradient(
        to bottom,
        rgba(5, 7, 12, 0.8) 0%,
        rgba(5, 7, 12, 0.54) 24%,
        rgba(5, 7, 12, 0.34) 50%,
        rgba(5, 7, 12, 0.24) 72%,
        rgba(5, 7, 12, 0.62) 94%,
        var(--ink) 100%
      );
}

.hero__body {
  width: var(--shell);
  margin-inline: auto;
  max-width: 820px;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero__title {
  font-size: clamp(2.9rem, 9vw, 6.2rem);
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 1.3rem;
  /* A tight shadow for edge contrast against the bright horizon and a wide
     soft one to seat the whole word on the sky. This is what lets the scrim
     stay light enough to see the picture through. */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 0 90px rgba(0, 0, 0, 0.9);
}

.hero__lede {
  margin: 0 auto;
  max-width: 62ch;
  /* Lifted off --text-dim: this sits over the sunset rather than the page
     colour, and the dim grey loses its contrast there. */
  color: #d3dae5;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.hero__alt {
  margin: 1.6rem 0 0;
  font-size: 0.92rem;
  /* --text-faint disappears here. This line sits over the brightening part of
     the sky rather than the page colour, so it needs most of the way to full
     strength plus a shadow to hold its edges. */
  color: #c2cad6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* A slow drifting cue that there is more below. Purely decorative. */
.hero__hint {
  position: absolute;
  bottom: 1.9rem;
  left: 50%;
  translate: -50% 0;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--line-strong));
  overflow: hidden;
}

.hero__hint span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--amber));
  animation: drift 2.6s var(--ease) infinite;
}

@keyframes drift {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.82rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.btn__text strong {
  font-weight: 600;
  font-size: 0.98rem;
}

.btn__text small {
  font-size: 0.76rem;
  opacity: 0.72;
}

.btn--primary {
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  color: #1a1206;
  box-shadow: 0 8px 30px rgba(240, 168, 96, 0.24);
}

.btn--primary:hover {
  color: #1a1206;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(240, 168, 96, 0.34);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--amber);
}

/* The third choice: still a button, but it should not compete with the demo. */
.btn--quiet {
  padding: 0.6rem 1rem;
  background: transparent;
  border-color: var(--line);
  color: #c2cad6;
}

.btn--quiet:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

/*
 * The macOS button is disabled on purpose — the build does not exist yet. It
 * keeps its shape so the pair reads as two platforms rather than one, but it
 * is dimmed, takes a not-allowed cursor, and is disabled in the markup too so
 * it is unreachable by keyboard rather than merely looking dead.
 */
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
}

/* ---------------------------------------------------------------- stats */

.stats {
  border-block: 1px solid var(--line);
  background: var(--ink-1);
}

.stats__list {
  width: var(--shell);
  margin-inline: auto;
  padding: 2.6rem 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stats__list li {
  text-align: center;
}

.stats__num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.stats__num sup {
  font-size: 0.5em;
  top: -0.6em;
}

.stats__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.stats__live {
  width: var(--shell);
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.stats__live-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stats__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee08f;
  box-shadow: 0 0 0 0 rgba(94, 224, 143, 0.6);
  animation: stats-pulse 2s ease-out infinite;
}

@keyframes stats-pulse {
  to {
    box-shadow: 0 0 0 8px rgba(94, 224, 143, 0);
  }
}

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

.stats__list--live {
  width: auto;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 1.2rem;
}

/* ------------------------------------------------------------------ why */

.why {
  width: var(--shell);
  margin-inline: auto;
  padding: 6rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.why__body p {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 1.1rem 0 0;
}

.why__sign {
  color: var(--text) !important;
  font-size: 0.95rem !important;
}

.why__facts {
  margin: 0;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.why__facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 1.1rem;
}

.why__facts dt:first-child {
  margin-top: 0;
}

.why__facts dd {
  margin: 0.3rem 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.why__links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 860px) {
  .why {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- section */

.section {
  width: var(--shell);
  margin-inline: auto;
  padding: 7rem 0;
}

.section--flush {
  padding-bottom: 5rem;
}

.section__head {
  max-width: 68ch;
  margin-bottom: 3.4rem;
}

.section__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.section__title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

.section__lede {
  margin: 1.1rem 0 0;
  color: var(--text-dim);
  font-size: 1.04rem;
}

/* ----------------------------------------------------------------- rows */

.rows {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.row {
  display: grid;
  /* The picture takes the larger share. The paragraph is four lines and reads
     comfortably at this width, and giving the image the remainder is what
     stops the section feeling like documentation. */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

/* Alternate which side the picture falls on. Ordering the columns rather than
   reordering the DOM, so the heading still precedes its image for a reader
   going through in sequence. */
.row:nth-child(even) .row__media {
  order: 2;
}

.row__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-1);
}

.row__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.row:hover .row__media img {
  transform: scale(1.03);
}

.row__title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.85rem;
  color: var(--text);
}

.row__body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 46ch;
}

/* Stacked below the point where a two-column row leaves the paragraph in a
   column too narrow to read. The picture goes on top in every row: alternating
   sides means nothing in one column, and it would only make the order look
   inconsistent. */
@media (max-width: 860px) {
  .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .row:nth-child(even) .row__media {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .row:hover .row__media img {
    transform: none;
  }
}

/* -------------------------------------------------------------- gallery */

/*
 * Twelve tiles, all the same size. There were two double-width ones for
 * variety, which left the last row holding a single wide tile against two
 * empty columns; twelve equal cells instead divide without a remainder at two,
 * three, four and six columns, which is every count this grid resolves to.
 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid var(--line);
  position: relative;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.shot:hover img {
  transform: scale(1.035);
}

/* The caption sits on the image, over a gradient that only exists at the
   bottom, so it never covers the subject. */
.shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.1rem 1rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  background: linear-gradient(to top, rgba(3, 5, 9, 0.94), transparent);
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------- download */

.download {
  border-top: 1px solid var(--line);
}

.download__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.download .actions {
  justify-content: flex-start;
}

.download__note {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-faint);
}

.specs {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
}

.specs__title {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.3rem;
  font-weight: 600;
}

.specs__list {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.specs__list > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.specs__list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.specs__list dt {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.specs__list dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.specs__foot {
  margin: 1.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.5;
}

/* --------------------------------------------------------------- sources */

.sources {
  max-width: 80ch;
  padding: 1.9rem;
  border-left: 2px solid var(--amber);
  background: var(--ink-1);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sources p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------- foot */

.foot {
  border-top: 1px solid var(--line);
  background: var(--ink-1);
}

.foot__inner {
  width: var(--shell);
  margin-inline: auto;
  padding: 2.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.foot__name {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.foot__note {
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* Support and privacy. The footer is where both are looked for — by anyone
   with a problem, and by App Review, which requires a reachable privacy
   policy. */
.foot__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.84rem;
}

.foot__links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.foot__links a:hover {
  color: var(--amber-hot);
}

/* -------------------------------------------------------------- reveal */

/*
 * Sections fade up as they arrive. Applied by script so that with JavaScript
 * unavailable the content is simply visible, rather than permanently
 * transparent — the class is only added once the observer is attached.
 */
.reveal.is-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .stats__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .stats__list--live {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .download__inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .section {
    padding: 4.8rem 0;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1180px, 100% - 2rem);
  }

  body {
    font-size: 16px;
  }

  /* The section links crowd out the brand on a phone; the download call to
     action is the only one that has to survive. */
  .nav__links a:not(.nav__cta) {
    display: none;
  }

  .hero {
    padding: 7rem 0 5rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal.is-armed {
    opacity: 1;
    transform: none;
  }
}
