:root {
  --bg: #fff7fb;
  --bg-soft: #f7eef8;
  --bg-deep: #e6effa;
  --panel: rgba(255, 250, 253, 0.76);
  --panel-strong: rgba(252, 251, 255, 0.9);
  --line: rgba(133, 148, 188, 0.2);
  --line-strong: rgba(133, 148, 188, 0.35);
  --text: #241d31;
  --muted: #6f6a86;
  --muted-strong: #4f4966;
  --accent: #d992b5;
  --accent-strong: #6d85c5;
  --accent-soft: #c9dcfb;
  --gold: #f4b9cf;
  --blush: #efcade;
  --charcoal: #1f2031;
  --shadow-soft: 0 20px 60px rgba(73, 68, 116, 0.12);
  --shadow-medium: 0 28px 90px rgba(61, 57, 102, 0.16);
  --shadow-strong: 0 32px 120px rgba(42, 38, 84, 0.2);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 32px));
  --serif: "Futura Maxi", "Futura", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --sans: Avenir, "Avenir Next", "Segoe UI", sans-serif;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
  --cursor-size: 14px;
  --cursor-ring-size: 52px;
}

html[lang^="ar"] {
  --serif: "Futura Maxi", "Noto Naskh Arabic", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --sans: Avenir, "Avenir Next", "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
}

html[lang^="ar"] .eyebrow,
html[lang^="ar"] .button,
html[lang^="ar"] .topbar__nav a,
html[lang^="ar"] .topbar__lang,
html[lang^="ar"] .music-toggle__text strong {
  letter-spacing: 0;
}

html[lang^="ar"] .hero__title,
html[lang^="ar"] .section-head h2,
html[lang^="ar"] .closing-card h3,
html[lang^="ar"] .story-drawer__toggle span,
html[lang^="ar"] .memory-card__content h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

html[lang^="ar"] .hero__title {
  font-size: clamp(3.8rem, 8vw, 6.9rem);
}

html[lang^="ar"] .hero__lead,
html[lang^="ar"] .memory-card__content p,
html[lang^="ar"] .story-drawer__copy p,
html[lang^="ar"] .closing-card p,
html[lang^="ar"] .video-shell__meta p {
  line-height: 1.95;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(245, 205, 226, 0.52), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(190, 219, 248, 0.28), transparent 24%),
    linear-gradient(160deg, #fffbfd 0%, #f8eff8 46%, #eef4ff 100%);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}

body.is-loaded {
  opacity: 1;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(30px);
  z-index: -2;
}

body::before {
  top: 120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: rgba(255, 228, 242, 0.78);
}

body::after {
  right: -90px;
  bottom: 90px;
  width: 340px;
  height: 340px;
  background: rgba(178, 211, 247, 0.22);
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

body.is-performance-mode,
body.is-performance-mode a,
body.is-performance-mode button {
  cursor: auto;
}

body.is-performance-mode {
  transition-duration: 0.28s;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.noscript-note {
  margin: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 254, 0.96);
}

.page-shell {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.page-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100vw - 48px));
  margin: 0 auto 26px;
  padding: 14px 18px;
  border: 1px solid rgba(133, 148, 188, 0.16);
  border-radius: 999px;
  background: rgba(255, 249, 253, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(74, 84, 129, 0.1);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  min-width: fit-content;
}

.topbar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.topbar__subtitle {
  color: var(--muted);
  font-size: 0.74rem;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.topbar__nav a,
.topbar__lang {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  transition:
    transform 0.35s var(--easing),
    background-color 0.35s var(--easing),
    color 0.35s var(--easing),
    box-shadow 0.35s var(--easing);
}

.topbar__nav a:hover,
.topbar__lang:hover {
  background: rgba(201, 220, 251, 0.3);
  transform: translateY(-2px);
  color: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(109, 133, 197, 0.12);
}

.main {
  display: grid;
  gap: 28px;
}

.section-panel {
  position: relative;
  overflow: clip;
  border: 1px solid rgba(133, 148, 188, 0.16);
  border-radius: clamp(26px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 252, 254, 0.82), rgba(245, 241, 252, 0.72)),
    rgba(251, 248, 255, 0.76);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(18px);
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 32%),
    radial-gradient(circle at bottom right, rgba(190, 219, 248, 0.18), transparent 28%);
  pointer-events: none;
}

