@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --bg: #0f0f11;
  --bg-soft: #17171b;
  --card: #1d1b1f;
  --card-2: #242126;
  --text: #fff8f1;
  --muted: #cdbec2;
  --rose: #d86a83;
  --rose-dark: #963d52;
  --red: #b9475e;
  --cream: #f6ead8;
  --gold: #d7ad5a;
  --line: rgba(255,255,255,.1);
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --nav-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(216,106,131,.12), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(215,173,90,.06), transparent 20%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body.no-scroll { overflow: hidden; }

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--cream);
  color: #211a1d;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.04;
  margin: 0 0 14px;
}

.section-subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255,255,255,.035);
  font-size: .88rem;
  margin-bottom: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(18px);
  background: rgba(15,15,17,.74);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.logo span { color: var(--rose); }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  transition: .25s;
}

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

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 58px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: .93;
  letter-spacing: -.04em;
}

.hero-copy h1 em {
  display: block;
  color: var(--rose);
  font-weight: 600;
}

.hero-copy p {
  color: var(--muted);
  max-width: 590px;
  font-size: 1.08rem;
}

.hero-message {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  color: var(--cream);
  margin: 26px 0 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 0;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  transition: transform .2s, background .2s, border-color .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--red));
  color: white;
  box-shadow: 0 14px 34px rgba(185,71,94,.25);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.hero-photo {
  position: absolute;
  inset: 0 32px 0 0;
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.polaroid {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: 210px;
  background: #f9f1e6;
  color: #30262a;
  padding: 10px 10px 16px;
  border-radius: 10px;
  transform: rotate(5deg);
  box-shadow: var(--shadow);
}

.polaroid img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
}

.polaroid p {
  margin: 10px 4px 0;
  font-family: "Playfair Display", serif;
  text-align: center;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  background: var(--rose);
  opacity: .55;
  animation: floaty 5s ease-in-out infinite;
}
.sparkle.s1 { width: 10px; height: 10px; left: 7%; top: 20%; }
.sparkle.s2 { width: 7px; height: 7px; right: 8%; top: 15%; animation-delay: -1.6s; background: var(--gold); }
.sparkle.s3 { width: 12px; height: 12px; left: 45%; bottom: 8%; animation-delay: -2.3s; }

