/* =========================================================
   GAURAV BIRTHDAY WEBSITE
   CLEAN STYLESHEET
   Matches the current index.html
========================================================= */

/* -----------------------------
   1. DESIGN TOKENS
----------------------------- */

:root {
  --cream: #fbf7f2;
  --paper: #fffdf9;
  --blush: #ead3cf;
  --rose: #a86668;
  --rose-dark: #73474c;
  --brown: #3f3030;
  --muted: #7b6967;
  --gold: #b7965a;
  --border: rgba(98, 71, 68, 0.16);
  --shadow: 0 24px 70px rgba(77, 49, 46, 0.12);
  --soft-shadow: 0 14px 38px rgba(77, 49, 46, 0.08);
}

/* -----------------------------
   2. RESET / BASE
----------------------------- */

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

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--brown);
  background:
    radial-gradient(circle at 20% 20%, rgba(234, 211, 207, 0.22), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(183, 150, 90, 0.10), transparent 35%),
    var(--cream);
  font-family: "Inter", sans-serif;
  line-height: 1.8;
}

button,
a,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

main {
  overflow: hidden;
}

/* -----------------------------
   3. PROGRESS BAR
----------------------------- */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

/* =========================================================
   4. PASSWORD SCREEN
========================================================= */

.password-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  background: #f3dfdc;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.password-screen.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-card {
  position: relative;
  z-index: 1;

  width: min(470px, 92vw);
  padding: 55px 45px;

  text-align: center;

  background: #fffaf6;
  border: 1px solid rgba(116, 72, 76, 0.15);
  border-radius: 30px;

  box-shadow: 0 25px 60px rgba(76, 49, 49, 0.12);
}

.password-kicker {
  margin: 0 0 18px;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;

  color: #b16d70;
}

.password-card h1 {
  margin: 0 0 15px;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1;

  color: #75484d;
}

.password-text {
  max-width: 330px;
  margin: 0 auto 30px;

  line-height: 1.6;
  color: #766563;
}

#birthday-password {
  display: block;

  width: 100%;
  margin-bottom: 14px;
  padding: 15px 18px;

  border: 1px solid rgba(116, 72, 76, 0.25);
  border-radius: 999px;
  outline: none;

  text-align: center;
  font-size: 0.95rem;

  background: #fff;
  color: #4e3939;
}

#birthday-password:focus {
  border-color: #8a5157;
  box-shadow: 0 0 0 3px rgba(138, 81, 87, 0.08);
}

#password-button {
  width: 100%;
  padding: 15px 20px;

  border: 0;
  border-radius: 999px;

  background: #7b484e;
  color: #fff;

  font-size: 0.95rem;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#password-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(123, 72, 78, 0.22);
}

#password-error {
  min-height: 20px;
  margin: 14px 0 0;

  font-size: 0.82rem;
  color: #a14f55;
}

.password-hint {
  margin: 17px 0 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-style: italic;

  color: #a18d89;
}

/* =========================================================
   5. INTRO / BIRTHDAY HERO
========================================================= */

.intro-screen {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 100svh;
  padding: 2rem;

  overflow: hidden;

  background:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
    radial-gradient(circle at center, #fffaf4 0%, #f3ddd9 55%, #e5c1be 100%);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;

  will-change: opacity, transform;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.intro-screen.fade-in {
  opacity: 1;
  transform: scale(1);
}

.intro-content {
  position: relative;
  z-index: 4;

  width: min(760px, 100%);

  text-align: center;

  animation: introIn 1.2s ease both;
}

.eyebrow,
.section-kicker {
  margin-top: 0;

  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--rose);
}

.intro-content h1 {
  margin: 0.35rem 0 1rem;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 11vw, 8.7rem);
  font-weight: 600;
  line-height: 0.82;
}

.intro-content h1 span {
  font-family: "Sacramento", cursive;
  font-weight: 400;

  color: var(--rose-dark);
}

.intro-subtitle {
  max-width: 560px;
  margin: 1.4rem auto 2rem;

  color: var(--muted);
}

