:root {
  --bg: #15120f;
  --bg-elevated: rgba(24, 18, 15, 0.72);
  --bg-soft: rgba(255, 248, 239, 0.08);
  --paper: rgba(248, 241, 231, 0.92);
  --paper-strong: #f8f1e7;
  --ink: #1e1713;
  --ink-soft: rgba(30, 23, 19, 0.72);
  --line: rgba(255, 248, 239, 0.14);
  --line-strong: rgba(255, 248, 239, 0.28);
  --accent: #8ea0b7;
  --accent-soft: #d6c0a1;
  --accent-glow: rgba(142, 160, 183, 0.22);
  --accent-glow-soft: rgba(214, 192, 161, 0.18);
  --shadow-lg: 0 28px 100px rgba(7, 4, 2, 0.28);
  --shadow-md: 0 18px 48px rgba(7, 4, 2, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --content-width: min(1220px, calc(100vw - 2rem));
  --transition: 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: rgba(255, 247, 238, 0.92);
  background:
    radial-gradient(circle at 12% 14%, var(--accent-glow), transparent 26%),
    radial-gradient(circle at 86% 12%, var(--accent-glow-soft), transparent 28%),
    linear-gradient(180deg, #18130f 0%, #100d0a 40%, #0d0a08 100%);
  transition:
    background 700ms ease,
    color var(--transition);
  overflow-x: hidden;
}

body[data-theme="light"] {
  --bg: #f5efe5;
  --bg-elevated: rgba(255, 251, 245, 0.78);
  --bg-soft: rgba(28, 20, 17, 0.06);
  --paper: rgba(255, 252, 247, 0.96);
  --paper-strong: #fffaf2;
  --ink: #221a16;
  --ink-soft: rgba(34, 26, 22, 0.74);
  --line: rgba(34, 26, 22, 0.12);
  --line-strong: rgba(34, 26, 22, 0.2);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, var(--accent-glow), transparent 28%),
    radial-gradient(circle at 84% 10%, var(--accent-glow-soft), transparent 30%),
    linear-gradient(180deg, #f7f1e7 0%, #efe7da 100%);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  transition: top var(--transition);
}

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

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.backdrop__glow,
.backdrop__lines,
.backdrop__grain {
  position: absolute;
  inset: 0;
}

.backdrop__lines {
  opacity: 0.42;
  background-image:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.04) 12.2%, transparent 12.4%),
    linear-gradient(transparent 0 24%, rgba(255, 255, 255, 0.03) 24.2%, transparent 24.4%),
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.3px);
  background-size: 24rem 24rem, 18rem 18rem, 6rem 6rem;
  mix-blend-mode: screen;
  animation: drift-lines 28s linear infinite;
}

.backdrop__grain {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.6) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.45) 0 0.4px, transparent 0.7px);
  background-size: 11rem 11rem, 14rem 14rem, 9rem 9rem;
  mix-blend-mode: overlay;
  animation: grain-float 14s steps(10) infinite;
}

.hero,
.book-section,
.closing {
  width: var(--content-width);
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4.5rem, 7vw, 7rem) 0 2.25rem;
}

.hero__copy {
  max-width: 39rem;
}

.eyebrow {
  margin: 0 0 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255, 247, 238, 0.68);
}

body[data-theme="light"] .eyebrow {
  color: rgba(34, 26, 22, 0.64);
}

.hero h1,
.section-head h2,
.closing h2,
.page-paper h3,
.cover-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  line-height: 0.92;
}

.hero__subtitle {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: rgba(255, 247, 238, 0.82);
}

body[data-theme="light"] .hero__subtitle {
  color: rgba(34, 26, 22, 0.82);
}

.hero__supporting,
.closing__copy {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 247, 238, 0.64);
}

body[data-theme="light"] .hero__supporting,
body[data-theme="light"] .closing__copy {
  color: rgba(34, 26, 22, 0.66);
}

.hero__actions,
.closing__actions,
.page-actions,
.book-controls,
.book-controls__left,
.book-controls__right,
.section-head,
.section-head__meta,
.page-meta,
.cover-card__meta {
  display: flex;
  align-items: center;
}

.hero__actions,
.closing__actions,
.page-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 2rem;
}

.button,
.icon-button,
.audio-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    opacity var(--transition);
}

.button,
.audio-button {
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
}

.icon-button {
  width: 3rem;
  height: 3rem;
}

.button:hover,
.icon-button:hover,
.audio-button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.audio-button:focus-visible,
.book-track:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #140f0d;
  box-shadow: var(--shadow-md);
}

.button--ghost,
.icon-button,
.audio-button {
  border-color: var(--line);
  background: rgba(255, 248, 239, 0.03);
  color: inherit;
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .button--ghost,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .audio-button {
  background: rgba(255, 255, 255, 0.52);
}

.hero__cover {
  justify-self: end;
  width: min(100%, 35rem);
}

.cover-card {
  position: relative;
  min-height: 38rem;
  border-radius: calc(var(--radius-xl) + 6px);
  padding: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 248, 239, 0.06), rgba(255, 248, 239, 0.02)),
    rgba(255, 248, 239, 0.02);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

