/* =====================================================================
   Lyanna's World — Design System
   A magical, elegant, pastel universe for a young creator.
   Author: Built together with Dad using AI
   --------------------------------------------------------------------
   Sections:
   1.  Design tokens (colours, type, space, radius, shadow)
   2.  Dark / Night mode tokens
   3.  Reset & base
   4.  Layout helpers (container, grid, section)
   5.  Decorative sky (clouds, stars, blobs, sparkles)
   6.  Header / navigation
   7.  Buttons & pills
   8.  Cards (glass, project, story, fact, etc.)
   9.  Hero
   10. Timeline
   11. Gallery
   12. Video facade
   13. Forms
   14. Footer
   15. Utilities & animations
   16. Reduced motion & print
   ===================================================================== */

/* 1. ---------- DESIGN TOKENS ---------- */
:root {
  /* Pastel core palette */
  --sky:        #7cc6f0;
  --sky-soft:   #d5eefb;
  --lavender:   #b39de8;
  --lavender-soft:#e6ddfa;
  --mint:       #86e3bd;
  --mint-soft:  #d3f5e6;
  --pink:       #f7a8c9;
  --pink-soft:  #fbdcea;
  --gold:       #ffcf6b;
  --gold-soft:  #ffeec4;
  --coral:      #ff6f61;   /* warm accent */
  --magenta:    #e0559b;   /* CTA accent (AA on white) */

  /* Semantic */
  --bg:          #fbf9ff;
  --bg-tint-1:   #eaf4ff;  /* sky wash */
  --bg-tint-2:   #f6ecff;  /* lavender wash */
  --bg-tint-3:   #fff2f8;  /* pink wash */
  --surface:     rgba(255, 255, 255, 0.72);
  --surface-solid:#ffffff;
  --surface-2:   rgba(255, 255, 255, 0.55);
  --ink:         #2b1d5e;  /* deep plum text — AA on pastels */
  --ink-soft:    #5b4e86;
  --ink-faint:   #8a7fb0;
  --border:      rgba(120, 100, 190, 0.18);
  --border-strong:rgba(120, 100, 190, 0.34);
  --primary:     #6a4de0;
  --primary-ink: #ffffff;
  --focus:       #3b82f6;

  /* Type */
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero:  clamp(2.4rem, 6vw, 4.6rem);
  --fs-h1:    clamp(2rem, 4.5vw, 3.2rem);
  --fs-h2:    clamp(1.6rem, 3.2vw, 2.4rem);
  --fs-h3:    clamp(1.2rem, 2.2vw, 1.5rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:  1.05rem;
  --fs-small: 0.9rem;

  /* Space scale (8pt-ish) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;

  /* Radius */
  --r-sm: 0.75rem;
  --r-md: 1.25rem;
  --r-lg: 2rem;
  --r-xl: 2.75rem;
  --r-pill: 999px;

  /* Shadow (soft, dreamy) */
  --sh-1: 0 4px 16px rgba(90, 78, 134, 0.10);
  --sh-2: 0 12px 34px rgba(90, 78, 134, 0.16);
  --sh-3: 0 24px 60px rgba(90, 78, 134, 0.22);
  --sh-glow: 0 0 40px rgba(179, 157, 232, 0.45);

  --nav-h: 74px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. ---------- NIGHT MODE ---------- */
:root[data-theme="night"] {
  --bg:        #120c30;
  --bg-tint-1: #171147;
  --bg-tint-2: #1d1450;
  --bg-tint-3: #241a57;
  --surface:   rgba(45, 34, 92, 0.55);
  --surface-solid:#231a53;
  --surface-2: rgba(60, 46, 120, 0.4);
  --ink:       #f4efff;
  --ink-soft:  #cdc2f2;
  --ink-faint: #9a8dd0;
  --border:    rgba(180, 160, 255, 0.20);
  --border-strong:rgba(180, 160, 255, 0.38);
  --primary:   #a78bfa;
  --sh-1: 0 4px 16px rgba(0, 0, 0, 0.35);
  --sh-2: 0 12px 34px rgba(0, 0, 0, 0.45);
  --sh-3: 0 24px 60px rgba(0, 0, 0, 0.55);
  --sh-glow: 0 0 46px rgba(167, 139, 250, 0.55);
  color-scheme: dark;
}

/* 3. ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.6s var(--ease), color 0.4s var(--ease);
}

/* Dreamy layered background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 12% 8%,  var(--bg-tint-1) 0%, transparent 60%),
    radial-gradient(55% 45% at 88% 4%,  var(--bg-tint-3) 0%, transparent 55%),
    radial-gradient(70% 60% at 80% 92%, var(--bg-tint-2) 0%, transparent 60%),
    radial-gradient(60% 55% at 10% 96%, var(--bg-tint-1) 0%, transparent 60%),
    var(--bg);
  transition: background 0.6s var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-radius: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 800; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  z-index: 1000;
  transition: top 0.2s var(--ease);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* 4. ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-wide { max-width: 1360px; }
.container-narrow { max-width: 780px; }

.section { padding-block: clamp(3rem, 8vw, var(--sp-7)); position: relative; }
.section-sm { padding-block: clamp(2rem, 5vw, var(--sp-5)); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head p { font-size: var(--fs-lead); margin-top: 0.75rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.95rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
}
:root[data-theme="night"] .eyebrow { color: var(--lavender); }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.text-gradient {
  background: linear-gradient(100deg, var(--magenta), var(--lavender) 42%, var(--sky) 82%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* 5. ---------- DECORATIVE SKY ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.sky.fixed { position: fixed; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: 0.55; mix-blend-mode: multiply;
}
:root[data-theme="night"] .blob { mix-blend-mode: screen; opacity: 0.4; }
.blob.b1 { width: 360px; height: 360px; background: var(--sky);      top: -80px; left: -60px; }
.blob.b2 { width: 300px; height: 300px; background: var(--pink);     top: 10%; right: -70px; }
.blob.b3 { width: 340px; height: 340px; background: var(--mint);     bottom: -90px; left: 20%; }
.blob.b4 { width: 280px; height: 280px; background: var(--lavender); bottom: 6%; right: 12%; }

.cloud { position: absolute; opacity: 0.9; will-change: transform; }
.star  { position: absolute; color: var(--gold); opacity: 0.9; }
:root[data-theme="night"] .star { filter: drop-shadow(0 0 6px var(--gold)); }

/* twinkle dots generated in JS get this class */
.twinkle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgba(255,255,255,0.8);
  opacity: 0; animation: twinkle 4s ease-in-out infinite;
}
:root:not([data-theme="night"]) .twinkle { background: var(--gold); box-shadow: 0 0 6px 1px var(--gold-soft); }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 0.9; transform: scale(1); } }