.primary-button {
  padding: 1rem 1.6rem;

  border: 0;
  border-radius: 999px;

  background: var(--rose-dark);
  color: #fff;

  box-shadow: 0 14px 35px rgba(115, 71, 76, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(115, 71, 76, 0.32);
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;

  font-size: 0.78rem;
  color: rgba(63, 48, 48, 0.62);
}

/* Decorative lights */

.light-string {
  position: absolute;
  top: 0;

  display: flex;
  justify-content: space-around;

  width: 100%;
  padding: 0 4vw;
}

.light-string::before {
  content: "";

  position: absolute;
  top: 0;

  width: 100%;
  height: 2px;

  background: rgba(63, 48, 48, 0.22);
}

.light-string span {
  width: 14px;
  height: 25px;

  border-radius: 50% 50% 45% 45%;

  background: #ffd985;
  box-shadow: 0 0 20px #ffd985;

  animation: twinkle 1.5s infinite alternate;
}

.light-string span:nth-child(2n) {
  animation-delay: 0.3s;
  background: #f7b8b1;
  box-shadow: 0 0 20px #f7b8b1;
}

.light-string span:nth-child(3n) {
  animation-delay: 0.7s;
  background: #c9d9c3;
  box-shadow: 0 0 20px #c9d9c3;
}

/* Balloons */

.balloon {
  position: absolute;

  width: 82px;
  height: 105px;

  border-radius: 52% 48% 48% 52%;
  opacity: 0.58;

  animation: float 6s ease-in-out infinite;
}

.balloon::after {
  content: "";

  position: absolute;
  top: 100%;
  left: 50%;

  width: 1px;
  height: 130px;

  background: rgba(63, 48, 48, 0.25);
}

.balloon-one {
  top: 30%;
  left: 8%;

  background: #d89d9d;
  transform: rotate(-8deg);
}

.balloon-two {
  top: 20%;
  right: 10%;

  background: #d4bc83;
  animation-delay: -2s;
}

.balloon-three {
  right: 20%;
  bottom: 14%;

  background: #c2d0bc;
  animation-delay: -4s;
}

/* =========================================================
   6. FIXED MUSIC BUTTON
========================================================= */

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1400;

  display: flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.7rem 1rem;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 253, 249, 0.88);
  color: var(--brown);

  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.music-icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  background: var(--rose-dark);
  color: #fff;
}

/* =========================================================
   7. HEADER / NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 66px;
  padding: 0 5vw;

  background: rgba(251, 247, 242, 0.86);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;

  text-decoration: none;
  color: var(--rose-dark);
}

.menu-button {
  display: grid;
  place-content: center;
  gap: 5px;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: var(--paper);
}

.menu-button span {
  display: block;

  width: 18px;
  height: 1px;

  background: var(--brown);
}

.site-nav {
  position: fixed;
  top: 76px;
  right: 1rem;
  z-index: 1100;

  width: min(360px, calc(100% - 2rem));
  max-height: calc(100svh - 92px);
  padding: 1rem;

  overflow: auto;

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 24px;

  box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.site-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav a {
  display: block;

  padding: 0.75rem 0.9rem;

  border-radius: 12px;

  text-decoration: none;
  color: var(--brown);
}

.site-nav a:hover {
  background: var(--cream);
  color: var(--rose-dark);
}

/* =========================================================
   8. SHARED SECTION STYLES
========================================================= */

.story-section {
  position: relative;

  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section-number {
  margin-bottom: 0.4rem;

  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;

  color: var(--gold);
}

.story-section h2 {
  margin: 0.25rem 0 2rem;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;

  color: var(--rose-dark);
}

.story-section h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.story-section p {
  max-width: 780px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   9. PAGE 01 — BIRTHDAY NOTE
========================================================= */

.letter-paper {
  padding: clamp(1.5rem, 4vw, 4rem);

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 30px;

  box-shadow: var(--shadow);
}

.letter-paper p {
  max-width: 820px;
  margin: 0 0 1.3rem;
}

.letter-signoff {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;

  color: var(--rose-dark);
}

.remember-line {
  margin: 1rem 0;

  font-size: 1.05rem;
  color: var(--rose-dark);
}

.memory-lines {
  margin: 2rem 0;
  padding-left: 1.4rem;

  border-left: 2px solid var(--gold);
}

.memory-lines p {
  margin: 0.25rem 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;

  color: var(--rose-dark);
}

/* =========================================================
   10. PAGE 02 — WHAT I LOVE
========================================================= */

#what-i-love {
  max-width: 900px;
}

#what-i-love .split-copy {
  width: 100%;
}