@keyframes floaty {
  0%,100% { transform: translateY(0) scale(1); opacity: .3; }
  50% { transform: translateY(-18px) scale(1.25); opacity: .8; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.stat {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 12px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-family: "Playfair Display", serif;
}
.stat span { color: var(--muted); font-size: .88rem; }

.quote-card,
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quote-card {
  padding: 46px;
  text-align: center;
}

.quote-card p {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  margin: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.quote-card p.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.rivalry {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.team-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: grid;
  align-content: center;
  text-align: center;
  background: var(--card);
}

.team-card h3 { font-family: "Playfair Display", serif; font-size: 2rem; margin: 0; }
.team-card p { margin: 8px 0 0; color: var(--muted); }
.team-card.palmeiras { box-shadow: inset 0 0 0 1px rgba(48,130,72,.12); }
.team-card.flamengo { box-shadow: inset 0 0 0 1px rgba(197,50,60,.14); }

.rivalry-photo {
  margin-top: 28px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 560px;
  background: var(--card);
}
.rivalry-photo img {
  width: 100%;
  height: min(72vw, 560px);
  object-fit: cover;
  object-position: center 44%;
}

.heart-bridge {
  font-size: 2.2rem;
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  35% { transform: scale(1.16); }
  55% { transform: scale(.97); }
}

.page-hero {
  padding: 88px 0 34px;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: .98;
  margin: 0 0 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 34px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
}
.filter-btn.active {
  color: white;
  background: var(--rose-dark);
  border-color: transparent;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-card,
.memory-card,
.letter-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.photo-card {
  min-height: 0;
}

.photo-card .photo-cover {
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--card-2);
  height: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
}

.photo-card img,
.photo-card video,
.memory-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.video-cover { position: relative; }
.video-cover video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(15,15,17,.72);
  color: white;
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}
.photo-card:hover img,
.memory-card:hover img { transform: scale(1.035); }

.card-body { padding: 18px; }
.card-body h2,
.card-body h3 { margin: 0 0 6px; font-family: "Playfair Display", serif; font-size: 1.3rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .94rem; }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,15,17,.62);
  backdrop-filter: blur(12px);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lightbox.open { display: flex; }

.lightbox-card {
  width: min(100%, 980px);
  max-height: 92vh;
  position: relative;
  display: block;
  background: #151417;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.lightbox-media { background: #070708; display:flex; align-items:center; justify-content:center; }
.lightbox-media img { max-height: 82vh; object-fit: contain; }
.lightbox-media video { width: 100%; max-height: 82vh; background: #070708; }
.lightbox-info { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lightbox-info h2,
.lightbox-info h3 { font-family: "Playfair Display", serif; font-size: 2rem; margin: 0 40px 8px 0; }
.lightbox-info p { color: var(--muted); }
.lightbox-controls { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color:white;
}
.lightbox-info .icon-btn { pointer-events: auto; background: rgba(15,15,17,.76); backdrop-filter: blur(10px); }
.close-btn { position: absolute; right: 18px; top: 18px; }

.letters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.letter-card {
  padding: 28px;
  min-height: 245px;
  background:
    linear-gradient(155deg, rgba(216,106,131,.09), transparent 55%),
    var(--card);
}

.letter-card .letter-no { color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.letter-card h2,
.letter-card h3 { font-family: "Playfair Display", serif; font-size: 1.7rem; margin: 10px 0 8px; }
.letter-card .letter-date { color: var(--muted); }
.letter-open { margin-top: 22px; }

.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.letter-modal.open { display: flex; }

.paper {
  width: min(100%, 720px);
  max-height: 88vh;
  overflow: auto;
  background: #fbf3e8;
  color: #332a2d;
  padding: clamp(28px, 6vw, 60px);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: scaleIn .28s ease;
}
.paper h2 { font-family: "Playfair Display", serif; margin-top: 0; font-size: clamp(2rem, 6vw, 3.2rem); }
.paper .date { opacity: .65; }
.paper .signature { white-space: pre-line; margin-top: 34px; font-family: "Playfair Display", serif; font-size: 1.35rem; }
.paper .close-paper { float: right; border: 0; background: transparent; font-size: 1.5rem; }

.memories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.memory-card { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 260px; }
.memory-card .memory-image { min-height: 260px; overflow: hidden; }

.timeline {
  position: relative;
  margin: 34px 0 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--rose), rgba(255,255,255,.08));
}
.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 28px;
}
.timeline-dot {
  position: absolute;
  left: 15px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rose);
  border: 5px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rose);
}
.timeline-content {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.timeline-content img,
.timeline-content video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}
.timeline-images { display: grid; min-width: 0; }
.timeline-images-multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.timeline-images-multiple img { width: 100%; }
.timeline-images-video { justify-items: center; align-self: start; }
.timeline-images-video video {
  width: min(100%, 220px);
  height: 340px;
  object-fit: contain;
  background: #000;
}
.timeline-content h3 { font-family: "Playfair Display", serif; font-size: 1.55rem; margin: 0 0 7px; }
.timeline-content h2 { font-family: "Playfair Display", serif; font-size: 1.55rem; margin: 0 0 7px; }
.timeline-date { color: var(--gold); font-size: .88rem; }

.admin-wrap {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 80px;
}
.admin-nav {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.admin-nav button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
}
.admin-nav button.active { background: rgba(216,106,131,.12); color: white; }

.admin-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section h2 { font-family: "Playfair Display", serif; margin-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: var(--muted); font-size: .9rem; }
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #121214;
  color: white;
  border-radius: 13px;
  padding: 12px 13px;
  outline: none;
}
.input:focus { border-color: rgba(216,106,131,.6); }
textarea.input { min-height: 140px; resize: vertical; }

