@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --ink: #07050b;
  --ink-soft: #0e0a15;
  --paper: #f2edf4;
  --muted: #a69dae;
  --purple: #9f4cff;
  --purple-dark: #54207f;
  --blue: #3479ff;
  --rose: #c52b55;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(113, 39, 186, .11), transparent 66%);
  transform: translate(-50%, -50%);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  font: 500 25px/1 var(--display);
  letter-spacing: -2px;
}
.brand-mark span { color: var(--purple); font-style: italic; }
.brand-date {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: #bcb3c2;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
}
.site-header nav { display: flex; gap: 38px; }
.site-header nav a {
  color: #c7c0ca;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .25s;
}
.site-header nav a:hover { color: #fff; }
.sound-button {
  color: #ddd5e1;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.sound-bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 4px; background: var(--purple); }
.sound-button[aria-pressed="true"] .sound-bars i { animation: equalize .65s ease-in-out infinite alternate; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.3s; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.5s; }
@keyframes equalize { to { height: 12px; } }
.youtube-player {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 3, 8, .9) 0%, rgba(5, 3, 9, .35) 48%, rgba(4, 3, 8, .82) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 25%),
    url("assets/memories/montana-burguesa.jpeg") center 38% / cover no-repeat;
  filter: saturate(.85);
  transform: scale(1.025);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 60%, rgba(139, 31, 221, .24), transparent 31%),
    radial-gradient(circle at 74% 50%, rgba(22, 65, 190, .18), transparent 31%);
}
.hero-content { width: min(90%, 850px); text-align: center; padding-top: 80px; }
.eyebrow {
  margin: 0 0 20px;
  color: #a479c8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font: 500 clamp(72px, 11vw, 152px)/.68 var(--display);
  letter-spacing: -7px;
  text-shadow: 0 15px 40px #000;
}
.hero h1 span {
  color: #9a49e5;
  font-style: italic;
  font-weight: 400;
}
.hero-copy {
  max-width: 440px;
  margin: 46px auto 32px;
  color: #d0c8d4;
  font: italic 400 clamp(18px, 2vw, 24px)/1.45 var(--display);
}
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #c8becd;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-link i {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}
.side-note {
  position: absolute;
  right: 40px;
  bottom: 80px;
  margin: 0;
  color: #7f7784;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

section:not(.hero) { position: relative; padding: 130px clamp(24px, 7vw, 110px); }
.section-heading { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-heading h2, .story-intro h2, .add-memory-intro h2 {
  margin: 0;
  font: 500 clamp(44px, 6vw, 78px)/.96 var(--display);
  letter-spacing: -2.5px;
}
h2 em { color: #a164cf; font-weight: 400; }

.counter-section { background: linear-gradient(180deg, var(--ink), #0c0811 55%, var(--ink)); }
.counter-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(102, 41, 159, .13), transparent 64%);
  transform: translateX(-50%);
  pointer-events: none;
}
.counter-shell {
  max-width: 1120px;
  margin: auto;
  padding: 55px 30px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  box-shadow: 0 25px 90px rgba(0, 0, 0, .35);
}
.counter-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.time-unit { position: relative; text-align: center; }
.time-unit:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14%;
  height: 62%;
  width: 1px;
  background: var(--line);
}
.time-unit strong {
  display: block;
  font: 400 clamp(42px, 6vw, 79px)/1 var(--display);
  letter-spacing: -3px;
}
.time-unit span {
  display: block;
  margin-top: 13px;
  color: #8f8694;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.counter-since {
  margin: 37px 0 0;
  color: #776f7b;
  font: italic 400 16px var(--display);
  text-align: center;
}
.next-milestone {
  max-width: 760px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 32px;
  align-items: end;
}
.tiny-label {
  display: block;
  margin-bottom: 7px;
  color: #756c7a;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.next-milestone strong { font: 500 24px var(--display); }
.next-milestone p {
  grid-column: 1 / -1;
  margin: 0;
  color: #8d8491;
  font: italic 400 15px var(--display);
}
.milestone-track { height: 2px; margin-bottom: 8px; background: #231b2b; }
.milestone-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); transition: width 1s; }

.story-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 36%, rgba(100, 38, 151, .11), transparent 22%),
    var(--ink);
}
.story-intro { max-width: 650px; margin: 0 0 105px 8%; }
.story-intro > p:last-child {
  max-width: 480px;
  margin: 28px 0 0;
  color: #958d99;
  font: 400 18px/1.7 var(--display);
}
.timeline { position: relative; max-width: 1050px; margin: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, #4f2a68 12%, #4f2a68 88%, transparent);
}
.story-card {
  position: relative;
  min-height: 535px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  margin-bottom: 100px;
}
.story-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 20px var(--purple);
  transform: translate(-50%, -50%);
}
.story-card.reverse .story-image { grid-column: 2; }
.story-card.reverse .story-copy { grid-row: 1; grid-column: 1; text-align: right; }
.story-image {
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.story-image.portrait { height: 535px; }
.story-image img { height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .8s; }
.story-image:hover img { transform: scale(1.035); }
.story-image.portrait img { object-position: center 25%; }
.story-image.flower-focus img { object-position: center center; }
.story-copy time {
  color: #9354c1;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.story-copy h3 { margin: 14px 0 18px; font: 500 clamp(31px, 4vw, 50px)/1 var(--display); }
.story-copy p, .story-copy blockquote { color: #938a97; font: 400 17px/1.7 var(--display); }
.story-copy blockquote {
  margin: 0 0 17px;
  padding-left: 17px;
  border-left: 1px solid var(--purple);
  color: #c7beca;
  font-style: italic;
}
.story-number {
  position: absolute;
  z-index: -1;
  top: -50px;
  color: rgba(255, 255, 255, .025);
  font: 500 150px var(--display);
}
.story-card.reverse .story-number { right: 0; }

.letter-section {
  min-height: 800px;
  display: grid;
  grid-template-columns: .8fr 1fr;
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
  background: #ece5eb;
  color: #18121b;
}
.letter-photo { position: relative; height: 630px; }
.letter-photo::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid rgba(84, 32, 127, .25);
}
.letter-photo img { position: relative; height: 100%; object-fit: cover; object-position: center 35%; filter: sepia(.1) saturate(.8); }
.letter-photo span {
  position: absolute;
  right: -55px;
  bottom: 40px;
  padding: 13px 22px;
  color: white;
  background: #5e267f;
  font: italic 500 20px var(--display);
  transform: rotate(-4deg);
}
.letter { max-width: 610px; }
.letter h2 { margin: 0 0 28px; font: italic 500 clamp(48px, 6vw, 78px)/1 var(--display); }
.letter p { margin: 0 0 20px; color: #514a53; font: 400 18px/1.7 var(--display); }
.letter strong { color: #6d2e8f; font-weight: 600; }
.signature { margin-top: 35px; color: #722c96; font: italic 500 25px var(--display); }

.memory-section { background: #09060e; }
.section-heading.split {
  max-width: 1120px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-align: left;
}
.section-heading.split > p { max-width: 370px; margin: 0; color: #8f8793; font: 400 17px/1.6 var(--display); }
.gallery {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #130d19;
  color: white;
  cursor: zoom-in;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .8s, filter .8s; }
.gallery-item:hover img { transform: scale(1.045); filter: brightness(.65); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(5, 3, 8, .88));
}
.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  font: 500 25px var(--display);
  text-align: left;
}
.gallery-item small { display: block; margin-bottom: 5px; color: #b284d2; font: 500 7px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; }

.milestones-section { background: linear-gradient(135deg, #0d0812, #08050b); overflow: hidden; }
.milestone-cards {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.milestone-card {
  position: relative;
  min-height: 320px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  overflow: hidden;
}
.milestone-card.unlocked {
  border-color: rgba(159, 76, 255, .32);
  background: radial-gradient(circle at 100% 0, rgba(127, 55, 177, .25), transparent 50%), rgba(255, 255, 255, .025);
}
.milestone-card.locked { color: #746c78; }
.milestone-card .card-number { font: italic 400 58px var(--display); color: #9b5bc5; }
.milestone-card.locked .card-number { color: #3d3542; }
.milestone-card h3 { margin: 0 0 12px; font: 500 27px/1 var(--display); }
.milestone-card p { margin: 0; color: #978d9c; font: 400 15px/1.55 var(--display); }
.milestone-card .lock {
  position: absolute;
  right: 25px;
  top: 25px;
  color: #5c5261;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.add-memory-section {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(60px, 10vw, 150px);
  background:
    radial-gradient(circle at 10% 80%, rgba(73, 33, 112, .19), transparent 33%),
    #efeaee;
  color: #19131c;
}
.add-memory-intro { padding-top: 35px; }
.add-memory-intro > p:not(.eyebrow) { max-width: 480px; color: #655e67; font: 400 18px/1.65 var(--display); }
.memory-actions { display: flex; gap: 20px; margin-top: 36px; }
.text-button {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid #773299;
  color: #773299;
  background: none;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.memory-form {
  padding: 40px;
  border: 1px solid rgba(51, 32, 58, .15);
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 35px 80px rgba(39, 24, 44, .08);
}
.memory-form label { display: block; margin-bottom: 25px; }
.memory-form label > span {
  display: block;
  margin-bottom: 9px;
  color: #5d5361;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.memory-form input[type="text"], .memory-form input[type="date"], .memory-form textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(51, 32, 58, .25);
  outline: none;
  background: transparent;
  color: #211924;
  font: 400 18px var(--display);
  resize: vertical;
}
.memory-form input[type="email"], .memory-form input[type="password"] {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(51, 32, 58, .25);
  outline: none;
  background: transparent;
  color: #211924;
  font: 400 18px var(--display);
}
.auth-form h3 { margin: 0 0 12px; font: 500 38px/1 var(--display); }
.auth-form > p:not(.eyebrow) { margin: 0 0 30px; color: #716875; font: 400 16px/1.55 var(--display); }
.memory-form input:focus, .memory-form textarea:focus { border-color: #773299; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-label b {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid rgba(51, 32, 58, .25);
  color: #817785;
  font: 400 16px var(--display);
  cursor: pointer;
}
.primary-button {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  border: 0;
  color: white;
  background: #1a101e;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: background .25s, transform .25s;
}
.primary-button:hover { background: #682b87; transform: translateY(-2px); }
.primary-button span { font-size: 18px; line-height: 8px; }
.form-note { margin: 15px 0 0; color: #908593; font-size: 9px; line-height: 1.5; }

.saved-memories-section { background: #0a070e; }
.saved-memories {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.saved-card { position: relative; padding: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.saved-card img { height: 270px; margin-bottom: 22px; object-fit: cover; }
.saved-card time { color: #9f60ca; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; }
.saved-card h3 { margin: 10px 0; font: 500 29px var(--display); }
.saved-card p { margin: 0; color: #9c929f; font: 400 16px/1.55 var(--display); white-space: pre-wrap; }
.delete-memory {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: white;
  background: rgba(8,5,11,.75);
  cursor: pointer;
}

.closing-section {
  min-height: 750px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.closing-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(5, 3, 8, .55), rgba(5, 3, 8, .9)),
    url("assets/memories/cidade-02.jpeg") center / cover;
}
.closing-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(85, 34, 130, .22), transparent 45%);
}
.closing-content { padding: 50px 24px; }
.closing-content p { color: #bdb4c1; font: italic 400 18px var(--display); }
.closing-content h2 { margin: 20px 0 35px; font: 500 clamp(48px, 7vw, 88px)/.95 var(--display); }
.closing-content span { color: #8b7f90; font-size: 8px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }

footer {
  min-height: 90px;
  padding: 0 clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f6674;
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.image-modal {
  width: min(92vw, 1100px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  background: #09070b;
  box-shadow: 0 30px 100px #000;
}
.image-modal::backdrop { background: rgba(3, 2, 5, .9); backdrop-filter: blur(8px); }
.image-modal img { max-height: 88vh; object-fit: contain; }
.image-modal button {
  position: fixed;
  right: 25px;
  top: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: white;
  background: rgba(0,0,0,.6);
  cursor: pointer;
  font-size: 28px;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 28px;
  padding: 13px 20px;
  color: #fff;
  background: #6f3291;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .4);
  font-size: 11px;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: .35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .counter-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 0; }
  .time-unit:nth-child(3)::after { display: none; }
  .story-card { gap: 60px; }
  .letter-section, .add-memory-section { grid-template-columns: 1fr; }
  .letter-photo { width: min(100%, 520px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .milestone-cards { grid-template-columns: repeat(2, 1fr); }
  .saved-memories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { height: 74px; padding: 0 20px; }
  .brand-date, .sound-button span:last-child { display: none; }
  .hero-content { padding-top: 45px; }
  .hero h1 { font-size: 67px; letter-spacing: -4px; }
  .hero-copy { max-width: 300px; margin-top: 34px; }
  .side-note { display: none; }
  section:not(.hero) { padding: 90px 20px; }
  .section-heading { margin-bottom: 45px; }
  .section-heading h2, .story-intro h2, .add-memory-intro h2 { font-size: 43px; }
  .counter-shell { padding: 35px 12px 28px; }
  .counter-grid { gap: 30px 0; }
  .time-unit strong { font-size: 42px; }
  .time-unit span { font-size: 7px; }
  .next-milestone { grid-template-columns: 1fr; }
  .milestone-track { grid-row: 2; }
  .story-intro { margin: 0 0 75px; }
  .timeline::before { left: 7px; }
  .story-card, .story-card.reverse {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
    margin: 0 0 85px;
    padding-left: 28px;
  }
  .story-card::after { left: 7px; top: 200px; }
  .story-card.reverse .story-copy { text-align: left; }
  .story-image, .story-image.portrait { width: 100%; height: 400px; }
  .story-number { top: -60px; font-size: 100px; }
  .letter-section { gap: 70px; }
  .letter-photo { height: 490px; }
  .letter-photo span { right: -5px; }
  .section-heading.split { display: block; }
  .section-heading.split > p { margin-top: 22px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 330px; }
  .gallery-item.wide { grid-column: auto; }
  .gallery-item.tall { grid-row: auto; }
  .milestone-cards { grid-template-columns: 1fr; }
  .milestone-card { min-height: 270px; }
  .memory-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .memory-actions { flex-direction: column; align-items: flex-start; }
  .saved-memories { grid-template-columns: 1fr; }
  footer { min-height: 120px; flex-direction: column; justify-content: center; gap: 15px; }
}

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