.section-panel__inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 52px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(133, 148, 188, 0.16);
  border-radius: 999px;
  background: rgba(255, 252, 255, 0.78);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--gold), var(--accent));
  box-shadow: 0 0 0 4px rgba(244, 185, 207, 0.16);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.glow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(133, 148, 188, 0.16);
  background: rgba(255, 251, 255, 0.84);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero {
  min-height: min(920px, calc(100vh - 36px));
  padding-top: clamp(12px, 2vw, 24px);
}

.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__ambient::before,
.hero__ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
}

.hero__ambient::before {
  top: -60px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 227, 241, 0.84), transparent 68%);
}

.hero__ambient::after {
  bottom: 12%;
  left: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(181, 214, 247, 0.28), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(26px, 3vw, 54px);
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 22px;
  max-width: 620px;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8vw, 7.9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero__lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 0.4s var(--easing),
    box-shadow 0.4s var(--easing),
    border-color 0.4s var(--easing),
    background-color 0.4s var(--easing),
    color 0.4s var(--easing);
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(140deg, #ecb7d3, #8baae8);
  color: #fffaff;
  box-shadow: 0 14px 34px rgba(109, 133, 197, 0.24);
}

.button--primary:hover {
  box-shadow: 0 20px 42px rgba(109, 133, 197, 0.3);
}

.button--ghost {
  border-color: rgba(133, 148, 188, 0.18);
  background: rgba(255, 252, 255, 0.78);
  color: var(--accent-strong);
}

.hero__note {
  display: grid;
  gap: 16px;
  max-width: 540px;
}

.hero__note-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 255, 0.82);
  border: 1px solid rgba(133, 148, 188, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.hero__note-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--accent-strong);
}

.hero__note-subtext {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero__detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% 8% 18% 14%;
  border-radius: 42px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.78), transparent 38%),
    linear-gradient(160deg, rgba(139, 170, 232, 0.16), rgba(240, 191, 216, 0.24));
  filter: blur(0);
  transform: rotate(8deg);
}

.hero__photo-card {
  position: relative;
  width: min(100%, 470px);
  padding: 18px;
  border-radius: 36px;
  background: rgba(255, 251, 255, 0.8);
  border: 1px solid rgba(133, 148, 188, 0.16);
  box-shadow: var(--shadow-strong);
  transform: rotate(-6deg) translateY(calc(var(--parallax, 0px) * -0.55));
  transition: transform 0.55s var(--easing), box-shadow 0.55s var(--easing);
}

.hero__photo-card:hover {
  transform: rotate(-4deg) translateY(-10px);
  box-shadow: 0 38px 120px rgba(57, 64, 117, 0.24);
}

.hero__photo {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
}

.hero__photo img {
  height: 100%;
  object-fit: cover;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(34, 32, 62, 0.16));
  pointer-events: none;
}

.hero__sticker {
  position: absolute;
  border-radius: 24px;
  background: rgba(255, 251, 255, 0.86);
  border: 1px solid rgba(133, 148, 188, 0.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero__sticker {
  top: 54px;
  right: -18px;
  width: 130px;
  padding: 10px;
  transform: rotate(8deg) translateY(calc(var(--parallax, 0px) * -0.3));
}

.hero__sticker img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(94, 74, 38, 0.18));
}

.mascot-sticker img {
  width: 100%;
  height: auto;
}

.video-section__layout {
  display: grid;
  gap: 26px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(35, 35, 70, 0.95), rgba(72, 84, 137, 0.96)),
    linear-gradient(145deg, rgba(244, 185, 207, 0.18), rgba(0, 0, 0, 0));
  box-shadow: 0 28px 90px rgba(34, 31, 68, 0.26);
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(243, 233, 255, 0.18);
  pointer-events: none;
}