/* sparkle burst on click / hover */
.sparkle {
  position: fixed; width: 14px; height: 14px; pointer-events: none; z-index: 999;
  color: var(--gold);
  animation: sparkle-pop 0.7s var(--ease) forwards;
}
@keyframes sparkle-pop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4) rotate(160deg); opacity: 0; }
}

/* 6. ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.scrolled {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--sh-1);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand .brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 8px rgba(106,77,224,0.3)); }
.brand span b { color: var(--magenta); }

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  position: relative;
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.96rem; color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--primary); background: var(--surface); box-shadow: var(--sh-1); }

/* dropdown */
.nav-more { position: relative; }
.nav-more > button { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.85rem; border-radius: var(--r-pill); font-weight: 700; color: var(--ink-soft); }
.nav-more > button:hover { color: var(--ink); background: var(--surface-2); }
.nav-more-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-2);
  padding: 0.5rem; min-width: 200px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-more[data-open="true"] .nav-more-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-more-menu a { padding: 0.6rem 0.85rem; border-radius: var(--r-sm); font-weight: 700; color: var(--ink-soft); }
.nav-more-menu a:hover { background: var(--surface-2); color: var(--ink); }

.nav-tools { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.05); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .moon { display: none; }
:root[data-theme="night"] .icon-btn .sun { display: none; }
:root[data-theme="night"] .icon-btn .moon { display: block; }

.nav-toggle { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--surface-solid);
  padding: calc(var(--nav-h) + 1rem) clamp(1.2rem, 6vw, 3rem) 2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--ink); display: flex; align-items: center; gap: 0.8rem; }
.mobile-menu a:hover { color: var(--magenta); }
.mobile-close { position: fixed; top: 15px; right: clamp(1.1rem, 4vw, 2rem); }

@media (max-width: 960px) {
  .nav-links, .nav-more { display: none; }
  .nav-toggle { display: grid; }
}

