/* Boom | A Little Universe
   A scrapbook of stacked colour-paper: butter, lavender, mint and coral. */

:root {
    --butter: #F8E9A9;
    --lavender: #DCD3F4;
    --mint: #D3E8D6;
    --coral: #E99C87;
    --cream: #FFFCF3;
    --ink: #34352F;
    --muted: #6d6c62;
    --purple: #8d73c4;
    --coral-dark: #b4604b;
    --white: #ffffff;

    --display: 'Playfair Display', Georgia, serif;
    --body: 'DM Sans', system-ui, sans-serif;
    --hand: 'Caveat', cursive;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; top: -60px; left: 14px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--butter), var(--coral), var(--purple)); }

/* ---------- Photo credit (above every photo) ---------- */
.credit {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
}

/* ---------- Photo holder + fallback ---------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--lavender), var(--mint)); }
.ph::after {
    content: attr(data-initial);
    position: absolute; inset: 0; display: grid; place-items: center;
    padding: 18px; text-align: center;
    font-family: var(--display); font-size: 28px; line-height: 1.15; color: #ffffffe0;
}
.ph img { position: relative; z-index: 1; height: 100%; }
.ph.has-image::after { display: none; }
.ph.no-photo img { display: none; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 60;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 18px 7%;
    background: #FFFCF3d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: #ece4c9; }
.logo { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: 3px; }
.nav-links { display: flex; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; }
.nav-links a { padding: 8px 14px; border-radius: 30px; transition: background .25s, color .25s; }
.nav-links a:hover { color: var(--coral-dark); }
.nav-links a.is-active { background: var(--butter); }

/* ---------- Shared ---------- */
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 4px; color: var(--coral-dark); font-weight: 700; margin-bottom: 20px; }

.section { padding: 150px 8% 110px; }
.stack { position: relative; margin-top: -44px; border-radius: 44px 44px 0 0; }

.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2, .projects-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 6vw, 72px); line-height: 1.05; }
.section-title p:not(.eyebrow), .projects-head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 14px; }

