:root {
  --ink: #1f1b2d;
  --muted: #6d6678;
  --paper: #fffdfa;
  --lavender: #eee5fb;
  --lavender-2: #d9c8f1;
  --ocean: #315b78;
  --ocean-deep: #19394d;
  --gold: #c9a84f;
  --rose: #dca7bc;
  --line: rgba(31, 27, 45, 0.12);
  --shadow: 0 26px 70px rgba(42, 31, 61, 0.13);
  --soft-shadow: 0 18px 45px rgba(42, 31, 61, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(218, 199, 242, 0.38), transparent 32%),
    radial-gradient(circle at 94% 24%, rgba(201, 168, 79, 0.1), transparent 22%),
    linear-gradient(180deg, #fbf8ff 0%, var(--paper) 26%, #f7fbfc 100%);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 112px; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.028;
  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='.6'/%3E%3C/svg%3E");
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  position: relative;
  z-index: 5;
}
.brand {
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--ink); }

.hero {
  min-height: 820px;
  position: relative;
  overflow: hidden;
  padding-bottom: 54px;
}
.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
}
.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ocean);
}
.hero h1,
.auntie-copy h2,
.thirteen-heading h2,
.teacher-copy h2,
.gallery-heading h2,
.finale h2 {
  font-family: "Playfair Display", serif;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 20px 0 28px;
}
.hero h1 { font-size: clamp(4.2rem, 7.7vw, 7.7rem); }
.hero h1 em { color: var(--ocean); font-weight: 600; }
.hero-subtitle { font-size: clamp(1.25rem, 2vw, 1.7rem); max-width: 640px; margin: 0 0 14px; }
.hero-kicker { color: var(--muted); max-width: 600px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 48px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.ghost { background: rgba(255,255,255,0.62); color: var(--ink); backdrop-filter: blur(12px); }
.memory-counter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
}
.memory-counter span {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--ocean);
}
.memory-counter small { font-size: 0.82rem; }

.hero-memories { position: relative; min-height: 590px; }
.memory-card,
.auntie-photo {
  border: 0;
  padding: 0;
  background: #ece7f2;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.memory-card img,
.auntie-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.memory-card:hover img,
.auntie-photo:hover img { transform: scale(1.035); }
.memory-card-main {
  position: absolute;
  width: 68%;
  height: 470px;
  right: 10%;
  top: 56px;
  border-radius: 34px;
  transform: rotate(1.5deg);
  z-index: 2;
}
.memory-card-top {
  position: absolute;
  width: 37%;
  height: 210px;
  left: 0;
  top: 4px;
  border-radius: 24px;
  transform: rotate(-6deg);
  z-index: 3;
}
.memory-card-bottom {
  position: absolute;
  width: 40%;
  height: 230px;
  left: 2%;
  bottom: 10px;
  border-radius: 24px;
  transform: rotate(5deg);
  z-index: 4;
}
.octopus-seal {
  position: absolute;
  right: 0;
  bottom: 14px;
  z-index: 5;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: var(--soft-shadow);
  transform: rotate(-6deg);
}
.octopus-seal svg { width: 76px; height: 76px; }
.octopus-seal circle { fill: none; stroke: #fff; stroke-width: 5; }
.octopus-seal path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.octopus-seal span { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.era-badge {
  position: absolute;
  top: 18px;
  right: 4px;
  z-index: 5;
  min-width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
}
.hero-orbit { position: absolute; border-radius: 50%; filter: blur(1px); opacity: 0.5; }
.orbit-one { width: 560px; height: 560px; right: -180px; top: 20px; border: 1px solid rgba(49,91,120,0.16); }
.orbit-two { width: 830px; height: 830px; right: -320px; top: -110px; border: 1px dashed rgba(142,110,200,0.18); }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); text-decoration: none; color: var(--muted); font-size: 1.4rem; }

.memory-film {
  background: var(--ink);
  color: #fff;
  padding: 28px 0 36px;
  overflow: hidden;
}
.film-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.56);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.film-random {
  border: 0;
  background: transparent;
  color: #d8c9f0;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 700;
}
.film-random:hover { color: #fff; }
.memory-ribbon {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px max(20px, calc((100vw - 1180px) / 2)) 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
  scroll-snap-type: x proximity;
}
.ribbon-card {
  flex: 0 0 clamp(150px, 17vw, 230px);
  height: clamp(190px, 22vw, 290px);
  border: 0;
  padding: 0;
  background: #2c2738;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  scroll-snap-align: center;
  transform: rotate(-1deg);
  transition: transform 220ms ease, opacity 220ms ease;
}
.ribbon-card:nth-child(3n) { transform: rotate(1.5deg) translateY(3px); }
.ribbon-card:nth-child(4n) { transform: rotate(-2deg) translateY(-2px); }
.ribbon-card:hover { transform: translateY(-4px) rotate(0deg); }
.ribbon-card img { width: 100%; height: 100%; object-fit: cover; }

.letter-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 54px;
  align-items: start;
}
.letter-card {
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 30px;
  padding: clamp(34px, 5vw, 72px);
  box-shadow: var(--shadow);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2vw, 1.67rem);
  line-height: 1.72;
}
.letter-card p { margin: 0 0 1.2em; }
.letter-opening { font-style: italic; }
.letter-close { margin-bottom: 0.4em !important; }
.signature { font-family: "DM Sans", sans-serif; font-weight: 700; color: var(--ocean); font-size: 1rem; }