/* 7. ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  padding: 0.85rem 1.6rem; border-radius: var(--r-pill);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.3s;
  will-change: transform; text-align: center; line-height: 1.1;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--magenta), var(--coral));
  box-shadow: 0 10px 26px rgba(224, 85, 155, 0.4);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(224, 85, 155, 0.5); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-secondary {
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--border-strong);
  box-shadow: var(--sh-1); backdrop-filter: blur(8px);
}
.btn-secondary:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--sh-2); border-color: var(--lavender); }
.btn-secondary:active { transform: scale(0.98); }
.btn-sun { background: linear-gradient(120deg, var(--gold), var(--coral)); color: #4a2a00; box-shadow: 0 10px 26px rgba(255,159,64,0.4); }
.btn-lg { padding: 1rem 2rem; font-size: 1.12rem; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.85rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
}
.pill svg { width: 16px; height: 16px; }
.pill.sky    { background: var(--sky-soft); color: #0b5a86; border-color: transparent; }
.pill.pink   { background: var(--pink-soft); color: #a01e5e; border-color: transparent; }
.pill.mint   { background: var(--mint-soft); color: #0a7a52; border-color: transparent; }
.pill.gold   { background: var(--gold-soft); color: #8a5a00; border-color: transparent; }
.pill.lav    { background: var(--lavender-soft); color: #5b32c0; border-color: transparent; }
:root[data-theme="night"] .pill { color: var(--ink); }
:root[data-theme="night"] .pill.sky,
:root[data-theme="night"] .pill.pink,
:root[data-theme="night"] .pill.mint,
:root[data-theme="night"] .pill.gold,
:root[data-theme="night"] .pill.lav { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }

/* 8. ---------- CARDS ---------- */
.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--border-strong); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.98rem; }

/* soft top accent line variants */
.card--sky::before,.card--pink::before,.card--mint::before,.card--gold::before,.card--lav::before {
  content:""; position:absolute; inset:0 0 auto 0; height:5px; opacity:0.9;
}
.card--sky::before { background: linear-gradient(90deg, var(--sky), var(--mint)); }
.card--pink::before{ background: linear-gradient(90deg, var(--pink), var(--coral)); }
.card--mint::before{ background: linear-gradient(90deg, var(--mint), var(--sky)); }
.card--gold::before{ background: linear-gradient(90deg, var(--gold), var(--pink)); }
.card--lav::before { background: linear-gradient(90deg, var(--lavender), var(--pink)); }

.card-icon {
  width: 62px; height: 62px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 1rem;
  box-shadow: var(--sh-1);
}
.card-icon svg { width: 34px; height: 34px; }
.ic-sky  { background: var(--sky-soft);  color: #0b6aa0; }
.ic-pink { background: var(--pink-soft); color: #c2367a; }
.ic-mint { background: var(--mint-soft); color: #0a8a5c; }
.ic-gold { background: var(--gold-soft); color: #b3760a; }
.ic-lav  { background: var(--lavender-soft); color: #6a3fd0; }
.ic-coral{ background: #ffe1db; color: var(--coral); }

/* Interactive/link card */
.card-link { display: block; color: inherit; }
.card-link .card-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 700; color: var(--primary); margin-top: 0.9rem; }
.card-link:hover .card-cta svg { transform: translateX(4px); }
.card-cta svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }

/* project card with media */
.project-media { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; position: relative; display: grid; place-items: center; }
.project-media svg { width: 100%; height: 100%; }
.project-media .tag { position: absolute; top: 12px; left: 12px; }

/* meta row */
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

/* stat card */
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--magenta); line-height: 1; }
.stat span { font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }

/* 9. ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-actions { justify-content: center; } .hero-badges { justify-content: center; } }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 1rem; }
.hero .lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.6rem; }
@media (max-width: 900px){ .hero .lead { margin-inline: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-portrait { position: relative; display: grid; place-items: center; }
.hero-portrait .portrait-ring { width: min(100%, 440px); aspect-ratio: 1; filter: drop-shadow(var(--sh-glow)); }
.hero-portrait .float-badge { position: absolute; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0.5rem 0.9rem; box-shadow: var(--sh-2); font-weight: 800; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.hero-portrait .float-badge svg { width: 20px; height: 20px; }
.fb-1 { top: 8%; left: -2%; color: var(--magenta); }
.fb-2 { bottom: 14%; right: -4%; color: var(--sky); }
.fb-3 { bottom: -2%; left: 18%; color: var(--mint); }

/* Potato photo — round, borderless, feathered edges that fade into the page */
.hero-portrait .potato-frame {
  display: block; position: relative;
  width: min(90%, 470px); aspect-ratio: 1;
  border: none; box-shadow: none; background: none;
  filter: drop-shadow(0 16px 32px rgba(90, 78, 134, 0.22));
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 66%, rgba(0,0,0,0.5) 85%, transparent 100%);
          mask-image: radial-gradient(circle closest-side at 50% 50%, #000 66%, rgba(0,0,0,0.5) 85%, transparent 100%);
}
.hero-portrait .potato-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; transition: transform 0.6s var(--ease); }
.hero-portrait .potato-frame:hover img { transform: scale(1.04); }

/* Cat character cards */
.cat-card { padding: 0; overflow: hidden; }
.cat-card > img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card .cat-body { padding: 1rem 1.25rem 1.3rem; }
.cat-card .cat-body b { font-family: var(--font-display); display: block; color: var(--ink); }
.cat-card .cat-body span { color: var(--ink-soft); font-size: 0.92rem; }

/* Reusable round photo with soft feathered edges (no border line) */
.round-photo {
  display: block; position: relative; aspect-ratio: 1;
  width: 100%; border: none; box-shadow: none; background: none;
  filter: drop-shadow(0 16px 32px rgba(90, 78, 134, 0.22));
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 66%, rgba(0,0,0,0.5) 85%, transparent 100%);
          mask-image: radial-gradient(circle closest-side at 50% 50%, #000 66%, rgba(0,0,0,0.5) 85%, transparent 100%);
}
.round-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.round-photo:hover img { transform: scale(1.04); }

/* page hero (interior pages) */
.page-hero { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem,3vw,2rem); position: relative; }
.page-hero h1 { font-size: var(--fs-h1); margin: 0.8rem 0 0.6rem; }
.page-hero p { font-size: var(--fs-lead); max-width: 60ch; margin-inline: auto; }

