:root {
  --paper: #fbf4f6;
  --paper-2: #f6e7ed;
  --blush: #eed0dc;
  --pink: #e69cb6;
  --rose: #bd5e7e;
  --wine: #6e1d38;
  --ink: #34111d;
  --mist: #dbe8e3;
  --white: #fffafb;
  --line: rgba(73, 24, 39, .17);
  --muted: #8a6874;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; scroll-snap-type: y proximity; scrollbar-gutter: stable; scrollbar-color: rgba(110,29,56,.45) transparent; scrollbar-width: thin; }
body { margin: 0; min-width: 300px; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; overflow-x: hidden; }
html.viewer-open, body.viewer-open { overflow: hidden; overscroll-behavior: none; }
html.is-restoring-scroll { scroll-behavior: auto; scroll-snap-type: none; }
html.is-navigating { scroll-snap-type: none; }
button, input, a { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--rose); color: var(--white); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
main[tabindex="-1"]:focus, section[tabindex="-1"]:focus { outline: none; }
.shell { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.eyebrow { margin: 0; font: italic 600 18px/1.25 "Playfair Display", Georgia, serif; letter-spacing: 0; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 90; width: 100%; height: 3px; background: #ecb4c7; transform: scaleX(0); transform-origin: left; pointer-events: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 80; height: 78px; display: flex; align-items: center; gap: 36px; padding-inline: max(36px, calc((100% - 1240px) / 2)); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); transition: color .3s, background .3s, border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { color: var(--ink); background: rgba(251,244,246,.94); border-bottom-color: var(--line); box-shadow: 0 8px 32px rgba(52,17,29,.06); backdrop-filter: blur(18px); }
.wordmark { font: 600 29px/1 "Playfair Display", Georgia, serif; font-style: italic; text-decoration: none; white-space: nowrap; }
.wordmark span, .site-footer strong span { color: var(--pink); }
.site-header.is-scrolled .wordmark span { color: var(--rose); }
.site-nav { display: flex; align-items: center; gap: 33px; margin-left: auto; }
.site-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 700; transition: color .2s; }
.site-nav a::after { position: absolute; content: ""; inset: auto 0 5px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--pink); }
.site-header.is-scrolled .site-nav a:hover { color: var(--rose); }
.nav-surprise { height: 41px; padding: 0 17px; border: 1px solid rgba(255,255,255,.64); border-radius: 999px; background: rgba(255,255,255,.05); color: inherit; font-size: 12px; font-weight: 700; transition: background .2s, border-color .2s, transform .2s; }
.nav-surprise:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.site-header.is-scrolled .nav-surprise { border-color: var(--line); background: var(--white); }
.site-header.is-scrolled .nav-surprise:hover { background: var(--blush); }
.nav-surprise span { margin-left: 13px; font-size: 18px; font-weight: 400; }

.hero { position: relative; z-index: 1; height: 86svh; min-height: 590px; max-height: 900px; overflow: hidden; border-radius: 0 0 22px 22px; background: #441725; color: var(--white); box-shadow: 0 15px 30px rgba(52,17,29,.14); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 48%; transform: scale(1.055); will-change: transform; }
.hero-shade { background: linear-gradient(90deg, rgba(38,8,20,.8) 0%, rgba(38,8,20,.56) 34%, rgba(38,8,20,.03) 78%), linear-gradient(0deg, rgba(38,8,20,.52), transparent 30%); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 88px; padding-bottom: 66px; transform: translate3d(0,var(--hero-lift,0px),0); opacity: var(--hero-opacity,1); }
.hero-eyebrow { color: #f5bfce; }
.hero-eyebrow span { margin-right: 8px; font-size: 18px; vertical-align: -2px; }
.hero h1 { margin: 21px 0 0; font: 600 154px/.87 "Playfair Display", Georgia, serif; letter-spacing: 0; }
.hero h1 span { color: var(--pink); }
.hero-lead { max-width: 620px; margin: 24px 0 0; font: 600 36px/1.15 "Playfair Display", Georgia, serif; }
.hero-lead em { color: #f5c4d4; }
.hero-copy { max-width: 410px; margin: 18px 0 0; color: rgba(255,250,251,.86); font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 700; transition: background .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(39,6,19,.18); }
.button span { font-size: 19px; font-weight: 400; }
.button-pink { background: var(--pink); color: var(--ink); }
.button-pink:hover { background: #f3b9cd; }
.button-light { border-color: rgba(255,255,255,.72); color: var(--white); background: rgba(255,255,255,.07); }
.button-light:hover { background: var(--white); color: var(--ink); }
.hero-handwritten { position: absolute; z-index: 1; right: 8%; bottom: 17%; font: italic 600 25px/1 "Playfair Display", Georgia, serif; color: rgba(255,250,251,.9); transform: rotate(-9deg); }
.hero-bottom { position: absolute; z-index: 1; inset: auto 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font: italic 600 16px/1.2 "Playfair Display", Georgia, serif; }
.hero-bottom a { text-decoration: none; }
.hero-bottom a span { display: inline-block; margin-left: 10px; font: 500 19px/1 "DM Sans", sans-serif; vertical-align: middle; animation: nudge-down 1.8s ease-in-out infinite; }
@keyframes nudge-down { 50% { transform: translateY(5px); } }

.chapter-threshold { position: relative; min-height: 136px; margin-top: -20px; padding-top: 20px; background: #f5e5eb; color: var(--wine); }
.threshold-inner { min-height: 116px; display: flex; align-items: center; gap: 22px; }
.threshold-flower { flex: 0 0 auto; color: var(--rose); font: 600 34px/1 "Playfair Display", Georgia, serif; transform: rotate(var(--threshold-rotate,0deg)); }
.threshold-note { flex: 0 0 auto; font: italic 600 24px/1.2 "Playfair Display", Georgia, serif; }
.threshold-rule { flex: 1; height: 1px; min-width: 30px; background: rgba(110,29,56,.22); }
.threshold-rule::after { content: ""; display: block; width: 100%; height: 100%; background: var(--rose); transform: scaleX(var(--threshold-progress,0)); transform-origin: left; }
.threshold-inner a { flex: 0 0 auto; text-decoration: none; font-size: 12px; font-weight: 700; }
.threshold-inner a span { margin-left: 8px; font-size: 18px; vertical-align: -2px; }

.story-section { background: var(--paper-2); }
.story-scene { display: grid; grid-template-columns: 54% 46%; min-height: min(90svh,860px); scroll-snap-align: start; scroll-snap-stop: always; }
.story-visual { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--blush); }
.story-visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.story-visual-work img { object-position: center 54%; }
.story-visual-mark { position: absolute; right: 40px; bottom: 31px; color: var(--white); font: 600 95px/1 "Playfair Display", Georgia, serif; text-shadow: 0 3px 25px rgba(52,17,29,.28); }
.story-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 85px 11%; background: #f8eaf0; color: var(--ink); }
.studio-scene .story-copy { justify-content: flex-start; padding-top: max(12svh,100px); }
.story-scene[data-scene="1"] { grid-template-columns: 46% 54%; min-height: 0; height: clamp(430px,62svh,560px); }
.story-scene[data-scene="1"] .story-visual { order: 2; }
.story-scene[data-scene="1"] .story-copy { order: 1; }
.story-scene[data-scene="1"] .story-copy { background: var(--wine); color: var(--white); }
.story-scene[data-scene="2"] .story-copy { background: #e8efe9; color: var(--ink); }
.story-copy .eyebrow { color: var(--rose); }
.story-scene[data-scene="1"] .eyebrow { color: #f2a7be; }
.story-copy h2 { max-width: 570px; margin: 22px 0 0; font: 600 62px/1.03 "Playfair Display", Georgia, serif; letter-spacing: 0; }
.story-scene[data-scene="1"] .story-copy h2 { font-size: 54px; }
.story-copy h2 em { color: var(--rose); }
.story-scene[data-scene="1"] .story-copy h2 em { color: #f2a7be; }
.story-copy > p:not(.eyebrow) { max-width: 365px; margin: 25px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.story-scene[data-scene="1"] .story-copy > p:not(.eyebrow) { color: rgba(255,250,251,.8); }
.story-copy > a { margin-top: 28px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.story-copy > a span { margin-left: 11px; font-size: 18px; font-weight: 400; }
.story-signature { margin-top: 31px; color: var(--wine); font: italic 600 20px/1 "Playfair Display", Georgia, serif; }

.studio-visual { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px 7%; background: #e7bacb; }
.studio-toolbar, .studio-tools { width: min(100%,730px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-toolbar > span { color: var(--wine); font: 500 10px/1.3 "DM Mono", monospace; }
.page-modes { display: inline-flex; padding: 3px; border: 1px solid rgba(110,29,56,.24); border-radius: 999px; background: rgba(255,250,251,.7); }
.page-modes button { min-width: 69px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--wine); font-size: 11px; font-weight: 700; }
.page-modes button[aria-selected="true"] { background: var(--wine); color: var(--white); }
.studio-paper { width: min(100%,730px); height: clamp(340px,58svh,535px); margin-inline: auto; display: flex; flex-direction: column; padding: 25px 30px 16px; border: 1px solid rgba(110,29,56,.16); border-radius: 5px; background: #fffaf8; box-shadow: 0 25px 55px rgba(75,23,47,.18); }
.paper-heading { display: flex; align-items: center; justify-content: space-between; color: var(--wine); font: italic 600 23px/1.2 "Playfair Display", Georgia, serif; }
.paper-heading span:last-child { color: var(--rose); font-size: 27px; }
.write-panel, .draw-panel { position: relative; flex: 1; min-height: 0; margin-top: 14px; }
.write-panel textarea { width: 100%; height: 100%; resize: none; padding: 5px 0; border: 0; outline: none; background: repeating-linear-gradient(to bottom, transparent 0 32px, rgba(189,94,126,.16) 33px 34px); color: var(--ink); font: 400 17px/34px "DM Sans", sans-serif; }
.write-panel textarea::placeholder { color: #b796a2; }
.draw-panel { overflow: hidden; background: #fffaf8; }
.draw-panel canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.paper-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(110,29,56,.15); color: var(--muted); font-size: 11px; }
.paper-footer span:first-child { color: var(--rose); font: italic 600 16px/1.2 "Playfair Display", Georgia, serif; }
.studio-tools { min-height: 42px; }
.studio-tools button { min-height: 34px; padding: 0 10px; border: 1px solid rgba(110,29,56,.28); border-radius: 4px; background: rgba(255,250,251,.7); color: var(--wine); font-size: 11px; font-weight: 700; }
.studio-tools button:hover { background: var(--white); }
.draw-tools { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.ink-swatches { display: flex; align-items: center; gap: 5px; margin-right: auto; }
.studio-tools .ink-swatch { width: 29px; height: 29px; min-height: 29px; padding: 0; border: 3px solid rgba(255,250,251,.8); border-radius: 50%; background: var(--ink-swatch); box-shadow: 0 0 0 1px rgba(110,29,56,.22); }
.studio-tools .ink-swatch.active { box-shadow: 0 0 0 2px var(--wine); }
.brush-control { display: flex; align-items: center; gap: 7px; color: var(--wine); font: 500 10px/1 "DM Mono", monospace; }
.brush-control input { width: 76px; accent-color: var(--wine); }
.draw-tools > button { width: 34px; padding: 0; font-size: 20px; font-weight: 400; }

@keyframes image-glide { from { transform: scale(1.1) translateY(-2%); } to { transform: scale(1.1) translateY(2%); } }
@supports (animation-timeline: view()) {
  .story-scene:not(.studio-scene) .story-visual > img, .music-transition-image {
    animation: image-glide linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

.ribbon-band { height: 57px; display: flex; align-items: center; overflow: hidden; background: #eab2c7; color: var(--wine); }
.ribbon-line { width: max-content; white-space: nowrap; font: italic 600 20px/1 "Playfair Display", Georgia, serif; animation: ribbon-drift 34s linear infinite; }
.ribbon-line span { padding-inline: 25px; font: 600 24px/1 "Playfair Display", Georgia, serif; vertical-align: -2px; }
@keyframes ribbon-drift { to { transform: translateX(-50%); } }

.moments-section { padding: 112px 0 116px; background: var(--paper); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 58px; }
.section-index { margin-bottom: 17px; color: var(--rose); }
.section-intro h2 { max-width: 850px; margin: 0; font: 600 61px/1.07 "Playfair Display", Georgia, serif; letter-spacing: 0; }
.section-intro h2 em { color: var(--rose); }
.section-intro > p { max-width: 260px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection-toolbar > p { margin: 0; white-space: nowrap; color: var(--wine); font: 500 11px/1 "DM Mono", monospace; }
.collection-toolbar strong { font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filter { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--wine); font-size: 12px; font-weight: 600; transition: background .22s, color .22s, border-color .22s, transform .22s; }
.filter:hover { transform: translateY(-2px); border-color: var(--rose); }
.filter.active { background: var(--wine); border-color: var(--wine); color: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.open-card { position: relative; isolation: isolate; aspect-ratio: .87 / 1; min-height: 280px; overflow: hidden; padding: 0; border: 0; border-radius: 5px; background: var(--card-base, #d9acbb); color: var(--white); text-align: left; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.open-card.reveal { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, opacity .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms), translate .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms); }
.open-card:hover, .open-card:focus-visible { transform: translateY(-5px); box-shadow: 0 17px 35px rgba(82,27,46,.19); }
.card-poster, .card-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-poster { display: block; overflow: hidden; background: var(--card-base); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s; }
.card-poster::before { content: ""; position: absolute; width: 125%; height: 35%; left: -13%; top: 24%; border-block: 1px solid rgba(255,255,255,.28); background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px); transform: rotate(-8deg); }
.card-poster::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; right: -10%; top: 8%; border: 1px solid rgba(255,255,255,.3); transform: rotate(18deg); box-shadow: inset 0 0 0 12px rgba(255,255,255,.05); }
.card-flower { position: absolute; right: 22px; top: 75px; color: var(--card-accent); font: 600 58px/1 "Playfair Display", Georgia, serif; opacity: .72; transform: rotate(12deg); }
.card-reaction { position: absolute; z-index: 1; left: 22px; right: 22px; top: 32%; display: block; color: var(--card-accent); font: italic 700 clamp(36px,3.2vw,52px)/.9 "Playfair Display", Georgia, serif; overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 3px 22px rgba(52,17,29,.2); transform: rotate(-4deg); }
.card-creator { position: absolute; z-index: 1; left: 22px; top: 52%; color: rgba(255,255,255,.82); font: 500 9px/1.3 "DM Mono", monospace; text-transform: uppercase; }
.open-card:hover .card-poster, .open-card:focus-visible .card-poster { transform: scale(1.035) rotate(.35deg); filter: saturate(1.08); }
.card-overlay { background: linear-gradient(0deg, rgba(48,12,27,.97), rgba(65,20,38,.1) 58%, rgba(45,12,27,.23)); }
.card-top, .card-bottom { position: absolute; z-index: 1; left: 20px; right: 20px; display: flex; justify-content: space-between; }
.card-top { top: 19px; align-items: flex-start; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .08em; }
.card-category { padding: 7px 9px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; text-transform: uppercase; }
.card-bottom { bottom: 22px; align-items: end; gap: 11px; }
.card-bottom small { display: block; margin-bottom: 9px; color: #f2b5ca; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .09em; }
.card-title { display: block; font: 600 25px/1.09 "Playfair Display", Georgia, serif; }
.card-arrow { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; font-size: 21px; transition: background .22s, color .22s; }
.open-card:hover .card-arrow { background: var(--white); color: var(--wine); }
.card-saved { display: none; position: absolute; z-index: 1; top: 56px; right: 26px; color: #f7bed2; font-size: 20px; }
.open-card.is-saved .card-saved { display: block; }
.card-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.card-empty span { display: block; color: var(--rose); font-size: 42px; }
.card-empty p { max-width: 320px; margin: 10px auto 0; font-size: 14px; line-height: 1.5; }
.card-nav { display: none; }
.random-line { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 38px; padding-top: 27px; border-top: 1px solid var(--line); }
.random-line .eyebrow { color: var(--rose); }
.random-line p { margin: 7px 0 0; font: 600 25px/1.2 "Playfair Display", Georgia, serif; }
.random-line button { min-height: 43px; padding: 0 17px; border: 1px solid var(--wine); border-radius: 999px; background: var(--wine); color: var(--white); font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.random-line button:hover { transform: translateY(-2px); background: var(--rose); }
.random-line button span { margin-left: 14px; font-size: 18px; font-weight: 400; }

.music-transition { position: relative; height: 78svh; min-height: 560px; max-height: 820px; overflow: hidden; background: #351120; color: var(--white); scroll-snap-align: start; scroll-snap-stop: always; }
.music-transition-image, .music-transition-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.music-transition-image { object-fit: cover; object-position: center 48%; transform: scale(1.06); will-change: transform; }
.music-transition-shade { background: linear-gradient(90deg, rgba(45,9,25,.9) 0%, rgba(45,9,25,.67) 42%, rgba(45,9,25,.15) 78%), linear-gradient(0deg, rgba(45,9,25,.63), transparent 42%); }
.music-transition-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 92px 68px; }
.music-transition-content .eyebrow { color: #f3bed0; }
.music-transition-content h2 { max-width: 860px; margin: 20px 0 0; font: 600 76px/1.01 "Playfair Display", Georgia, serif; text-wrap: balance; }
.music-transition-content h2 em { color: #efa9c1; }
.music-transition-content > p:not(.eyebrow) { max-width: 470px; margin: 22px 0 0; color: rgba(255,250,251,.8); font-size: 15px; line-height: 1.65; }
.music-transition-content > a { display: inline-flex; align-items: center; gap: 18px; margin-top: 31px; color: var(--white); font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 6px; }
.music-transition-content > a span { color: #f1b4c8; font-size: 20px; animation: nudge-down 1.7s ease-in-out infinite; }
.music-transition-mark { position: absolute; z-index: 1; right: 6%; bottom: 8%; color: rgba(255,250,251,.8); font: italic 600 23px/1.2 "Playfair Display", Georgia, serif; transform: rotate(-4deg); }

.music-section { padding: 88px 0 102px; background: #47172a; color: var(--white); scroll-snap-align: start; scroll-snap-stop: always; }
.mix-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.22); }
.mix-heading .eyebrow { color: #ecabc3; }
.mix-heading h2 { margin: 9px 0 0; font: 600 58px/.95 "Playfair Display", Georgia, serif; }
.mix-heading h2 em { color: #f0acc4; }
.mix-heading > p { max-width: 320px; margin: 0 0 4px; color: rgba(255,250,251,.69); font-size: 13px; line-height: 1.6; }
.mix-content { min-width: 0; display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: 6%; align-items: start; }
.mix-player-column { position: sticky; top: 102px; min-width: 0; }
.mix-track-column { min-width: 0; }
.music-player { position: relative; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.26); border-radius: 5px; background: #351120; }
.music-player iframe { width: 100%; height: 100%; border: 0; }
.player-idle { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.player-idle > span { color: #ecaec4; font-size: 45px; line-height: 1; }
.player-idle p { margin: 12px 0 5px; font: italic 600 28px/1.2 "Playfair Display", Georgia, serif; }
.player-idle small { color: rgba(255,250,251,.64); font-size: 12px; }
.player-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; }
.player-actions a, .player-actions button { border: 0; background: none; color: #f2bbcd; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mix-player-note { max-width: 330px; margin: 24px 0 0; color: rgba(255,250,251,.56); font: italic 600 18px/1.35 "Playfair Display", Georgia, serif; }
.mix-topline { display: flex; justify-content: space-between; gap: 16px; margin-top: 0; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.35); color: #f2bbcd; font: 500 11px/1 "DM Mono", monospace; }
.song-list { min-height: 195px; }
.song-row { display: grid; grid-template-columns: minmax(0,1fr) 39px auto; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .2s; }
.song-row.is-playing { background: rgba(233,156,182,.13); }
.song-select { min-width: 0; min-height: 70px; display: grid; grid-template-columns: 32px minmax(0,1fr) 30px; align-items: center; gap: 9px; padding: 0 6px 0 0; border: 0; background: none; color: var(--white); text-align: left; }
.song-select:hover .song-name { color: #f3bbcd; }
.song-number { color: #e4a7bc; font: 500 11px/1 "DM Mono", monospace; }
.song-details { min-width: 0; }
.song-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.song-artist { display: block; margin-top: 4px; color: rgba(255,250,251,.6); font-size: 11px; }
.song-play { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 15px; }
.song-row.is-playing .song-play { border-color: #f3bbcd; background: #f3bbcd; color: var(--wine); }
.song-external { color: #f1b8cb; text-decoration: none; text-align: center; font-size: 20px; }
.song-external:hover { color: var(--white); }
.song-remove { display: none; margin-left: 6px; padding: 6px; border: 0; background: none; color: #f1b8cb; font-size: 11px; }
.mix-content.is-editing .song-remove { display: block; }
.mix-empty { min-height: 195px; display: flex; flex-direction: column; justify-content: center; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.mix-empty > span { color: #eeacc3; font: 500 10px/1 "DM Mono", monospace; }
.mix-empty h3 { margin: 12px 0 7px; font: italic 600 26px/1.12 "Playfair Display", Georgia, serif; }
.mix-empty p { max-width: 360px; margin: 0; color: rgba(255,250,251,.63); font-size: 12px; line-height: 1.55; }
.mix-controls { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 11px; }
.mix-share { padding: 0; border: 0; background: none; color: #f2bbcd; text-decoration: underline; text-underline-offset: 5px; font-size: 12px; font-weight: 700; }
.mix-share span { margin-left: 8px; font-size: 18px; font-weight: 400; }
.mix-status { min-width: 0; overflow-wrap: anywhere; color: #f2bbcd; font-size: 11px; }
.mix-restore { min-height: 44px; padding: 0; border: 0; background: none; color: var(--white); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.share-fallback { width: 100%; min-width: 0; padding: 8px; border: 1px solid #f2bbcd; background: #351120; color: var(--white); font-size: 11px; }
.mix-editor { border-top: 1px solid rgba(255,255,255,.35); }
.mix-editor summary { min-height: 61px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.mix-editor summary::-webkit-details-marker { display: none; }
.mix-editor summary span { font-size: 26px; font-weight: 400; transition: transform .2s; }
.mix-editor[open] summary span { transform: rotate(45deg); }
.mix-editor form { padding-bottom: 23px; }
.mix-editor label { display: block; margin-bottom: 13px; font: 500 10px/1.4 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.mix-editor label span { color: rgba(255,255,255,.5); text-transform: none; }
.mix-editor input { width: 100%; height: 43px; display: block; margin-top: 7px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; outline: none; background: rgba(255,255,255,.07); color: var(--white); font: 400 13px/1 "DM Sans", sans-serif; }
.mix-editor input:focus { border-color: #f2bbcd; }
.mix-editor input[aria-invalid="true"] { border-color: #ffafc6; box-shadow: 0 0 0 1px #ffafc6; }
.mix-editor input::placeholder { color: rgba(255,255,255,.42); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { margin: 0 0 13px; color: #f6b2c8; font-size: 12px; }
.form-submit { cursor: pointer; }

.closing-section { padding: 94px 0 96px; background: #e9b7c9; }
.closing-inner > .eyebrow { color: var(--wine); }
.closing-inner p { max-width: 1010px; margin: 26px 0 18px; font: 600 67px/1.06 "Playfair Display", Georgia, serif; }
.closing-inner p em { color: var(--wine); }
.closing-signature { display: block; font: italic 600 23px/1.2 "Playfair Display", Georgia, serif; }
.closing-inner a { display: inline-block; margin-top: 34px; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.closing-inner a span { margin-left: 9px; font-size: 19px; }
.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { min-height: 115px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner strong { font: italic 600 39px/1 "Playfair Display", Georgia, serif; }
.footer-inner p { margin: 0; color: rgba(255,250,251,.65); font-size: 12px; }
.footer-inner a { color: #f1b4c8; text-decoration: none; font: 500 11px/1 "DM Mono", monospace; }

.viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.viewer.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.viewer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(35,7,19,.78); backdrop-filter: blur(13px); }
.viewer-panel { position: relative; width: min(1040px, calc(100% - 44px)); height: min(730px, calc(100dvh - 44px)); display: grid; grid-template-columns: minmax(0,1fr) 295px; grid-template-rows: auto minmax(0,1fr); gap: 16px; padding: 20px; border-radius: 8px; background: var(--paper); transform: translateY(18px); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.viewer.is-open .viewer-panel { transform: none; }
.viewer-topbar { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; }
.viewer-topbar > div { display: flex; align-items: baseline; gap: 15px; }
.viewer-index { color: var(--rose); font: 500 11px/1 "DM Mono", monospace; }
.viewer-topbar h2 { margin: 0; font: italic 600 27px/1 "Playfair Display", Georgia, serif; }
.viewer-close { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--wine); font-size: 27px; line-height: 1; }
.media-shell { position: relative; min-height: 0; overflow: hidden; border-radius: 5px; background: #241018; }
.reel-stage { container-type: size; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; padding: 10px; background: repeating-linear-gradient(135deg, rgba(242,178,201,.045) 0 1px, transparent 1px 18px), #241018; }
.reel-frame { display: block; width: min(100%,360px); height: auto; max-height: 100%; aspect-ratio: 9 / 16; border: 0; background: #000; box-shadow: 0 20px 55px rgba(0,0,0,.32); }
@supports (width: 1cqh) { .reel-frame { width: min(100%, calc(100cqh * .5625)); } }
.media-chrome { position: absolute; z-index: 2; inset: 15px 16px auto; display: flex; align-items: center; justify-content: space-between; pointer-events: none; color: var(--white); font: 500 10px/1 "DM Mono", monospace; }
.media-chrome > span { padding: 8px; border-radius: 999px; background: rgba(42,10,24,.6); }
.viewer-actions { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.viewer-details > span { color: var(--rose); font: 500 10px/1 "DM Mono", monospace; }
.viewer-actions p { margin: 15px 0; font: 600 29px/1.1 "Playfair Display", Georgia, serif; }
.viewer-source { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.viewer-source span { display: block; color: var(--muted); font: 500 9px/1.45 "DM Mono", monospace; }
.viewer-source a { display: inline-block; margin-top: 9px; color: var(--wine); font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(110,29,56,.35); text-underline-offset: 4px; }
.viewer-source a:hover { color: var(--rose); }
.viewer-buttons { display: flex; gap: 8px; }
.favorite-button { flex: 0 0 49px; height: 49px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--rose); font-size: 27px; line-height: 1; }
.favorite-button[aria-pressed="true"] { background: #f0c1d1; color: var(--wine); }
.another-button { flex: 1; min-height: 49px; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; border: 0; border-radius: 999px; background: var(--wine); color: var(--white); font-size: 12px; font-weight: 700; }
.another-button span { font-size: 19px; }

.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1); }
html.has-scroll-effects .reveal { opacity: 0; translate: 0 42px; }
html.has-scroll-effects .reveal.is-visible { opacity: 1; translate: 0 0; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }

@media (max-width: 1100px) {
  .hero h1 { font-size: 126px; }
  .story-copy { padding-inline: 8%; }
  .story-copy h2 { font-size: 52px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .hero h1 { font-size: 105px; }
  .hero-lead { font-size: 30px; }
  .hero-handwritten { right: 6%; bottom: 13%; font-size: 20px; }
  .chapter-threshold { min-height: 116px; }
  .threshold-inner { min-height: 96px; }
  .threshold-note { font-size: 21px; }
  .story-scene { display: flex; flex-direction: column; min-height: 0; }
  .studio-scene { scroll-snap-align: none; }
  .story-scene[data-scene="1"] { height: auto; }
  .story-scene[data-scene="1"] .story-visual, .story-scene[data-scene="1"] .story-copy { order: initial; }
  .story-scene[data-scene="1"] .story-visual { height: min(38svh,320px); min-height: 220px; }
  .story-scene[data-scene="1"] .story-copy { min-height: 0; padding-block: 38px 42px; }
  .story-scene[data-scene="1"] .story-copy h2 { font-size: 44px; }
  .story-visual { height: 50svh; min-height: 280px; max-height: 500px; }
  .story-copy { min-height: 365px; padding: 53px 7% 60px; }
  .studio-scene .story-copy { order: -1; min-height: 280px; padding-top: 53px; }
  .studio-visual { height: auto; min-height: 0; max-height: none; padding: 35px 7%; }
  .studio-paper { height: 500px; }
  .story-copy h2 { max-width: 620px; font-size: 50px; }
  .section-intro { display: block; }
  .section-intro > p { max-width: 470px; margin-top: 20px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .music-transition-content h2 { font-size: 63px; }
  .mix-heading h2 { font-size: 52px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 64px; }
  .shell { width: calc(100% - 32px); }
  .site-header { height: 64px; padding-inline: 16px; gap: 15px; }
  .wordmark { font-size: 26px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .nav-surprise { display: none; }
  .hero { height: 85svh; min-height: 0; max-height: none; }
  .hero-image { object-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(38,8,20,.77), rgba(38,8,20,.2)), linear-gradient(0deg, rgba(38,8,20,.66), transparent 43%); }
  .hero-content { padding-top: 68px; padding-bottom: 45px; }
  .hero h1 { margin-top: 16px; font-size: 78px; }
  .hero-lead { margin-top: 17px; max-width: 340px; font-size: 24px; }
  .hero-copy { max-width: 335px; margin-top: 13px; font-size: 13px; line-height: 1.52; }
  .hero-actions { margin-top: 21px; gap: 7px; }
  .button { min-height: 44px; gap: 14px; padding-inline: 13px; font-size: 11px; }
  .hero-handwritten { display: none; }
  .hero-bottom { bottom: 19px; font-size: 15px; }
  .hero-bottom > span { display: none; }
  .chapter-threshold { min-height: 112px; margin-top: -16px; padding-top: 16px; }
  .threshold-inner { min-height: 96px; gap: 12px; }
  .threshold-flower { font-size: 27px; }
  .threshold-note { font-size: 18px; }
  .threshold-inner a { display: none; }
  .story-visual { height: 47svh; min-height: 250px; }
  .studio-visual { height: auto; min-height: 0; max-height: none; padding: 25px 16px 30px; }
  .studio-scene .story-copy { min-height: 0; padding: 42px 18px 38px; }
  .studio-toolbar > span { font-size: 9px; }
  .page-modes button { min-width: 61px; }
  .studio-paper { height: min(440px,55svh); min-height: 355px; padding: 19px 17px 13px; }
  .paper-heading { font-size: 20px; }
  .write-panel textarea { font-size: 16px; }
  .draw-tools { display: grid; grid-template-columns: minmax(0,1fr) repeat(3,44px); gap: 8px; }
  .draw-tools > button { width: 44px; min-height: 44px; }
  .studio-tools .ink-swatch { width: 44px; height: 44px; }
  .page-modes button { min-height: 44px; }
  .ink-swatches { grid-column: 1 / -1; margin-right: 0; }
  .brush-control { margin-left: 0; }
  .story-visual-mark { right: 20px; bottom: 14px; font-size: 60px; }
  .story-copy { min-height: 310px; padding: 42px 18px 48px; }
  .story-copy h2 { margin-top: 14px; font-size: 41px; }
  .story-scene[data-scene="1"] .story-copy h2 { font-size: 38px; }
  .story-scene[data-scene="1"] .story-copy > a { margin-top: 20px; }
  .story-copy > p:not(.eyebrow) { margin-top: 17px; font-size: 14px; }
  .story-signature { margin-top: 20px; font-size: 18px; }
  .ribbon-band { height: 46px; }
  .ribbon-line { font-size: 16px; }
  .ribbon-line span { padding-inline: 13px; }
  .moments-section { padding: 75px 0 82px; }
  .music-section { padding: 66px 0 78px; }
  .section-intro { margin-bottom: 36px; }
  .section-intro h2 { font-size: 46px; }
  .section-intro > p { font-size: 13px; }
  .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; min-height: 44px; }
  .card-grid { display: flex; gap: 11px; overflow-x: auto; overflow-y: hidden; margin-top: 12px; padding: 6px 3px 8px 0; scroll-snap-type: x mandatory; scroll-padding-left: 0; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; touch-action: auto; }
  .card-grid::-webkit-scrollbar { display: none; }
  .open-card { flex: 0 0 min(78vw, 350px); height: min(104vw, 425px); min-height: 290px; aspect-ratio: auto; scroll-snap-align: start; scroll-snap-stop: always; }
  .card-title { font-size: 28px; }
  .card-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font: 500 9px/1 "DM Mono", monospace; }
  .card-nav button { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--wine); font-size: 19px; }
  .random-line { align-items: flex-start; flex-direction: column; margin-top: 30px; }
  .random-line p { font-size: 23px; }
  .music-transition { height: 72svh; min-height: 520px; max-height: 680px; }
  .music-transition-image { object-position: 59% center; }
  .music-transition-shade { background: linear-gradient(90deg, rgba(45,9,25,.9), rgba(45,9,25,.36)), linear-gradient(0deg, rgba(45,9,25,.72), transparent 48%); }
  .music-transition-content { justify-content: flex-end; padding-block: 88px 58px; }
  .music-transition-content h2 { max-width: 340px; margin-top: 15px; font-size: 49px; line-height: 1.02; }
  .music-transition-content > p:not(.eyebrow) { max-width: 330px; margin-top: 17px; font-size: 13px; }
  .music-transition-content > a { margin-top: 22px; }
  .music-transition-mark { display: none; }
  .mix-heading { display: block; margin-bottom: 28px; padding-bottom: 18px; }
  .mix-heading h2 { font-size: 48px; }
  .mix-heading > p { max-width: 330px; margin-top: 14px; }
  .mix-content { display: block; }
  .mix-player-column { position: relative; top: auto; }
  .mix-player-note { margin-top: 17px; font-size: 16px; }
  .mix-track-column { margin-top: 27px; }
  .music-player { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .player-idle { padding: 18px; }
  .player-idle > span { font-size: 37px; }
  .player-idle p { margin-top: 9px; font-size: 22px; }
  .player-actions { align-items: flex-start; flex-wrap: wrap; padding-top: 10px; }
  .player-actions a, .player-actions button { min-height: 35px; display: inline-flex; align-items: center; }
  .mix-topline { margin-top: 0; padding-bottom: 13px; }
  .song-list { min-height: 0; }
  .song-row { grid-template-columns: minmax(0,1fr) 42px; }
  .song-select { min-height: 68px; grid-template-columns: 28px minmax(0,1fr) 28px; gap: 8px; padding-right: 4px; }
  .song-name { overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .song-artist { overflow-wrap: anywhere; }
  .song-play { width: 26px; height: 26px; }
  .song-external { min-height: 44px; display: grid; place-items: center; }
  .mix-content.is-editing .song-row { grid-template-columns: minmax(0,1fr) 38px 56px; }
  .song-remove { min-height: 44px; margin-left: 0; padding: 0 4px; }
  .mix-controls { min-height: 0; align-items: flex-start; padding-block: 14px; }
  .mix-status { flex: 1 1 145px; text-align: right; line-height: 1.4; }
  .mix-editor { scroll-margin-top: 72px; }
  .mix-editor summary { min-height: 58px; }
  .mix-editor form { padding-bottom: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .mix-editor input { height: 48px; font-size: 16px; }
  .form-submit { width: 100%; min-width: 0; justify-content: space-between; }
  .closing-section { padding: 72px 0; }
  .closing-inner p { font-size: 47px; }
  .footer-inner { min-height: 110px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 24px; }
  .footer-inner p { grid-column: 1/-1; }
  .viewer { align-items: end; }
  .viewer-panel { width: 100%; height: 94dvh; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; padding: 12px; border-radius: 18px 18px 0 0; }
  .viewer-topbar { grid-column: auto; }
  .viewer-topbar h2 { font-size: 20px; }
  .viewer-actions { gap: 14px; padding: 16px; }
  .viewer-actions p { margin: 8px 0; font-size: 23px; }
  .viewer-source { margin-top: 12px; padding-top: 11px; }
  .reel-stage { padding: 7px; }
}
@media (max-width: 380px) {
  .hero { height: 90svh; }
  .hero h1 { font-size: 66px; }
  .hero-lead { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .button { min-width: 176px; }
  .story-copy h2 { font-size: 36px; }
  .section-intro h2 { font-size: 40px; }
  .music-transition-content h2 { font-size: 43px; }
  .mix-heading h2 { font-size: 44px; }
  .closing-inner p { font-size: 39px; }
}
@media (min-width: 601px) and (max-width: 800px) {
  .music-transition { height: 70svh; min-height: 570px; }
  .music-transition-content h2 { max-width: 670px; }
  .mix-content { grid-template-columns: minmax(240px,.82fr) minmax(0,1.18fr); gap: 24px; }
  .mix-player-column { top: 92px; }
  .song-select { grid-template-columns: 29px minmax(0,1fr) 28px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-image { transform: none !important; }
  .hero-content, .story-copy > *, .story-visual img, .music-transition-image { transform: none !important; opacity: 1 !important; }
  .story-visual img, .music-transition-image { animation: none !important; }
  html.has-scroll-effects .reveal { opacity: 1; translate: none; }
  .threshold-rule::after { transform: none !important; }
}
