:root {
  --ink: #181713;
  --cream: #f4efe5;
  --paper: #fbf8f1;
  --white: #fffdf8;
  --gold: #d8ad58;
  --rust: #a8472a;
  --blue: #173f51;
  --line: rgba(24, 23, 19, 0.14);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --hand: "Kalam", cursive;
  --shadow: 0 24px 70px rgba(31, 28, 19, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 90px;
  padding: 0 clamp(24px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 239, 229, 0.14);
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: max-content;
}
.brand > span {
  font: 38px var(--serif);
}
.brand i {
  width: 25px;
  height: 25px;
  margin-left: -4px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}
.brand strong {
  margin-left: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-header nav {
  display: flex;
  gap: 38px;
}
.site-header nav a {
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 180ms;
}
.site-header nav a:hover {
  opacity: 1;
}
.header-action {
  justify-self: end;
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
}
.header-action span {
  margin-left: 10px;
}

.hero {
  min-height: 880px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
  padding: 150px clamp(28px, 8vw, 140px) 88px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "50";
  position: absolute;
  right: -3vw;
  bottom: -16vw;
  color: rgba(255, 255, 255, 0.025);
  font: min(45vw, 680px)/1 var(--serif);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
}
.hero-copy {
  width: min(52%, 720px);
  position: relative;
  z-index: 4;
}
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d0cabd;
}
.hero-copy .eyebrow::before {
  content: "";
  width: 35px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  margin: 28px 0 26px;
  font: clamp(72px, 9.2vw, 142px)/0.82 var(--serif);
  letter-spacing: -0.045em;
}
.hero h1 em,
h2 em {
  color: var(--gold);
  font-family: var(--hand);
  font-weight: 300;
}
.hero h1 em {
  display: inline-block;
  margin-left: 0.65em;
  font-size: 0.72em;
  letter-spacing: -0.04em;
  transform: rotate(-2deg);
}
.intro {
  max-width: 470px;
  margin: 0;
  color: #bab5aa;
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}
.primary-action {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms,
    background 180ms;
}
.primary-action:hover {
  transform: translateY(-2px);
  background: #e3bb69;
}
.primary-action b {
  font-size: 16px;
  font-weight: 400;
}
.quiet-action {
  color: #d3cec4;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-underline-offset: 7px;
}
.hero-collage {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 6vw, 105px);
  top: 15%;
  width: min(39vw, 585px);
  height: 72%;
}
.photo-card {
  position: relative;
  margin: 0;
  background: #eee7d9;
  padding: 9px 9px 32px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition:
    transform 260ms,
    box-shadow 260ms;
}
.photo-card::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: -9px;
  left: 34%;
  width: 58px;
  height: 19px;
  background: rgba(215, 190, 142, 0.78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transform: rotate(-3deg);
}
.photo-card:hover {
  z-index: 8 !important;
  transform: rotate(0) translateY(-7px) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
}
.photo-card figcaption {
  padding-top: 8px;
  text-align: center;
  font: 13px var(--hand);
}
.hero-photo {
  position: absolute;
  width: 51%;
}
.p1 {
  top: 1%;
  left: 4%;
  transform: rotate(-7deg);
  z-index: 2;
}
.p2 {
  top: 25%;
  right: 1%;
  transform: rotate(6deg);
  z-index: 4;
}
.p3 {
  left: 13%;
  bottom: 0;
  transform: rotate(-2deg);
  z-index: 5;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  width: min(50vw, 760px);
  aspect-ratio: 1;
  right: -6vw;
}
.orbit-two {
  width: min(35vw, 520px);
  right: 2vw;
}
.paper-fragment {
  position: absolute;
  z-index: 2;
  padding: 20px 26px;
  background:
    linear-gradient(90deg, rgba(76, 62, 38, 0.045) 1px, transparent 1px),
    linear-gradient(#f0e8d8, #e7dcc8);
  background-size:
    16px 100%,
    100% 100%;
  color: #50493e;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
  font: 25px/0.9 var(--serif);
  transform: rotate(var(--paper-turn));
  clip-path: polygon(2% 5%, 96% 0, 100% 91%, 94% 97%, 5% 100%, 0 89%);
}
.paper-fragment::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 32%;
  width: 52px;
  height: 17px;
  background: rgba(219, 194, 147, 0.7);
  transform: rotate(-4deg);
}
.paper-fragment span {
  font: 11px var(--hand);
}
.fragment-one {
  --paper-turn: -8deg;
  right: 38%;
  top: 14%;
}
.fragment-two {
  --paper-turn: 6deg;
  right: 3%;
  bottom: 12%;
  padding: 15px 20px;
  font: 15px/1.2 var(--hand);
}
.hero-meta {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 8vw, 140px);
  bottom: 30px;
  display: flex;
  gap: 38px;
  color: #8f8b83;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}