/* breadcrumb */
.breadcrumb { display: flex; justify-content: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.4rem; }
.breadcrumb a:hover { color: var(--primary); }

/* 10. ---------- TIMELINE ---------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--sky), var(--lavender), var(--pink)); }
.tl-item { position: relative; padding: 0 0 2rem 62px; }
.tl-item .dot { position: absolute; left: 11px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-solid); border: 3px solid var(--lavender); display: grid; place-items: center; box-shadow: var(--sh-1); }
.tl-item .dot svg { width: 14px; height: 14px; color: var(--primary); }
.tl-year { font-family: var(--font-display); font-weight: 700; color: var(--magenta); font-size: 0.9rem; }
.tl-item h3 { margin: 0.1rem 0 0.3rem; }

/* 11. ---------- GALLERY ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.chip {
  padding: 0.5rem 1.1rem; border-radius: var(--r-pill); font-family: var(--font-display);
  font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1);
  transition: transform 0.2s, background 0.25s, color 0.25s;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { color: #fff; background: linear-gradient(120deg, var(--magenta), var(--lavender)); border-color: transparent; }

.masonry { columns: 3 260px; column-gap: 1.2rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.2rem; }
.art-item {
  border-radius: var(--r-md); overflow: hidden; position: relative;
  box-shadow: var(--sh-1); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer; background: var(--surface);
}
.art-item:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--sh-2); }
.art-item .art-canvas { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.art-item.tall .art-canvas { aspect-ratio: 3 / 4; }
.art-item .art-canvas svg { width: 100%; height: 100%; }
.art-cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(20,12,48,0.72)); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; }
.art-item:hover .art-cap, .art-item:focus-within .art-cap { opacity: 1; transform: translateY(0); }
.art-cap b { font-family: var(--font-display); display: block; }
.art-cap span { font-size: 0.82rem; opacity: 0.85; }

/* 12. ---------- VIDEO FACADE ---------- */
.video-grid { display: grid; gap: clamp(1.1rem,2.5vw,1.75rem); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.video-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.video-facade { position: relative; aspect-ratio: 16/9; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.video-facade .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade .thumb-svg { position: absolute; inset: 0; }
.video-facade .thumb-svg svg { width: 100%; height: 100%; }
.video-facade .play {
  position: relative; z-index: 2; width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: grid; place-items: center; box-shadow: var(--sh-2);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.video-facade:hover .play { transform: scale(1.12); background: #fff; }
.video-facade .play svg { width: 30px; height: 30px; color: var(--magenta); margin-left: 4px; }
.video-facade .badge-soon { position: absolute; top: 12px; right: 12px; z-index: 2; }
.video-card .vc-body { padding: 1.1rem 1.3rem 1.4rem; }
.video-card .vc-body h3 { font-size: 1.12rem; }
.ratio-16x9 { position: relative; aspect-ratio: 16/9; }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* self-playing SVG loop “animation” */
.anim-stage { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-1); background: linear-gradient(160deg, var(--bg-tint-1), var(--bg-tint-2)); }

/* 13. ---------- FORMS ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.field .hint { font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink);
  background: var(--surface-solid); border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md); padding: 0.8rem 1rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(106,77,224,0.16); }
.field .req { color: var(--coral); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
.form-status { font-weight: 700; padding: 0.8rem 1rem; border-radius: var(--r-md); display: none; }
.form-status.ok { display: block; background: var(--mint-soft); color: #0a7a52; }

/* 14. ---------- FOOTER ---------- */
.site-footer { position: relative; margin-top: clamp(3rem, 8vw, 6rem); padding-block: clamp(2.5rem,6vw,4rem) 2rem; overflow: hidden; }
.site-footer::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, transparent, var(--bg-tint-2)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; text-align: center; } }
.footer-grid h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.8rem; color: var(--ink); }
.footer-grid ul { display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--ink-soft); font-weight: 600; }
.footer-grid a:hover { color: var(--magenta); }
.footer-about p { font-size: 0.95rem; max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
@media (max-width:480px){ .footer-social { justify-content: center; } }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-1); transition: transform 0.2s, color 0.2s; }
.footer-social a:hover { transform: translateY(-3px); color: var(--magenta); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.9rem; color: var(--ink-faint); font-weight: 600; }
.footer-bottom .heart { color: var(--coral); }

