/* ================================================================
   Alex & Kasie — stylesheet
   Palette, type and motion tokens live in :root.
   ================================================================ */

:root {
  --bg: #FDFAF7;
  --bg-alt: #F7F0E8;
  --paper: #FFFDFB;
  --accent: #B5667A;
  --accent-dark: #8B4557;
  --accent-deep: #5E2B3A;
  --blush: #F3DDE2;
  --gold: #C9A96E;
  --gold-soft: #E6D3AE;
  --gold-text: #8F6D38;   /* gold for small text: 4.6:1 on cream, --gold is decorative only */
  --text: #2C1A1A;
  --text-muted: #7A5C5C;
  --border: #E8D5C4;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --max-width: 1140px;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(94, 43, 58, .05), 0 4px 14px rgba(94, 43, 58, .05);
  --shadow-md: 0 2px 6px rgba(94, 43, 58, .05), 0 18px 44px rgba(94, 43, 58, .11);
  --shadow-lg: 0 30px 80px rgba(44, 26, 26, .28);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

::selection { background: var(--blush); color: var(--accent-deep); }

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

/* Paper grain over everything — fixed, so it never repaints on scroll */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .35;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft drifting glow behind heroes */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  will-change: transform;
}

.ambient span:nth-child(1) {
  width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(243, 214, 222, .9), transparent 62%);
  animation: drift-a 26s var(--ease-in-out) infinite alternate;
}
.ambient span:nth-child(2) {
  width: 52vmax; height: 52vmax; right: -16vmax; top: 6vmax;
  background: radial-gradient(circle, rgba(236, 216, 184, .85), transparent 62%);
  animation: drift-b 32s var(--ease-in-out) infinite alternate;
}
.ambient span:nth-child(3) {
  width: 44vmax; height: 44vmax; left: 22vw; bottom: -26vmax;
  background: radial-gradient(circle, rgba(232, 200, 214, .7), transparent 62%);
  animation: drift-a 38s var(--ease-in-out) infinite alternate-reverse;
}

@keyframes drift-a { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-7vmax, 4vmax, 0) scale(.94); } }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  transition: background-color .4s, box-shadow .4s, height .4s var(--ease-out);
}

.nav.scrolled {
  --nav-h: 60px;
  background: rgba(253, 250, 247, .94);
  box-shadow: 0 1px 0 rgba(232, 213, 196, .8), 0 8px 30px rgba(94, 43, 58, .05);
}

@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 769px) {
    .nav.scrolled {
      background: rgba(253, 250, 247, .74);
      backdrop-filter: saturate(1.4) blur(14px);
    }
  }
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-style: italic;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.nav-logo .amp { color: var(--gold); }

.nav-logo svg {
  width: 17px; height: 17px;
  color: var(--accent);
  transition: transform .5s var(--ease-out);
}
.nav-logo:hover svg { transform: scale(1.18) rotate(-8deg); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.nav-active { color: var(--accent-dark); }

.nav-links a:hover::after,
.nav-links a.nav-active::after { transform: scaleX(1); transform-origin: left; }

/* Mobile menu */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .3s, top .45s var(--ease-out), right .45s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; right: 18px; }

.menu-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 22px; right: 12px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 32px 48px;
  background: linear-gradient(165deg, #FDF6F0 0%, #F6E8EA 100%);
  clip-path: circle(0% at calc(100% - 38px) 32px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}

.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 38px) 32px);
  visibility: visible;
  transition: clip-path .7s var(--ease-in-out), visibility 0s;
}

.mobile-menu ol { list-style: none; counter-reset: m; }

.mobile-menu li {
  counter-increment: m;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .6s var(--ease-out);
}

.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(1) { transition-delay: .18s; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: .24s; }
.menu-open .mobile-menu li:nth-child(3) { transition-delay: .30s; }
.menu-open .mobile-menu li:nth-child(4) { transition-delay: .36s; }

.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--accent-dark);
  text-decoration: none;
}

.mobile-menu a::before {
  content: '0' counter(m);
  font-family: var(--font-body);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--gold-text);
}

.mobile-menu a.nav-active { color: var(--accent); }

.mobile-menu-foot {
  margin-top: 40px;
  font-style: italic;
  color: var(--text-muted);
  font-size: .95rem;
  opacity: 0;
  transition: opacity .6s .45s;
}
.menu-open .mobile-menu-foot { opacity: 1; }

body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; }