.scroll-note {
  position: absolute;
  z-index: 4;
  right: clamp(28px, 5vw, 85px);
  bottom: 30px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-note span {
  margin-left: 12px;
  color: var(--gold);
}

.memory-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/5;
  isolation: isolate;
  background-color: #5b4630;
  color: rgba(255, 255, 255, 0.85);
}
.memory-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 54%;
  height: 68%;
  left: 22%;
  top: 20%;
  border-radius: 48% 48% 18% 18%;
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    -7vw 5vw 0 rgba(0, 0, 0, 0.1),
    7vw -4vw 0 rgba(255, 255, 255, 0.06);
  transform: rotate(-7deg);
}
.memory-photo.has-image::before {
  display: none;
}
.memory-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14),
    transparent 35%,
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
}
.memory-photo > span {
  font: clamp(40px, 7vw, 108px) var(--serif);
  opacity: 0.68;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.portrait-one {
  background: linear-gradient(145deg, #a34e35, #6b2d2e 55%, #292724);
}
.portrait-two {
  background: linear-gradient(145deg, #25536a, #ba7d47 72%);
}
.portrait-three {
  background: linear-gradient(145deg, #877036, #214f46 68%, #17342f);
}

.story-section {
  position: relative;
  padding: 135px clamp(28px, 8vw, 140px) 95px;
  display: grid;
  grid-template-columns: 1.08fr 0.7fr;
  gap: 10vw;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(105, 81, 43, 0.055) 0 1px,
      transparent 1.5px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 28px,
      rgba(92, 75, 49, 0.025) 29px
    ),
    var(--cream);
  background-size:
    17px 19px,
    auto,
    auto;
}
.story-section::before,
.memories-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -19px;
  left: 0;
  width: 100%;
  height: 25px;
  background: inherit;
  clip-path: polygon(
    0 48%,
    3% 25%,
    7% 55%,
    11% 18%,
    16% 59%,
    21% 30%,
    27% 62%,
    34% 20%,
    40% 58%,
    47% 25%,
    54% 64%,
    61% 18%,
    68% 55%,
    76% 27%,
    82% 61%,
    89% 22%,
    94% 55%,
    100% 31%,
    100% 100%,
    0 100%
  );
}
.story-scrap {
  position: absolute;
  z-index: 0;
  right: 4.5vw;
  top: 105px;
  width: 145px;
  min-height: 118px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 18px,
      rgba(55, 89, 116, 0.11) 19px
    ),
    #e3dac8;
  box-shadow: 0 12px 25px rgba(71, 57, 38, 0.13);
  transform: rotate(5deg);
  clip-path: polygon(3% 2%, 95% 0, 100% 89%, 93% 100%, 5% 96%, 0 9%);
  color: #544c40;
}
.story-scrap::after {
  content: "↙";
  position: absolute;
  left: -34px;
  bottom: -23px;
  font: 31px var(--hand);
  transform: rotate(18deg);
}
.story-scrap span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.story-scrap strong {
  font: 34px var(--serif);
}
.story-scrap i {
  margin-top: 8px;
  color: var(--rust);
  font: 11px var(--hand);
}
.section-number {
  position: absolute;
  right: clamp(28px, 8vw, 140px);
  top: 55px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #807b72;
}
.story-heading h2,
.memories-header h2,
.wishes-title h2 {
  margin: 24px 0;
  font: clamp(55px, 7vw, 104px)/0.95 var(--serif);
  letter-spacing: -0.045em;
}
.story-heading h2 em {
  font-size: 0.75em;
  white-space: nowrap;
}
.story-copy {
  padding-top: 65px;
  font-size: 16px;
  line-height: 1.85;
  color: #4d4a43;
}
.story-copy p {
  max-width: 510px;
}
.story-copy p:last-child {
  margin-top: 30px;
  padding-left: 20px;
  border-left: 2px solid var(--rust);
  color: var(--rust);
  font: 20px/1.55 var(--hand);
}
.milestones {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.milestones > div {
  position: relative;
  padding: 30px;
  border-right: 1px solid var(--line);
}
.milestones > div:last-child {
  border-right: 0;
}
.milestones span {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #a29d93;
  font-size: 9px;
}
.milestones b {
  display: block;
  margin-bottom: 8px;
  color: var(--rust);
  font: 34px var(--serif);
}
.milestones small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
}

.family-tribute {
  position: relative;
  grid-column: 1 / -1;
  width: min(1040px, 100%);
  margin: 78px auto 0;
  padding: clamp(36px, 5vw, 70px);
  border: 1px solid rgba(106, 90, 63, 0.18);
  background:
    linear-gradient(90deg, rgba(141, 81, 53, 0.035), transparent 14% 86%, rgba(141, 81, 53, 0.03)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(91, 73, 48, 0.035) 32px),
    #f5eee1;
  box-shadow:
    0 28px 55px rgba(72, 57, 37, 0.12),
    9px 10px 0 rgba(224, 211, 188, 0.62);
  color: #35312b;
}
.tribute-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.tribute-heading .eyebrow {
  margin-top: 8px;
}
.tribute-heading > span {
  color: var(--rust);
  font: clamp(50px, 6vw, 80px)/0.8 var(--serif);
}
.tribute-opening {
  max-width: 900px;
  margin: 38px 0 32px;
  font: clamp(30px, 4vw, 52px)/1.08 var(--serif);
  letter-spacing: -0.025em;
}
.tribute-opening span {
  font-size: 0.55em;
  vertical-align: 0.18em;
}
.tribute-copy {
  columns: 2;
  column-gap: clamp(36px, 6vw, 76px);
  column-rule: 1px solid rgba(106, 90, 63, 0.15);
  font-size: 16px;
  line-height: 1.85;
  color: #514b42;
}
.tribute-copy p {
  margin: 0 0 25px;
  break-inside: avoid;
}
.tribute-closing {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 30px 7% 0;
  border-top: 1px solid var(--line);
  color: var(--rust);
  text-align: center;
  font: clamp(20px, 2.2vw, 28px)/1.55 var(--hand);
}
.join-wishes {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.join-wishes i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--rust);
  font: 25px/1 var(--sans);
  animation: join-arrow 1.8s ease-in-out infinite;
}
.join-wishes:hover i,
.join-wishes:focus-visible i {
  border-color: var(--rust);
  background: var(--rust);
  color: #fff;
}
@keyframes join-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