/* 15. ---------- UTILITIES & ANIMATIONS ---------- */
.center { text-align: center; }
.mt-1{margin-top:var(--sp-1)}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:var(--sp-2)}.mb-3{margin-bottom:var(--sp-3)}
.max-60 { max-width: 60ch; }
.mx-auto { margin-inline: auto; }
.flex { display:flex; } .items-center{align-items:center;} .gap-2{gap:var(--sp-2);} .wrap{flex-wrap:wrap;}
.hidden { display: none !important; }
.hide-mobile { }
@media (max-width: 620px) { .hide-mobile { display: none !important; } }
.visually-hidden { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }

.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite; }
.float-alt { animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.spin-slow { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.drift { animation: drift 40s linear infinite; }
@keyframes drift { from { transform: translateX(-8vw);} to { transform: translateX(108vw);} }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* wavy underline accent */
.squiggle { display:inline-block; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%); background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--sh-2); padding: 0.85rem 1.3rem; border-radius: var(--r-pill); font-weight: 700; z-index: 500; transition: transform 0.4s var(--ease); display: inline-flex; align-items: center; gap: 0.5rem; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; color: var(--gold); }

/* fun fact flip cards */
.flip { perspective: 1000px; }
.flip-inner { position: relative; transition: transform 0.6s var(--ease); transform-style: preserve-3d; aspect-ratio: 1; }
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip[data-flipped="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; padding: 1.2rem; }
.flip-front { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.flip-front svg { width: 46px; height: 46px; margin-bottom: 0.6rem; }
.flip-front b { font-family: var(--font-display); color: var(--ink); }
.flip-back { transform: rotateY(180deg); color: #fff; box-shadow: var(--sh-2); }
.flip-back b { font-family: var(--font-display); font-size: 1.35rem; display: block; }
.flip-back.bg-sky  { background: linear-gradient(150deg, var(--sky), var(--lavender)); }
.flip-back.bg-pink { background: linear-gradient(150deg, var(--pink), var(--coral)); }
.flip-back.bg-mint { background: linear-gradient(150deg, var(--mint), var(--sky)); }
.flip-back.bg-gold { background: linear-gradient(150deg, var(--gold), var(--pink)); }
.flip-back.bg-lav  { background: linear-gradient(150deg, var(--lavender), var(--magenta)); }

/* callout / note */
.callout { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.callout svg { width: 30px; height: 30px; flex: none; color: var(--primary); margin-top: 2px; }

/* quiz */
.quiz { max-width: 620px; margin-inline: auto; }
.quiz-q { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
.quiz-opts { display: grid; gap: 0.7rem; }
.quiz-opt { text-align: left; padding: 0.85rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--border); font-weight: 700; color: var(--ink); transition: transform 0.15s, border-color 0.2s, background 0.2s; }
.quiz-opt:hover { transform: translateX(4px); border-color: var(--lavender); }
.quiz-opt.correct { background: var(--mint-soft); border-color: var(--mint); color: #0a7a52; }
.quiz-opt.wrong { background: var(--pink-soft); border-color: var(--pink); color: #a01e5e; }

/* badge / sticker */
.sticker { width: 96px; height: 96px; display: grid; place-items: center; filter: drop-shadow(var(--sh-1)); transition: transform 0.3s var(--ease); }
.sticker:hover { transform: rotate(-6deg) scale(1.08); }

/* divider wave */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; }

/* 16. ---------- REDUCED MOTION & PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float, .float-slow, .float-alt, .drift, .spin-slow, .twinkle { animation: none !important; }
}

@media print {
  .site-header, .site-footer, .sky, .nav-tools, .mobile-menu, .music-toggle { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
