/* Riverwright Studios website. Plain CSS: no build step, no scripts, nothing loaded from other sites. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}

/* Soft cross-fade between pages in browsers that support it. */
@view-transition {
  navigation: auto;
}

:root {
  color-scheme: light dark;

  /* Paper: the light sections. */
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --ink: #12262b;
  --muted: #4d6166;
  --line: #dcd5c6;
  --accent: #17656f;
  --accent-strong: #0f4a52;
  --warm: #a9551f;
  --on-accent: #ffffff;

  /* Night: the hero, the dark bands and the footer. The same in light and dark mode. */
  --night: #071a1e;
  --night-2: #0b2a30;
  --night-ink: #eef5f3;
  --night-muted: #a9c2c1;
  --night-line: rgb(255 255 255 / 0.13);
  --aqua: #7fd6d3;
  --amber: #f0b565;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --radius: 1.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1719;
    --surface: #122124;
    --ink: #e7efed;
    --muted: #a1b5b4;
    --line: #22373b;
    --accent: #7acdd0;
    --accent-strong: #a5e0e2;
    --warm: #f0b565;
    --on-accent: #06262a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Room for the floating navigation when the page scrolls to an in-page link. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

::selection {
  background: var(--aqua);
  color: #06262a;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
}

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

.night :focus-visible,
.site-nav :focus-visible {
  outline-color: var(--aqua);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

em {
  font-style: italic;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.night {
  background: var(--night);
  color: var(--night-ink);
}

.skip {
  position: fixed;
  left: -999rem;
  top: 0.5rem;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.skip:focus {
  left: var(--gutter);
}

/* Small mono label used above headings. */

/* A short plain label above a heading, where it helps you know which part of the page you are in. */
.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font: 500 1.02rem/1.3 var(--sans);
}

.night .kicker {
  color: var(--night-muted);
}

/* Floating navigation */

.site-nav {
  position: fixed;
  z-index: 20;
  top: clamp(0.6rem, 1.6vw, 1rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  view-transition-name: site-nav;
}

.pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  padding: 0.45rem 0.45rem 0.45rem 0.95rem;
  background: rgb(8 28 32 / 0.93);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.2);
  color: var(--night-ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--night-ink);
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand svg {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
}

/* The logo: a maker's plate with RS cut out of it (letters are outlines of Fraunces). */
.mark-plate {
  fill: var(--aqua);
}

.pill-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.92rem;
}

.pill-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--night-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.pill-links a:hover,
.pill-links a[aria-current="page"] {
  color: var(--night-ink);
  background: rgb(255 255 255 / 0.09);
}

.pill-links .nav-cta,
.pill-links .nav-cta[aria-current="page"] {
  margin-left: 0.35rem;
  padding-inline: 1.15rem;
  background: var(--night-ink);
  color: #06262a;
  font-weight: 600;
}

.pill-links .nav-cta:hover {
  background: #ffffff;
  color: #06262a;
}

@media (max-width: 46rem) {
  .nav-section {
    display: none;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.night .btn-primary {
  background: var(--night-ink);
  color: #06262a;
}

.night .btn-primary:hover {
  background: #ffffff;
  color: #06262a;
}

.night .btn-quiet {
  border-color: rgb(255 255 255 / 0.3);
  color: var(--night-ink);
}

.night .btn-quiet:hover {
  border-color: var(--aqua);
  color: #ffffff;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 7.5rem clamp(4.5rem, 11vh, 7.5rem);
  background: radial-gradient(130% 100% at 0% 100%, var(--night-2) 0%, var(--night) 62%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Each band of water is its own layer so it can drift on its own. The layers are a little
   larger than the hero so the drift never shows an edge. */
.hero-art svg {
  position: absolute;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
}

.layer {
  filter: drop-shadow(-16px 14px 26px rgb(0 0 0 / 0.38));
}

.edge {
  fill: none;
  stroke: rgb(255 255 255 / 0.16);
  stroke-width: 1.5;
}

.flow path {
  fill: none;
  stroke: rgb(255 255 255 / 0.2);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 130 330;
}

.grain {
  position: absolute;
  inset: 0;
  background: url("/assets/grain.svg");
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

/* Keeps the headline readable where the water passes behind it. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top right, rgb(4 18 21 / 0.9) 0%, rgb(4 18 21 / 0.55) 34%, rgb(4 18 21 / 0) 60%);
  pointer-events: none;
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(3.1rem, 10.6vw, 9.75rem);
  font-weight: 370;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero h1 em {
  color: var(--amber);
  font-weight: 330;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
}

.lede {
  max-width: 31rem;
  margin: 0;
  color: var(--night-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(1.75rem, 5vw, 4.5rem);
  max-width: none;
  fill: var(--bg);
}

.wave-top {
  top: -1px;
  bottom: auto;
  transform: scale(-1, -1);
}

.wave-flip {
  transform: scaleX(-1);
}

/* Sections */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
}

/* In-page links (What we make, How we work, The studio) land their section in the middle of the
   screen. Each link points at an empty .anchor placed halfway down the section's content, and the
   anchor is scrolled to the middle of the space below the navigation. When the content is taller
   than that space, the anchor sits higher instead, so the section starts just under the navigation
   and its heading is never cut off. */
.section > .wrap,
.cta > .wrap {
  position: relative;
}

.anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 0;
  top: min(50%, calc(50vh - 3rem));
  top: min(50%, calc(50svh - 3rem));
  scroll-margin-top: calc(50vh - 3rem);
  scroll-margin-top: calc(50svh - 3rem);
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section-head h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  font-weight: 380;
  letter-spacing: -0.03em;
}

/* Statement */

.statement {
  padding-top: clamp(4rem, 9vw, 7rem);
}

.statement .wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.55fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.statement .kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.big {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 3.7rem);
  font-weight: 360;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.big em {
  color: var(--warm);
}

.aside {
  color: var(--muted);
  font-size: 1.05rem;
}

.aside p:last-child {
  margin-bottom: 0;
}

@media (max-width: 56rem) {
  .statement .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* What we make */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 60rem) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -28px rgb(7 40 46 / 0.45);
}

.tile-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, #10454d 0%, var(--night) 100%);
}

.tile-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.tile:hover .tile-art svg {
  transform: scale(1.05);
}

@media (max-width: 60rem) {
  .tile-art {
    aspect-ratio: 16 / 9;
  }
}

.tile-body {
  padding: 1.5rem 1.6rem 1.8rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.95rem;
  color: var(--muted);
  font: 500 0.95rem/1.3 var(--sans);
}

.tile h3 {
  margin-bottom: 0.6rem;
  font-size: 1.75rem;
  font-weight: 420;
}

.tile p:last-child {
  margin: 0;
  color: var(--muted);
}

.note {
  display: flex;
  align-items: baseline;
  max-width: 46rem;
  gap: 0.75rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.note::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--warm);
}

/* How we work */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--night-line);
}

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.75rem clamp(1.25rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.75rem, 4vw, 2.9rem);
  border-bottom: 1px solid var(--night-line);
}