.memories-section {
  position: relative;
  padding: 120px clamp(20px, 5vw, 80px) 100px;
  background:
    linear-gradient(
      92deg,
      transparent 0 78%,
      rgba(77, 62, 37, 0.025) 78% 79%,
      transparent 79%
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(105, 81, 43, 0.05) 0 1px,
      transparent 1.4px
    ),
    var(--paper);
  background-size:
    100% 100%,
    18px 20px,
    auto;
}
.memories-header {
  max-width: 1240px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.55fr;
  align-items: center;
  gap: 80px;
}
.memories-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}
.memories-side .section-intro {
  max-width: 390px;
  text-align: right;
}
.message-action {
  min-width: 178px;
  margin-top: 22px;
  box-shadow: 5px 6px 0 rgba(24, 23, 19, 0.12);
  transform: rotate(1deg);
}
.message-action:hover {
  transform: rotate(0) translateY(-2px);
}
.memories-header h2 {
  margin-bottom: 0;
}
.memories-header h2 em {
  white-space: nowrap;
}
.section-intro {
  margin: 0 0 8px;
  color: #625e55;
  line-height: 1.75;
  font-size: 14px;
}
.gallery-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 25px,
      rgba(76, 96, 112, 0.055) 26px
    ),
    linear-gradient(94deg, #eee5d4, #e6dac5);
  box-shadow: var(--shadow);
  clip-path: polygon(0.3% 0.5%, 99.4% 0, 100% 98.8%, 98.7% 100%, 0 99.4%);
}
.gallery-toolbar {
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #686258;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.gallery-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #66874d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(102, 135, 77, 0.11);
}
.gallery-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-pagination button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(24, 23, 19, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  cursor: pointer;
}
.gallery-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}
.view-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(24, 23, 19, 0.12);
  background: rgba(255, 255, 255, 0.28);
}
.view-switch button {
  min-height: 35px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #6f695f;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}
.view-switch button i {
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}
.view-switch button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.gallery {
  background: #191814;
  min-height: 680px;
  transition: opacity 180ms;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.gallery-item .memory-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transition:
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 300ms;
}
.gallery-item:hover .memory-photo {
  transform: scale(1.025);
  filter: brightness(0.82);
}
.item-label {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  padding: 42px 17px 15px;
  color: white;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 10px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  transition: 220ms;
}
.item-label b {
  font: 17px var(--serif);
}
.gallery-item:hover .item-label,
.gallery-item:focus-visible .item-label {
  opacity: 1;
  transform: none;
}
.gallery.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 86px);
  gap: 5px;
}
.mosaic .gallery-item:nth-child(1) {
  grid-area: 1/1/5/4;
}
.mosaic .gallery-item:nth-child(2) {
  grid-area: 1/4/3/8;
}
.mosaic .gallery-item:nth-child(3) {
  grid-area: 1/8/4/10;
}
.mosaic .gallery-item:nth-child(4) {
  grid-area: 1/10/3/13;
}
.mosaic .gallery-item:nth-child(5) {
  grid-area: 3/4/6/6;
}
.mosaic .gallery-item:nth-child(6) {
  grid-area: 3/6/5/8;
}
.mosaic .gallery-item:nth-child(7) {
  grid-area: 3/10/6/13;
}
.mosaic .gallery-item:nth-child(8) {
  grid-area: 5/1/9/4;
}
.mosaic .gallery-item:nth-child(9) {
  grid-area: 5/6/9/10;
}
.mosaic .gallery-item:nth-child(10) {
  grid-area: 6/4/9/6;
}
.mosaic .gallery-item:nth-child(11) {
  grid-area: 6/10/9/13;
}
.mosaic .gallery-item:nth-child(12) {
  display: none;
}
.gallery.heart {
  width: min(920px, 88%);
  min-height: 710px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  clip-path: polygon(
    50% 100%,
    7% 51%,
    1% 32%,
    3% 17%,
    13% 5%,
    27% 1%,
    40% 6%,
    50% 18%,
    60% 6%,
    73% 1%,
    87% 5%,
    97% 17%,
    99% 32%,
    93% 51%
  );
}
.gallery.orbit {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at center,
      transparent 0 33%,
      rgba(255, 255, 255, 0.045) 33.2% 33.4%,
      transparent 33.6%
    ),
    #1d1c18;
}
.gallery.orbit::before {
  content: "ADEYOSOLA • 50 •";
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: #d6c7ad;
  font-size: 9px;
  letter-spacing: 0.28em;
  white-space: nowrap;
}
.orbit .gallery-item {
  position: absolute;
  width: 19%;
  height: 29%;
  border: 5px solid #1d1c18;
  border-radius: 42% 42% 25% 25%;
  clip-path: polygon(13% 0, 87% 0, 100% 78%, 68% 100%, 32% 100%, 0 78%);
}
.orbit .gallery-item:nth-child(1) {
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 31%;
  height: 45%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  clip-path: circle(50%);
}
.orbit .gallery-item:nth-child(2) {
  left: 40.5%;
  top: 2%;
}
.orbit .gallery-item:nth-child(3) {
  left: 59.2%;
  top: 8%;
  transform: rotate(42deg);
}
.orbit .gallery-item:nth-child(4) {
  right: 7.5%;
  top: 34%;
  transform: rotate(82deg);
}
.orbit .gallery-item:nth-child(5) {
  right: 17%;
  bottom: 5%;
  transform: rotate(132deg);
}
.orbit .gallery-item:nth-child(6) {
  left: 40.5%;
  bottom: 0;
  transform: rotate(180deg);
}
.orbit .gallery-item:nth-child(7) {
  left: 17%;
  bottom: 5%;
  transform: rotate(-132deg);
}
.orbit .gallery-item:nth-child(8) {
  left: 7.5%;
  top: 34%;
  transform: rotate(-82deg);
}
.orbit .gallery-item:nth-child(9) {
  left: 21.8%;
  top: 8%;
  transform: rotate(-42deg);
}
.orbit .gallery-item:nth-child(n + 10) {
  display: none;
}
.orbit .gallery-item:nth-child(3) .memory-photo {
  transform: rotate(-42deg) scale(1.45);
}
.orbit .gallery-item:nth-child(4) .memory-photo {
  transform: rotate(-82deg) scale(1.55);
}
.orbit .gallery-item:nth-child(5) .memory-photo {
  transform: rotate(-132deg) scale(1.55);
}
.orbit .gallery-item:nth-child(6) .memory-photo {
  transform: rotate(-180deg) scale(1.3);
}
.orbit .gallery-item:nth-child(7) .memory-photo {
  transform: rotate(132deg) scale(1.55);
}
.orbit .gallery-item:nth-child(8) .memory-photo {
  transform: rotate(82deg) scale(1.55);
}
.orbit .gallery-item:nth-child(9) .memory-photo {
  transform: rotate(42deg) scale(1.45);
}
.orbit .gallery-item:hover .memory-photo {
  filter: brightness(0.82);
}
.orbit .item-label {
  display: none;
}