/* ================================================================
   HOME HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 130px;
  background: linear-gradient(170deg, #FDF6F0 0%, #F8EEE9 55%, #F3E6EC 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.hero-eyebrow { margin-bottom: 26px; }

.hero-eyebrow::before,
.hero-eyebrow::after,
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-eyebrow::after,
.section-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 8rem);
  color: var(--accent-dark);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}

.hero-names .word { display: inline-block; white-space: nowrap; }

.hero-names .amp {
  color: var(--gold);
  font-size: .78em;
  margin: 0 .1em;
}

/* Per-letter entrance (spans are generated by script.js) */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em) rotate(4deg);
  filter: blur(6px);
  animation: char-in 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms + 250ms);
}

@keyframes char-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.hero-date {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 52px;
}

.counter {
  display: inline-flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 26px;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 112px;
  padding: 22px 18px 18px;
  background: rgba(255, 253, 251, .62);
  border: 1px solid rgba(232, 213, 196, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.counter-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--accent);
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
}

.counter-label {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero-total {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
}

.hero-total span {
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.hero-total svg {
  width: 13px; height: 13px;
  margin-right: 6px;
  vertical-align: -1px;
  color: var(--accent);
  animation: beat 1.6s ease-in-out infinite;
}

@keyframes beat {
  0%, 40%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1.08); }
}

/* Staggered fade-up used on hero pieces */
.rise {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise { to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -40px;
  width: 80px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 52px;
  background: rgba(181, 102, 122, .18);
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
  from { transform: translateY(-100%); }
  to   { transform: translateY(200%); }
}

/* ================================================================
   PHOTO RIBBON (home)
   ================================================================ */
.ribbon {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ribbon-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 18px 0 22px;
  animation: ribbon 110s linear infinite;
}

.ribbon:hover .ribbon-track,
.ribbon:focus-within .ribbon-track { animation-play-state: paused; }

@keyframes ribbon { to { transform: translateX(-50%); } }

.polaroid {
  flex: none;
  display: block;
  width: 196px;
  padding: 10px 10px 46px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--r, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .5s;
  position: relative;
  text-decoration: none;
}

.polaroid:hover,
.polaroid:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-alt);
}

.polaroid span {
  position: absolute;
  left: 12px; right: 12px; bottom: 8px;
  font-size: .7rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 100px 32px; position: relative; }
.section-tight { padding-top: 48px; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Scroll-reveal (toggled by IntersectionObserver in script.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ================================================================
   HUB CARDS (home)
   ================================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 34px 30px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.js .hub-card.reveal {
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), box-shadow .6s;
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}

.js .hub-card.reveal.in { transition-delay: 0s; }
.hub-card:hover { box-shadow: 0 30px 70px rgba(94, 43, 58, .24); }
.js .hub-card.reveal.in:hover { transform: translateY(-8px); }

.hub-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(44, 20, 28, 0) 28%, rgba(44, 20, 28, .32) 52%, rgba(60, 22, 36, .88) 100%);
}

.hub-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 245, 238, .35);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
  transition: inset .6s var(--ease-out), border-color .6s;
}

.hub-card:hover img { transform: scale(1.1); }
.hub-card:hover::after { inset: 16px; border-color: rgba(230, 211, 174, .75); }

.hub-num {
  position: absolute;
  top: 30px; left: 30px;
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--gold-soft);
}

.hub-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hub-desc {
  font-size: .93rem;
  line-height: 1.6;
  color: rgba(255, 244, 240, .88);
  max-width: 30ch;
}

.hub-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--gold-soft);
}

.hub-arrow svg {
  width: 30px; height: 12px;
  transition: transform .5s var(--ease-out);
}
.hub-card:hover .hub-arrow svg { transform: translateX(8px); }

/* ================================================================
   PAGE HERO (sub pages)
   ================================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 170px 32px 80px;
  text-align: center;
  background: linear-gradient(170deg, #FDF6F0 0%, #F7EEE8 100%);
}

.page-hero > :not(.ambient) { position: relative; z-index: 1; }

.page-hero .section-eyebrow { margin-bottom: 22px; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.6rem);
  color: var(--accent-dark);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 20px;
}

.page-subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 34ch;
  margin: 0 auto;
}

.flourish {
  display: block;
  width: 150px;
  height: 20px;
  margin: 30px auto 0;
  color: var(--gold);
  overflow: visible;
}

.flourish path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.8s var(--ease-out) .9s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ================================================================
   LOVE LETTERS
   ================================================================ */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 32px;
  align-items: stretch;
  padding-top: 18px;
}

.letter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 36px 34px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.js .letter-card.reveal {
  transition: opacity 1s var(--ease-out), transform .7s var(--ease-out), box-shadow .6s, border-color .4s;
}

/* second sheet peeking out from behind */
.letter-sheet {
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transform: rotate(-2deg) translate(-4px, 6px);
  transition: transform .6s var(--ease-out);
}

