/* =============================================================================
   N&N — "Keepsake" stylesheet
   A printed love-letter, in the browser.
   ============================================================================= */

:root {
  /* paper & ink */
  --paper:        #f6efe3;
  --paper-deep:   #efe5d4;
  --paper-card:   #fbf6ec;
  --ink:          #2b2520;
  --ink-soft:     #5b5147;
  --ink-faint:    #8a7d6e;

  /* accents */
  --rose:         #b15a4e;   /* rosewood */
  --rose-deep:    #8f4339;
  --gold:         #b08a4f;
  --sage:         #6f7a5a;
  --line:         rgba(43, 37, 32, 0.14);

  /* type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Newsreader", Georgia, serif;

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  overflow-x: hidden;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-underline-offset: 3px; }

/* paper grain overlay — fixed, behind everything interactive */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* warm vignette for depth */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(176,138,79,0.10), transparent 55%),
              radial-gradient(130% 100% at 50% 120%, rgba(43,37,32,0.10), transparent 60%);
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; padding: clamp(64px, 10vw, 130px) 0; }
.section-rule { height: 1px; background: var(--line); max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--display);
  font-weight: 340;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--rose-deep); }
.lede { color: var(--ink-soft); max-width: 56ch; font-size: 1.08rem; }

/* custom scrollbar */
html { scrollbar-color: var(--rose) var(--paper-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 10px; border: 2px solid var(--paper-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--rose-deep); }

/* ============================================================================
   NAV — glass pill, appears after the hero
   ============================================================================ */
#nav {
  position: fixed; top: 16px; left: 50%; transform: translate(-50%, -130%);
  z-index: 40; display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-radius: 999px;
  background: rgba(251,246,236,0.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(43,37,32,0.10);
  box-shadow: 0 10px 30px rgba(43,37,32,0.12);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  opacity: 0; max-width: calc(100vw - 24px);
}
#nav.show { transform: translate(-50%, 0); opacity: 1; }
#nav .brand {
  font-family: var(--display); font-style: italic; color: var(--rose-deep);
  font-size: 1.05rem; padding: 0 10px 0 8px; letter-spacing: -0.02em;
}
#nav a {
  font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--ink-soft); text-decoration: none; padding: 7px 13px;
  border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s;
}
#nav a:hover { background: rgba(177,90,78,0.12); color: var(--rose-deep); }

/* desktop: links sit inline in the pill */
#nav .nav-links { display: flex; align-items: center; gap: 2px; }
#navToggle { display: none; }

/* ---- mobile: hamburger + anchored dropdown panel ----
   NOTE: #nav has a transform, which makes it the containing block for any
   positioned descendant. So the menu is positioned (absolute) relative to the
   pill itself — a dropdown beneath it — instead of a fixed full-screen overlay
   (which would collapse to the pill's size because of that transform). */
@media (max-width: 760px) {
  #nav { gap: 0; }
  #nav .brand { margin-right: auto; padding-right: 14px; }
  #navToggle {
    display: block; background: none; border: none; cursor: pointer;
    font-family: var(--display); font-size: 1.4rem; line-height: 1;
    color: var(--ink); width: 40px; height: 40px; position: relative; z-index: 2;
  }
  #nav .nav-links {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) scale(0.96); transform-origin: top center;
    flex-direction: column; align-items: stretch; gap: 2px;
    width: max-content; min-width: 200px; max-width: calc(100vw - 32px);
    padding: 8px; border-radius: 20px;
    background: rgba(251,246,236,0.97); backdrop-filter: blur(16px);
    border: 1px solid rgba(43,37,32,0.10);
    box-shadow: 0 18px 44px rgba(43,37,32,0.20);
    opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  #nav.menu-open .nav-links {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) scale(1);
  }
  #nav .nav-links a {
    font-size: 1.05rem; padding: 11px 18px; text-align: center; border-radius: 12px;
  }
}

/* ============================================================================
   GATE — the sealed envelope
   ============================================================================ */
#gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background:
    radial-gradient(140% 120% at 50% 0%, #f3e7d2, var(--paper-deep) 70%);
  padding: 28px;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#gate.open { opacity: 0; visibility: hidden; }
.envelope {
  width: min(440px, 100%); text-align: center;
  position: relative;
}
.wax {
  width: 78px; height: 78px; margin: 0 auto 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--rose-deep) 75%);
  box-shadow: inset 0 -4px 10px rgba(0,0,0,0.3), 0 8px 22px rgba(143,67,57,0.35);
  display: grid; place-items: center;
  font-family: var(--display); font-style: italic; color: #f3ddd2;
  font-size: 1.5rem; letter-spacing: -0.04em;
  transform: rotate(-6deg);
}
.gate-q {
  font-family: var(--display); font-weight: 340;
  font-size: 1.55rem; line-height: 1.25; margin-bottom: 6px;
}
.gate-hint { color: var(--ink-soft); font-style: italic; margin-bottom: 26px; }
.gate-form { display: flex; gap: 10px; }
.gate-form input {
  flex: 1; font-family: var(--body); font-size: 1.05rem;
  padding: 14px 16px; color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 2px; outline: none;
  transition: border-color .25s;
}
.gate-form input:focus { border-color: var(--rose); }
.btn {
  font-family: var(--display); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0 22px; cursor: pointer;
  color: var(--paper); background: var(--ink);
  border: none; border-radius: 2px;
  transition: background .25s, transform .15s;
}
.btn:hover { background: var(--rose-deep); }
.btn:active { transform: translateY(1px); }
.gate-error { color: var(--rose-deep); font-style: italic; height: 1.4em; margin-top: 14px; opacity: 0; transition: opacity .2s; }
.gate-error.show { opacity: 1; }

/* ============================================================================
   HERO
   ============================================================================ */
#hero { padding-top: clamp(90px, 16vh, 180px); text-align: center; }
.hero-names {
  font-family: var(--display);
  font-weight: 320;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero-names .amp {
  font-style: italic; color: var(--rose-deep);
  font-size: 0.7em; vertical-align: 0.04em; margin: 0 0.06em;
}
.hero-intro {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--ink-soft);
  margin: 26px auto 0; max-width: 38ch;
}