.highlight-line {
  margin-top: 1rem;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.45;

  color: var(--rose-dark);
}

/* =========================================================
   11. PAGE 03 — OUR STORY
========================================================= */

.opening-quote {
  margin: 2.5rem 0 4rem;
  padding-left: 1.3rem;

  border-left: 2px solid var(--gold);

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.3;

  color: var(--rose-dark);
}

.timeline {
  position: relative;

  max-width: 880px;
  margin-left: auto;
}

.timeline::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 93px;

  width: 1px;

  background: var(--border);
}

.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 75px 1fr;
  column-gap: 40px;

  padding-bottom: 3.5rem;
}

.timeline-item::before {
  content: "";

  position: absolute;
  top: 8px;
  left: 87px;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: var(--rose);
  box-shadow: 0 0 0 7px var(--cream);
}

.timeline-date {
  padding-top: 0.25rem;

  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--gold);
}

.timeline-item h3,
.timeline-item p {
  grid-column: 2;
  margin-top: 0;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.memory-photo {
  display: flex;
  justify-content: center;

  margin: 5rem 0;
}

.polaroid {
  width: 240px;
  padding: 14px 14px 22px;

  background: #fff;
  border-radius: 6px;

  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);

  transform: rotate(-2deg);

  transition: transform 0.3s ease;
}

.polaroid:hover {
  transform: rotate(0) scale(1.03);
}

.polaroid img {
  display: block;

  width: 100%;

  border-radius: 4px;
}

.polaroid p {
  margin: 14px 0 0;

  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;

  color: var(--rose-dark);
}

/* =========================================================
   12. PAGE 04 — SOUNDTRACK
========================================================= */

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.song-card {
  min-width: 0;
  min-height: 280px;
  padding: 1.5rem;

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 22px;

  box-shadow: var(--soft-shadow);
}

.song-number {
  color: var(--gold);
}

.song-card h3 {
  margin-top: 0.7rem;
  margin-bottom: 1rem;
}

.song-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.song-card a {
  color: var(--rose-dark);
}

.song-lyric {
  margin: 1.25rem 0;
  padding-left: 1rem;

  border-left: 2px solid var(--gold);

  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  line-height: 1.5;

  color: var(--rose-dark);
}

/* =========================================================
   13. PAGE 05 — BULLY EVIDENCE
========================================================= */

.playful-section {
  width: 100%;
  max-width: none;

  padding-right: max(1rem, calc((100% - 1100px) / 2));
  padding-left: max(1rem, calc((100% - 1100px) / 2));

  background: #f1ded9;
}

.evidence-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.evidence-board article {
  padding: 1.5rem;

  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(115, 71, 76, 0.14);
  border-radius: 20px;
}

.evidence-board span {
  display: block;

  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--gold);
}

.evidence-board strong {
  display: block;

  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;

  color: var(--rose-dark);
}

/* Bauni */
#bully-evidence .evidence-board article:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

/* Forehead */
#bully-evidence .evidence-board article:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;

  width: 65%;
  justify-self: center;
}

/* Chudail */
#bully-evidence .evidence-board article:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.center-note {
  margin: 2rem auto 0;

  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

/* =========================================================
   14. PAGE 06 — LITTLE THINGS
========================================================= */

#so-you .so-you-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;

  margin-top: 2rem;
}

#so-you .so-you-card {
  padding: 1.15rem 1.25rem;

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow: 0 10px 28px rgba(77, 49, 46, 0.05);
}

#so-you .so-you-card p {
  margin: 0;

  font-size: 0.92rem;
  line-height: 1.55;
}

#so-you .thing-number {
  display: inline;

  margin-right: 0.3rem;

  color: var(--gold);
}

#so-you .so-you-card em {
  color: var(--rose-dark);
}

.dark-heart {
  color: var(--rose-dark);
}

/* =========================================================
   15. PAGE 07 — CAMERA ROLL
========================================================= */

/*
   DESKTOP:
   [ 1 ][ 2 ][ 3 ]
      [ 4 ][ 5 ]
*/

#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 20px;

  margin-top: 2rem;

  align-items: start;
}

#gallery .gallery-item {
  display: block;

  width: 100%;
  height: auto;
  min-width: 0;

  padding: 0;
  margin: 0;

  overflow: hidden;

  border: 0;
  border-radius: 20px;

  background: transparent;
}