.video-shell__badge {
  position: absolute;
  top: 28px;
  left: 30px;
  z-index: 2;
}

.video-shell__frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(243, 233, 255, 0.12);
  background: #1c1f35;
}

.video-shell__frame img,
.video-shell__frame iframe,
.video-shell__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-shell__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-shell__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 25, 41, 0.08), rgba(23, 25, 41, 0.34));
}

.video-shell__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  border-radius: 50%;
  background: rgba(255, 248, 253, 0.94);
  box-shadow: 0 24px 50px rgba(23, 25, 41, 0.28);
}

.video-shell__play::before {
  content: "";
  margin-left: 8px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--accent-strong);
}

.video-shell__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: rgba(245, 241, 255, 0.88);
}

.video-shell__meta p {
  margin: 0;
  max-width: 58ch;
  line-height: 1.8;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.memory-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 252, 255, 0.95), rgba(242, 245, 255, 0.9));
  border: 1px solid rgba(133, 148, 188, 0.16);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.45s var(--easing),
    box-shadow 0.45s var(--easing),
    border-color 0.45s var(--easing);
}

.memory-card::before,
.memory-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 54px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 245, 251, 0.94);
  box-shadow: 0 8px 22px rgba(109, 133, 197, 0.12);
  transform: rotate(-8deg);
}

.memory-card::before {
  top: 14px;
  left: 24px;
}

.memory-card::after {
  right: 18px;
  bottom: 114px;
  transform: rotate(11deg);
}

.memory-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 28px 70px rgba(83, 93, 151, 0.18);
  border-color: rgba(109, 133, 197, 0.28);
}

.memory-card__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
}

.memory-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing), filter 0.6s var(--easing);
}

.memory-card:hover .memory-card__media img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.memory-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 16px 4px 6px;
}

.memory-card__content h3,
.closing-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
}

.memory-card__content p,
.closing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.memory-card--text-only {
  display: flex;
  align-items: flex-start;
  min-height: 280px;
}

.memory-card--text-only .memory-card__content {
  padding: 10px 6px 8px;
}

.memory-card:nth-child(1) {
  grid-column: span 5;
  transform: rotate(-2deg);
}

.memory-card:nth-child(2) {
  grid-column: span 4;
  margin-top: 38px;
}

.memory-card:nth-child(3) {
  grid-column: span 3;
  margin-top: 84px;
  transform: rotate(2deg);
}

.memory-card:nth-child(4) {
  grid-column: span 4;
  margin-top: -18px;
}

.memory-card:nth-child(5) {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(180px, 0.58fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 16px 16px 20px;
}

.memory-card:nth-child(5) .memory-card__media,
.memory-card:nth-child(5) .memory-card__content {
  min-width: 0;
}

.memory-card:nth-child(5) .memory-card__media {
  aspect-ratio: 1.72 / 1;
  min-height: 300px;
}

.memory-card:nth-child(5) .memory-card__media img {
  width: 100%;
  height: 100%;
  object-position: 22% center;
}

.memory-card:nth-child(5) .memory-card__content {
  justify-self: end;
  align-self: center;
  width: min(100%, 214px);
  gap: 10px;
  padding: 14px 10px 12px 16px;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 255, 0.78), rgba(244, 247, 255, 0.9));
  border-radius: 22px;
  border-left: 1px solid rgba(133, 148, 188, 0.12);
}

.memory-card:nth-child(5) .memory-card__content h3 {
  max-width: 12ch;
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
}

.memory-card:nth-child(5) .memory-card__content p {
  max-width: 22ch;
  font-size: 0.9rem;
  line-height: 1.6;
}

.story-stack {
  display: grid;
  gap: 16px;
}

.story-drawer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(133, 148, 188, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 255, 0.92), rgba(243, 246, 255, 0.88));
  box-shadow: 0 18px 40px rgba(83, 93, 151, 0.1);
  transition:
    transform 0.45s var(--easing),
    border-color 0.45s var(--easing),
    box-shadow 0.45s var(--easing);
}