.gallery.arc {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #1b1a17;
}
.gallery.arc::before {
  content: "1976 — 2026\A FIVE DECADES";
  white-space: pre;
  position: absolute;
  z-index: 5;
  left: 8%;
  top: 43%;
  padding: 25px 0;
  width: 28%;
  border-top: 1px solid #77736b;
  border-bottom: 1px solid #77736b;
  color: #f1eadf;
  font: 25px/2 var(--serif);
  letter-spacing: 0.13em;
}
.arc .gallery-item {
  position: absolute;
  right: var(--arc-right);
  top: var(--arc-top);
  width: 58%;
  height: 22%;
  border: 5px solid #1b1a17;
  border-radius: 48% 0 0 48% / 50% 0 0 50%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 2% 92%, 0 70%, 4% 35%);
  transform: rotate(var(--arc-turn));
}
.arc .gallery-item:nth-child(1) {
  --arc-top: -3%;
  --arc-right: -10%;
  --arc-turn: 8deg;
}
.arc .gallery-item:nth-child(2) {
  --arc-top: 16%;
  --arc-right: -1%;
  --arc-turn: 3deg;
}
.arc .gallery-item:nth-child(3) {
  --arc-top: 37%;
  --arc-right: 3%;
  --arc-turn: 0deg;
}
.arc .gallery-item:nth-child(4) {
  --arc-top: 58%;
  --arc-right: -1%;
  --arc-turn: -3deg;
}
.arc .gallery-item:nth-child(5) {
  --arc-top: 79%;
  --arc-right: -10%;
  --arc-turn: -8deg;
}
.arc .gallery-item:nth-child(n + 6) {
  display: none;
}
.arc .item-label {
  opacity: 1;
  transform: none;
}
.heart .gallery-item {
  min-height: 220px;
}
.heart .item-label {
  display: none;
}
.gallery.polaroid {
  min-height: auto;
  padding: 65px 5% 75px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 30px;
  align-items: start;
  background: #d7c8b3;
}
.polaroid .gallery-item {
  height: auto;
  padding: 9px 9px 58px;
  overflow: visible;
  background: #f3ecdf;
  box-shadow: 0 14px 25px rgba(43, 34, 22, 0.2);
  transform: rotate(var(--r));
  transition:
    transform 220ms,
    box-shadow 220ms;
}
.polaroid .gallery-item:nth-child(4n + 1) {
  --r: -3.5deg;
}
.polaroid .gallery-item:nth-child(4n + 2) {
  --r: 2.5deg;
  margin-top: 25px;
}
.polaroid .gallery-item:nth-child(4n + 3) {
  --r: -1.5deg;
}
.polaroid .gallery-item:nth-child(4n) {
  --r: 3.5deg;
  margin-top: 16px;
}
.polaroid .gallery-item:hover {
  z-index: 3;
  transform: rotate(0) translateY(-7px);
  box-shadow: 0 22px 40px rgba(43, 34, 22, 0.28);
}
.polaroid .memory-photo {
  height: auto;
  aspect-ratio: 1/1.05;
}
.polaroid .item-label {
  opacity: 1;
  transform: none;
  inset: auto 0 10px;
  padding: 4px 12px;
  color: var(--ink);
  background: none;
  text-align: center;
}
.polaroid .item-label b {
  display: block;
  margin-bottom: 9px;
  font: 13px var(--hand);
  line-height: 1.2;
}
.polaroid .item-label br {
  display: none;
}
.gallery-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-footer p {
  color: #69645a;
  font-size: 13px;
}
.primary-action.light {
  background: transparent;
  border-color: var(--ink);
}
.primary-action.light:hover {
  background: var(--ink);
  color: var(--white);
}