#gallery .gallery-item img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;

  object-fit: contain;

  border-radius: 20px;
}

#gallery .gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

#gallery .gallery-item:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1;
}

#gallery .gallery-item:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 1;
}

#gallery .gallery-item:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
}

#gallery .gallery-item:nth-child(5) {
  grid-column: 4 / 6;
  grid-row: 2;
}

/* =========================================================
   16. PAGE 08 — FUTURE
========================================================= */

#future-normal .future-thoughts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin-top: 2.5rem;
}

#future-normal .future-thought {
  padding: 1.6rem 1.8rem;

  background: rgba(255, 253, 249, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
}

#future-normal .future-thought h3 {
  margin: 0 0 0.5rem;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;

  color: var(--rose-dark);
}

#future-normal .future-thought p {
  margin: 0;

  font-size: 0.9rem;
  line-height: 1.6;

  color: var(--muted);
}

#future-normal .small-thought {
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

#future-normal .small-thought h3 {
  margin: 0;
}

#future-normal .wide-thought {
  grid-column: 1 / -1;

  width: 75%;
  justify-self: center;
}

#future-normal .tiny-future-quote {
  margin-top: 1rem !important;
  padding-left: 0.8rem;

  border-left: 2px solid var(--gold);

  color: var(--rose-dark) !important;
}

#future-normal .final-thought {
  grid-column: 1 / -1;

  width: 60%;
  justify-self: center;

  padding-top: 2.5rem;

  text-align: center;

  background: transparent;
  border: 0;
}

#future-normal .final-thought p {
  margin-bottom: 0.3rem;
}

#future-normal .final-thought h3 {
  margin: 0;

  font-size: 2rem;
}

/* =========================================================
   17. PAGE 09 — FINAL LETTER
========================================================= */

#final-letter {
  max-width: 920px;
}

#final-letter .section-kicker {
  margin-bottom: 2rem;
}

#final-letter .final-birthday-letter {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);

  font-family: "Cormorant Garamond", serif;
  color: var(--brown);
}

#final-letter .final-birthday-letter p {
  max-width: 760px;
  margin: 0 0 1.15rem;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

#final-letter .final-letter-date {
  text-align: right;

  font-size: 0.85rem;

  color: var(--gold);
}

#final-letter .final-letter-opening {
  margin-bottom: 1.8rem;

  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;

  color: var(--rose-dark);
}

#final-letter .final-letter-highlight {
  font-size: 1.1rem !important;
  font-weight: 600;
  line-height: 1.5 !important;

  color: var(--rose-dark);
}

#final-letter .final-letter-quote {
  margin: 1.5rem 0;
  padding-left: 1rem;

  border-left: 2px solid var(--gold);

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;

  color: var(--rose-dark);
}

#final-letter .final-letter-ending {
  margin-top: 2.5rem;
}

#final-letter .final-letter-birthday {
  font-size: 1.25rem !important;
  font-weight: 600;

  color: var(--rose-dark);
}

#final-letter .final-letter-signature {
  margin-top: 1.5rem !important;

  font-size: 1.3rem !important;
  font-style: italic;

  color: var(--rose-dark);
}

#final-letter .final-letter-ps {
  margin-top: 2rem !important;

  font-size: 0.9rem !important;
  font-style: italic;

  color: var(--muted);
}

/* =========================================================
   18. TABLET
========================================================= */

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

  #so-you .so-you-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polaroid {
    width: 210px;
  }
}

/* =========================================================
   19. PHONE
========================================================= */