.btn {
    display: inline-block; padding: 16px 28px; border: 1px solid transparent; border-radius: 50px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #34352f26; }
.btn:active { transform: scale(.96); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--purple); }
.btn--pop { background: var(--butter); color: var(--ink); border-color: #e8d680; }
.btn--light { background: var(--cream); color: var(--ink); }

.reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal.visible { opacity: 1; translate: 0 0; }

/* ---------- Hero ---------- */
.hero {
    min-height: calc(100svh - 70px);
    padding: 40px 8% 130px;
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px;
    background:
        radial-gradient(circle at 88% 14%, #DCD3F4 0, transparent 28%),
        radial-gradient(circle at 8% 92%, #D3E8D6 0, transparent 30%),
        var(--cream);
}

.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(70px, 10vw, 150px); line-height: .88; letter-spacing: -2px; }
.h1-line { display: block; animation: rise 1s var(--ease) both; }
.h1-line--name {
    margin-left: 34px; font-style: italic; color: var(--purple); animation-delay: .14s;
    text-decoration: underline wavy var(--coral) 4px; text-underline-offset: 14px; text-decoration-skip-ink: none;
}
.hero-copy > *:not(h1) { animation: rise .9s var(--ease) both; }
.hero-lead { animation-delay: .3s !important; }
.hero-actions { animation-delay: .4s !important; }
.boom-count { animation-delay: .5s !important; }

.hero-lead { max-width: 420px; margin-top: 34px; font-size: 16px; line-height: 1.95; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.boom-count { margin-top: 18px; font-size: 13px; color: var(--muted); font-weight: 500; }
.boom-count strong { color: var(--ink); }
.boom-count--dark { color: #603F36; }
.boom-count--dark strong { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; width: 100%; max-width: 470px; margin: 0 auto; animation: rise 1.1s var(--ease) .2s both; }
.hero-photo {
    height: 590px; border: 9px solid #fff; border-radius: 999px 999px 10px 10px;
    box-shadow: 0 26px 64px #5d574026; background-clip: padding-box;
}
.hero-photo::after { font-size: 66px; }
.hero-visual::before {
    content: ""; position: absolute; z-index: 3; top: 18px; left: 50%; width: 120px; height: 34px;
    background: #f8e9a9d9; transform: translateX(-50%) rotate(-3deg); box-shadow: 0 2px 6px #00000014;
}

.nametag {
    position: absolute; z-index: 4; left: -50px; bottom: 60px; width: 176px;
    background: #fff; border-radius: 14px; overflow: hidden; text-align: center;
    box-shadow: 0 14px 34px #34352f28; transform: rotate(-7deg);
    animation: bob 6s ease-in-out infinite alternate;
}
.nametag__top { background: var(--coral); color: #fff; font-weight: 700; letter-spacing: 3px; font-size: 18px; padding: 8px 0 4px; }
.nametag__mid { background: var(--coral); color: #fff; font-size: 11px; letter-spacing: 1.5px; padding-bottom: 8px; }
.nametag__name { font-family: var(--hand); font-weight: 700; font-size: 46px; line-height: 1.1; padding: 8px 0 12px; color: var(--ink); }

.sticker {
    position: absolute; z-index: 4; right: -34px; top: 90px; width: 118px; height: 118px;
    display: grid; place-items: center; text-align: center;
    background: var(--butter); border-radius: 50%;
    font-family: var(--display); font-size: 17px; line-height: 1.2; transform: rotate(10deg);
    box-shadow: 0 10px 24px #00000014; animation: bob 5s ease-in-out infinite alternate-reverse;
}
.hero-star { position: absolute; z-index: 4; right: 6%; bottom: -14px; font-size: 50px; color: var(--coral); animation: spin 18s linear infinite; }
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 7px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- About ---------- */
.intro { background: var(--butter); text-align: center; padding: 150px 8% 110px; }
.intro .eyebrow { color: #8a6f2f; }
.intro h2 { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 6.4vw, 82px); line-height: 1.1; max-width: 16ch; margin: 0 auto; }
.intro-text { max-width: 640px; margin: 26px auto 0; color: #6C6654; font-size: 16px; line-height: 1.95; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.chips li { padding: 10px 20px; border-radius: 40px; background: #ffffffa6; border: 1px solid #e8d680; font-weight: 700; font-size: 14px; }
.chips li:nth-child(2) { transform: rotate(-2deg); }
.chips li:nth-child(3) { transform: rotate(2deg); }

/* ---------- Projects: film strip ---------- */
.projects { background: var(--cream); }

.projects-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.arrows { display: flex; gap: 10px; }
.arrow {
    width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--cream);
    font-size: 22px; line-height: 1; transition: background .25s, color .25s, transform .25s var(--ease), opacity .25s;
}
.arrow:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.06); }
.arrow:disabled { opacity: .3; cursor: default; }

.strip { position: relative; padding: 52px 0; background: var(--ink); border-radius: 26px; overflow: hidden; }
.strip::before, .strip::after {
    content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2; pointer-events: none;
    background: repeating-linear-gradient(90deg, #FFFCF3d9 0 16px, transparent 16px 34px);
    -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.strip::before { top: 18px; }
.strip::after { bottom: 18px; }

.reel {
    display: flex; gap: 22px; padding: 0 30px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 30px; scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }

.frame { flex: 0 0 280px; scroll-snap-align: start; color: var(--cream); }
.frame .credit { color: #bdbaa8; }
.frame__img { height: 370px; border-radius: 6px; }
.frame__img img { transition: transform .8s var(--ease); }
.frame:hover .frame__img img { transform: scale(1.06); }
.frame__info { padding: 16px 2px 0; }
.frame__info small { color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.frame__info h3 { font-family: var(--display); font-weight: 500; font-size: 27px; line-height: 1.15; margin: 4px 0 6px; }
.frame__info p { color: #cfcdbf; font-size: 13px; line-height: 1.65; }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--lavender); }
.spotlight-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.spotlight-photo { height: 560px; border-radius: 6px 140px 6px 6px; box-shadow: 0 26px 60px #5d4a8a30; transform: rotate(-2deg); }
.spotlight-photo::after { font-size: 64px; }
.spotlight-copy .eyebrow { color: #6c58a0; }
.spotlight-copy h2 { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 6.4vw, 84px); line-height: 1; margin-bottom: 26px; }
.spotlight-copy h2 em { color: var(--purple); }
.spotlight-copy p:not(.eyebrow) { color: #5b5470; font-size: 15.5px; line-height: 2; max-width: 46ch; }
.details { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.details span { padding: 10px 18px; border-radius: 40px; background: #ffffff99; font-size: 13px; font-weight: 700; transition: transform .3s var(--ease), background .3s; }
.details span:hover { transform: translateY(-4px) rotate(-2deg); background: var(--butter); }

/* ---------- Memory wall: polaroids ---------- */
.memory { background: var(--mint); }
.wall { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 30px; max-width: 1100px; margin: 0 auto; align-items: start; }
.polaroid { margin: 0; }
.polaroid--2 { margin-top: 56px; }
.polaroid--3 { margin-top: 108px; }

.polaroid__btn {
    position: relative; display: block; width: 100%; padding: 16px 16px 14px; border: none; background: #fff; text-align: center;
    box-shadow: 0 16px 34px #3a5a4426; transform: rotate(var(--r, 0deg));
    transition: transform .45s var(--ease), box-shadow .45s;
}
.polaroid--1 .polaroid__btn { --r: -2.5deg; }
.polaroid--2 .polaroid__btn { --r: 2deg; }
.polaroid--3 .polaroid__btn { --r: -1.2deg; }
.polaroid__btn::before {
    content: ""; position: absolute; top: -14px; left: 50%; width: 90px; height: 28px;
    background: #f8e9a9d9; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 2px 5px #00000012;
}
.polaroid__btn:hover { transform: rotate(0) translateY(-8px) scale(1.02); box-shadow: 0 28px 50px #3a5a4438; }
.polaroid__img { display: block; height: 330px; }
.polaroid--2 .polaroid__img { height: 290px; }
.polaroid__cap { display: block; margin-top: 12px; font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); }

/* lightbox */
.lightbox { margin: auto; width: min(92vw, 540px); border: none; border-radius: 10px; padding: 18px 18px 10px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px #34352f66; overflow: visible; }
.lightbox::backdrop { background: #34352fb3; backdrop-filter: blur(5px); }
.lightbox[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
.lightbox__photo { min-height: 300px; border-radius: 4px; }
.lightbox__photo img { max-height: 64vh; }
.lightbox__cap { padding: 14px 4px 8px; }
.lightbox__cap h3 { font-family: var(--hand); font-size: 36px; line-height: 1.1; }
.lightbox__cap p { color: var(--muted); font-size: 14px; }
.lightbox__close { position: absolute; top: -16px; right: -16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--coral); color: #fff; box-shadow: 0 8px 20px #34352f40; font-size: 22px; line-height: 1; }

/* ---------- Fan note ---------- */
.note-section { background: var(--coral); text-align: center; padding: 150px 8% 130px; }
.note-section .eyebrow { color: #603F36; }
.note-section h2 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.06; max-width: 15ch; margin: 0 auto; }
.note-lead { margin-top: 20px; color: #603F36; font-size: 15px; }
.note-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.note-section .btn--ink:hover { background: #fff; color: var(--ink); }

.sticky {
    position: relative; max-width: 430px; margin: 44px auto 0; padding: 40px 32px 34px;
    background: var(--butter); color: #49352F;
    font-family: var(--hand); font-weight: 700; font-size: 31px; line-height: 1.3;
    transform: rotate(-2deg); box-shadow: 0 20px 40px #603f3640;
}
.sticky::before { content: ""; position: absolute; top: -14px; left: 50%; width: 100px; height: 28px; background: #ffffffa6; transform: translateX(-50%) rotate(3deg); }
.sticky:not([hidden]) { animation: stick .7s var(--ease); }
@keyframes stick { from { opacity: 0; transform: scale(.6) rotate(10deg) translateY(30px); } to { opacity: 1; transform: rotate(-2deg); } }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.bit {
    position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
    background: var(--c); border-radius: var(--br);
    animation: burst var(--t) cubic-bezier(.1, .7, .3, 1) forwards;
}
@keyframes burst {
    from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
    to   { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.5); opacity: 0; }
}
.pop-word {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    font-family: var(--hand); font-weight: 700; font-size: 64px; color: var(--ink);
    text-shadow: 3px 3px 0 var(--butter), -2px -2px 0 #fff;
    animation: popWord .9s var(--ease) forwards;
}
@keyframes popWord { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg); opacity: 0; } 30% { opacity: 1; transform: translate(-50%, -80%) scale(1.15) rotate(4deg); } 100% { transform: translate(-50%, -150%) scale(1) rotate(-3deg); opacity: 0; } }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: -44px; border-radius: 44px 44px 0 0; background: var(--ink); color: var(--cream); padding: 100px 8% 50px; text-align: center; }
.foot h2 { font-family: var(--display); font-weight: 500; font-size: 48px; }
.foot__tag { margin-top: 10px; font-size: 11px; letter-spacing: 1.5px; color: #C7C5B9; }
.foot__note { max-width: 62ch; margin: 16px auto 0; font-size: 12px; line-height: 1.9; color: #C7C5B9; }
.mail { color: var(--butter); text-decoration: underline; }
.foot__top { display: inline-block; margin-top: 26px; padding: 10px 22px; border: 1px solid #ffffff33; border-radius: 40px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; transition: background .25s; }
.foot__top:hover { background: #ffffff14; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 64px; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .h1-line--name { margin-left: 0; }
    .nametag { left: -20px; }
    .sticker { right: -14px; }
    .spotlight-inner { grid-template-columns: 1fr; gap: 56px; }
    .spotlight-figure { max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
    .nav { padding: 14px 5%; align-items: flex-start; }
    .logo { font-size: 21px; }
    .nav-links { gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 210px; font-size: 10px; letter-spacing: .6px; }
    .nav-links a { padding: 6px 9px; }

    .hero { padding: 24px 7% 110px; }
    .hero-photo { height: 430px; }
    .nametag { width: 140px; left: -12px; bottom: 36px; }
    .nametag__name { font-size: 36px; }
    .sticker { width: 92px; height: 92px; font-size: 13px; top: 70px; right: -8px; }

    .section { padding: 120px 7% 80px; }
    .intro { padding: 120px 7% 80px; }
    .note-section { padding: 120px 7% 100px; }

    .projects-head { align-items: flex-start; flex-direction: column; }
    .frame { flex-basis: 74vw; }
    .frame__img { height: 360px; }

    .spotlight-photo { height: 430px; }

    .wall { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
    .polaroid--1 { grid-column: 1 / -1; }
    .polaroid--2, .polaroid--3 { margin-top: 0; }
    .polaroid__img, .polaroid--2 .polaroid__img { height: 200px; }
    .polaroid--1 .polaroid__img { height: 290px; }
    .polaroid__cap { font-size: 22px; }

    .sticky { font-size: 26px; }
}

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