.wishes-section {
  overflow: hidden;
  background: var(--blue);
  color: var(--cream);
}
.wish-ribbon {
  width: 104%;
  margin-left: -2%;
  padding: 12px;
  transform: rotate(-0.8deg);
  background: var(--gold);
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
  word-spacing: 18px;
  font: 12px var(--hand);
}
.wishes-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 125px 45px 140px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 9vw;
}
.wishes-title h2 {
  font-size: clamp(52px, 6vw, 88px);
}
.wishes-title > p:not(.eyebrow) {
  max-width: 460px;
  color: #b9c8cb;
  line-height: 1.75;
  font-size: 14px;
}
.primary-action.gold {
  margin-top: 24px;
}
.message-board {
  min-width: 0;
}
.message-board-toolbar {
  min-height: 52px;
  margin-bottom: 18px;
  padding: 0 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 239, 229, 0.22);
  color: #c2d0d2;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.message-board-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(244, 239, 229, 0.38);
  background: transparent;
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.order-button:hover,
.order-button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.order-icon {
  margin-right: 8px;
  font-size: 15px;
}
.wish-stack {
  position: relative;
  min-height: 610px;
}
.wish-stack.pile {
  overflow: visible;
}
.wish-note {
  width: min(78%, 390px);
  padding: 30px 33px;
  background: #eee4d1;
  color: var(--ink);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  clip-path: polygon(2% 1%, 97% 0, 100% 95%, 94% 100%, 3% 98%, 0 8%);
  cursor: pointer;
}
.wish-stack.pile .wish-note {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: calc(var(--i) + 1);
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
    rotate(var(--r));
  animation: paper-drop 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 55ms);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}
.wish-stack.pile .wish-note:hover,
.wish-stack.pile .wish-note.raised {
  z-index: 100;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 12px))
    rotate(0deg) scale(1.035);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}
.wish-stack.ordered {
  height: 610px;
  padding: 4px 12px 30px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}