.rows h3 {
  font-size: clamp(1.75rem, 3.7vw, 2.9rem);
  font-weight: 370;
  letter-spacing: -0.025em;
  transition: color 0.35s, transform 0.45s var(--ease);
}

.rows li:hover h3 {
  color: var(--aqua);
  transform: translateX(0.6rem);
}

.rows p {
  max-width: 34rem;
  margin: 0;
  color: var(--night-muted);
}

@media (max-width: 54rem) {
  .rows li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The studio */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 7vw, 6rem);
  align-items: start;
}

@media (max-width: 58rem) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prose h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  font-weight: 380;
  letter-spacing: -0.03em;
}

.prose p {
  max-width: 36rem;
}

/* The word "wright", set like a dictionary entry. */
.entry {
  max-width: 36rem;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.entry-word {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 420;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.entry-word span {
  color: var(--muted);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.entry p:last-child {
  margin: 0;
  color: var(--muted);
}

.facts {
  margin: 0;
  padding: 0.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts div {
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}

.facts div:first-child {
  border-top: 0;
}

.facts dt {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font: 500 0.72rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Contact band */

.cta {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
}

.cta h2 {
  font-size: clamp(3.2rem, 12vw, 10rem);
  font-weight: 360;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.cta h2 em {
  color: var(--amber);
  font-weight: 330;
}

.cta p {
  max-width: 34rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  color: var(--night-muted);
  font-size: 1.15rem;
}

.mail {
  display: inline-block;
  padding-bottom: 0.12em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.4vw, 3.1rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s, background-size 0.5s var(--ease);
}

.mail:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.night .mail {
  color: var(--night-ink);
}

.night .mail:hover {
  color: var(--aqua);
}

/* Inner pages */

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(8.5rem, 17vw, 12rem) clamp(4.5rem, 9vw, 7rem);
  background: radial-gradient(130% 120% at 0% 100%, var(--night-2) 0%, var(--night) 62%);
}

.masthead-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.masthead-art svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  min-width: 38rem;
  height: auto;
  max-width: none;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top right, rgb(4 18 21 / 0.92) 0%, rgb(4 18 21 / 0.6) 38%, rgb(4 18 21 / 0) 66%);
  pointer-events: none;
}

.masthead h1 em {
  color: var(--amber);
  font-weight: 330;
}

/* The privacy and terms pages: a quiet paper header, so the text is the first thing you read. */
.masthead-plain {
  padding-block: clamp(7.5rem, 13vw, 9.5rem) clamp(2rem, 4vw, 3rem);
  background: none;
  border-bottom: 1px solid var(--line);
}

.masthead-plain::after {
  content: none;
}

.masthead.masthead-plain h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.masthead.masthead-plain p:not(.kicker) {
  color: var(--muted);
}

/* The not-found page is a single full-height masthead. */
.masthead-full {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
}

.masthead h1 {
  font-size: clamp(2.9rem, 8.4vw, 6.75rem);
  font-weight: 370;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.masthead p:not(.kicker) {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  color: var(--night-muted);
  font-size: 1.15rem;
}

.masthead .actions {
  margin-top: 2rem;
}

.page {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem);
}

.doc {
  max-width: 44rem;
}

.doc h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: 1.7rem;
  font-weight: 430;
  letter-spacing: -0.015em;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc .updated {
  margin-bottom: 2rem;
  color: var(--muted);
  font: 500 0.78rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  max-width: 44rem;
  margin-bottom: 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel .meta {
  justify-content: flex-start;
}

.panel .mail {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 4.4vw, 2.5rem);
}

.panel .mail:hover {
  color: var(--accent);
}

.panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

@media (max-width: 52rem) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

.foot-col h2 {
  margin-bottom: 0.9rem;
  color: var(--night-ink);
  font: 500 0.72rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--night-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer a.brand {
  color: var(--night-ink);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.85rem;
}

.legal p {
  margin: 0;
}

.legal .fineprint {
  max-width: 40rem;
  opacity: 0.8;
}

/* The oversized outlined name that closes every page. Decorative. */
.wordmark {
  margin: clamp(1.5rem, 4vw, 3rem) 0 -0.17em;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(4.2rem, 19.5vw, 19rem);
  font-weight: 380;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.2);
  -webkit-user-select: none;
  user-select: none;
}

/* Motion: one moment on load (the hero headline rising) and the slow drift of the water.
   It is all decoration: with reduced motion, the content is simply there. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes drift-a {
    from {
      transform: translate3d(-0.9%, 0.7%, 0);
    }

    to {
      transform: translate3d(0.8%, -0.9%, 0);
    }
  }

  @keyframes drift-b {
    from {
      transform: translate3d(1%, -0.6%, 0);
    }

    to {
      transform: translate3d(-1.1%, 0.9%, 0);
    }
  }

  @keyframes flow {
    to {
      stroke-dashoffset: -460;
    }
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translate3d(0, 2.25rem, 0);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .layer-a {
    animation: drift-a 26s ease-in-out infinite alternate;
  }

  .layer-b {
    animation: drift-b 31s ease-in-out infinite alternate;
  }

  .layer-c {
    animation: drift-a 37s ease-in-out infinite alternate-reverse;
  }

  .layer-d {
    animation: drift-b 43s ease-in-out infinite alternate-reverse;
  }

  .flow path {
    animation: flow 14s linear infinite;
  }

  .flow path:nth-child(2) {
    animation-duration: 18s;
  }

  .flow path:nth-child(3) {
    animation-duration: 23s;
  }

  .hero .kicker,
  .hero h1,
  .hero-foot,
  .masthead .kicker,
  .masthead h1,
  .masthead p:not(.kicker),
  .masthead .actions {
    animation: rise 1s var(--ease) both;
  }

  .hero h1,
  .masthead h1 {
    animation-delay: 0.08s;
  }

  .hero-foot,
  .masthead p:not(.kicker),
  .masthead .actions {
    animation-delay: 0.2s;
  }
}

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

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

@media print {
  .site-nav,
  .hero-art,
  .masthead-art,
  .wordmark {
    display: none;
  }
}
