@font-face { font-family: Silenter; src: url('assets/silenter.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Hastegi; src: url('assets/hastegi.otf') format('opentype'); font-display: swap; }
@font-face { font-family: Lora; src: url('assets/lora.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Ecatherina; src: url('assets/ecatherina.otf') format('opentype'); font-display: swap; }

:root {
  --ink: #37463e; --accent: #647a6c; --paper: #f0f1eb; --muted: #56685b; --line: #82918455;
  --serif: Lora, Georgia, serif; --display: Hastegi, Georgia, serif; --script: Silenter, 'Brush Script MT', cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: #e0e4de; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 20% 20%, #fafbf7a6, transparent 60%), radial-gradient(ellipse at 85% 90%, #bfcac0, transparent 55%); pointer-events: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, .slides:focus-visible { outline: 2px solid #597360; outline-offset: 4px; }
button svg, a svg, .little-ornament svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.invitation { position: relative; width: min(100%, 520px); height: 100%; height: 100svh; margin: auto; background: var(--paper); box-shadow: 0 0 90px #3a503b20; isolation: isolate; overflow: hidden; container-type: inline-size; }
.slides { height: 100%; overflow: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slides.is-open { overflow-y: auto; }
.slide { position: relative; min-height: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; isolation: isolate; background: var(--paper); text-align: center; }
.slide-content { position: relative; z-index: 2; height: 100%; padding: 52px 36px 78px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.pearl-background { position: absolute; inset: 0; z-index: -3; background: var(--paper) url('assets/graduation-botanicals.png') center/cover no-repeat; transform: scale(1.06); transition: transform 6s ease; }
.is-active .pearl-background { transform: scale(1); }
.vignette { position: absolute; inset: 0; background: linear-gradient(180deg, #f6f8f11a, #f6f8f144 45%, transparent); z-index: -2; }
.fine-frame { position: absolute; inset: 22px 20px; border: 1px solid var(--line); pointer-events: none; z-index: 1; }
.fine-frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid #8f9f8f26; }
.fine-frame::after { content: '✧'; position: absolute; bottom: -12px; left: calc(50% - 14px); width: 28px; background: #f0f1eb; color: var(--accent); font-size: 20px; }
.eyebrow { font-family: Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 2px; line-height: 1.6; text-transform: uppercase; margin: 0; color: #526956; }
.reveal { opacity: 0; transform: translateY(22px); filter: blur(3px); transition: opacity 1.25s ease, transform 1.4s cubic-bezier(.2,.7,.3,1), filter 1.4s ease; transition-delay: calc(var(--delay, 0)*110ms + 160ms); }
.is-active .reveal { opacity: 1; transform: translateY(0); filter: blur(0); }

/* A folded card, paper band and academic seal. */
.cover { perspective: 1300px; background: #dde5db; }
.cover-halo { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #f9faf4, #cfdbce); z-index: -1; }
.door { position: absolute; top: 0; bottom: 0; width: 50.1%; z-index: 2; backface-visibility: hidden; background: var(--paper) url('assets/graduation-botanicals.png') no-repeat; background-size: 200% 100%; transition: transform 1.9s cubic-bezier(.4,.02,.2,1), filter 1.6s ease; will-change: transform; }
.door::before { content: ''; position: absolute; inset: 20px 15px; border: 1px solid #738a6d40; box-shadow: inset 0 0 0 5px #fbfcf52b, inset 0 0 0 6px #879e8020; }
.door-left { left: 0; transform-origin: left center; background-position: left center; border-right: 1px solid #73896e40; box-shadow: inset -10px 0 18px -15px #4d6543; }
.door-right { right: 0; transform-origin: right center; background-position: right center; box-shadow: inset 10px 0 18px -15px #4d6543; }
.cover-copy, .cover-footer, .open-invitation, .graduation-band { position: absolute; z-index: 4; transition: opacity .65s ease, transform 1s ease; }
.cover-copy { top: 17%; left: 24px; right: 24px; pointer-events: none; }
.cover-title { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.15; margin: 22px 0 0; }
.cover-title span { font-family: var(--script); font-size: clamp(53px, 15cqw, 75px); font-weight: 400; line-height: 1.55; display: inline-block; }
.graduation-band { top: 49%; left: 0; right: 0; height: 68px; background: linear-gradient(180deg, #64765f, #899984 5%, #a4b09a 13%, #7d9074 49%, #6b7f64 87%, #a3b199 96%, #657a5d); box-shadow: 0 7px 12px #45583d20; opacity: .82; pointer-events: none; }
.tassel { position: absolute; top: 49px; left: calc(50% + 25px); width: 3px; height: 90px; background: linear-gradient(90deg, #a9a07d, #e7dfbd, #a9a07d); transform: rotate(-13deg); transform-origin: top; }
.tassel::after { content: ''; position: absolute; bottom: -25px; left: -7px; width: 17px; height: 31px; border-radius: 8px 8px 2px 2px; background: repeating-linear-gradient(90deg, #b0a17b 0 1px, #ded3a9 1px 3px); box-shadow: inset 0 4px #a39570; }
.open-invitation { top: calc(49% + 34px); left: 50%; width: 210px; transform: translate(-50%, -36px); display: flex; align-items: center; flex-direction: column; padding: 0; }
.wax-seal { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #4c6247; background: radial-gradient(circle at 30% 25%, #eef0df, #c6cfb4 70%, #a1af91); box-shadow: 0 5px 9px #3b4e3633, inset 0 0 0 3px #c8d1b6, inset 0 0 0 4px #94a48380, inset 0 0 0 7px #e2e7cf; border: 1px solid #9faa8f; transition: transform .35s ease; }
.wax-seal svg { width: 39px; height: 39px; stroke-width: 1.1; }
.open-invitation:hover .wax-seal { transform: scale(1.06); }
.open-label { font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 2.2px; margin-top: 42px; color: #4a6149; }
.cover-footer { bottom: 11%; left: 24px; right: 24px; display: flex; align-items: center; flex-direction: column; gap: 15px; font-family: Arial, sans-serif; font-size: 13px; letter-spacing: 3px; }
.cover-footer span:first-child { font-family: var(--display); font-size: 28px; letter-spacing: 1px; }
.cover.is-opening .door-left { transform: rotateY(-108deg); filter: brightness(.85); }
.cover.is-opening .door-right { transform: rotateY(108deg); filter: brightness(.85); }
.cover.is-opening .cover-copy, .cover.is-opening .cover-footer, .cover.is-opening .graduation-band { opacity: 0; transform: translateY(-15px) scale(1.04); pointer-events: none; }
.cover.is-opening .open-invitation { opacity: 0; transform: translate(-50%, -50px) scale(1.04); pointer-events: none; }
.cover.is-opening::after { content: '✧'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 60px; color: var(--accent); animation: seal-glow 1.8s ease both; }

.celebration-content { padding-top: 66px; padding-bottom: 90px; }
.celebration .eyebrow { font-size: 11px; letter-spacing: 1.3px; max-width: 340px; }
.little-ornament { color: var(--accent); margin: 26px 0 14px; line-height: 0; }
.little-ornament svg { width: 37px; height: 37px; stroke-width: .9; }
.graduation-title { font-family: var(--script); font-weight: 400; font-size: clamp(72px, 20cqw, 106px); line-height: 1.1; margin: 0 -12px; color: #4d6654; }
.graduation-title span { display: block; }
.graduation-title span:first-child { font-size: .88em; margin-bottom: 2px; }
.name-rule { width: 66px; height: 1px; flex-shrink: 0; background: linear-gradient(90deg, transparent, #718566, transparent); margin: 24px 0; }
.graduate-name { font-family: var(--display); font-size: clamp(35px, 9cqw, 44px); line-height: 1.25; margin: 0; letter-spacing: .3px; }
.year-label { font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 2.5px; color: var(--muted); margin: 21px 0 0; }
.year-label span { display: block; font-family: var(--display); font-size: 32px; letter-spacing: 4px; margin-top: 5px; }
.personal-note { max-width: 370px; font-size: 15px; line-height: 1.75; color: #4f6253; font-style: italic; margin: 24px 0 0; }
.next-slide { position: absolute; z-index: 5; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-width: 48px; min-height: 44px; padding: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: #536d55; }
.next-slide span { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1.8px; white-space: nowrap; }
.next-slide svg { width: 24px; animation: arrow-drift 2.5s ease-in-out infinite; }
.page-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0; z-index: 10; }
.page-dots button { width: 27px; height: 32px; display: grid; place-items: center; padding: 0; }
.page-dots button::before { content: ''; width: 5px; height: 5px; background: #68816366; border-radius: 50%; transition: transform .3s, background .3s; }
.page-dots button.is-current::before { transform: scale(1.45); background: #496747; }
.page-counter { position: absolute; bottom: max(13px, env(safe-area-inset-bottom)); right: 35px; z-index: 7; display: flex; align-items: center; gap: 6px; font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1px; color: #596d55; pointer-events: none; }
.counter-line { width: 16px; height: 1px; background: #74876b66; }

/* A single audio element stays outside the slides so page changes never restart the music. */
.music-toggle { position: absolute; z-index: 15; top: max(8px, env(safe-area-inset-top)); right: 8px; width: 44px; height: 44px; padding: 0; border: 1px solid #82918455; border-radius: 50%; display: grid; place-items: center; background: #f5f7efed; color: #4b674f; box-shadow: 0 3px 12px #3a503b0a; }
.music-note { width: 22px; height: 22px; transition: opacity .2s; }
.music-off { position: absolute; width: 25px; height: 1px; top: 21px; left: 9px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 1px #f5f7ef; }
.music-bars { position: absolute; display: none; align-items: center; justify-content: center; gap: 3px; width: 25px; height: 24px; }
.music-bars i { width: 2px; height: 12px; border-radius: 2px; background: currentColor; animation: music-pulse 1.1s ease-in-out infinite alternate; }
.music-bars i:nth-child(2) { height: 21px; animation-delay: -.5s; }
.music-bars i:nth-child(3) { height: 15px; animation-delay: -.8s; }
.music-toggle.is-playing .music-note, .music-toggle.is-playing .music-off { opacity: 0; }
.music-toggle.is-playing .music-bars { display: flex; }
.music-credit { position: absolute; bottom: 3px; left: 27px; padding: 10px 2px; min-height: 32px; z-index: 5; font-family: Arial, sans-serif; font-size: 11px; color: #526e51; text-decoration: underline; text-decoration-color: #82918466; text-underline-offset: 3px; }
.music-credits-dialog { position: fixed; width: min(340px, calc(100vw - 44px)); max-height: calc(100svh - 44px); padding: 40px 25px 28px; border: 1px solid #82918488; border-radius: 3px; background: #f3f5ee; color: var(--ink); text-align: center; box-shadow: 0 20px 80px #25372640; }
.music-credits-dialog::backdrop { background: #25372655; backdrop-filter: blur(4px); }
.music-credits-dialog h2 { font-family: var(--display); font-size: 38px; font-weight: 400; margin: 22px 0 16px; }
.music-credits-dialog p { font-size: 14px; line-height: 1.8; }
.music-credits-dialog .eyebrow { font-size: 11px; }
.music-credits-dialog a { color: #496747; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.music-credits-dialog .license-credit { font-size: 12px; margin: 16px 0 0; }
.close-credits { position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
@keyframes music-pulse { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

.detail-wash { position: absolute; inset: 0; z-index: -2; background: #f3f5ee66; }
.details-content { padding: 56px 36px 76px; gap: 22px; }
.event-date, .event-location { width: 100%; }
.section-script { font-family: var(--script); font-size: clamp(43px, 12.5cqw, 61px); line-height: 1.2; font-weight: 400; margin: 18px -10px; color: #526c55; }
.date-lockup { display: flex; justify-content: center; align-items: center; gap: 20px; }
.date-side { font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 1.5px; width: 74px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.date-number { font-family: var(--display); font-size: 96px; line-height: 1; color: #4b654e; }
.month { font-family: Arial, sans-serif; font-size: 14px; letter-spacing: 4px; margin: 10px 0 17px; padding-left: 4px; }
.event-time { font-size: 20px; letter-spacing: .5px; margin: 0; }
.ornament-divider { width: 75%; display: flex; align-items: center; gap: 12px; color: #748c6c; flex-shrink: 0; }
.ornament-divider::before, .ornament-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.ornament-divider span { font-size: 24px; }
.event-location .eyebrow { font-size: 11px; }
.venue-name { font-family: var(--display); font-size: clamp(31px, 8.4cqw, 40px); line-height: 1.2; font-weight: 400; margin: 17px 0 13px; }
.address { font-size: 14px; line-height: 1.8; margin: 0; color: #4e6151; text-wrap: balance; }
.location-link { width: 56px; height: 56px; border-radius: 50%; border: 1px solid #7a927166; display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; color: #496747; background: #edf1e6b3; box-shadow: 0 4px 12px #52674d0c; transition: background .3s, transform .3s; }
.location-link:hover { background: #dfe8d7; transform: translateY(-3px); }
.location-link svg { width: 31px; height: 31px; stroke-width: 1.25; }

/* Original photos are fitted in full; title text is a separate HTML overlay. */
.album-cover, .album-gallery { background: #fff; }
.album-cover-photo { position: absolute; inset: 0; background: #101713; }
.album-cover-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.album-title { position: absolute; top: max(64px, calc(env(safe-area-inset-top) + 45px)); left: 26px; right: 26px; z-index: 2; margin: 0; font-weight: 400; color: var(--ink); text-align: left; }
.album-title span { display: block; font-family: var(--display); font-size: clamp(42px, 12.5cqw, 65px); line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; }
.album-title em { display: block; margin: -2px 0 0 50px; font-family: var(--script); font-size: clamp(66px, 18cqw, 94px); font-style: normal; line-height: 1.25; white-space: nowrap; }
.album-cover.has-photo .album-title, .album-cover.has-photo .next-slide { color: #fff; text-shadow: 0 2px 10px #15231655; }
.album-carousel { height: calc(100% - 62px); display: flex; flex-direction: column; outline-offset: -4px; }
.album-viewer { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; touch-action: pan-y pinch-zoom; user-select: none; }
.album-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.album-photo { flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; background: #fff; }
.album-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.album-blank { display: block; width: 100%; height: 100%; background: #fff; }
.album-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #82918444; border-radius: 50%; background: #f4f7eff0; color: #4b674f; transition: background .2s; }
.album-arrow:hover { background: #e8eee1; }
.album-arrow svg { width: 24px; height: 24px; stroke-width: 1.6; }
.album-prev { left: 10px; }
.album-next { right: 10px; }
.album-viewer.has-photo .album-arrow { color: #fff; background: #15231655; border-color: transparent; filter: drop-shadow(0 1px 3px #15231655); }
.album-viewer.has-photo .album-arrow:hover { background: #15231644; }
.album-photo-count { position: absolute; z-index: 2; bottom: 10px; right: 14px; margin: 0; padding: 6px 8px; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 2px; color: #566b51; background: #ffffffc7; }
.album-thumbnails { position: relative; display: flex; gap: 8px; flex: 0 0 auto; padding: 8px; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; background: #fff; }
.album-thumbnails::-webkit-scrollbar { display: none; }
.album-thumbnail { position: relative; flex: 0 0 calc((100% - 32px) / 5); aspect-ratio: 1; overflow: hidden; border: 1px solid #dce3d8; padding: 2px; scroll-snap-align: center; }
.album-thumbnail.is-selected { border: 2px solid #637e58; padding: 1px; }
.album-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.album-thumbnail-number { position: absolute; bottom: 5px; right: 5px; font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1px; color: #899781; }
.album-gallery .album-continue { position: relative; bottom: auto; left: auto; transform: none; width: 100%; height: 62px; padding: 4px 8px 14px; margin: 0; gap: 2px; }
.album-continue span { font-size: 10px; }
.is-album-gallery .page-dots, .is-album-gallery .page-counter { display: none; }

.gratitude .pearl-background { background-position: center; }
.gratitude-glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 43%, #f6f9f1b3 0%, #f6f9f166 35%, transparent 70%); }
.gratitude-content { padding-bottom: 100px; }
.gratitude .eyebrow { font-size: 12px; }
.gratitude-star { font-size: 33px; color: #77916c; margin: 30px 0 20px; }
.thank-you-title { font-family: var(--script); font-weight: 400; font-size: clamp(80px, 22cqw, 114px); line-height: 1.1; margin: 0 -14px; color: #4d684f; }
.gratitude .name-rule { margin: 25px 0; }
.thank-you-message { max-width: 370px; font-size: 15px; line-height: 1.9; font-style: italic; margin: 0 0 14px; color: #4e6250; }
.with-love { font-size: 14px; letter-spacing: .5px; margin: 22px 0 6px; }
.signature { font-family: var(--script); font-size: 59px; font-weight: 400; margin: 0; line-height: 1.3; color: #4f6b4f; }
.replay { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; padding: 12px; min-height: 44px; }
.replay svg { width: 18px; height: 18px; }
.replay span { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1.3px; color: #526e51; }
.desktop-note { position: fixed; left: calc((100% - 520px)/4); top: 38%; transform: translateX(-50%); text-align: center; display: flex; flex-direction: column; gap: 26px; color: #687e67; }
.desktop-monogram { font-family: var(--display); font-size: 95px; line-height: 1; color: #7e947380; }
.desktop-note>span:nth-child(2) { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 2px; }
.desktop-note i { font-size: 15px; color: #637c60; }
.desktop-footer { position: fixed; bottom: 30px; left: calc((100% - 520px)/4); transform: translateX(-50%); font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1.5px; white-space: nowrap; color: #657d60; }
.desktop-footer span { padding: 0 7px; }

@keyframes arrow-drift { 0%,100% { transform: translateY(-2px); opacity: .6; } 50% { transform: translateY(4px); opacity: 1; } }
@keyframes seal-glow { 0% { opacity: 0; transform: scale(.8); } 45% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
@media (min-width: 900px) { .invitation { border-left: 1px solid #fff5; border-right: 1px solid #fff5; } }
@media (max-width: 899px) { .desktop-note, .desktop-footer { display: none; } }
@media (max-width: 360px) {
  .slide-content { padding-left: 27px; padding-right: 27px; }
  .cover-copy .eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  .date-lockup { gap: 13px; }
  .date-side { width: 63px; }
  .address { font-size: 13px; }
  .album-title { left: 21px; right: 21px; }
  .album-title em { margin-left: 33px; }
}
@media (max-height: 760px) {
  .celebration-content { padding-top: 45px; padding-bottom: 84px; }
  .little-ornament { margin: 17px 0 10px; }
  .little-ornament svg { width: 30px; height: 30px; }
  .graduation-title { font-size: clamp(70px, 19cqw, 93px); }
  .name-rule { margin: 18px 0; }
  .year-label { margin-top: 15px; }
  .personal-note { margin-top: 18px; font-size: 14px; line-height: 1.65; }
  .details-content { padding-top: 40px; padding-bottom: 69px; gap: 14px; }
  .section-script { margin: 12px -10px; font-size: clamp(41px, 12cqw, 56px); }
  .date-number { font-size: 82px; }
  .month { margin-bottom: 13px; }
  .venue-name { margin: 12px 0; }
  .location-link { margin-top: 15px; }
  .gratitude-star { margin: 20px 0 15px; }
  .gratitude .name-rule { margin: 19px 0; }
  .with-love { margin-top: 15px; }
}
@media (max-height: 650px) {
  .slide-content { padding-top: 34px; padding-bottom: 68px; }
  .cover-copy { top: 12%; }
  .cover-title { font-size: 33px; margin-top: 14px; }
  .cover-title span { font-size: clamp(49px, 14cqw, 65px); }
  .cover-footer { bottom: 10%; gap: 12px; }
  .cover-footer span:first-child { font-size: 25px; }
  .graduation-band { top: 47%; height: 59px; }
  .open-invitation { top: calc(47% + 29px); transform: translate(-50%, -31px); }
  .wax-seal { width: 64px; height: 64px; }
  .wax-seal svg { width: 34px; height: 34px; }
  .open-label { margin-top: 37px; font-size: 11px; }
  .tassel { height: 64px; top: 38px; }
  .celebration .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .7px; }
  .little-ornament { display: none; }
  .graduation-title { font-size: clamp(65px, 18cqw, 85px); margin-top: 20px; }
  .name-rule { margin: 15px 0; }
  .graduate-name { font-size: clamp(33px, 8.6cqw, 40px); }
  .year-label { font-size: 11px; margin-top: 13px; }
  .year-label span { font-size: 27px; margin-top: 3px; }
  .personal-note { font-size: 13.5px; line-height: 1.6; margin-top: 14px; }
  .details-content { gap: 10px; }
  .details .eyebrow { font-size: 11px; }
  .section-script { font-size: clamp(39px, 11.8cqw, 50px); margin: 8px -10px; }
  .date-number { font-size: 69px; }
  .date-side { padding: 9px 0; font-size: 11px; }
  .month { font-size: 12px; margin: 6px 0 10px; }
  .event-time { font-size: 18px; }
  .venue-name { font-size: clamp(29px, 8.2cqw, 37px); margin: 10px 0; }
  .address { line-height: 1.6; }
  .ornament-divider span { font-size: 20px; }
  .location-link { width: 48px; height: 48px; margin-top: 13px; }
  .location-link svg { width: 28px; height: 28px; }
  .gratitude-content { padding-bottom: 92px; }
  .gratitude .eyebrow { font-size: 11px; }
  .gratitude-star { margin: 8px 0 6px; font-size: 20px; }
  .thank-you-title { font-size: clamp(67px, 19cqw, 90px); }
  .gratitude .name-rule { margin: 12px 0; }
  .thank-you-message { font-size: 14px; line-height: 1.65; margin-bottom: 12px; }
  .with-love { margin-top: 12px; font-size: 13px; }
  .signature { font-size: 44px; line-height: 1.2; }
  .next-slide { bottom: 23px; }
  .next-slide span { font-size: 10px; }
  .replay { bottom: 19px; }
}
/* Short landscape windows retain legible text in taller, scrollable pages. */
@media (max-height: 480px) {
  .slide { min-height: 560px; height: 560px; }
  .album-cover, .album-gallery { min-height: 100%; height: 100%; }
  .album-title { top: 56px; }
  .album-title span { font-size: 45px; }
  .album-title em { font-size: 65px; }
  .album-carousel { height: calc(100% - 50px); }
  .album-gallery .album-continue { height: 50px; padding-bottom: 5px; }
  .album-thumbnails { padding: 6px 8px; }
  .album-thumbnail { flex-basis: 58px; }
  .cover { min-height: 100%; height: 100%; }
  .cover-copy { top: 6%; }
  .cover-title { font-size: 28px; margin-top: 8px; }
  .cover-title span { font-size: 46px; line-height: 1.2; }
  .cover-footer { bottom: 6%; gap: 5px; font-size: 11px; }
  .cover-footer span:first-child { font-size: 22px; }
  .graduation-band { top: 43%; height: 48px; }
  .open-invitation { top: calc(43% + 24px); transform: translate(-50%, -27px); }
  .wax-seal { width: 54px; height: 54px; }
  .tassel { height: 34px; }
  .tassel::after { height: 22px; bottom: -18px; }
  .open-label { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .reveal { filter: none; }
  .pearl-background { transform: none !important; }
}