/* live counter */
.counter {
  margin-top: clamp(46px, 7vw, 80px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(14px, 4vw, 48px);
}
.counter .unit { min-width: 64px; }
.counter .num {
  font-family: var(--display); font-weight: 360;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.counter .lab {
  font-family: var(--display);
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 10px;
}
.counter .sep { align-self: center; color: var(--line); font-size: 2rem; display: none; }
.counter-since {
  margin-top: 30px; color: var(--ink-faint); font-style: italic; font-size: 0.95rem;
}

.scroll-cue {
  margin-top: clamp(40px, 8vw, 80px);
  font-family: var(--display); font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue::after { content: ""; display: block; width: 1px; height: 46px; margin: 14px auto 0;
  background: linear-gradient(var(--ink-faint), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0%,100%{ opacity:.3; transform: scaleY(.6);} 50%{ opacity:1; transform: scaleY(1);} }

/* ============================================================================
   TIMELINE
   ============================================================================ */
.timeline { margin-top: 44px; }

/* ---------- year jump chips (sticky so you never scroll far) ---------- */
.sheet-nav {
  position: sticky; top: 64px; z-index: 8;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  width: fit-content; max-width: 100%; margin: 0 auto 44px; padding: 8px 10px;
  background: rgba(246,239,227,0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 40px;
  box-shadow: 0 8px 24px rgba(43,37,32,0.08);
}
.yr-chip {
  font-family: var(--display); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--ink-soft); text-decoration: none;
  padding: 6px 15px; border-radius: 30px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.yr-chip:hover { background: rgba(177,90,78,0.14); color: var(--rose-deep); }
.yr-chip.active { background: var(--rose); color: var(--paper); }

/* ---------- one year = one film contact sheet ---------- */
.year-block { margin-bottom: clamp(46px, 7vw, 84px); scroll-margin-top: 128px; }
.year-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.year-num {
  font-family: var(--display); font-weight: 340; line-height: 0.9; color: var(--ink);
  font-size: clamp(2.3rem, 7vw, 3.8rem);
}
.year-count { font-family: var(--display); font-style: italic; font-size: 0.95rem; color: var(--rose); }

.sheet {
  display: grid; gap: clamp(8px, 1.3vw, 13px);
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

/* each frame: a tiny film print, click to open the day's gallery */
.frame {
  position: relative; display: block; cursor: pointer; font: inherit;
  background: var(--paper-card); padding: 6px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 16px rgba(43,37,32,0.14);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.frame img {
  display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--paper-deep); filter: sepia(0.08) saturate(0.95);
}
.frame:hover { transform: scale(1.07) rotate(-1deg); z-index: 5;
  box-shadow: 0 16px 34px rgba(43,37,32,0.3); }
.frame:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* date strip, revealed on hover/focus */
.frame-cap {
  position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 14px 8px 6px;
  font-family: var(--display); font-weight: 500; font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper);
  text-align: left; pointer-events: none;
  background: linear-gradient(to top, rgba(26,22,18,0.72), rgba(26,22,18,0));
  opacity: 0; transition: opacity .3s var(--ease);
}
.frame:hover .frame-cap, .frame:focus-visible .frame-cap { opacity: 1; }

/* multi-photo badge */
.frame-badge {
  position: absolute; top: 10px; right: 10px; height: 20px; padding: 0 7px;
  display: flex; align-items: center; gap: 3px; border-radius: 12px;
  background: rgba(26,22,18,0.6); color: var(--paper); backdrop-filter: blur(2px);
  font-family: var(--display); font-weight: 500; font-size: 0.66rem;
}
.frame-badge .ico { color: #e7b9ad; }

/* a special/titled day gets a gold mark */
.frame.titled::after {
  content: "✦"; position: absolute; top: 8px; left: 11px; z-index: 2;
  color: var(--gold); font-size: 0.72rem; text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

@media (max-width: 520px) {
  .sheet { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .frame-cap { opacity: 1; } /* no hover on touch — always show the date */
}

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(26, 22, 18, 0.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  padding: clamp(16px, 4vw, 56px);
}
#lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; max-width: 920px; width: 100%; text-align: center; }
.lb-img-wrap {
  background: var(--paper-card); padding: 12px; border-radius: 2px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.lb-img-wrap img {
  width: 100%; max-height: 72vh; object-fit: contain; background: #1a1612;
  filter: sepia(0.06) saturate(0.97);
}
.lb-meta { color: var(--paper); margin-top: 18px; }
.lb-title { font-family: var(--display); font-size: 1.4rem; font-weight: 340; }
.lb-title em { font-style: italic; color: #e7b9ad; }
.lb-sub { color: rgba(246,239,227,0.7); font-style: italic; font-size: 0.9rem; margin-top: 2px; }
.lb-counter { font-family: var(--display); letter-spacing: 0.2em; font-size: 0.72rem;
  color: rgba(246,239,227,0.6); margin-top: 12px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(251,246,236,0.14); color: var(--paper); border: 1px solid rgba(246,239,227,0.25);
  font-size: 1.4rem; display: grid; place-items: center; transition: background .2s;
  backdrop-filter: blur(4px);
}
.lb-btn:hover { background: rgba(251,246,236,0.28); }
.lb-prev { left: -10px; } .lb-next { right: -10px; }
.lb-close {
  position: absolute; top: -14px; right: -6px; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; background: none; border: none;
  color: var(--paper); font-size: 1.8rem; line-height: 1;
}
.lb-close:hover { color: #e7b9ad; }
@media (max-width: 600px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: 2px; } .lb-next { right: 2px; }
  .lb-close { top: -42px; right: 0; }
}

/* ============================================================================
   MILESTONES + COUNTDOWNS
   ============================================================================ */
.bg-deep { background: var(--paper-deep); }
.milestone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; margin-top: 48px; }
.mcard {
  background: var(--paper-card); border: 1px solid var(--line);
  padding: 30px 26px; border-radius: 3px; position: relative;
  box-shadow: 0 8px 22px rgba(43,37,32,0.06);
}
.mcard .big {
  font-family: var(--display); font-weight: 340; font-size: 2.8rem; line-height: 1;
  color: var(--rose-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.mcard .big small { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.mcard .what { margin-top: 12px; font-style: italic; color: var(--ink-soft); }
.mcard .when { margin-top: 4px; font-size: 0.82rem; color: var(--ink-faint);
  font-family: var(--display); letter-spacing: 0.06em; }

/* occasions list */
.occasions { margin-top: 48px; }
.occ {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.occ .occ-when {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: 1.4rem; color: var(--rose-deep); min-width: 92px; font-weight: 360;
}
.occ .occ-when small { display:block; font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint); }
.occ .occ-title { font-family: var(--display); font-size: 1.2rem; }
.occ .occ-date { margin-left: auto; color: var(--ink-faint); font-size: 0.85rem; font-style: italic; }

/* ============================================================================
   NOTES
   ============================================================================ */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 22px; margin-top: 48px; }
.note {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 30px 28px; border-radius: 3px;
  box-shadow: 0 10px 26px rgba(43,37,32,0.08);
  background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(43,37,32,0.05) 32px);
  transition: transform .35s var(--ease);
}
.note:hover { transform: translateY(-5px) rotate(-0.4deg); }
.note .nt { font-family: var(--display); font-style: italic; color: var(--rose);
  font-size: 0.95rem; margin-bottom: 8px; }
.note .nb { font-size: 1.06rem; line-height: 1.7; }

/* ============================================================================
   MAP
   ============================================================================ */
#map {
  height: clamp(340px, 55vh, 540px); margin-top: 44px;
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 14px 34px rgba(43,37,32,0.12);
  filter: sepia(0.18) saturate(0.9) contrast(1.02);
}
.leaflet-popup-content-wrapper { background: var(--paper-card); border-radius: 3px; }
.leaflet-popup-content { font-family: var(--body); color: var(--ink); }
.map-pin-label { font-family: var(--display); }

/* ============================================================================
   PLAYLIST
   ============================================================================ */
.playlist-embed { margin-top: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(43,37,32,0.14); }
.songs { margin-top: 40px; }
.song { display: flex; align-items: baseline; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.song .si { font-family: var(--display); color: var(--rose); font-variant-numeric: tabular-nums; min-width: 32px; }
.song .st { font-family: var(--display); font-size: 1.15rem; }
.song .sa { color: var(--ink-faint); font-style: italic; }
.song .sn { margin-left: auto; color: var(--ink-soft); font-size: 0.88rem; font-style: italic; text-align: right; }

/* ============================================================================
   BUCKET LIST
   ============================================================================ */
.bucket { margin-top: 44px; max-width: 640px; }
.bucket-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer;
  user-select: none;
}
.bucket-box {
  flex: none; width: 24px; height: 24px; margin-top: 2px;
  border: 1.5px solid var(--ink-soft); border-radius: 3px;
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.bucket-box svg { width: 14px; height: 14px; stroke: var(--paper); stroke-width: 3;
  fill: none; opacity: 0; transform: scale(0.4); transition: all .25s var(--ease); }
.bucket-item.done .bucket-box { background: var(--sage); border-color: var(--sage); }
.bucket-item.done .bucket-box svg { opacity: 1; transform: scale(1); }
.bucket-text { font-size: 1.12rem; font-family: var(--display); font-weight: 340; transition: all .25s; }
.bucket-item.done .bucket-text { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--rose); }

/* ============================================================================
   CLOSING + FOOTER
   ============================================================================ */
#closing { text-align: center; padding-bottom: clamp(80px,14vw,160px); }
.closing-line {
  font-family: var(--display); font-style: italic; font-weight: 340;
  font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.2; max-width: 20ch; margin: 0 auto;
}
.closing-line::before, .closing-line::after { content: "—"; color: var(--rose); margin: 0 0.4em; }
.foot { text-align: center; padding: 30px 0 50px; color: var(--ink-faint);
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ============================================================================
   SIGNATURE ANIMATION — drifting petals in the hero
   ============================================================================ */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal {
  position: absolute; top: -8%;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, var(--rose), var(--rose-deep));
  border-radius: 80% 0 80% 0;
  opacity: 0; will-change: transform;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { opacity: 0; transform: translateY(-10vh) translateX(0) rotate(0deg); }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(108vh) translateX(60px) rotate(420deg); }
}

/* hero staggered entrance */
.enter { opacity: 0; transform: translateY(22px); }
.enter.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* shimmer on the unlock button */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); animation: shimmer 3.4s var(--ease) infinite;
}
@keyframes shimmer { 0% { left: -120%; } 55%,100% { left: 160%; } }

/* ============================================================================
   reveal-on-scroll
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .timeline::before { left: 18px; }
  .chapter { grid-template-columns: 1fr; gap: 22px; padding-left: 40px; text-align: left; }
  .chapter:nth-child(even) .chapter-text,
  .chapter:nth-child(even) .chapter-media { order: initial; text-align: left; }
  .chapter-dot { left: 18px; top: 8px; }
  .counter .unit { min-width: 52px; }
  .occ { flex-wrap: wrap; }
  .occ .occ-date { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
