@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #100b12;
  --surface: #21131e;
  --surface-soft: #2a1825;
  --paper: #fff1ec;
  --muted: #c6aab7;
  --accent: #f3b3cb;
  --warm: #d0a4b2;
  --line: #f0b1cc26;
  --sans: Manrope, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22,.75,.15,1);
  --gutter: clamp(24px,5.2vw,88px);
  color-scheme: dark;
}
html { scroll-padding-top: 48px; }
body { background: var(--ink); font-family: var(--sans); }
body::before { opacity: .018; }
h1,h2,h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.site-header {
  position: absolute; inset: 24px var(--gutter) auto;
  max-width: none; min-height: 76px; margin: 0; padding: 12px 24px;
  border: 1px solid #e9b3cd26; border-radius: 20px;
  background: #1a101b7a; backdrop-filter: blur(18px);
  z-index: 10;
}
.brand { font-size: 29px; }
.brand-mark { width: 30px; height: 30px; }
.primary-nav { gap: 24px; margin-left: 0; }
.primary-nav a { font-size: 11px; min-height: 44px; display: flex; align-items: center; }
.header-actions { gap: 16px; }
.utility-button { font-size: 10px; min-height: 44px; }
.hero {
  max-width: none; min-height: 900px; height: min(1000px,100svh);
  display: flex; align-items: center; padding: 130px var(--gutter) 100px;
  background: radial-gradient(ellipse at 77% 51%,#54233b4d,transparent 48%),
    radial-gradient(ellipse at 5% 5%,#2a193b40,transparent 45%),#100b12;
  overflow: clip;
}
.hero-copy { padding: 0; width: 43%; max-width: 620px; z-index: 4; pointer-events: none; }
.hero::before {
  content: ''; position: absolute; inset: -3%; z-index: -2;
  background: linear-gradient(90deg,#100b12 2%,#100b124d 48%,#100b1200 78%),url('../assets/art/orbital-sculpture.webp') center / cover;
  opacity: .62; pointer-events: none;
  transform: translate(var(--scene-shift-x,0px),var(--scene-shift-y,0px));
}
.hero-copy > * { pointer-events: auto; }
.hero-copy .eyebrow { font-size: 9px; letter-spacing: .16em; gap: 12px; }
.hero-copy h1 {
  font: 500 clamp(60px,5.6vw,92px)/1.07 var(--sans);
  letter-spacing: -.065em; margin-top: 28px;
}
.hero-copy h1 em { display: inline-block; font-family: var(--serif); font-size: 1.17em; line-height: 1.03; letter-spacing: -.055em; }
.hero-description { margin-top: 28px; font-size: 14px; line-height: 1.9; max-width: 380px; }
.button { min-height: 52px; font-size: 12px; padding: 15px 24px; gap: 24px; border-radius: 28px; }
.button-primary { background: #ffe8ed; color: #402133; box-shadow: 0 0 0 5px #f3b3cb08, 0 10px 35px #0003; }
.button-primary:hover { background: #fff8f6; box-shadow: 0 0 0 7px #f3b3cb12,0 12px 36px #0003; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.hero-copy > .button { margin-top: 32px; }
.hero-copy > .text-button { font-size: 10px; margin-top: 10px; min-height: 44px; }
.hero-meta { margin-top: 28px; gap: 14px; font-size: 10px; color: var(--muted); }
.hero-meta strong { font-size: 20px; }
.soundtrack-link { font-size: 10px; min-height: 38px; }
.hero-glow { display: none; }
#universe { opacity: .55; }
.universe-wrap { position: absolute; inset: 0 0 0 auto; width: 65%; margin: 0; padding: 0; max-width: none; pointer-events: none; }
.orbit-scene { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; perspective: 1200px; pointer-events: none; }
.orbit-world { inset: 16% 4% 12% 0; pointer-events: none; }
.polaroid-anchor { pointer-events: auto; }
.polaroid { background: #261723; border: 1px solid #e8bad04d; border-radius: 7px; color: #e3bacb; padding: 8px 8px 0; box-shadow: 0 30px 70px #0006; }
.polaroid-image { border-radius: 3px; }
.polaroid img { filter: none; }
.polaroid-caption { font: 12px/1.5 var(--sans); min-height: 44px; padding: 0 4px; }
.polaroid-back .polaroid-caption,.polaroid-left .polaroid-caption { font-size: 10px; min-height: 38px; }
.polaroid:hover { box-shadow: 0 0 0 1px #edb2cf,0 25px 80px #0007; }
.polaroid:focus-visible { outline: 3px solid #ffe1ef; outline-offset: 6px; }
.polaroid::after { border-radius: inherit; opacity: .25; }
.photo-index { font-size: 7px; }
.universe-label { top: 142px; right: 8%; font-size: 8px; letter-spacing: .16em; z-index: 4; }
.universe-label > span:last-child { color: #d9aec2; }
.scene-hint { bottom: 108px; font-size: 9px; z-index: 4; }
.orbit-coordinate { top: 6%; left: 14%; font-size: 7px; }
.floating-note { background: #391f31; color: #e3b9c9; border: 1px solid #bc7c9f4d; right: 10%; bottom: 7%; width: 136px; min-height: 144px; padding: 18px 16px; z-index: 3; box-shadow: 0 15px 40px #0005; }
.floating-note p { font-size: 23px; }
.floating-note em { color: #f4c1d2; }
.floating-note::before { background: #f2bdd526; }
.floating-note > span:first-child { font-size: 6px; }
.note-star { color: #c78ca8; }
.hero-bottom { bottom: 28px; left: var(--gutter); right: var(--gutter); color: #c3a5b5; font-size: 8px; z-index: 4; }
.spatial-light,.spatial-photographs { position: absolute; inset: 0; pointer-events: none; }
.spatial-light { z-index: 1; }
.spatial-photographs { z-index: 2; }
.spatial-frame { pointer-events: auto; }
.spatial-frame .spatial-photo { width: 100%; }
.hero[data-scene='webgl'] .orbit-ring,.hero[data-scene='webgl'] .scene-star { visibility: hidden; }
.hero[data-scene='webgl'] .orbit-world { z-index: 3; }
.hero[data-scene='fallback'] .orbit-world { inset: 22% 8% 18%; }

.section-shell { max-width: 1400px; padding: clamp(72px,8vw,128px) var(--gutter); }
.section-heading { align-items: end; gap: 48px; }
.section-heading > p { font-size: 14px; line-height: 1.9; width: 300px; }
.section-kicker { font-size: 9px; letter-spacing: .18em; margin-bottom: 24px; }
h2,.section-heading h2 { font-size: clamp(42px,4.6vw,68px); line-height: 1.08; }
.journey { position: relative; border-top: 0; }
.journey::before { content: ''; position: absolute; inset: 12% 4% 16%; background: radial-gradient(ellipse at 30% 60%,#6c294119,transparent 65%); pointer-events: none; z-index: -1; }
.journey-stage { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); margin-top: 64px; gap: 32px; }
.memory-visual { transform: perspective(1300px) rotateX(var(--depth-x,0deg)) rotateY(var(--depth-y,0deg)); transition: transform .6s var(--ease); }
.journey-photo { border: 1px solid #f1b6cf33; border-radius: 6px; padding: 8px; background: #392131; box-shadow: 0 30px 70px #0005; }
.journey-photo img { aspect-ratio: 1.12; border-radius: 2px; filter: none; }
.journey-photo::after { inset: 60% 8px 8px; }
.photo-undertext { font-size: 8px; letter-spacing: .15em; color: #bc97ab; }
.image-open { color: #fff2ed; }
.chapter-copy { padding-left: 24px; }
.chapter-copy h3 { font-size: clamp(36px,3.5vw,52px); }
.chapter-excerpt { font-size: 14px; line-height: 1.9; max-width: 360px; }
.chapter-date,.chapter-location { font-size: 11px; }
.chapter-tag { font-size: 10px; }
.text-link { font-size: 12px; min-height: 44px; }
.round-button { min-width: 44px; min-height: 44px; }
.chapter-controls > span { font-size: 10px; }
.route-map { margin-top: 48px; }
.route-stop { width: 118px; }
.stop-name { font-size: 15px; }
.stop-date { font-size: 8px; }
.journey-bottom > span { font-size: 9px; }
.journey-bottom .text-button { font-size: 11px; }
.film-section { max-width: none; background: #1b101a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.film-section > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.film-section .section-heading { margin-bottom: 48px; }
.cinema-frame { padding: 0; border: 1px solid #aa6c8a55; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 8px #f3b3cb03,0 30px 100px #0005; }
.film-bottom { margin-top: 24px; }
.film-bottom > span { font-size: 10px; }
.film-bottom .text-link { margin: 0; }
.original-clip { font-size: 13px; }
.gallery-section { border-top: 0; }
.gallery-toolbar { margin: 40px 0 32px; }
.gallery-filters button { padding: 11px 16px; font: 11px var(--sans); background: #2c192733; border-color: #bb7c9a4d; min-height: 44px; }
.gallery-filters button[aria-pressed='true'] { background: #f0b7cc; color: #32182a; border-color: #f0b7cc; }
.photo-gallery { columns: 4; column-gap: 24px; }
.gallery-photo { background: #281924; border: 1px solid #e7b7cb1f; border-radius: 5px; padding: 6px 6px 12px; margin-bottom: 24px; box-shadow: 0 12px 35px #0003; transition: transform .5s var(--ease),border-color .5s var(--ease),box-shadow .5s var(--ease); }
.gallery-photo:hover { transform: perspective(800px) translateY(-8px) rotateY(-4deg) rotateX(2deg); border-color: #dfa5bf7a; box-shadow: 0 24px 48px #0006; }
.gallery-photo img { border-radius: 2px; }
.gallery-photo span { color: #dec0cd; padding: 14px 6px 0; font-size: 14px; }
.gallery-photo small { color: #b98fa4; font-family: var(--sans); }
.words { border-top: 1px solid var(--line); }
.letter-library-tools { margin-top: 40px; }
.letter-library-tools > label { font-size: 12px; }
#letter-search { font: 14px/1.6 var(--sans); background: #23131e; min-height: 50px; border-color: #a5708b80; border-radius: 8px; }
.letter-grid { gap: 24px; margin-top: 32px; }
.letter-card { background: #21131e; border: 1px solid #b37a962e; border-radius: 8px; padding: 24px; transform: perspective(900px) rotateX(var(--depth-x,0deg)) rotateY(var(--depth-y,0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease),border-color .4s; }
.letter-card:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--depth-x,0deg)) rotateY(var(--depth-y,0deg)); border-color: #d79ab45e; }
.letter-category { font-size: 8px; line-height: 1.8; letter-spacing: .12em; }
.envelope-scene { height: 220px; max-width: 300px; margin: 0 auto; transform: translateZ(20px); }
.envelope-back { box-shadow: 0 15px 25px #0004; }
.letter-card .letter-title { font-size: 27px; min-height: 0; }
.letter-teaser { font-size: 12px; line-height: 1.9; max-width: none; min-height: 0; }
.letter-card-bottom { font-size: 9px; }
.letters-more > .button { background: #2c1a27; border-color: #98637d; }
.letters-hint { font-size: 11px; }
.ending { max-width: none; padding-top: 128px; padding-bottom: 112px; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 45%,#642a4433,transparent 60%),#100b12; }
.ending h2 { font-size: clamp(48px,5.3vw,78px); }
.ending > p:not(.eyebrow) { font-size: 14px; }
.ending-signature { font-size: 23px; }
.site-footer { max-width: 1400px; padding: 32px var(--gutter); }
.site-footer > span { font-size: 8px; }
.site-footer .text-button { font-size: 11px; }
.has-soundtrack .site-footer { padding-bottom: 116px; }
dialog { border-radius: 10px; }
.modal-story .story-body { font-size: 14px; line-height: 1.9; }
.modal-story .privacy-note { font-size: 10px; }
.letter-dialog { background: #f8e9e2; }
.letter-body { font-size: 19px; line-height: 1.85; }
.settings-dialog input,.settings-dialog textarea,.editor-dialog select { font-size: 16px; }
.music-dialog { background: #261624; }
.music-status { font-size: 12px; }
.mini-player { width: min(310px,calc(100vw - 32px)); background: #271622d9; border: 1px solid #bb7c9a55; backdrop-filter: blur(20px); box-shadow: 0 12px 40px #0004; }
.mini-player-track > span:first-child { font-size: 17px; }
.mini-player-track > span:last-child { font-size: 7px; }
.mini-player-toggle { width: 40px; height: 40px; flex-basis: 40px; }
.mini-player-settings { min-width: 36px; min-height: 40px; }
.js-motion [data-reveal] { transform: translateY(30px); transition-duration: .85s; }

@media (min-width: 1700px) {
  .hero-copy { margin-left: calc((100vw - 1580px)/2); }
  .universe-wrap { right: calc((100vw - 1700px)/2); width: 1100px; }
}
@media (max-width: 1190px) {
  .site-header { inset: 20px 4% auto; padding: 10px 20px; gap: 20px; }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 10px; }
  .hero { min-height: 820px; padding-left: 5%; padding-right: 5%; }
  .hero-copy { width: 46%; }
  .hero-copy h1 { font-size: clamp(54px,5.9vw,72px); }
  .hero-description { font-size: 13px; max-width: 340px; }
  .universe-wrap { width: 62%; }
  .universe-label { right: 9%; top: 128px; }
  .floating-note { right: 5%; bottom: 9%; width: 115px; min-height: 128px; }
  .floating-note p { font-size: 21px; }
  .photo-gallery { columns: 3; }
  .chapter-copy { padding-left: 8px; }
  .envelope-scene { height: 190px; }
}
@media (max-width: 850px) {
  .site-header { position: absolute; flex-wrap: wrap; padding: 12px 20px 8px; border-radius: 16px; row-gap: 4px; }
  .primary-nav { order: 3; width: 100%; flex-basis: 100%; min-width: 0; gap: 24px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .primary-nav a { font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .header-actions { margin-left: auto; }
  .hero { display: block; height: auto; min-height: 0; padding: 190px var(--gutter) 100px; }
  .hero::before { background-size: auto 680px; background-position: 73% 94%; background-repeat: no-repeat; opacity: .58; }
  .hero-copy { width: 100%; max-width: 570px; position: relative; }
  .hero-copy h1 { font-size: clamp(60px,8vw,80px); }
  .hero-description { max-width: 430px; font-size: 14px; }
  .universe-wrap { position: relative; inset: auto; width: 100%; height: 600px; margin: 12px auto 0; }
  .universe-label { top: 24px; right: 2%; }
  .scene-hint { bottom: 16px; }
  .orbit-world { inset: 10% 0 5%; }
  .orbit-coordinate { left: 6%; }
  .floating-note { right: 6%; bottom: 5%; }
  .hero-bottom { left: var(--gutter); right: var(--gutter); }
  .section-heading { gap: 32px; }
  .section-heading > p { width: 240px; font-size: 13px; }
  .journey-stage { gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .journey-photo img { aspect-ratio: .9; }
  .chapter-copy { padding: 0; }
  .chapter-copy h3 { font-size: 38px; }
  .chapter-excerpt { font-size: 13px; }
  .route-map { height: auto; margin: 40px 0 32px; }
  .route-line { display: none; }
  .route-stops { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  .route-stop { position: static; width: auto; min-height: 102px; transform: none; padding: 16px 8px; border: 1px solid var(--line); border-radius: 6px; }
  .stop-marker { margin-bottom: 16px; }
  .photo-gallery { columns: 2; }
  .letter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  .site-header { inset: 12px 16px auto; padding: 10px 16px 6px; }
  .brand { font-size: 26px; }
  .brand-mark { width: 26px; height: 26px; }
  .utility-button { min-width: 32px; }
  #sound-label { display: none; }
  .header-actions { gap: 10px; }
  .primary-nav { gap: 22px; }
  .primary-nav a { font-size: 10px; }
  .hero { padding-top: 164px; padding-bottom: 112px; }
  .hero-copy .eyebrow { font-size: 7px; gap: 9px; letter-spacing: .12em; }
  .hero-copy h1 { margin-top: 24px; font-size: clamp(44px,10.7vw,64px); line-height: 1.11; letter-spacing: -.065em; }
  .hero-copy h1 em { font-size: 1.27em; }
  .hero-description { font-size: 13px; line-height: 1.9; margin-top: 24px; }
  .hero-copy > .button { font-size: 12px; margin-top: 26px; }
  .hero-copy > .text-button { font-size: 10px; }
  .hero-meta { gap: 12px; font-size: 9px; margin-top: 22px; }
  .soundtrack-link { font-size: 9px; }
  .universe-wrap { height: 510px; margin-top: 24px; width: calc(100% + 32px); margin-left: -16px; }
  .universe-label { top: 8px; right: 6%; font-size: 7px; }
  .orbit-coordinate { font-size: 6px; left: 4%; }
  .floating-note { width: 102px; min-height: 112px; bottom: 5%; right: 4%; padding: 14px 12px; }
  .floating-note p { font-size: 18px; }
  .floating-note > span:first-child { font-size: 4.5px; }
  .scene-hint { bottom: 0; font-size: 8px; }
  .hero-bottom { font-size: 7px; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; }
  .hero-bottom > span { flex-wrap: wrap; gap: 10px; }
  .section-shell { padding: 64px var(--gutter); }
  .section-heading { display: block; }
  .section-heading h2 { font-size: clamp(38px,9vw,48px); }
  .section-heading > p { font-size: 13px; width: auto; margin-top: 24px; }
  .section-heading > p br { display: initial; }
  .section-kicker { font-size: 8px; margin-bottom: 20px; }
  .journey-stage { display: block; margin-top: 36px; }
  .journey-photo img { aspect-ratio: 1.12; }
  .chapter-copy { padding-top: 24px; }
  .chapter-copy h3 { font-size: 39px; }
  .chapter-excerpt { font-size: 14px; max-width: none; }
  .chapter-controls > span { font-size: 10px; max-width: 190px; }
  .route-stops { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .route-stop { width: auto; min-height: 102px; }
  .stop-name { font-size: 14px; }
  .stop-date { font-size: 8px; }
  .journey-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .journey-bottom > span { max-width: none; font-size: 8px; }
  .film-section .section-heading { margin-bottom: 32px; }
  .film-bottom { gap: 12px; }
  .film-bottom > span { font-size: 9px; }
  .gallery-toolbar { gap: 16px; margin: 32px 0 24px; }
  .gallery-filters { gap: 8px; }
  .gallery-filters button { font-size: 10px; padding: 10px 12px; }
  .photo-gallery { column-gap: 14px; }
  .gallery-photo { margin-bottom: 16px; padding: 5px 5px 10px; }
  .gallery-photo span { font-size: 12px; padding: 10px 2px 0; }
  .gallery-photo small { font-size: 8px; }
  .letter-library-tools { margin-top: 32px; }
  .letter-grid { grid-template-columns: minmax(0,1fr); gap: 20px; margin-top: 24px; }
  .letter-card { padding: 24px; }
  .envelope-scene { height: 205px; }
  .letter-card .letter-title { font-size: 29px; }
  .letter-teaser { font-size: 13px; }
  .ending { padding-top: 80px; padding-bottom: 80px; }
  .ending h2 { font-size: clamp(40px,10vw,52px); }
  .ending > p:not(.eyebrow) { font-size: 13px; }
  .ending .button { font-size: 12px; }
  .ending-signature { font-size: 22px; margin-top: 40px; }
  .site-footer { padding: 24px var(--gutter); gap: 16px; }
  .site-footer > span { font-size: 7px; }
  .letter-dialog { padding: 56px 26px 32px; }
  .letter-body { font-size: 18px; }
  .modal-story { padding: 32px 24px; }
  .settings-dialog { padding: 52px 24px 32px; }
  .mini-player { right: 16px; bottom: 16px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .site-header { inset-inline: 12px; padding-inline: 12px; }
  .brand { font-size: 24px; }
  .header-actions { gap: 6px; }
  .hero-copy .eyebrow { font-size: 6px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-meta { gap: 10px; }
}
html[data-motion='reduced'] .memory-visual,html[data-motion='reduced'] .letter-card { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-override='true']) .memory-visual,html:not([data-motion-override='true']) .letter-card,html:not([data-motion-override='true']) .gallery-photo:hover { transform: none !important; }
}