.file-input {
  padding: 9px;
  color: var(--muted);
}
.file-input::file-selector-button {
  min-height: 42px;
  margin-right: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rose), var(--red));
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.image-preview {
  min-height: 190px;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.image-preview.compact { min-height: 130px; }
.image-preview img { width: 100%; max-height: 260px; object-fit: contain; }
.image-preview small { padding: 0 10px 9px; overflow-wrap: anywhere; }
.path-option { color: var(--muted); }
.path-option summary { width: fit-content; cursor: pointer; font-size: .9rem; }
.path-option label { display: block; margin: 10px 0 7px; }
.admin-panel button:disabled { cursor: wait; opacity: .65; }

[data-existing-image] { display: none; }
.existing-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 390px;
  overflow-y: auto;
  padding: 3px;
}
.existing-image-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 13px;
  background: var(--card-2);
  color: var(--text);
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.existing-image-card:hover { transform: translateY(-2px); border-color: rgba(216,106,131,.55); }
.existing-image-card.selected { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216,106,131,.18); }
.existing-image-card.selected::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  font-weight: 800;
}
.existing-image-card img,
.existing-image-card video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.existing-image-card span { display: block; padding: 8px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.notice {
  padding: 14px 16px;
  border: 1px solid rgba(215,173,90,.2);
  background: rgba(215,173,90,.07);
  color: #ead6a6;
  border-radius: 14px;
  margin-bottom: 20px;
}

.data-list { display: grid; gap: 10px; margin-top: 18px; }
.data-row {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.data-row small { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.row-actions .btn { min-height: 42px; padding: 0 16px; }
.danger {
  border: 1px solid rgba(255,90,90,.25);
  color: #ffb6b6;
  background: rgba(255,90,90,.06);
}

.feedback {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2600;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: #242126;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .2s, transform .2s;
}
.feedback.show { opacity: 1; transform: translate(-50%, 0); }
.feedback.sucesso { border-color: rgba(88, 190, 120, .45); }
.feedback.erro { border-color: rgba(255, 90, 90, .5); }

.image-error {
  min-height: 180px;
  background: linear-gradient(135deg, rgba(216,106,131,.12), rgba(215,173,90,.08));
}
.image-error::after {
  content: "Imagem indisponível";
  display: grid;
  min-height: inherit;
  place-items: center;
  color: var(--muted);
  font-size: .9rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.footer strong { color: var(--text); font-family: "Playfair Display", serif; font-size: 1.2rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.music-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
}

.music-floating .btn {
  min-height: 44px;
  padding: 0 16px;
  background: rgba(24,22,25,.88);
  border: 1px solid var(--line);
  color: white;
  backdrop-filter: blur(14px);
}
.music-floating .btn.playing { border-color: rgba(216,106,131,.55); }
.music-floating .btn.music-error { border-color: rgba(255,90,90,.55); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; width: auto; }
}

@media (max-width: 720px) {
  :root { --nav-height: 66px; }
  .container { width: min(calc(100% - 24px), var(--max)); }
  .section { padding: 64px 0; }

  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(22,21,24,.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 12px; }
  .nav-links a:hover { background: rgba(255,255,255,.04); }

  .hero { min-height: auto; padding-top: 42px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .hero-visual { min-height: 450px; }
  .hero-photo { right: 18px; border-radius: 28px; }
  .polaroid { width: 145px; right: 0; bottom: 20px; padding: 7px 7px 11px; }
  .polaroid p { font-size: .8rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }

  .rivalry { grid-template-columns: 1fr; }
  .heart-bridge { text-align: center; transform: rotate(90deg); }

  .gallery,
  .letters-grid,
  .memories-grid { grid-template-columns: 1fr; }

  .photo-card { min-height: unset; }
  .photo-card .photo-cover { height: auto; }

  .memory-card { grid-template-columns: 1fr; }
  .memory-card .memory-image { min-height: 300px; }

  .timeline::before { left: 13px; }
  .timeline-item { padding-left: 42px; }
  .timeline-dot { left: 4px; }
  .timeline-content { grid-template-columns: 1fr; }
  .timeline-content img, .timeline-content video { height: 250px; }
  .timeline-images-multiple img { height: 190px; }
  .timeline-images-video video { width: min(100%, 260px); height: 420px; }

  .lightbox-card { max-height: 94vh; }
  .lightbox-media img { max-height: 55vh; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 390px; }
  .hero-photo { inset: 0 8px 0 0; }
  .quote-card { padding: 30px 18px; }
  .stat { padding: 18px 8px; }
  .paper { padding: 28px 20px; }
  .music-floating { right: 12px; bottom: 12px; }
  .music-floating .btn { padding: 0 13px; }
  .data-row { align-items: stretch; flex-direction: column; }
  .row-actions { justify-content: stretch; }
  .row-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