.auntie-section {
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.2), transparent 30%),
    linear-gradient(135deg, var(--ocean-deep), #2f5271 52%, #6c5d86 100%);
  color: #fff;
}
.auntie-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 76px; align-items: center; }
.auntie-photos { min-height: 580px; position: relative; }
.auntie-photo-large { position: absolute; inset: 10px 18% 40px 0; border-radius: 30px; }
.auntie-photo-small {
  position: absolute;
  width: 42%;
  height: 260px;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  border: 8px solid rgba(255,255,255,0.92);
  transform: rotate(3deg);
}
.auntie-section .section-label { color: #d8c9f0; }
.auntie-copy h2 { font-size: clamp(3rem, 5.8vw, 5.8rem); margin-top: 18px; }
.auntie-copy > p { color: rgba(255,255,255,0.76); font-size: 1.05rem; max-width: 610px; }
.auntie-copy blockquote {
  margin: 34px 0;
  padding-left: 24px;
  border-left: 2px solid #d5b75d;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.4;
}
.boys-signoff { display: flex; flex-wrap: wrap; gap: 10px; }
.boys-signoff span,
.boys-signoff strong { border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 9px 13px; font-size: 0.78rem; }
.boys-signoff span { color: rgba(255,255,255,0.78); }
.boys-signoff strong { font-weight: 600; background: rgba(255,255,255,0.08); }

.thirteen-section {
  background:
    radial-gradient(circle at 88% 14%, rgba(218,199,242,0.48), transparent 26%),
    linear-gradient(180deg, #fffdfa, #f6f1fb);
}
.thirteen-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr;
  gap: 58px;
  align-items: end;
  margin-bottom: 48px;
}
.thirteen-heading h2 { font-size: clamp(3.3rem, 6.3vw, 6.5rem); }
.thirteen-heading p { color: var(--muted); max-width: 390px; margin: 0 0 10px; }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.reason-card {
  min-height: 220px;
  border: 1px solid rgba(31,27,45,0.1);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255,255,255,0.68);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, background 180ms ease;
}
.reason-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.9); }
.reason-card span {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--ocean);
}
.reason-card p {
  margin: 26px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}
.reason-card:nth-child(1),
.reason-card:nth-child(4),
.reason-card:nth-child(9) { background: rgba(232,240,243,0.74); }
.reason-card:nth-child(5),
.reason-card:nth-child(10) { background: rgba(238,229,251,0.78); }
.reason-card-last {
  grid-column: span 2;
  background: var(--ink);
  color: #fff;
  min-height: 250px;
}
.reason-card-last span { color: #d5b75d; font-size: 3rem; }
.reason-card-last p { font-family: "Playfair Display", serif; font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.25; max-width: 700px; }

.roles-section { background: var(--ink); color: #fff; }
.roles-section .section-label { color: #bfaee4; margin-bottom: 30px; }
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-left: 1px solid rgba(255,255,255,0.14);
}
.role-card { min-height: 230px; padding: 28px; border-right: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); }
.role-card span { color: #bfaee4; font-size: 0.72rem; letter-spacing: 0.12em; }
.role-card h3 { font-family: "Playfair Display", serif; font-size: 1.65rem; margin: 48px 0 10px; }
.role-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }

.gallery-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}
.gallery-heading h2,
.teacher-copy h2,
.finale h2 { font-size: clamp(3rem, 6vw, 6rem); }
.gallery-intro { align-self: end; }
.gallery-intro p { color: var(--muted); max-width: 430px; margin: 0 0 14px; }
.text-button { border: 0; background: transparent; color: var(--ocean); padding: 0; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.photo-grid { columns: 3 280px; column-gap: 16px; }
.photo-card {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 19px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #ebe8ef;
  box-shadow: 0 10px 28px rgba(31,27,45,0.05);
}
.photo-card img { width: 100%; height: auto; transition: transform 380ms ease; }
.photo-card:hover img { transform: scale(1.025); }
.photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 18px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
  font-size: .85rem;
  opacity: 0;
  transition: opacity 180ms ease;
}
.photo-card:hover figcaption,
.photo-card:focus-within figcaption { opacity: 1; }
.photo-card button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.photo-card:nth-child(7n + 1) { border-radius: 28px 16px 24px 18px; }
.photo-card:nth-child(7n + 4) { border-radius: 16px 28px 18px 24px; }
.empty-gallery { text-align: center; border: 1px dashed var(--line); border-radius: 24px; padding: 62px 24px; color: var(--muted); }
.empty-gallery h3 { font-family: "Playfair Display", serif; color: var(--ink); font-size: 1.7rem; margin: 10px 0 6px; }
.empty-icon { font-size: 2rem; color: var(--gold); }
code { font-size: .9em; background: rgba(49,91,120,0.08); padding: 2px 6px; border-radius: 6px; }

