:root {
  --ink: #171717;
  --paper: #efebe4;
  --cream: #fffaf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button { font: inherit; }
a, button, select { transition: opacity .15s ease, background-color .15s ease, color .15s ease; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid #d9b77d;
  outline-offset: 3px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 3vw, 48px);
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.nav a, .nav select { pointer-events: auto; }
.logo { font-size: 1.2rem; font-weight: 750; text-decoration: none; letter-spacing: 0; }
.logo:hover { opacity: .82; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav > a:not(.cta-small) { font-size: .82rem; text-decoration: none; opacity: .88; }
.nav nav > a:not(.cta-small):hover { opacity: 1; }
.cta-small { padding: 8px 12px; color: var(--ink) !important; background: var(--cream); text-decoration: none; text-shadow: none; font-size: .8rem; font-weight: 700; }
.cta-small:hover { background: #e5d9c1; }
.lang-select { max-width: 94px; border: 0; background: transparent; color: inherit; font: inherit; font-size: .76rem; cursor: pointer; }
.lang-select:hover { opacity: .82; }
.lang-select option { color: var(--ink); }

.world-story { height: 500vh; background: #101010; }
.world-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.world-track { position: relative; width: 100%; height: 100%; }
/* Scenes are stacked full-bleed and cross-dissolved by JS (opacity, driven by scroll
   progress) instead of laid out side by side and slid — four unrelated photographs sliding
   past each other produced a hard seam right through the middle of the viewport at every
   transition. Only the current and adjacent scene are ever above 0 opacity at once, and DOM
   order (0..3) already stacks each later scene above the previous one, so no z-index juggling
   is needed. First scene visible by default before script.js's first frame runs. */
.world-scene { position: absolute; inset: 0; height: 100%; overflow: hidden; opacity: 0; will-change: opacity; }
.world-scene:first-child { opacity: 1; }
.world-scene > picture, .world-scene > picture > img { display: block; width: 100%; height: 100%; }
.world-scene > picture > img { object-fit: cover; }
.scene-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4, 5, 6, .26), transparent 20%, transparent 65%, rgba(4, 5, 6, .48)), linear-gradient(90deg, rgba(4, 5, 6, .33), transparent 37%); }
.world-scene--room .scene-shade { background: linear-gradient(180deg, rgba(38, 26, 14, .34), transparent 24%, transparent 60%, rgba(48, 31, 16, .38)), linear-gradient(90deg, rgba(45, 27, 13, .4), transparent 35%); }

.chat-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(245, 230, 207, .96), rgba(193, 160, 128, .82) 46%, rgba(72, 52, 44, .98) 100%), url("assets/worlds/real-room-desktop-v2.png") center/cover; }
.chat-stage::before { content: ""; position: absolute; inset: 0; background: rgba(58, 39, 31, .35); backdrop-filter: blur(12px); }
.chat-phone { position: relative; z-index: 1; width: min(390px, 31vw); height: min(760px, 82vh); min-width: 300px; padding: 13px; border: 1px solid rgba(255,255,255,.26); border-radius: 48px; background: #191817; box-shadow: 0 42px 90px rgba(22, 12, 8, .44), inset 0 0 0 1px #050505; }
.chat-phone__speaker { position: absolute; z-index: 3; top: 18px; left: 50%; width: 72px; height: 17px; border-radius: 0 0 12px 12px; transform: translateX(-50%); background: #191817; }
.chat-app { display: grid; grid-template-rows: 68px 1fr 62px; width: 100%; height: 100%; overflow: hidden; border-radius: 37px; background: #efe5d7; color: #302a25; }
.chat-app__header { display: grid; grid-template-columns: 32px 38px 1fr 34px; align-items: center; gap: 9px; padding: 11px 15px 7px; border-bottom: 1px solid rgba(76, 56, 43, .1); background: rgba(255, 250, 244, .9); }
.chat-app__icon { color: #5d524a; font-size: 1.3rem; line-height: 1; }
.chat-app__icon--more { font-size: .8rem; letter-spacing: .08em; }
.chat-app__avatar, .chat-mini-avatar { display: block; border-radius: 50%; background: #dfc69e url("assets/portrait-cream.png") center/90% no-repeat; }
.chat-app__avatar { width: 38px; height: 38px; }
.chat-app__header strong, .chat-app__header small { display: block; letter-spacing: 0; }
.chat-app__header strong { font-size: .88rem; }
.chat-app__header small { margin-top: 1px; color: #887b70; font-size: .64rem; }
.chat-app__body { position: relative; overflow: hidden; padding: 22px 18px; background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)), repeating-linear-gradient(135deg, rgba(118,91,67,.035) 0 1px, transparent 1px 16px); }
.chat-day { width: max-content; margin: 0 auto 24px; padding: 4px 9px; border-radius: 999px; color: #8f8074; background: rgba(255,255,255,.55); font-size: .6rem; text-transform: lowercase; }
.chat-row { display: grid; grid-template-columns: 28px auto 1fr; align-items: end; gap: 7px; margin-bottom: 17px; }
.chat-mini-avatar { width: 28px; height: 28px; align-self: start; }
.chat-row p { max-width: 175px; margin: 0; padding: 9px 11px; border-radius: 4px 13px 13px 13px; background: #fffaf4; box-shadow: 0 5px 14px rgba(64,43,29,.08); font-size: .72rem; }
.chat-row time { color: #998a7f; font-size: .53rem; }
.chat-row--mine { grid-template-columns: 1fr auto; }
.chat-row--mine p { grid-column: 2; border-radius: 13px 4px 13px 13px; background: #f3d76f; }
.chat-row--mine time { grid-column: 1; grid-row: 1; justify-self: end; }
.chat-mopi-space { position: absolute; left: 50%; bottom: 2%; width: 45%; height: 38%; transform: translateX(-50%); border-bottom: 1px solid rgba(99,73,53,.11); }
.chat-app__input { display: grid; grid-template-columns: 26px 1fr 27px; align-items: center; gap: 8px; padding: 10px 13px; border-top: 1px solid rgba(76,56,43,.1); background: rgba(255,250,244,.92); color: #756a61; }
.chat-app__input i { height: 34px; border: 1px solid #ddd1c5; border-radius: 18px; background: #fff; }
.chat-app__input span:last-child { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #3d3833; color: #fff; }

.world-copy { position: absolute; z-index: 30; left: clamp(22px, 5.5vw, 88px); bottom: clamp(42px, 8vh, 82px); max-width: min(38rem, 44vw); color: #fffdf9; text-shadow: 0 2px 24px rgba(0,0,0,.35); pointer-events: none; }
.world-copy__eyebrow { margin: 0 0 9px; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.world-copy h1 { max-width: 8.4ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.2vw, 7.2rem); font-weight: 400; line-height: .88; letter-spacing: 0; word-break: keep-all; }
.world-copy__place { margin: 14px 0 0; font-size: clamp(.95rem, 1.4vw, 1.25rem); }
.world-progress { position: absolute; z-index: 30; right: clamp(22px, 4vw, 64px); bottom: clamp(34px, 7vh, 72px); display: flex; align-items: center; gap: 12px; color: #fffdf9; text-shadow: 0 1px 8px rgba(0,0,0,.4); font-size: .7rem; letter-spacing: .06em; }
.world-progress__line { display: block; width: min(15vw, 180px); height: 1px; background: rgba(255,255,255,.35); }
.world-progress__line i { display: block; width: 25%; height: 100%; background: #fffdf9; transition: width .25s ease-out; }
.world-scroll-hint { position: absolute; z-index: 30; left: 50%; bottom: 25px; transform: translateX(-50%); margin: 0; color: rgba(255,255,255,.76); text-shadow: 0 1px 8px rgba(0,0,0,.4); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: opacity .3s ease-out; }
body[data-scene="2"] .world-copy h1 { font-size: clamp(3rem, 5.5vw, 6.2rem); }

#walkers { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.walker { position: fixed; width: 190px; height: 190px; image-rendering: -webkit-optimize-contrast; will-change: left, top, width, height, transform, filter; }

.characters { max-width: 920px; margin: 0 auto; padding: 96px 24px 0; text-align: center; }
.characters h2 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 400; color: #251f19; word-break: keep-all; }
.characters__sub { margin: 0 0 40px; color: #6d6252; font-size: .95rem; }
.characters__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.character-card { display: flex; flex-direction: column; align-items: center; }
.character-card img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; }
.character-card strong { margin-top: 8px; font-size: .92rem; color: #251f19; }
.character-card span { margin-top: 4px; font-size: .78rem; line-height: 1.4; color: #857a68; }
@media (max-width: 640px) {
  .characters__grid { grid-template-columns: repeat(2, 1fr); }
}

.preview { max-width: 1120px; margin: 0 auto; padding: 112px 24px; }
.preview__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.preview__heading p { margin: 0; color: #816f5b; font-size: .72rem; font-weight: 700; letter-spacing: .09em; }
.preview h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: .9; color: #251f19; }
.preview__grid { display: grid; grid-template-columns: 1.35fr .9fr .9fr; gap: 14px; }
.preview-card { position: relative; display: flex; min-height: 360px; overflow: hidden; align-items: flex-end; border: 1px solid #ddd2bd; border-radius: 22px; background: #fffaf0; color: #251f19; text-decoration: none; }
.preview-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-card__actions { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 18px 14px 96px; background: #e9e2d7; }
.preview-card__actions img { width: 100%; height: 100%; min-width: 0; object-fit: contain; border-radius: 14px; background: #f8f1e5; }
.preview-card--theme { background: #efe7da; }
.preview-card--theme > img { object-fit: contain; padding: 26px; }
.preview-card--reactions { background: #eee6da; }
.preview-card__reactions { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 18px; }
.preview-card__reactions img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; background: #fffaf0; }
.preview-card__copy { position: relative; z-index: 1; display: grid; width: 100%; gap: 4px; padding: 17px 18px; background: linear-gradient(180deg, transparent, rgba(24,18,12,.78)); color: #fffdf8; }
.preview-card--theme .preview-card__copy, .preview-card--reactions .preview-card__copy { background: linear-gradient(180deg, transparent, rgba(49,38,27,.72)); }
.preview-card__copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.preview-card__copy span { font-size: .78rem; font-weight: 650; }
.preview-card__copy .preview-card__detail { max-width: 48ch; font-weight: 450; line-height: 1.35; }
.preview-card:hover { border-color: #b89561; }
.preview-card:hover .preview-card__copy span { text-decoration: underline; text-underline-offset: 3px; }
.touch-preview { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(30px,7vw,110px); max-width: 980px; margin: 0 auto; padding: 40px 24px 118px; }
.touch-preview__copy > p:first-child { margin: 0 0 12px; color: #816f5b; font-size: .72rem; font-weight: 700; letter-spacing: .09em; }
.touch-preview h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem,6vw,5.2rem); font-weight: 400; line-height: .9; }
.touch-preview__copy > p:not(:first-child) { max-width:25rem; margin: 20px 0; color: #6d6252; }
.touch-preview__status { color: #816f5b; font-size: .78rem; font-weight: 650; }
.touch-preview__shots { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.touch-preview figure { position: relative; width: min(42%,220px); margin: 0; overflow: hidden; border: 7px solid #211d19; border-radius: 25px; background: #f7f0df; box-shadow: 0 14px 35px rgba(48,34,17,.16); }
.touch-preview figure:nth-child(2) { transform: translateY(28px); }
.touch-preview figure img { display: block; width: 100%; height: auto; }
.touch-preview figcaption { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(255,253,248,.88); color:#413628; font-size:.72rem; font-weight:700; }

.bring-home { min-height: max(660px,100svh); display: grid; place-content: center; padding: 112px 24px; text-align: center; color: #251f19; background: radial-gradient(circle at 50% 35%, #fffdf8 0 14%, transparent 50%), #e9e2d7; }
.bring-home__eyebrow { margin: 0 0 14px; color: #816f5b; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.bring-home h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem,8vw,7.5rem); font-weight: 400; line-height: .9; letter-spacing: 0; }
#bring-home-anchor { position: relative; display: inline-block; }
.bring-home__price { display: none; justify-content: center; align-items: baseline; gap: 9px; margin: 30px 0 24px; }
html.launched .bring-home__price { display: flex; }
.bring-home__price strong { font-size: 1.4rem; }
.bring-home__price s { color: #806f5f; font-size: .95rem; }
.bring-home__price span { padding: 3px 7px; background: #d9b77d; color: #322416; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cta { display: inline-block; padding: 13px 22px; background: #2b241d; color: #fffaf0; text-decoration: none; font-size: .92rem; font-weight: 700; }
.cta:hover:not(.cta-disabled) { background: #453a2d; }
.cta-disabled { background: #817568; color: #eee8df; cursor: not-allowed; }
.bring-home__free { margin: 18px 0 0; font-size: .84rem; }
.bring-home__free a { color: #5f4d3b; text-underline-offset: 4px; }
html.launched .bring-home__free { display: none; }
.bring-home__note { margin: 14px 0 0; color: #786b5e; font-size: .78rem; }
footer { padding: 24px; text-align: center; background: #171717; color: #cfc7bd; font-size: .78rem; }
footer p { margin: 0; }
footer .footer-elsewhere { margin-top: 8px; }
footer a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; }
footer a:hover { color: #fffaf0; text-decoration-color: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 640px) {
  .nav { padding: 16px 18px; }
  .nav nav { gap: 10px; }
  .nav nav > a:not(.cta-small), .nav .cta-small:not(.cta-reactions) { display: none; }
  .lang-select { max-width: 72px; font-size: .7rem; }
  .world-story { height: 440vh; }
  .world-scene > picture > img { object-position: center center; }
  .scene-shade { background: linear-gradient(180deg, rgba(5,6,8,.3), transparent 22%, transparent 61%, rgba(5,6,8,.48)), linear-gradient(90deg, rgba(5,6,8,.2), transparent 70%); }
  .chat-phone { width: min(82vw, 360px); min-width: 0; height: 60vh; min-height: 460px; padding: 10px; border-radius: 39px; }
  .chat-phone__speaker { top: 14px; }
  .chat-app { grid-template-rows: 63px 1fr 58px; border-radius: 30px; }
  .chat-app__header { grid-template-columns: 27px 34px 1fr 28px; padding-inline: 12px; }
  .chat-app__avatar { width: 34px; height: 34px; }
  .world-copy { left: 20px; right: 20px; bottom: 78px; max-width: 92%; }
  .world-copy h1 { max-width: 100%; font-size: clamp(2.7rem, 12vw, 3.75rem); }
  .world-copy__place { margin-top: 10px; font-size: .96rem; }
  body:not([data-scene="0"]) .world-copy { bottom: 72px; }
  body:not([data-scene="0"]) .world-copy h1 { display: none; }
  body:not([data-scene="0"]) .world-copy__eyebrow { margin-bottom: 4px; }
  .world-progress { right: 20px; bottom: 28px; }
  .world-progress__line { width: 70px; }
  .world-scroll-hint { display: none; }
  .preview { padding: 76px 16px; }
  .preview__heading { display: block; margin-bottom: 22px; }
  .preview__heading p { margin-bottom: 10px; }
  .preview__grid { grid-template-columns: 1fr; }
  .preview-card { min-height: 280px; }
  .preview-card--desktop { min-height: 300px; }
  .touch-preview { grid-template-columns: 1fr; padding: 30px 16px 88px; }
  .touch-preview__shots { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