body[data-theme="light"] .cover-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 252, 247, 0.52)),
    rgba(255, 255, 255, 0.52);
}

.cover-card__inner {
  position: absolute;
  inset: 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(17, 13, 11, 0.24), rgba(17, 13, 11, 0.68)),
    transparent;
}

body[data-theme="light"] .cover-card__inner {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.14), rgba(22, 18, 14, 0.18)),
    transparent;
}

.cover-card__chapter,
.cover-card__line,
.cover-card__meta {
  margin: 0;
}

.cover-card__chapter {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 247, 238, 0.8);
}

body[data-theme="light"] .cover-card__chapter {
  color: rgba(255, 255, 255, 0.84);
}

.cover-card h2 {
  margin: auto 0 1rem;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 0.88;
  color: rgba(255, 252, 247, 0.95);
}

.cover-card__line {
  max-width: 18rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 247, 238, 0.76);
}

.cover-card__meta {
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 247, 238, 0.88);
}

.cover-card__meta span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.12);
  backdrop-filter: blur(10px);
}

.cover-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 2px);
  filter: saturate(1.05) contrast(1.02);
}

.book-section {
  padding: 3rem 0 4rem;
}

.section-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  line-height: 0.96;
}

.section-head__meta {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 247, 238, 0.64);
  font-size: 0.95rem;
}

body[data-theme="light"] .section-head__meta {
  color: rgba(34, 26, 22, 0.62);
}

.section-head__meta p {
  margin: 0;
}

.book-controls {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.book-controls__left,
.book-controls__right {
  gap: 0.8rem;
}

.page-indicator {
  min-width: 7rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.05);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  justify-content: center;
}

body[data-theme="light"] .page-indicator {
  background: rgba(255, 255, 255, 0.48);
}

.page-indicator__slash {
  opacity: 0.48;
  margin-inline: 0.35rem;
}

.progress-shell {
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 248, 239, 0.12);
}

body[data-theme="light"] .progress-shell {
  background: rgba(34, 26, 22, 0.1);
}

.progress-line {
  width: 5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.book-hint,
.speech-status,
.closing__note,
.page-note,
.prompt summary,
.prompt p,
.page-duration,
.page-ambient,
.page-number {
  color: rgba(255, 247, 238, 0.62);
}

body[data-theme="light"] .book-hint,
body[data-theme="light"] .speech-status,
body[data-theme="light"] .closing__note,
body[data-theme="light"] .page-note,
body[data-theme="light"] .prompt summary,
body[data-theme="light"] .prompt p,
body[data-theme="light"] .page-duration,
body[data-theme="light"] .page-ambient,
body[data-theme="light"] .page-number {
  color: rgba(34, 26, 22, 0.58);
}

.book-hint,
.speech-status {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.speech-status {
  min-height: 1.4rem;
}

.book-shell {
  position: relative;
  margin-top: 1.6rem;
}

.book-shell::before {
  content: "";
  position: absolute;
  inset: 8% 6% auto;
  height: 72%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-glow-soft), transparent 68%);
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
}

.book-track {
  position: relative;
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  padding: 0.5rem max(5vw, calc((100vw - min(1220px, 100vw - 2rem)) / 2))
    1rem;
  margin-inline: calc((var(--content-width) - 100vw) / 2);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50vw;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.book-track::-webkit-scrollbar {
  display: none;
}

.book-track.is-dragging {
  cursor: grabbing;
}

.book-page {
  flex: 0 0 min(1080px, 88vw);
  scroll-snap-align: center;
  transform: scale(0.968);
  opacity: 0.58;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease;
}

.book-page.is-current {
  transform: scale(1);
  opacity: 1;
}

.page-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(21rem, 0.88fr);
  min-height: min(76vh, 50rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.02);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .page-card {
  background: rgba(255, 255, 255, 0.42);
}

.page-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(50% - 1px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.page-visual,
.page-paper {
  position: relative;
  min-width: 0;
}

.page-visual {
  overflow: hidden;
  background: #120f0d;
}

.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform:
    scale(1.05)
    translate3d(calc(var(--page-offset, 0) * -14px), 0, 0);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 9, 8, 0.02), rgba(12, 9, 8, 0.34)),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.24), transparent 22%);
}

.visual-caption {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 2;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.visual-pill {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.14);
  border: 1px solid rgba(255, 250, 244, 0.24);
  color: rgba(255, 250, 244, 0.94);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.page-paper {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(180deg, rgba(248, 241, 231, 0.98), rgba(244, 235, 223, 0.88)),
    var(--paper-strong);
  color: var(--ink);
}

body[data-theme="light"] .page-paper {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 245, 236, 0.92)),
    var(--paper-strong);
}