.wish-stack.ordered .wish-note {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  transform: none;
  cursor: default;
  animation: paper-order 420ms ease both;
  animation-delay: calc(var(--i) * 45ms);
}
.empty-messages {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(82%, 390px);
  margin: 0;
  padding: 42px 30px;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  background: #eee4d1;
  color: #756d60;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  clip-path: polygon(2% 1%, 97% 0, 100% 95%, 94% 100%, 3% 98%, 0 8%);
  text-align: center;
  font: 18px/1.5 var(--hand);
}
.empty-messages::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 17px;
  top: -7px;
  left: calc(50% - 29px);
  transform: rotate(-3deg);
  background: rgba(220, 196, 148, 0.7);
}
.wish-note::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 17px;
  top: -8px;
  left: 42%;
  transform: rotate(-3deg);
  background: rgba(220, 196, 148, 0.7);
}
.wish-note p {
  margin: 0 0 20px;
  font: 20px/1.5 var(--hand);
}
.wish-note b {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wish-note:nth-child(3n + 2) {
  background: #e8dcc4;
}
.wish-note:nth-child(3n) {
  background: #f1e9d9;
}
.wish-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: #8a8175;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.wish-location {
  color: var(--rust);
  font-weight: 600;
}
@keyframes paper-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -180%) rotate(18deg) scale(0.86);
  }
  to {
    opacity: 1;
  }
}
@keyframes paper-order {
  from {
    opacity: 0;
    transform: translateX(40px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

footer {
  min-height: 180px;
  padding: 52px clamp(28px, 6vw, 100px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
  background: var(--ink);
  color: var(--cream);
}
footer > div:nth-child(2) {
  text-align: center;
}
footer > p:last-child {
  justify-self: end;
}
footer p {
  margin: 5px 0;
  color: #8f8b83;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
footer strong {
  font: 20px var(--serif);
  font-weight: 400;
}
.footer-mark {
  font: 68px var(--serif);
}
.footer-mark span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 10px var(--sans);
}

.memory-modal,
.upload-modal,
.choice-modal {
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
}
.memory-modal {
  width: min(1080px, 92vw);
  max-width: none;
  height: min(760px, 90vh);
  max-height: none;
  overflow: hidden;
}
.memory-modal[open] {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
}
.memory-modal::backdrop,
.upload-modal::backdrop,
.choice-modal::backdrop {
  background: rgba(12, 12, 11, 0.84);
  backdrop-filter: blur(9px);
}
.close {
  position: absolute;
  z-index: 8;
  top: 17px;
  right: 18px;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.9);
  color: var(--ink);
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
}
.modal-photo {
  min-height: 100%;
  background: var(--ink);
  overflow: hidden;
}
.modal-photo .memory-photo {
  height: 100%;
  aspect-ratio: auto;
}
.modal-content {
  padding: 54px 55px 40px;
  overflow-y: auto;
}
.modal-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 40px;
}
.modal-kicker span {
  color: #8e897e;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.modal-content h3,
.upload-modal h3,
.choice-modal h3 {
  margin: 13px 0 15px;
  font: 46px/1.05 var(--serif);
}
.modal-caption {
  margin: 0;
  color: #666157;
  font-size: 14px;
  line-height: 1.7;
}
.message-list {
  margin: 28px 0 20px;
  border-top: 1px solid var(--line);
}
.message-list > .eyebrow {
  padding-top: 24px;
  color: #888278;
}
.message {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.message b {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.message p {
  margin: 8px 0;
  font: 17px/1.5 var(--hand);
}
.message small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: #858076;
  font-size: 9px;
}
.message-location {
  color: var(--rust);
  font-weight: 600;
}
form h4 {
  margin: 27px 0 16px;
  font: 24px var(--serif);
  font-weight: 400;
}
.form-guidance {
  margin: -6px 0 20px;
  color: #817c72;
  font-size: 10px;
  line-height: 1.55;
}
.contribution-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 18px 0 22px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #eee7da;
}
.contribution-switch button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #756f65;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.contribution-switch button span {
  margin-right: 6px;
  font-size: 14px;
}
.contribution-switch button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(35, 30, 21, 0.08);
}
#textContribution[hidden],
#mediaContribution[hidden] {
  display: none;
}
.media-upload {
  position: relative;
  min-height: 105px;
  margin: 18px 0;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9c9385;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 20px,
      rgba(77, 96, 112, 0.05) 21px
    ),
    #f4ede1;
  text-align: center;
  cursor: pointer;
}
.media-upload > span {
  font: 18px var(--serif);
  letter-spacing: 0;
  text-transform: none;
}
.media-upload small {
  margin-top: 7px;
  color: #817a70;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}
.media-upload input {
  width: auto;
  max-width: 100%;
  margin-top: 14px;
  padding: 0;
  border: 0;
  font-size: 10px;
}
.optional-label {
  margin-left: 7px;
  color: #999187;
  font-size: 8px;
  font-weight: 400;
}
.field-help {
  display: block;
  margin-top: 7px;
  color: #817a70;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.message-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.message-heading span,
.wish-type {
  color: #8b8479;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.message-media {
  display: block;
  width: 100%;
  max-height: 280px;
  margin: 15px 0 10px;
  background: #191814;
}
.message-media.audio {
  height: 42px;
  background: transparent;
}
.wish-type {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rust);
}
label {
  display: block;
  margin: 15px 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 1px;
  border: 0;
  border-bottom: 1px solid #aaa49a;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 14px var(--sans);
  letter-spacing: normal;
  text-transform: none;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5d574e 50%),
    linear-gradient(135deg, #5d574e 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--rust);
}
.template-choice {
  margin: 9px 0 20px;
  padding: 12px 14px;
  border-left: 2px solid var(--rust);
  background: #eee6d8;
  color: #6d665c;
  font: 12px/1.5 var(--hand);
}
textarea {
  min-height: 78px;
  resize: vertical;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.form-row span,
.form-note {
  color: #817c72;
  font-size: 9px;
  line-height: 1.5;
}
.form-row button,
.upload-modal form > button,
#photoUploadFields > button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--rust);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 9px;
  cursor: pointer;
}
.upload-modal form > button:disabled,
#photoUploadFields:disabled > button {
  cursor: wait;
  opacity: 0.65;
}
.memory-protection {
  margin: 0 0 20px;
  color: #6d665c;
  font-size: 12px;
  line-height: 1.6;
}
.template-assignment {
  margin-top: 24px;
}
.template-assignment > span {
  display: block;
  color: #625e55;
  font-size: 14px;
}
.template-assignment output {
  display: block;
  margin-top: 8px;
  font: 28px/1.2 var(--serif);
}
#photoUploadFields {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
#photoUploadFields:disabled {
  opacity: 0.65;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.choice-modal {
  width: min(720px, 92vw);
  padding: 52px;
}
.choice-modal[open] {
  display: block;
}
.choice-modal .close {
  background: transparent;
}
.choice-modal h3 {
  max-width: 540px;
  margin-bottom: 12px;
}
.choice-intro {
  max-width: 540px;
  margin: 0 0 30px;
  color: #716b61;
  font-size: 14px;
  line-height: 1.65;
}
.message-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.message-choice {
  position: relative;
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 24px,
      rgba(70, 88, 101, 0.055) 25px
    ),
    #eee6d7;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  clip-path: polygon(1% 1%, 98% 0, 100% 96%, 95% 100%, 2% 98%, 0 7%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.message-choice:nth-child(2) {
  transform: rotate(1.2deg);
}
.message-choice:hover {
  transform: translateY(-4px) rotate(0);
  box-shadow: 0 18px 35px rgba(45, 37, 24, 0.15);
}
.choice-number {
  color: var(--rust);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.message-choice b {
  margin-top: 24px;
  font: 25px var(--serif);
  font-weight: 400;
}
.message-choice small {
  margin-top: 10px;
  color: #70695f;
  font-size: 11px;
  line-height: 1.55;
}
.message-choice i {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 19px;
  font-style: normal;
}
.modal-nav {
  position: fixed;
  z-index: 7;
  top: 50%;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.55);
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.modal-nav.previous {
  left: 1.2vw;
}
.modal-nav.next {
  right: 1.2vw;
}
.upload-modal {
  width: min(570px, 92vw);
  padding: 48px;
}
.upload-modal[open] {
  display: block;
}
.upload-modal .close {
  background: transparent;
}
.upload-modal form > button {
  width: 100%;
  margin-top: 14px;
}
.toast {
  position: fixed;
  z-index: 150;
  bottom: 24px;
  left: 50%;
  padding: 14px 22px;
  transform: translate(-50%, 28px);
  opacity: 0;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-size: 11px;
  transition: 220ms;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms,
    transform 700ms;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-header nav {
    display: none;
  }
  .hero {
    min-height: 930px;
    height: auto;
    align-items: flex-start;
  }
  .hero-copy {
    width: 58%;
  }
  .hero h1 {
    font-size: clamp(68px, 10vw, 105px);
  }
  .hero-collage {
    right: 2vw;
    top: 25%;
    width: 43vw;
    height: 63%;
  }
  .story-section {
    gap: 7vw;
  }
  .story-heading h2 {
    font-size: 64px;
  }
  .gallery.mosaic {
    grid-template-rows: repeat(8, 70px);
  }
  .gallery.polaroid {
    grid-template-columns: repeat(3, 1fr);
  }
  .wishes-inner {
    gap: 4vw;
  }
}
@media (max-width: 720px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
  }
  .brand strong,
  .site-header nav {
    display: none;
  }
  .header-action {
    font-size: 8px;
  }
  .hero {
    min-height: 930px;
    padding: 125px 22px 75px;
    display: block;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    margin-top: 22px;
    font-size: clamp(64px, 20vw, 88px);
  }
  .hero h1 em {
    margin-left: 0.25em;
  }
  .intro {
    max-width: 340px;
    font-size: 14px;
  }
  .hero-actions {
    gap: 18px;
  }
  .quiet-action {
    display: none;
  }
  .hero-collage {
    top: 495px;
    left: 9%;
    right: auto;
    width: 82%;
    height: 390px;
  }
  .paper-fragment,
  .story-scrap {
    display: none;
  }
  .hero-photo {
    width: 47%;
  }
  .p1 {
    left: 0;
  }
  .p2 {
    right: 0;
  }
  .p3 {
    left: 27%;
  }
  .hero-meta {
    display: none;
  }
  .scroll-note {
    right: 20px;
    bottom: 20px;
  }
  .story-section {
    padding: 95px 22px 70px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .section-number {
    top: 35px;
    right: 22px;
  }
  .story-heading h2,
  .memories-header h2 {
    font-size: 53px;
  }
  .story-heading h2 em {
    white-space: normal;
  }
  .story-copy {
    padding-top: 0;
    font-size: 14px;
  }
  .family-tribute {
    margin-top: 42px;
    padding: 34px 24px 38px;
    box-shadow:
      0 20px 38px rgba(72, 57, 37, 0.11),
      5px 6px 0 rgba(224, 211, 188, 0.62);
  }
  .tribute-opening {
    margin: 28px 0 24px;
    font-size: 34px;
  }
  .tribute-copy {
    columns: 1;
    font-size: 16px;
  }
  .tribute-closing {
    padding-inline: 0;
    text-align: left;
  }
  .join-wishes {
    margin-top: 48px;
    text-align: center;
    font-size: 12px;
  }
  .milestones {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }
  .milestones > div:nth-child(2) {
    border-right: 0;
  }
  .milestones > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .memories-section {
    padding: 85px 14px 70px;
  }
  .memories-header {
    display: block;
    margin: 0 8px 32px;
  }
  .memories-side {
    align-items: flex-start;
    margin-top: 26px;
  }
  .memories-side .section-intro {
    text-align: left;
  }
  .section-intro {
    margin-top: 25px;
  }
  .gallery-shell {
    padding: 7px;
  }
  .gallery-toolbar {
    min-height: 104px;
    padding: 11px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
  }
  .gallery-pagination {
    width: 100%;
    justify-content: space-between;
    padding: 2px 0;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    flex: 1;
    justify-content: center;
    padding: 0 6px;
  }
  .view-switch button i {
    display: none;
  }
  .gallery.orbit {
    min-height: 540px;
  }
  .orbit .gallery-item {
    width: 28%;
    height: 24%;
    border-width: 3px;
  }
  .orbit .gallery-item:nth-child(1) {
    width: 38%;
    height: 37%;
  }
  .orbit .gallery-item:nth-child(2) {
    left: 36%;
    top: 5%;
  }
  .orbit .gallery-item:nth-child(3) {
    left: 59%;
    top: 12%;
  }
  .orbit .gallery-item:nth-child(4) {
    right: 3%;
    top: 37%;
  }
  .orbit .gallery-item:nth-child(5) {
    right: 12%;
    bottom: 7%;
  }
  .orbit .gallery-item:nth-child(6) {
    left: 36%;
    bottom: 2%;
  }
  .orbit .gallery-item:nth-child(7) {
    left: 12%;
    bottom: 7%;
  }
  .orbit .gallery-item:nth-child(8) {
    left: 3%;
    top: 37%;
  }
  .orbit .gallery-item:nth-child(9) {
    left: 13%;
    top: 12%;
  }
  .gallery.arc {
    min-height: 570px;
  }
  .gallery.arc::before {
    left: 6%;
    top: 41%;
    width: 34%;
    font-size: 14px;
    line-height: 2.2;
  }
  .arc .gallery-item {
    width: 65%;
    height: 22%;
    border-width: 3px;
  }
  .gallery {
    min-height: 560px;
  }
  .gallery.mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 145px);
  }
  .mosaic .gallery-item {
    grid-area: auto !important;
    display: block !important;
  }
  .mosaic .gallery-item:nth-child(n + 9) {
    display: none !important;
  }
  .item-label {
    opacity: 1;
    transform: none;
    padding: 35px 10px 9px;
  }
  .item-label b {
    font-size: 14px;
  }
  .gallery.heart {
    width: 100%;
    min-height: 540px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    clip-path: polygon(
      50% 100%,
      3% 45%,
      0 27%,
      6% 10%,
      22% 1%,
      38% 5%,
      50% 19%,
      62% 5%,
      78% 1%,
      94% 10%,
      100% 27%,
      97% 45%
    );
  }
  .heart .gallery-item {
    min-height: 130px;
  }
  .gallery.polaroid {
    padding: 42px 8% 55px;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 17px;
  }
  .polaroid .gallery-item {
    margin-top: 0 !important;
    padding: 6px 6px 50px;
  }
  .gallery-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 8px 0;
  }
  .gallery-footer p {
    max-width: 290px;
  }
  .wishes-inner {
    padding: 95px 22px 110px;
    grid-template-columns: 1fr;
  }
  .wishes-title h2 {
    font-size: 54px;
  }
  .wishes-title {
    position: relative;
    z-index: 3;
  }
  .message-action {
    position: relative;
    z-index: 4;
  }
  .message-board {
    margin-top: 30px;
    overflow: hidden;
  }
  .message-board-toolbar {
    position: relative;
    margin-bottom: 12px;
  }
  .wish-stack {
    min-height: 470px;
    margin-top: 0;
  }
  .wish-stack.pile {
    overflow: hidden;
  }
  .wish-stack.ordered {
    height: 520px;
    padding-right: 4px;
  }
  .wish-note {
    width: 82%;
    padding: 22px;
  }
  .wish-stack.pile .wish-note {
    width: min(72%, 270px);
    max-height: 190px;
    padding: 20px 22px;
    overflow: hidden;
  }
  .wish-stack.pile .wish-note p {
    display: -webkit-box;
    margin-bottom: 12px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  .wish-stack.pile .wish-note:nth-child(7n + 1) {
    --x: -38px;
    --y: -90px;
  }
  .wish-stack.pile .wish-note:nth-child(7n + 2) {
    --x: 26px;
    --y: -75px;
  }
  .wish-stack.pile .wish-note:nth-child(7n + 3) {
    --x: -14px;
    --y: -42px;
  }
  .wish-stack.pile .wish-note:nth-child(7n + 4) {
    --x: 38px;
    --y: -8px;
  }
  .wish-stack.pile .wish-note:nth-child(7n + 5) {
    --x: -42px;
    --y: 22px;
  }
  .wish-stack.pile .wish-note:nth-child(7n + 6) {
    --x: 14px;
    --y: 55px;
  }
  .wish-stack.pile .wish-note:nth-child(7n) {
    --x: -26px;
    --y: 90px;
  }
  .choice-modal {
    padding: 42px 22px 28px;
  }
  .message-choice-grid {
    grid-template-columns: 1fr;
  }
  .message-choice {
    min-height: 150px;
  }
  footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 45px 25px;
  }
  footer > div:nth-child(2) {
    text-align: left;
  }
  footer > p:last-child {
    justify-self: start;
  }
  .memory-modal {
    width: 100vw;
    height: 100dvh;
    max-height: none;
  }
  .memory-modal[open] {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 1fr;
  }
  .modal-photo {
    min-height: 40vh;
  }
  .modal-content {
    padding: 34px 23px;
  }
  .modal-content h3 {
    font-size: 38px;
  }
  .modal-nav {
    display: none;
  }
  .close {
    background: rgba(251, 248, 241, 0.92);
  }
  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-row button {
    width: 100%;
  }
  .upload-modal {
    padding: 42px 23px 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