.letter-card.is-openable { cursor: pointer; }

.letter-card.is-openable:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(181, 102, 122, .35);
}
.js .letter-card.is-openable.reveal.in:hover { transform: translateY(-6px); }

.letter-card.is-openable:hover .letter-sheet { transform: rotate(-4deg) translate(-10px, 10px); }

.letter-seal {
  position: absolute;
  top: -20px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 236, 236, .92);
  background: radial-gradient(circle at 35% 30%, #C47A8C, var(--accent-dark) 60%, #6E3243);
  box-shadow: 0 4px 10px rgba(94, 43, 58, .3), inset 0 -2px 4px rgba(0, 0, 0, .18), inset 0 2px 3px rgba(255, 255, 255, .2);
  transition: transform .6s var(--ease-out);
}

.letter-seal svg { width: 18px; height: 18px; }

.letter-card.is-openable:hover .letter-seal { transform: rotate(-14deg) scale(1.08); }

.letter-occasion {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.letter-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--accent-dark);
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.2;
}

.letter-date {
  font-size: .86rem;
  color: var(--text-muted);
  font-style: italic;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}

.letter-preview {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.letter-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.letter-actions:empty { display: none; }

.letter-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.letter-read svg { width: 24px; height: 10px; transition: transform .5s var(--ease-out); }
.letter-card:hover .letter-read svg { transform: translateX(6px); }

.letter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background-color .3s, border-color .3s, color .3s;
}

.letter-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.letter-audio {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
  cursor: default;
}

.letter-audio-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.modal-audio {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px dashed var(--border);
}

/* Custom audio player */
.player {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  flex: none;
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 6px 16px rgba(139, 69, 87, .3);
  transition: transform .3s var(--ease-out);
}

.player-btn:hover { transform: scale(1.06); }
.player-btn:active { transform: scale(.96); }

.player-btn svg { width: 16px; height: 16px; }
.player-btn .i-pause { display: none; }
.player.playing .player-btn .i-play { display: none; }
.player.playing .player-btn .i-pause { display: block; }

.player.playing .player-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ring 1.8s var(--ease-out) infinite;
}

@keyframes ring { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.3); } }

.player-track { flex: 1; min-width: 0; }

.player-bar {
  position: relative;
  height: 24px;
  cursor: pointer;
  touch-action: none;
}

.player-bar::before,
.player-fill {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}

.player-bar::before { right: 0; background: var(--border); }

.player-fill {
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.player-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   LETTER MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(44, 22, 28, .62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s, visibility 0s .45s;
}

@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 769px) {
    .modal-overlay { backdrop-filter: blur(6px); }
  }
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s, visibility 0s;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: auto;
  padding: 72px 68px 60px 84px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) translateY(40px) rotateX(10deg) scale(.96);
  transform-origin: 50% 0;
  opacity: 0;
  transition: transform .8s var(--ease-out), opacity .5s;
}

/* margin rule, like letter paper */
.modal::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 52px;
  width: 1px;
  background: rgba(181, 102, 122, .2);
}

.modal-overlay.open .modal {
  transform: none;
  opacity: 1;
  transition-delay: .08s;
}

.modal-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 3;
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .25s, transform .5s var(--ease-out), background-color .25s;
}

.modal-close svg { width: 14px; height: 14px; }
.modal-close:hover { color: var(--white); background: var(--accent-dark); transform: rotate(90deg); }

.modal-eyebrow {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: var(--accent-dark);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.15;
}

.modal-date {
  font-size: .88rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  color: var(--text);
  font-size: 1.07rem;
  line-height: 1.95;
}

.modal-body p { margin-bottom: 1.25em; }
.modal-body p:last-child { margin-bottom: 0; }

.modal-body > p:first-child { display: flow-root; }

.modal-body > p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.6em;
  line-height: .9;
  padding: .06em .12em 0 0;
  color: var(--accent);
}

.modal-overlay.open .modal-body > * {
  animation: rise .9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + .35s);
}

.modal-sign {
  margin-top: 44px;
  text-align: right;
  color: var(--accent);
}

.modal-sign svg { width: 26px; height: 26px; display: inline-block; }

/* ================================================================
   GALLERY
   ================================================================ */
.gallery-grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.gallery-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.js .gallery-item.reveal { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), box-shadow .5s; }
.gallery-item:hover { box-shadow: var(--shadow-md); }

.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.gallery-item img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out), opacity .8s;
}