.page-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-number,
.page-ambient,
.page-duration {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-number {
  color: rgba(30, 23, 19, 0.52);
}

.page-paper h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.96;
}

.page-meta {
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.scene-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 23, 19, 0.06);
  color: rgba(30, 23, 19, 0.74);
  font-size: 0.85rem;
}

.page-duration,
.page-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(30, 23, 19, 0.58);
}

.poem {
  position: relative;
  margin-top: 0.5rem;
  padding-top: 1.15rem;
}

.poem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.poem p {
  margin: 0;
}

.poem-line {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.42rem, 2.1vw, 1.8rem);
  line-height: 1.46;
  letter-spacing: 0.01em;
  color: rgba(30, 23, 19, 0.92);
  transition:
    color var(--transition),
    transform var(--transition);
}

.poem-line + .poem-line {
  margin-top: 0.12rem;
}

.poem-line--featured {
  position: relative;
  padding-left: 0.8rem;
  color: #352822;
}

.poem-line--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.45rem;
  height: 1px;
  background: var(--accent);
}

.book-page.is-speaking .poem-line {
  transform: translateX(2px);
}

.book-page.is-speaking .poem-line--featured {
  color: #241712;
}

.page-actions {
  margin-top: auto;
}

.audio-button[data-action="read"] .wave {
  width: 1rem;
  height: 0.95rem;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.12rem;
  align-items: end;
}

.audio-button[data-action="read"] .wave span {
  width: 0.18rem;
  height: 35%;
  border-radius: 999px;
  background: currentColor;
  transform-origin: bottom center;
}

.book-page.is-speaking .audio-button[data-action="read"] .wave span {
  animation: pulse-wave 850ms ease-in-out infinite;
}

.book-page.is-speaking .audio-button[data-action="read"] .wave span:nth-child(2) {
  animation-delay: 0.12s;
}

.book-page.is-speaking .audio-button[data-action="read"] .wave span:nth-child(3) {
  animation-delay: 0.24s;
}

.audio-button.is-active {
  background: rgba(30, 23, 19, 0.08);
  border-color: rgba(30, 23, 19, 0.14);
  color: rgba(30, 23, 19, 0.92);
}

.audio-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.prompt {
  margin-top: 0.2rem;
  border-top: 1px solid rgba(30, 23, 19, 0.08);
  padding-top: 0.9rem;
}

.prompt summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(30, 23, 19, 0.58);
}

.prompt summary::-webkit-details-marker {
  display: none;
}

.prompt p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(30, 23, 19, 0.64);
}

.closing {
  padding: 2rem 0 5rem;
}

.closing__card {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.08), rgba(255, 248, 239, 0.03)),
    rgba(255, 248, 239, 0.02);
  box-shadow: var(--shadow-md);
}

body[data-theme="light"] .closing__card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 249, 242, 0.7)),
    rgba(255, 255, 255, 0.68);
}

.closing h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.closing__actions {
  margin-top: 2rem;
}

.closing__note {
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 13, 10, 0.88);
  color: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(255, 250, 244, 0.12);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition);
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .hero__cover {
    justify-self: stretch;
    width: 100%;
  }

  .cover-card {
    min-height: 30rem;
  }

  .section-head,
  .book-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head__meta {
    justify-content: flex-start;
  }

  .book-page {
    flex-basis: min(92vw, 48rem);
  }

  .page-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-card::after {
    inset: calc(52% - 1px) 0 auto;
    width: auto;
    height: 1px;
  }

  .page-visual {
    min-height: 19rem;
  }

  .page-actions {
    margin-top: 0.5rem;
  }
}

@media (max-width: 720px) {
  .hero,
  .book-section,
  .closing {
    width: min(100vw - 1.25rem, 100%);
  }

  .hero {
    min-height: auto;
    padding: 4.25rem 0 2.2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.25rem);
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .book-track {
    gap: 0.85rem;
    padding-inline: 0.75rem;
    margin-inline: -0.625rem;
  }

  .book-page {
    flex-basis: calc(100vw - 1.75rem);
  }

  .page-paper {
    padding: 1.35rem;
  }

  .page-paper h3 {
    font-size: 2.1rem;
  }

  .poem-line {
    font-size: 1.38rem;
  }

  .page-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    gap: 0.65rem;
  }

  .audio-button,
  .button {
    width: 100%;
  }

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

  .cover-card__inner {
    padding: 1.3rem;
  }

  .cover-card h2 {
    font-size: 3.25rem;
  }
}

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

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

@keyframes pulse-wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes drift-lines {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-3rem, 2rem, 0);
  }
}

@keyframes grain-float {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(-0.3rem, 0.15rem, 0);
  }

  50% {
    transform: translate3d(0.35rem, -0.12rem, 0);
  }

  75% {
    transform: translate3d(-0.2rem, 0.2rem, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}