.teacher-section { background: linear-gradient(135deg, #e8f0f3 0%, #f1e8f8 100%); }
.teacher-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 68px; align-items: center; }
.teacher-copy p { color: var(--muted); max-width: 650px; font-size: 1.05rem; }
.credential-stack { display: grid; gap: 12px; }
.credential {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}
.credential strong { font-family: "Playfair Display", serif; color: var(--ocean); font-size: 2rem; }
.credential span { color: var(--muted); }

.finale { text-align: center; max-width: 920px; }
.finale-stars { color: var(--gold); letter-spacing: .45em; margin-bottom: 30px; }
.finale p:not(.eyebrow):not(.final-love):not(.final-signature) { color: var(--muted); font-size: 1.1rem; max-width: 690px; margin-inline: auto; }
.final-love { font-family: "Playfair Display", serif; font-size: 1.9rem; margin: 36px 0 8px; }
.final-signature { color: var(--ocean); font-weight: 700; font-size: 0.9rem; }
.back-top { display: inline-block; margin-top: 36px; color: var(--ocean); font-weight: 700; text-decoration: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17,16,24,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 54px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 85vw); max-height: 86vh; display: grid; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.74); margin-top: 12px; font-size: .9rem; }
.lightbox-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.54); font-size: 0.76rem; letter-spacing: 0.12em; }
.lightbox-close,
.lightbox-nav { position: absolute; border: 0; background: transparent; color: #fff; cursor: pointer; min-width: 48px; min-height: 48px; font-size: 2.3rem; }
.lightbox-close { top: 16px; right: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

.sparkle-layer { pointer-events: none; position: fixed; inset: 0; z-index: 300; overflow: hidden; }
.sparkle { position: absolute; font-size: 18px; color: var(--gold); animation: pop 1100ms ease-out forwards; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes pop {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.5) rotate(150deg); }
}

@media (max-width: 980px) {
  .hero-grid,
  .auntie-grid,
  .teacher-grid,
  .thirteen-heading { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 70px; gap: 18px; }
  .hero-copy { text-align: center; }
  .hero-subtitle,
  .hero-kicker { margin-inline: auto; }
  .hero-actions,
  .memory-counter { justify-content: center; }
  .hero-memories { min-height: 600px; max-width: 680px; width: 100%; margin-inline: auto; }
  .letter-section { grid-template-columns: 1fr; gap: 24px; }
  .auntie-grid { gap: 46px; }
  .auntie-photos { order: 2; }
  .auntie-copy { order: 1; text-align: center; }
  .auntie-copy > p { margin-inline: auto; }
  .auntie-copy blockquote { max-width: 700px; margin-inline: auto; }
  .boys-signoff { justify-content: center; }
  .thirteen-heading { gap: 12px; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-heading { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section { padding-block: 80px; }
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding: 92px 0 52px; gap: 30px; }
  .hero h1 { font-size: clamp(3.65rem, 18vw, 5.6rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .memory-counter { margin-top: 24px; }
  .hero-memories { min-height: 470px; }
  .memory-card-main { width: 76%; height: 350px; right: 2%; top: 56px; border-radius: 24px; }
  .memory-card-top { width: 42%; height: 165px; left: 0; top: 4px; }
  .memory-card-bottom { width: 44%; height: 180px; left: 3%; bottom: 12px; }
  .octopus-seal { width: 112px; right: 0; bottom: 0; padding: 13px; }
  .octopus-seal svg { width: 55px; height: 55px; }
  .octopus-seal span { font-size: 0.52rem; }
  .era-badge { width: 56px; min-width: 56px; height: 56px; }
  .film-label { align-items: flex-start; flex-direction: column; gap: 6px; }
  .memory-ribbon { padding-inline: 14px; }
  .ribbon-card { flex-basis: 146px; height: 190px; }
  .letter-card { border-radius: 22px; }
  .auntie-photos { min-height: 470px; }
  .auntie-photo-large { inset: 0 12% 46px 0; }
  .auntie-photo-small { width: 46%; height: 205px; border-width: 6px; }
  .reason-grid { grid-template-columns: 1fr; }
  .reason-card { min-height: 180px; }
  .reason-card-last { grid-column: auto; min-height: 220px; }
  .roles-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 190px; }
  .role-card h3 { margin-top: 34px; }
  .photo-grid { columns: 2 150px; column-gap: 10px; }
  .photo-card { margin-bottom: 10px; border-radius: 14px; }
  .credential { grid-template-columns: 70px 1fr; padding: 18px; }
  .credential strong { font-size: 1.6rem; }
  .lightbox { padding: 62px 14px; }
  .lightbox-nav.prev { left: 0; }
  .lightbox-nav.next { right: 0; }
  .lightbox figure { max-width: 92vw; }
}

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