.gallery-item img.loaded { opacity: 1; transform: scale(1); }
.gallery-item button { overflow: hidden; }
.gallery-item:hover img.loaded { transform: scale(1.05); }

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #F0DDE5 0%, #EDD5C0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.gallery-caption {
  padding: 12px 16px 14px;
  font-size: .84rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-muted);
  background: var(--paper);
  border-top: 1px solid rgba(232, 213, 196, .6);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(24, 12, 16, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility 0s .4s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility 0s;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 70px 96px 8px;
  min-height: 0;
  touch-action: pan-y;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100svh - 160px);
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: opacity .3s, transform .5s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox:not(.open) .lightbox-img { transform: scale(.94); }
.lightbox-img.swap { opacity: 0; transform: scale(.97); }

.lightbox-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px 26px;
  color: rgba(255, 240, 236, .92);
  text-align: center;
}

.lightbox-caption { font-style: italic; font-size: .95rem; }

.lightbox-count {
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  cursor: pointer;
  transition: background-color .3s, transform .4s var(--ease-out);
  z-index: 2;
}

.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn svg { width: 18px; height: 18px; }

.lb-close { top: 16px; right: 16px; width: 46px; height: 46px; }
.lb-close:hover { transform: rotate(90deg); }
.lb-prev { left: 22px; top: 50%; margin-top: -26px; }
.lb-next { right: 22px; top: 50%; margin-top: -26px; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline {
  --progress: 0;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.timeline::before,
.timeline-fill {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}

.timeline::before { background: var(--border); }

.timeline-fill {
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transform-origin: top;
  transform: scaleY(var(--progress));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  margin-bottom: 40px;
  align-items: start;
}

.timeline-content {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .5s, border-color .5s;
}

.js .timeline-content.reveal {
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), box-shadow .5s, border-color .5s;
}

.timeline-content:hover { box-shadow: var(--shadow-md); border-color: rgba(181, 102, 122, .3); }

/* little pointer towards the line */
.timeline-content::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  transform: rotate(45deg);
  transition: border-color .5s;
}

.timeline-content:hover::after { border-color: rgba(181, 102, 122, .3); }

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-content::after { right: -7px; border-left-color: transparent; border-bottom-color: transparent; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-content::after { left: -7px; border-right-color: transparent; border-top-color: transparent; }

/* cards sit on alternating sides, so on wide screens each can tuck up beside the previous one */
@media (min-width: 769px) {
  .timeline-item + .timeline-item { margin-top: -84px; }
}

.timeline-item .timeline-dot { grid-column: 2; grid-row: 1; }
.timeline-item .timeline-spacer { grid-row: 1; }
.timeline-item:nth-child(odd) .timeline-spacer { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-spacer { grid-column: 1; }

.js .timeline-item:nth-child(odd) .timeline-content.reveal { transform: translateX(-40px); }
.js .timeline-item:nth-child(even) .timeline-content.reveal { transform: translateX(40px); }
.js .timeline-item .timeline-content.reveal.in { transform: none; }

.timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 27px;
  justify-self: center;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color .6s, transform .6s var(--ease-out);
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .6s var(--ease-out) .1s;
}

.timeline-item.lit .timeline-dot { border-color: var(--accent); transform: scale(1.12); }
.timeline-item.lit .timeline-dot::after { transform: scale(1); }

.timeline-date {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-dark);
  font-style: italic;
  line-height: 1.25;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline-end {
  display: grid;
  place-items: center;
  margin: 40px auto 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 26px rgba(139, 69, 87, .3);
  position: relative;
}

.timeline-end svg { width: 22px; height: 22px; animation: beat 1.6s ease-in-out infinite; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  position: relative;
  text-align: center;
  padding: 80px 24px 44px;
  background: linear-gradient(180deg, var(--accent-dark), var(--accent-deep));
  color: rgba(255, 235, 235, .86);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  left: 50%; top: -240px;
  width: 700px; height: 400px;
  margin-left: -350px;
  background: radial-gradient(closest-side, rgba(201, 169, 110, .22), transparent);
  pointer-events: none;
}

.footer-heart {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 20px;
  color: var(--gold-soft);
  animation: beat 1.6s ease-in-out infinite;
}

.footer-line {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.3;
  color: #FFF1EE;
}

.footer-nav {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 34px 0 30px;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 235, 235, .72);
  text-decoration: none;
  transition: color .25s;
}

.footer-nav a:hover { color: var(--gold-soft); }

.footer-sub {
  position: relative;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .7;
}

/* ================================================================
   LOCK SCREEN (published build only — see lock.js)
   ================================================================ */
.vault-locked body > :not(.lock) { display: none !important; }

.lock {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  overflow: hidden;
  transition: opacity .9s var(--ease-out) .25s, visibility 0s linear 1.15s;
}