.story-drawer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, rgba(244, 185, 207, 0.5), rgba(139, 170, 232, 0.3));
  pointer-events: none;
}

.story-drawer.is-open,
.story-drawer:hover {
  border-color: rgba(109, 133, 197, 0.28);
  box-shadow: 0 28px 60px rgba(83, 93, 151, 0.14);
}

.story-drawer__toggle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 24px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
}

.story-drawer__toggle span {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.02;
}

.story-drawer__icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 251, 255, 0.84);
  border: 1px solid rgba(133, 148, 188, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

.story-drawer__icon::before,
.story-drawer__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--easing), opacity 0.45s var(--easing);
}

.story-drawer__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.story-drawer.is-open .story-drawer__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg);
}

.story-drawer__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.7s var(--easing);
}

.story-drawer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 24px;
  padding: 0 24px 24px;
}

.story-drawer__copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 6px;
}

.story-drawer__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.story-drawer__media {
  overflow: hidden;
  width: min(100%, 340px);
  border-radius: 22px;
  border: 1px solid rgba(133, 148, 188, 0.16);
  background: rgba(255, 252, 255, 0.84);
  aspect-ratio: 4 / 5;
  justify-self: end;
}

.story-drawer__media img,
.story-drawer__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.closing-section {
  padding-bottom: clamp(26px, 3vw, 34px);
}

.closing-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(164, 191, 235, 0.18));
  pointer-events: none;
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.96fr);
  gap: 28px;
  align-items: stretch;
}

.closing-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 42%),
    linear-gradient(180deg, rgba(255, 252, 255, 0.95), rgba(241, 245, 255, 0.93));
  border: 1px solid rgba(133, 148, 188, 0.16);
  box-shadow: var(--shadow-soft);
}

.closing-card__signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.closing-card__signature::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(109, 133, 197, 0), rgba(109, 133, 197, 0.85));
}

.closing-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(39, 42, 77, 0.94), rgba(79, 92, 145, 0.98)),
    linear-gradient(140deg, rgba(244, 185, 207, 0.12), transparent);
  box-shadow: 0 28px 80px rgba(31, 34, 68, 0.26);
  min-height: clamp(620px, 72vw, 860px);
  overflow: hidden;
}

.closing-side::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 238, 255, 0.16);
  border-radius: 24px;
}

.closing-side__quote {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 270px;
  text-align: center;
  color: rgba(250, 245, 255, 0.94);
}

.closing-side__quote strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
}

.closing-side__quote span {
  color: rgba(233, 238, 255, 0.78);
  line-height: 1.7;
}

.closing-side__media-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 34px;
}

.closing-side__media-frame {
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  padding: 14px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 42%),
    rgba(255, 250, 254, 0.12);
  border: 1px solid rgba(244, 236, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 48px rgba(18, 20, 42, 0.26);
}

.closing-side__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
}

.closing-side__sticker {
  position: absolute;
  width: 82px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 250, 254, 0.82);
  border: 1px solid rgba(244, 236, 255, 0.2);
  box-shadow: 0 14px 32px rgba(31, 34, 68, 0.2);
}

.closing-side__sticker img {
  display: block;
  width: 100%;
}

.closing-side__sticker--top-left {
  top: 0;
  left: 0;
  transform: rotate(-10deg);
}

.closing-side__sticker--top-right {
  top: 0;
  right: 0;
  transform: rotate(9deg);
}

.closing-side__sticker--bottom-left {
  bottom: 0;
  left: 0;
  transform: rotate(8deg);
}

.closing-side__sticker--bottom-right {
  right: 0;
  bottom: 0;
  transform: rotate(-9deg);
}

.footer-note {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-inline: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.footer-note > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-note__heart {
  color: var(--accent);
}

.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 34;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(133, 148, 188, 0.18);
  border-radius: 999px;
  background: rgba(255, 249, 253, 0.84);
  box-shadow: 0 18px 42px rgba(83, 93, 151, 0.16);
  backdrop-filter: blur(18px);
  color: var(--accent-strong);
  transition:
    transform 0.3s var(--easing),
    box-shadow 0.3s var(--easing),
    border-color 0.3s var(--easing),
    opacity 0.3s var(--easing);
}