@media (max-width: 700px) {
  /* General */

  .story-section {
    width: calc(100% - 1.2rem);
    padding: 4.25rem 0;
  }

  .story-section h2 {
    font-size: clamp(2.75rem, 13vw, 3.6rem);
  }

  .section-kicker {
    font-size: 0.65rem;
  }

  /* Header */

  .site-header {
    height: 54px;
    padding: 0 0.85rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .menu-button {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    top: 62px;
    right: 0.6rem;

    width: min(300px, calc(100% - 1.2rem));
    max-height: calc(100svh - 75px);

    border-radius: 18px;
  }

  /* Music */

  .music-toggle {
    right: 0.6rem;
    bottom: 0.6rem;

    padding: 0.5rem 0.72rem;

    font-size: 0.78rem;
  }

  .music-icon {
    width: 24px;
    height: 24px;
  }

  /* Password */

  .password-card {
    padding: 42px 25px;
  }

  /* Page 01 */

  .letter-paper {
    padding: 1.4rem;
    border-radius: 20px;
  }

  /* Page 03 timeline */

  .timeline::before {
    left: 64px;
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
    column-gap: 28px;

    padding-bottom: 2.6rem;
  }

  .timeline-item::before {
    left: 58px;

    width: 11px;
    height: 11px;
  }

  .timeline-date {
    font-size: 0.68rem;
  }

  .timeline-item h3,
  .timeline-item p {
    grid-column: 2;
  }

  .timeline-item h3 {
    font-size: 1.35rem;
  }

  .timeline-item p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* Page 04 soundtrack */

  #soundtrack .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #soundtrack .song-card {
    width: 100%;
    min-height: 0;
  }

  /* Page 05 bully */

  #bully-evidence .evidence-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #bully-evidence .evidence-board article {
    padding: 1rem;
  }

  #bully-evidence .evidence-board article:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  #bully-evidence .evidence-board article:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  #bully-evidence .evidence-board article:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 75%;
  }

  #bully-evidence .evidence-board strong {
    font-size: 1.45rem;
  }

  #bully-evidence .evidence-board p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .center-note {
    font-size: 1.45rem;
  }

  /* Page 06 little things */

  #so-you .so-you-grid {
    grid-template-columns: 1fr;
    gap: 8px;

    margin-top: 1.25rem;
  }

  #so-you .so-you-card {
    padding: 0.85rem 1rem;

    border-radius: 14px;
  }

  #so-you .so-you-card p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* -----------------------------------------------------
     Page 07 Camera Roll
     Explicit rows prevent photo 5 from overlapping 3 / 4.

     [ 1 ][ 2 ]
     [ 3 ][ 4 ]
         [ 5 ]
  ----------------------------------------------------- */

  #gallery {
    min-height: 0;
    height: auto;
    padding-bottom: 1.5rem;
  }

  #gallery .gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    grid-auto-rows: auto;

    column-gap: 8px;
    row-gap: 8px;

    margin-top: 1rem;
    margin-bottom: 0;

    align-items: start;
  }

  #gallery .gallery-item {
    width: 100%;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    align-self: start;

    border-radius: 14px;
  }

  #gallery .gallery-item img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    border-radius: 14px;
  }

  #gallery .gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  #gallery .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  #gallery .gallery-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  #gallery .gallery-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  #gallery .gallery-item:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;

    width: calc(50% - 4px);
    justify-self: center;
  }

  /* Page 08 */

  #future-normal {
    padding-top: 2.5rem;
  }

  #future-normal .future-thoughts {
    grid-template-columns: 1fr;
    gap: 10px;

    margin-top: 1.5rem;
  }

  #future-normal .future-thought,
  #future-normal .wide-thought,
  #future-normal .final-thought {
    grid-column: auto;

    width: 100%;
  }

  #future-normal .future-thought {
    padding: 1rem 1.1rem;

    border-radius: 16px;
  }

  #future-normal .future-thought h3 {
    font-size: 1.35rem;
  }

  #future-normal .future-thought p {
    font-size: 0.8rem;
  }

  #future-normal .final-thought {
    padding-top: 2rem;
  }

  #future-normal .final-thought h3 {
    font-size: 1.6rem;
  }

  /* Page 09 */

  #final-letter {
    padding-right: 0;
    padding-left: 0;
  }

  #final-letter .final-birthday-letter {
    padding: 1.4rem;

    border-radius: 20px;
  }

  #final-letter .final-birthday-letter p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #final-letter .final-letter-opening {
    font-size: 1.2rem;
  }

  #final-letter .final-letter-highlight {
    font-size: 1rem !important;
  }

  #final-letter .final-letter-quote {
    font-size: 0.95rem;
  }

  #final-letter .final-letter-birthday {
    font-size: 1.15rem !important;
  }
}

/* =========================================================
   20. VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {
  .intro-screen {
    padding: 1.25rem;
  }

  .intro-content h1 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }

  .password-card {
    padding: 36px 20px;
  }

  .music-label {
    white-space: nowrap;
  }
}

/* =========================================================
   21. ANIMATIONS
========================================================= */

@keyframes introIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-22px) rotate(3deg);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}