.lock-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease-out) .1s forwards;
}

.lock-heart {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
}
.lock-heart svg { width: 24px; height: 24px; animation: beat 1.6s ease-in-out infinite; }

.lock-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.lock-title .amp { color: var(--gold); font-size: .78em; margin: 0 .08em; }

.lock-label {
  display: block;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 26px;
}

.lock-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 22px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.lock-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(181, 102, 122, .14), var(--shadow-sm); }

.lock-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 1.05rem;   /* 16px+ keeps iOS from zooming in */
  letter-spacing: .12em;
  color: var(--text);
  padding: 10px 0;
}

.lock-field button {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease-out);
}
.lock-field button svg { width: 20px; }
.lock-field button:hover { background: var(--accent-dark); transform: translateX(2px); }
.lock-field button:focus-visible { outline-offset: 2px; }

.lock.busy .lock-field button { pointer-events: none; animation: lock-pulse 1s ease-in-out infinite; }
@keyframes lock-pulse { 50% { opacity: .55; } }

.lock-msg {
  min-height: 1.7em;
  margin-top: 14px;
  font-size: .92rem;
  color: var(--accent-dark);
}

.lock-card.shake { animation: lock-shake .5s var(--ease-out); opacity: 1; transform: none; }
@keyframes lock-shake {
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

/* Unlocked: the heart swells, the card lifts away, the site fades in underneath */
.lock.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.lock.unlocked .lock-heart svg { animation: lock-open .7s var(--ease-out) forwards; }
.lock.unlocked .lock-card { animation: lock-away .8s var(--ease-in-out) .2s forwards; opacity: 1; transform: none; }
@keyframes lock-open { 40% { transform: scale(1.45); } to { transform: scale(1.2); } }
@keyframes lock-away { to { opacity: 0; transform: translateY(-16px) scale(.98); } }

/* ================================================================
   PAGE TRANSITIONS (cross-document view transitions)
   ================================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(16px); } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-card:last-child { grid-column: 1 / -1; min-height: 360px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 20px; }
  .nav.scrolled { --nav-h: 58px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .section { padding: 72px 20px; }
  .section-tight { padding-top: 32px; }
  .page-hero { padding: 130px 20px 56px; }

  .hub-grid { grid-template-columns: 1fr; gap: 18px; }
  .hub-card, .hub-card:last-child { grid-column: auto; min-height: 340px; }

  .ribbon { padding: 40px 0 8px; }
  .ribbon-track { gap: 20px; animation-duration: 80s; }
  .polaroid { width: 150px; padding: 8px 8px 40px; }
  .polaroid span { font-size: .64rem; left: 8px; right: 8px; bottom: 6px; }

  .letters-grid { grid-template-columns: 1fr; gap: 44px; }
  .letter-card { padding: 40px 26px 28px; }

  /* timeline collapses to a single left rail */
  .timeline::before, .timeline-fill { left: 15px; }
  .timeline-item { grid-template-columns: 30px 1fr; gap: 0 14px; margin-bottom: 24px; }
  .timeline-item .timeline-dot { grid-column: 1; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; grid-row: 1; text-align: left; }
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    left: -7px; right: auto;
    border-color: var(--border);
    border-right-color: transparent; border-top-color: transparent;
  }
  .timeline-item .timeline-spacer { display: none; }
  .js .timeline-item:nth-child(odd) .timeline-content.reveal,
  .js .timeline-item:nth-child(even) .timeline-content.reveal { transform: translateY(28px); }
  .js .timeline-item .timeline-content.reveal.in { transform: none; }
  .timeline-content { padding: 22px; }
  .timeline-dot { margin-top: 26px; }

  .modal-overlay { padding: 0; }
  .modal-close { position: fixed; top: 12px; right: 12px; z-index: 4; background: rgba(247, 240, 232, .94); }
  .modal { padding: 68px 24px 48px 40px; border-radius: 0; min-height: 100%; }
  .modal::before { left: 22px; }
  .modal-body { font-size: 1.02rem; line-height: 1.9; }

  .lightbox-stage { padding: 68px 12px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; width: 46px; height: 46px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lightbox-bar { padding: 14px 76px 24px; flex-direction: column; align-items: center; gap: 4px; min-height: 78px; }
}

@media (max-width: 480px) {
  .gallery-grid, .gallery-col { gap: 16px; }
  .counter { gap: 8px; display: flex; }
  .counter-item { min-width: 0; flex: 1; padding: 16px 10px 14px; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 22px; }
  .hub-title { font-size: 1.8rem; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .ribbon { overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none !important; }
}
