:root {
  --ink: #173b4a;
  --ink-soft: #41626e;
  --night: #293f78;
  --night-deep: #1d2c59;
  --teal: #0a8e92;
  --teal-dark: #087378;
  --sky: #bdefff;
  --sky-soft: #e7f9ff;
  --sun: #ffd64f;
  --sun-soft: #fff2a9;
  --coral: #ff7b6e;
  --coral-soft: #ffe0d8;
  --mint: #dff5d9;
  --paper: #fffaf0;
  --white: #ffffff;
  --line: rgba(23, 59, 74, .14);
  --shadow: 0 24px 70px rgba(27, 69, 83, .16);
  --shadow-small: 0 12px 30px rgba(27, 69, 83, .12);
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .75rem 1rem; border-radius: 999px; color: var(--white); background: var(--night); font-weight: 800; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 4px solid rgba(255, 214, 79, .92); outline-offset: 4px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 1.35rem; font-size: clamp(3.3rem, 6.4vw, 6.1rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.35rem, 4.2vw, 4.25rem); }
h3 { margin-bottom: .7rem; font-size: clamp(1.65rem, 2.2vw, 2.2rem); }
.section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.lead { max-width: 640px; margin-bottom: 2rem; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; }
.eyebrow-sun { color: #745600; }
.eyebrow-sun span { background: var(--sun); }
.eyebrow-coral { color: #a13b33; }
.eyebrow-coral span { background: var(--coral-soft); }
.eyebrow-teal { color: var(--teal-dark); }
.eyebrow-teal span { background: var(--mint); }
.eyebrow-light { color: var(--sun); }

.history-note { position: relative; z-index: 15; color: #fff; background: var(--night-deep); }
.history-note-inner { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 38px; padding: .45rem 0; text-align: center; }
.history-note p { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.history-note-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 214, 79, .18); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(23, 59, 74, .08); background: rgba(255, 250, 240, .9); backdrop-filter: blur(18px); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 82px; }
.brand { flex: 0 0 auto; }
.brand img { width: 155px; height: auto; }
.nav nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.55rem); font-size: .92rem; font-weight: 800; }
.nav nav a { text-decoration: none; }
.nav nav > a:not(.nav-cta) { position: relative; }
.nav nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -.45rem; left: 0; height: 3px; border-radius: 99px; background: var(--coral); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .72rem 1.05rem; border-radius: 999px; color: #fff; background: var(--teal); box-shadow: 0 7px 16px rgba(10, 142, 146, .25); }
.menu-toggle { display: none; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 0; border-radius: 999px; background: var(--sky-soft); font-weight: 900; cursor: pointer; }
.menu-toggle-lines { display: grid; gap: 3px; }
.menu-toggle-lines i { display: block; width: 18px; height: 2px; border-radius: 9px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; min-height: min(760px, calc(100vh - 120px)); overflow: hidden; background: #dff6fd; }
.hero-art { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255, 250, 240, .22) 0%, rgba(255, 250, 240, 0) 55%), url("assets/images/cerino-lume-ilustrata.jpg"); background-position: center; background-size: cover; }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: min(760px, calc(100vh - 120px)); padding-top: 4rem; padding-bottom: 7rem; }
.hero-copy { width: min(620px, 55%); padding: clamp(1.6rem, 3.5vw, 3.3rem); border: 1px solid rgba(255, 255, 255, .65); border-radius: 2rem 4rem 2rem 3rem; background: rgba(255, 250, 240, .88); box-shadow: 0 24px 70px rgba(34, 79, 91, .13); backdrop-filter: blur(8px); }
.hero-copy h1 { color: var(--night); font-size: clamp(3.2rem, 5vw, 4.8rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .83rem 1.25rem; border: 2px solid transparent; border-radius: 999px; font-weight: 900; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow-small); }
.button-primary { color: #fff; background: var(--teal); }
.button-paper { border-color: rgba(23, 59, 74, .16); background: rgba(255, 255, 255, .78); }
.button-dark { color: #fff; background: var(--night); }
.button-sun { color: var(--night-deep); background: var(--sun); }
.button-icon { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; padding-left: 2px; border-radius: 50%; color: var(--teal); background: #fff; font-size: .7rem; }
.hero-wave { position: absolute; z-index: 3; right: -2%; bottom: -2px; left: -2%; height: 68px; background: var(--paper); clip-path: polygon(0 52%, 8% 66%, 18% 48%, 29% 71%, 43% 45%, 55% 68%, 67% 43%, 80% 70%, 91% 48%, 100% 64%, 100% 100%, 0 100%); }

.section-music { position: relative; overflow: hidden; background: var(--paper); }
.section-music::before { position: absolute; top: 7%; left: -70px; width: 170px; aspect-ratio: 1; border-radius: 42% 58% 62% 38%; background: var(--coral-soft); content: ""; transform: rotate(22deg); }
.music-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.music-copy { position: relative; }
.music-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.music-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.text-link { color: var(--teal-dark); font-weight: 900; text-underline-offset: .25rem; }
.sound-doodles { display: flex; align-items: center; gap: 1.15rem; margin-top: 2.5rem; color: var(--coral); font-family: var(--display); font-size: 1.6rem; }
.sound-doodles span:nth-child(2) { color: var(--sun); font-size: 1rem; }
.sound-doodles span:nth-child(3) { color: var(--teal); font-size: 2rem; transform: rotate(10deg); }
.sound-doodles span:nth-child(4) { color: var(--night); font-size: 1.2rem; }
.player-shell { position: relative; padding: 1rem; border: 2px solid rgba(41, 63, 120, .12); border-radius: 2rem 3.5rem 2rem 2rem; background: #fff; box-shadow: var(--shadow); transform: rotate(1deg); }
.video-consent { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 0; border-radius: 1.35rem 2.7rem 1.35rem 1.35rem; background: var(--night); cursor: pointer; }
.video-consent img { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(19, 36, 71, .72)); }
.big-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 82px; height: 82px; padding-left: 6px; border: 5px solid #fff; border-radius: 50%; color: var(--night); background: var(--sun); box-shadow: 0 16px 34px rgba(0, 0, 0, .24); font-size: 1.7rem; transform: translate(-50%, -50%); transition: transform .2s ease; }
.video-consent:hover .big-play { transform: translate(-50%, -50%) scale(1.08) rotate(-5deg); }
.video-cta { position: absolute; right: 1.1rem; bottom: 1rem; left: 1.1rem; color: #fff; font-size: 1.05rem; font-weight: 900; text-align: left; }
.player-shell iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 1.35rem 2.7rem 1.35rem 1.35rem; }
.player-sticker { position: absolute; z-index: 2; top: -38px; right: -25px; display: grid; place-items: center; width: 110px; aspect-ratio: 1; border: 3px solid #fff; border-radius: 48% 52% 42% 58%; color: var(--night); background: var(--sun); box-shadow: var(--shadow-small); font-family: var(--display); font-size: .82rem; line-height: 1.15; text-align: center; transform: rotate(8deg); }
.privacy-hint { margin: .7rem .25rem 0; color: var(--ink-soft); font-size: .76rem; text-align: center; }

.section-adventures { background: linear-gradient(180deg, #eafaff 0%, #f7fcfb 100%); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 2.7rem; }
.section-heading > div { max-width: 720px; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--ink-soft); font-size: 1.03rem; }
.adventure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.adventure-card { display: grid; grid-template-columns: minmax(165px, .72fr) minmax(0, 1.1fr); align-items: stretch; overflow: hidden; border: 1px solid rgba(23, 59, 74, .1); border-radius: 2rem; box-shadow: var(--shadow-small); }
.adventure-mint { background: var(--mint); }
.adventure-sun { background: #fff1bd; }
.adventure-visual { position: relative; display: grid; place-items: center; min-height: 320px; padding: 1.5rem; overflow: hidden; background: rgba(255, 255, 255, .35); }
.adventure-visual img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 14px 18px rgba(23, 59, 74, .17)); }
.journal-visual img { width: auto; max-height: 260px; border-radius: .45rem; transform: rotate(-4deg); }
.paper-sun { position: absolute; top: 12%; left: 14%; width: 120px; aspect-ratio: 1; border-radius: 46% 54% 55% 45%; background: var(--sun); opacity: .72; transform: rotate(25deg); }
.paper-star { position: absolute; top: 8%; right: 10%; color: var(--coral); font-size: 4rem; transform: rotate(12deg); }
.adventure-body { padding: clamp(1.6rem, 3vw, 2.5rem); background: rgba(255, 255, 255, .78); }
.adventure-body p { color: var(--ink-soft); }
.card-label { margin-bottom: .45rem; color: var(--teal-dark) !important; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-link { display: inline-flex; gap: .45rem; align-items: center; margin-top: .4rem; color: var(--night); font-weight: 900; text-underline-offset: .25rem; }
.card-link span { transition: transform .2s ease; }
.card-link:hover span { transform: translateX(5px); }

.section-story { position: relative; overflow: hidden; background: #fff; }
.section-story::after { position: absolute; right: -110px; bottom: -140px; width: 330px; aspect-ratio: 1; border-radius: 50%; background: var(--sky-soft); content: ""; }
.story-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.story-character { position: relative; min-height: 470px; }
.character-stage { position: absolute; right: 0; bottom: 0; left: 0; display: grid; place-items: center; min-height: 385px; overflow: hidden; border-radius: 50% 50% 44% 56%; background: var(--sun-soft); }
.character-stage::before, .character-stage::after { position: absolute; border-radius: 50%; content: ""; }
.character-stage::before { top: 30px; right: 38px; width: 70px; aspect-ratio: 1; background: var(--coral); }
.character-stage::after { bottom: 28px; left: 32px; width: 90px; aspect-ratio: 1; background: var(--sky); }
.character-stage img { position: relative; z-index: 3; width: min(62%, 244px); height: auto; image-rendering: auto; transform: rotate(-3deg); }
.character-bubble { position: absolute; z-index: 4; top: 0; right: 4%; padding: 1rem 1.2rem; border: 3px solid var(--ink); border-radius: 1.4rem 1.4rem 1.4rem .25rem; background: #fff; box-shadow: 7px 8px 0 var(--coral); font-family: var(--display); font-size: 1.1rem; transform: rotate(2deg); }
.story-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.06rem; }
.story-lead { color: var(--ink) !important; font-size: 1.2rem !important; font-weight: 700; }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.purpose-grid blockquote { margin: 0; padding: 1.35rem; border-radius: 1.25rem; background: var(--sky-soft); }
.purpose-grid blockquote:nth-child(2) { background: var(--coral-soft); }
.purpose-grid span { display: block; margin-bottom: .5rem; color: var(--teal-dark); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.purpose-grid p { margin: 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.35; }

.section-memories { color: #fff; background: var(--night); }
.memories-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.memory-photo { position: relative; margin: 0; padding: .8rem .8rem 2.8rem; border-radius: .7rem; background: #fff; box-shadow: 0 30px 70px rgba(10, 18, 42, .35); transform: rotate(-2deg); }
.memory-photo::before { position: absolute; top: -20px; left: 50%; width: 130px; height: 38px; background: rgba(255, 226, 139, .76); content: ""; transform: translateX(-50%) rotate(3deg); }
.memory-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s ease, transform .2s ease; }
.memory-photo figcaption { position: absolute; right: 1rem; bottom: .75rem; left: 1rem; color: var(--ink-soft); font-size: .78rem; text-align: center; transition: opacity .2s ease; }
.memory-photo.is-changing img { opacity: .35; transform: scale(.985); }
.memory-photo.is-changing figcaption { opacity: .45; }
.memory-copy > p { color: #d7e6ee; }
.memory-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.8rem 0; padding: 0; list-style: none; }
.memory-tab { display: flex; width: 100%; align-items: center; gap: .65rem; padding: .8rem .85rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 1rem; color: #fff; background: rgba(255, 255, 255, .07); font: inherit; font-weight: 800; text-align: left; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.memory-tab:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.memory-tab[aria-selected="true"] { border-color: var(--sun); color: var(--night-deep); background: var(--sun); box-shadow: 0 10px 28px rgba(255, 213, 79, .16); }
.memory-tab span { display: grid; flex: 0 0 auto; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--night); background: var(--sun); font-size: .68rem; font-weight: 900; transition: color .2s ease, background .2s ease; }
.memory-tab[aria-selected="true"] span { color: #fff; background: var(--teal); }
.memory-panels { margin-bottom: 1.2rem; }
.memory-panel { padding: 1.25rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 1.25rem; background: rgba(255, 255, 255, .07); }
.memory-panel h3 { margin: 0 0 .55rem; color: #fff; font-size: 1.55rem; }
.memory-panel p { margin: 0; color: #d7e6ee; }
.memory-panel h4 { margin: 1rem 0 .55rem; color: var(--sun); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.memory-panel ul { margin: 0; padding-left: 1.15rem; color: #e8f0f4; }
.memory-panel li + li { margin-top: .35rem; }
.archive-status { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border-radius: 999px; color: var(--night-deep); background: var(--mint); font-size: .82rem; font-weight: 900; }
.archive-status span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: #fff; background: var(--teal); }

.closing-banner { padding: clamp(3.5rem, 7vw, 5.5rem) 0; color: #fff; background: var(--teal); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.closing-inner h2 { max-width: 750px; margin: 0; font-size: clamp(2rem, 3.7vw, 3.6rem); }
.closing-inner .button { flex: 0 0 auto; }

.ad-section { padding: 1.5rem 0; background: #fff; }
.ad-placeholder { display: grid; min-height: 110px; padding: 1rem; border: 1px dashed rgba(23, 59, 74, .24); border-radius: 1rem; color: var(--ink-soft); background: #fbffff; text-align: center; }
.ad-placeholder > span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { padding: 4.5rem 0 1.5rem; color: #eaf4f7; background: var(--night-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: clamp(2rem, 7vw, 7rem); padding-bottom: 3rem; }
.footer-intro img { width: 180px; height: auto; margin-bottom: 1rem; padding: .45rem .65rem; border-radius: .7rem; background: #fff; }
.footer-intro p { max-width: 340px; color: #bacddd; }
.footer-column { display: grid; align-content: start; gap: .55rem; }
.footer-column a { color: #d8e7ee; text-decoration-color: rgba(216, 231, 238, .4); text-underline-offset: .2rem; }
.footer-column a:hover { color: var(--sun); }
.footer-title { margin-bottom: .35rem; color: #fff; font-family: var(--display); font-size: 1.08rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb6c5; font-size: .8rem; }

/* Resource pages */
.page-main { background: var(--paper); }
.page-hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.page-hero::before, .page-hero::after { position: absolute; border-radius: 50%; content: ""; }
.page-hero::before { top: -90px; right: 8%; width: 230px; aspect-ratio: 1; background: rgba(255, 255, 255, .42); }
.page-hero::after { right: -90px; bottom: -120px; width: 340px; aspect-ratio: 1; background: rgba(255, 123, 110, .2); }
.page-hero-cerinoteca { background: linear-gradient(135deg, var(--sky) 0%, var(--mint) 100%); }
.page-hero-ticateca { background: linear-gradient(135deg, #fff0ac 0%, var(--coral-soft) 100%); }
.page-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); align-items: center; gap: 3rem; }
.page-hero-copy { max-width: 720px; }
.page-hero-copy h1 { color: var(--night); }
.page-hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.page-hero-visual::before { position: absolute; width: 320px; aspect-ratio: 1; border-radius: 46% 54% 58% 42%; background: rgba(255, 255, 255, .58); content: ""; transform: rotate(14deg); }
.page-hero-visual img { position: relative; z-index: 2; width: auto; height: auto; max-width: 270px; max-height: 360px; filter: drop-shadow(0 26px 24px rgba(29, 44, 89, .2)); }
.page-hero-visual .journal-cover { border-radius: .55rem; transform: rotate(4deg); }
.page-intro { max-width: 820px; margin-bottom: 2.4rem; }
.page-intro > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.pdf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.pdf-card { position: relative; display: grid; gap: .55rem; min-height: 190px; padding: 1.35rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1.3rem; background: #fff; box-shadow: 0 8px 20px rgba(23, 59, 74, .07); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pdf-card::after { position: absolute; right: -24px; bottom: -28px; width: 80px; aspect-ratio: 1; border-radius: 50%; background: var(--sky-soft); content: ""; }
.pdf-card:hover { box-shadow: var(--shadow-small); transform: translateY(-5px) rotate(-1deg); }
.pdf-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .8rem; color: #fff; background: var(--coral); font-size: .68rem; font-weight: 900; }
.pdf-card strong { font-family: var(--display); font-size: 1.35rem; }
.pdf-card small { color: var(--teal-dark); font-weight: 900; }
.games-section { background: var(--sky-soft); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.game-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 95px; padding: 1.2rem; border: 1px solid rgba(23, 59, 74, .08); border-radius: 1.2rem; background: #fff; box-shadow: 0 8px 18px rgba(23, 59, 74, .07); font-weight: 900; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.game-card:hover { color: #fff; background: var(--teal); transform: translateY(-4px); }
.game-card span:last-child { display: grid; place-items: center; flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); color: var(--night); }
.archive-game-note { margin: 1.4rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.journal-section { background: #fff; }
.journal-copy { max-width: 850px; }
.journal-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.document-links { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.quotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3.2rem; }
.quote-card { margin: 0; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 1.5rem; background: var(--sky-soft); }
.quote-card:nth-child(2) { background: var(--coral-soft); }
.quote-card p { font-family: var(--display); font-size: 1.2rem; line-height: 1.45; }
.quote-card footer { color: var(--ink-soft); font-size: .85rem; font-weight: 800; }
.future-note { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; margin-top: 2.5rem; padding: 1.4rem; border: 2px dashed rgba(10, 142, 146, .35); border-radius: 1.4rem; background: var(--mint); }
.future-note-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sun); font-size: 1.4rem; }
.future-note strong { display: block; margin-bottom: .25rem; font-family: var(--display); font-size: 1.05rem; }
.future-note p { margin: 0; color: var(--ink-soft); }
.policy { max-width: 800px; }
.policy h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.policy h2 { margin-top: 2.7rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.policy li + li { margin-top: .55rem; }

.reveal.reveal-ready { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .nav nav { gap: .85rem; font-size: .82rem; }
  .hero-copy { width: min(620px, 66%); }
  .adventure-grid { grid-template-columns: 1fr; }
  .adventure-card { grid-template-columns: minmax(200px, .55fr) minmax(0, 1.2fr); }
  .pdf-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 84px; }
  .history-note-inner { align-items: flex-start; padding: .65rem 0; text-align: left; }
  .history-note-dot { margin-top: .3rem; }
  .nav { min-height: 72px; }
  .brand img { width: 130px; }
  .menu-toggle { display: inline-flex; }
  .nav nav { position: fixed; z-index: 30; top: 72px; right: 0; left: 0; display: grid; gap: 0; max-height: 0; overflow: hidden; background: rgba(255, 250, 240, .98); box-shadow: 0 25px 40px rgba(23, 59, 74, .16); visibility: hidden; opacity: 0; transition: max-height .28s ease, opacity .2s ease, visibility .2s ease; }
  .nav nav.is-open { max-height: 520px; padding: 1rem 24px 1.4rem; visibility: visible; opacity: 1; }
  .nav nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav nav .nav-cta { justify-content: center; margin-top: .8rem; padding: .85rem 1rem; border-bottom: 0; }
  .nav-simple nav { position: static; display: flex; width: auto; max-height: none; padding: 0; overflow: visible; background: transparent; box-shadow: none; visibility: visible; opacity: 1; }
  .nav-simple nav .nav-cta { margin: 0; padding: .7rem 1rem; border: 0; font-size: .85rem; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .hero { min-height: 780px; }
  .hero-art { background-position: 58% center; }
  .hero-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 250, 240, .88) 0%, rgba(255, 250, 240, .7) 45%, rgba(255, 250, 240, 0) 75%); content: ""; }
  .hero-inner { align-items: start; min-height: 780px; padding-top: 2.5rem; }
  .hero-copy { width: 100%; max-width: 650px; padding: 1.6rem; border-radius: 1.6rem; }
  .hero-copy h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .music-grid, .story-grid, .memories-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .section-heading, .closing-inner { display: grid; align-items: start; }
  .section-heading > p { max-width: 680px; }
  .player-shell { margin-top: 1rem; }
  .story-character { min-height: 420px; }
  .character-stage { min-height: 340px; }
  .memories-grid { gap: 1.8rem; }
  .memory-copy { display: contents; }
  .memory-copy > .eyebrow { order: 1; }
  .memory-copy > h2 { order: 2; }
  .memory-copy > p { order: 3; }
  .memory-list { order: 4; }
  .memory-panels { order: 5; }
  .memory-photo { order: 6; width: min(650px, 94%); margin: 1rem auto; }
  .archive-status { order: 7; justify-self: start; }
  .closing-inner .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
  .page-hero-visual { min-height: 280px; }
  .page-hero-visual::before { width: 260px; }
  .page-hero-visual img { max-height: 275px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 32px, 1180px); }
  .section { padding: 4.5rem 0; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .hero { min-height: 720px; }
  .hero-inner { min-height: 720px; padding-top: 1.3rem; }
  .hero-copy { background: rgba(255, 250, 240, .93); }
  .hero-copy .lead { font-size: 1rem; }
  .hero-actions, .music-links, .document-links { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .player-sticker { top: -28px; right: -8px; width: 88px; font-size: .7rem; }
  .big-play { width: 66px; height: 66px; font-size: 1.3rem; }
  .adventure-card { grid-template-columns: 1fr; }
  .adventure-visual { min-height: 230px; }
  .adventure-visual img { max-width: 260px; }
  .journal-visual img { max-height: 210px; }
  .purpose-grid, .memory-list, .quotes-grid { grid-template-columns: 1fr; }
  .story-character { min-height: 370px; }
  .character-stage { min-height: 300px; }
  .character-bubble { right: 0; font-size: .95rem; }
  .memory-tab { min-height: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .pdf-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .future-note { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .pdf-grid { grid-template-columns: 1fr; }
}

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