.music-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(83, 93, 151, 0.2);
}

.music-toggle.is-waiting {
  border-color: rgba(217, 146, 181, 0.24);
}

.music-toggle.is-disabled {
  opacity: 0.72;
}

.music-toggle__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), transparent 34%),
    linear-gradient(145deg, rgba(240, 184, 211, 0.96), rgba(132, 169, 234, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 10px 24px rgba(109, 133, 197, 0.2);
  color: #fffaff;
  font-size: 1rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.music-toggle__text {
  display: grid;
  gap: 2px;
  text-align: left;
}

.music-toggle__text strong {
  font-size: 0.86rem;
  line-height: 1.1;
}

.music-toggle__text span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.16s ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor--dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  margin-left: calc(var(--cursor-size) / -2);
  margin-top: calc(var(--cursor-size) / -2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(160deg, rgba(243, 185, 210, 0.98), rgba(135, 170, 234, 0.98));
  box-shadow: 0 0 0 6px rgba(244, 185, 207, 0.16), 0 0 24px rgba(109, 133, 197, 0.28);
}

.cursor--ring {
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  margin-left: calc(var(--cursor-ring-size) / -2);
  margin-top: calc(var(--cursor-ring-size) / -2);
  border-radius: 50%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cursor--ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    rgba(255, 248, 253, 0.98) url("./media/monkey-badge.svg") center / 86% no-repeat;
  box-shadow:
    0 10px 24px rgba(109, 133, 197, 0.2),
    0 0 0 1px rgba(133, 148, 188, 0.14);
  transition:
    transform 0.22s var(--easing),
    box-shadow 0.22s var(--easing);
}

.cursor--ring.is-hovering {
  box-shadow: none;
}

.cursor--ring.is-hovering::after {
  transform: translate(-50%, -56%) scale(1.08) rotate(8deg);
  box-shadow:
    0 14px 30px rgba(109, 133, 197, 0.24),
    0 0 0 1px rgba(217, 146, 181, 0.24);
}

.cursor-burst {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 58;
  pointer-events: none;
  animation: burst-fade 0.9s ease forwards;
}

.cursor-burst__shape {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  text-shadow: 0 6px 18px rgba(109, 133, 197, 0.18);
  animation: burst-fly 0.9s var(--easing) forwards;
}

body.is-performance-mode .topbar,
body.is-performance-mode .section-panel,
body.is-performance-mode .hero__sticker,
body.is-performance-mode .music-toggle {
  backdrop-filter: none;
}

body.is-performance-mode .cursor,
body.is-performance-mode .cursor-burst {
  display: none;
}

body.is-performance-mode .reveal {
  transform: translateY(16px);
  transition-duration: 0.45s;
}

body.is-performance-mode .button,
body.is-performance-mode .topbar__nav a,
body.is-performance-mode .topbar__lang,
body.is-performance-mode .memory-card,
body.is-performance-mode .story-drawer,
body.is-performance-mode .music-toggle,
body.is-performance-mode .hero__photo-card {
  transition-duration: 0.24s;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--easing),
    transform 0.8s var(--easing);
  transition-delay: var(--delay, 0s);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes burst-fly {
  0% {
    transform: translate3d(0, 0, 0) scale(0.75) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform:
      translate3d(var(--burst-x, 0px), var(--burst-y, -32px), 0)
      scale(1.15)
      rotate(var(--burst-rotate, 0deg));
    opacity: 0;
  }
}

@keyframes burst-fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .hero__grid,
  .closing-layout {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__visual {
    min-height: 560px;
  }

  .memory-card:nth-child(1),
  .memory-card:nth-child(2),
  .memory-card:nth-child(3),
  .memory-card:nth-child(4) {
    grid-column: span 6;
    margin-top: 0;
    transform: none;
  }

  .memory-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 20px, 720px);
    padding-top: 16px;
  }

  .topbar {
    top: 10px;
    width: min(100vw - 20px, 720px);
    margin-bottom: 18px;
    padding: 14px;
  }

  .topbar__nav {
    gap: 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

  .hero__visual {
    min-height: 500px;
  }

  .hero__photo-card {
    width: min(100%, 420px);
  }

  .hero__sticker {
    top: 16px;
    right: 8px;
    width: 112px;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .memory-card,
  .memory-card:nth-child(1),
  .memory-card:nth-child(2),
  .memory-card:nth-child(3),
  .memory-card:nth-child(4),
  .memory-card:nth-child(5) {
    grid-column: auto;
    display: block;
    margin-top: 0;
    transform: none;
  }

  .story-drawer__inner {
    grid-template-columns: 1fr;
  }

  .footer-note {
    justify-items: center;
    text-align: center;
  }

  .music-toggle {
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    padding-inline-end: 14px;
  }

  .music-toggle:hover {
    transform: translateX(-50%) translateY(-3px);
  }

}

@media (max-width: 640px) {
  .section-panel__inner {
    padding: 24px 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero__visual {
    min-height: 440px;
  }

  .hero__sticker {
    width: 94px;
  }

  .video-shell__badge {
    top: 18px;
    left: 18px;
  }

  .video-shell__meta {
    flex-direction: column;
  }

  .story-drawer__toggle {
    padding: 22px 18px 20px;
  }

  .story-drawer__inner {
    padding: 0 18px 18px;
  }
}

@media (hover: none), (pointer: coarse) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

[dir="rtl"] body,
[dir="rtl"] .section-head,
[dir="rtl"] .hero__copy,
[dir="rtl"] .memory-card__content,
[dir="rtl"] .story-drawer__copy,
[dir="rtl"] .closing-card {
  text-align: right;
}

[dir="rtl"] .topbar__nav,
[dir="rtl"] .hero__actions,
[dir="rtl"] .hero__detail-row,
[dir="rtl"] .music-toggle {
  right: auto;
  left: 24px;
}

[dir="rtl"] .music-toggle__text {
  text-align: right;
}

[dir="rtl"] .topbar__text {
  align-items: flex-end;
}

[dir="rtl"] .hero__photo-card {
  transform: rotate(6deg) translateY(calc(var(--parallax, 0px) * -0.55));
}

[dir="rtl"] .hero__photo-card:hover {
  transform: rotate(4deg) translateY(-10px);
}

[dir="rtl"] .hero__sticker {
  right: auto;
  left: -18px;
  transform: rotate(-8deg) translateY(calc(var(--parallax, 0px) * -0.3));
}

[dir="rtl"] .video-shell__badge {
  left: auto;
  right: 30px;
}

[dir="rtl"] .story-drawer__toggle {
  text-align: right;
}

[dir="rtl"] .story-drawer__inner {
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
}

[dir="rtl"] .story-drawer__media {
  justify-self: start;
}

[dir="rtl"] .memory-card:nth-child(5) {
  direction: ltr;
  grid-template-columns: minmax(0, 1.34fr) minmax(180px, 0.58fr);
  padding: 16px 16px 16px 20px;
}

[dir="rtl"] .memory-card:nth-child(5) .memory-card__media img {
  object-position: 78% center;
}

[dir="rtl"] .memory-card:nth-child(5) .memory-card__content {
  direction: rtl;
  text-align: right;
  justify-self: end;
  width: min(100%, 214px);
  padding: 14px 16px 12px 10px;
  border-left: 1px solid rgba(133, 148, 188, 0.12);
  border-right: 0;
}

[dir="rtl"] .closing-card__signature::before {
  background: linear-gradient(90deg, rgba(109, 133, 197, 0.85), rgba(109, 133, 197, 0));
}

[dir="rtl"] .mascot-sticker {
  inset: auto auto 18px 18px;
  transform: rotate(-8deg);
}

@media (max-width: 820px) {
  [dir="rtl"] .music-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  [dir="rtl"] .music-toggle:hover {
    transform: translateX(-50%) translateY(-3px);
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
