:root {
  --bg: #0b0c0f;
  --bg2: #111317;
  --ink: #ece8e1;
  --dim: #a29e97;
  --faint: #6c6963;
  --line: rgba(236, 232, 225, .12);
  --badge: #e3a84e;
  --blue: #0a84ff;
  --head: "Instrument Serif", "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--ui); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h2 { font-family: var(--head); font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #111; font: 600 16px/1 var(--ui); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.txt { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(236,232,225,.4); font-size: 16px; }
.txt:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* brand mark */
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mark-icon { position: relative; width: 18px; height: 28px; border: 2px solid var(--ink); border-radius: 5px; }
.mark-icon i { position: absolute; top: 2px; left: 4px; width: 6px; height: 2px; border-radius: 2px; background: var(--ink); }
.mark-icon b { position: absolute; top: -8px; right: -9px; width: 15px; height: 15px; border-radius: 50%; background: var(--badge); color: #111; font: 700 10px/15px var(--ui); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* top bar */
.top { position: fixed; z-index: 30; inset: 0 0 auto 0; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); padding-top: max(14px, env(safe-area-inset-top)); transition: background .3s ease, backdrop-filter .3s ease; }
.top.solid { background: rgba(11,12,15,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top .btn-sm { margin-left: auto; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gut) 40px; overflow: hidden; }
.hero-media, .hero-media picture, .hero-poster, .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster, .hero-film { object-fit: cover; object-position: 52% 50%; }
.hero-film { opacity: 0; transition: opacity .6s ease; }
.hero-film.live { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,.55) 0%, rgba(11,12,15,0) 26%, rgba(11,12,15,0) 48%, rgba(11,12,15,.86) 82%, var(--bg) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { font-family: var(--head); font-size: clamp(44px, 7.2vw, 104px); line-height: .98; letter-spacing: -.015em; max-width: 14ch; }
.lede { margin-top: 22px; max-width: 560px; color: #d7d2ca; font-size: clamp(17px, 1.4vw, 19px); }
.hero-act { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.hero-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-top: 44px; color: var(--dim); font-size: 13px; }
.film-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(20,20,22,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; }
.i-pause { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.film-btn.paused .i-pause { width: 0; height: 0; border-width: 7px 0 7px 11px; border-style: solid; border-color: transparent transparent transparent var(--ink); }

/* notifications in the hero */
.hero-note { position: absolute; z-index: 2; top: 96px; right: var(--gut); width: min(360px, calc(100% - 2 * var(--gut))); display: grid; gap: 8px; }
.note, .ln { position: relative; padding: 11px 14px 12px 54px; border-radius: 18px; background: rgba(42,42,46,.55); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); color: #f4f2ee; font-size: 14px; line-height: 1.3; }
.note b, .ln b { font-size: 14px; font-weight: 600; }
.note small, .ln small { position: absolute; top: 11px; right: 14px; color: rgba(244,242,238,.55); font-size: 12px; }
.note p, .ln p { margin-top: 1px; color: rgba(244,242,238,.92); }
.app-ic { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(180deg, #5df47a, #22c03e); }
.app-ic::after { content: ""; position: absolute; left: 7px; top: 8px; width: 16px; height: 12px; border-radius: 50%; background: #fff; }
.note { opacity: 0; transform: translateY(-14px) scale(.98); }
.note.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.9,.25,1.1); }
@media (max-width: 760px) {
  .hero { padding-top: 90px; padding-bottom: 28px; }
  .hero-note { top: 76px; }
  .note.n2 { display: none; }
  .hero h1 { max-width: 12ch; }
}

/* the first night (pinned) */
.night { position: relative; height: 420svh; }
.night-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px; padding: 80px var(--gut) 40px; overflow: hidden; }
.night-side { grid-column: 1; width: min(420px, 100%); justify-self: end; }
.count { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.beats { list-style: none; margin: 14px 0 26px; padding: 0; position: relative; min-height: 8.2em; }
.beats li { position: absolute; inset: 0 0 auto 0; font-family: var(--head); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.beats li.on { opacity: 1; transform: none; }
.skip { font-size: 14px; color: var(--dim); }
.phone { grid-column: 2; width: min(330px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px; background: #1b1c1f; box-shadow: 0 0 0 1px #3a3b3f, 0 40px 120px rgba(0,0,0,.6); }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #111 url(/media/hero-m.jpg) center / cover; }
.phone-screen::before { content: ""; position: absolute; inset: 0; background: rgba(8,9,12,.48); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ls-top { position: relative; padding-top: 56px; text-align: center; color: #f4f2ee; }
.ls-top span { display: block; font-size: 15px; font-weight: 500; }
.ls-top strong { display: block; font-size: 76px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.ls-list { position: absolute; left: 10px; right: 10px; bottom: 34px; display: flex; flex-direction: column; gap: 7px; }
.ln { font-size: 13px; padding-left: 50px; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.9,.25,1.1); }
.ln.in { opacity: 1; transform: none; }
.ln .app-ic { width: 28px; height: 28px; }
.ln.r .app-ic { background: linear-gradient(180deg, #8e8e93, #636366); }
.ls-call { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 110px; background: rgba(12,12,14,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; opacity: 0; transition: opacity .5s ease; }
.ls-call.in { opacity: 1; }
.ls-call span { font-size: 28px; font-weight: 500; }
.ls-call strong { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.6); margin-top: 4px; }
.ls-call-btns { margin-top: auto; margin-bottom: 70px; display: flex; gap: 90px; }
.ls-call-btns i { width: 64px; height: 64px; border-radius: 50%; background: #ff3b30; }
.ls-call-btns i.yes { background: #30d158; animation: ring 1.2s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.08); } }
.vm-btn { grid-column: 3; justify-self: start; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font: 500 15px/1.3 var(--ui); cursor: pointer; text-align: left; }
.vm-btn small { display: block; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.vm-i { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.vm-i::after { content: ""; position: absolute; left: 16px; top: 13px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #111; }
.vm-btn.on .vm-i::after { left: 14px; top: 13px; width: 4px; height: 14px; border: 0; border-left: 4px solid #111; border-right: 4px solid #111; }
.vm-btn[hidden] { display: none; }
@media (max-width: 900px) {
  .night { height: 380svh; }
  .night-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 14px; padding: 72px var(--gut) 18px; justify-items: center; }
  .night-side { grid-column: 1; grid-row: 1; justify-self: stretch; width: 100%; max-width: none; text-align: center; }
  .beats { margin: 6px 0 4px; min-height: 3.6em; }
  .beats li { font-size: 22px; }
  .skip { display: none; }
  .phone { grid-column: 1; grid-row: 2; width: auto; height: min(56svh, 520px); border-radius: 34px; padding: 7px; }
  .phone-screen { border-radius: 28px; }
  .ls-top { padding-top: 34px; }
  .ls-top strong { font-size: 54px; }
  .ls-top span { font-size: 12px; }
  .ln { font-size: 11.5px; padding: 8px 10px 9px 42px; border-radius: 14px; }
  .ln b { font-size: 11.5px; } .ln small { font-size: 10px; top: 8px; right: 10px; }
  .ln .app-ic { width: 22px; height: 22px; left: 10px; top: 9px; border-radius: 6px; }
  .ln .app-ic::after { left: 5px; top: 6px; width: 12px; height: 9px; }
  .ls-list { top: 104px; bottom: auto; gap: 5px; }
  .ls-call { padding-top: 70px; } .ls-call span { font-size: 22px; }
  .ls-call-btns { gap: 56px; margin-bottom: 40px; } .ls-call-btns i { width: 48px; height: 48px; }
  .vm-btn { grid-column: 1; grid-row: 3; justify-self: center; }
}

/* how it plays */
.how { padding: 120px var(--gut) 110px; }
.how-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; max-width: 1240px; margin: 0 auto 56px; }
.how-head p { color: var(--dim); max-width: 470px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1240px; margin: 0 auto; }
.shots figure { margin: 0; }
.shots figure:nth-child(even) { margin-top: 64px; }
.shot { border-radius: 30px; padding: 7px; background: #1b1c1f; box-shadow: 0 0 0 1px #34353a; }
.shot img { width: 100%; height: auto; border-radius: 24px; }
figcaption { margin-top: 16px; color: var(--dim); font-size: 15px; }
figcaption b { display: block; color: var(--ink); font-weight: 600; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1240px; margin: 90px auto 0; border-top: 1px solid var(--line); }
.modes > div { padding: 32px 40px 0 0; }
.modes > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.modes p { color: var(--dim); margin-top: 8px; max-width: 460px; }
@media (max-width: 900px) {
  .how { padding-top: 90px; }
  .how-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .shots { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 10px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { scroll-snap-align: center; }
  .shots figure:nth-child(even) { margin-top: 0; }
  .modes { grid-template-columns: 1fr; margin-top: 56px; }
  .modes > div, .modes > div + div { padding: 26px 0 0; border-left: 0; }
  .modes > div + div { margin-top: 26px; border-top: 1px solid var(--line); }
}

/* stories */
.stories { padding: 60px var(--gut) 120px; max-width: 1336px; margin: 0 auto; }
.stories h2 { margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; border-radius: 22px; overflow: hidden; background: var(--bg2); min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.card:hover img { transform: scale(1.03); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,0) 30%, rgba(11,12,15,.92) 78%); }
.card-body { position: relative; z-index: 1; padding: 26px; }
.kind { color: var(--dim); font-size: 13px; }
.card h3 { font-family: var(--head); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 6px 0 10px; }
.card-body > p:not(.kind) { color: #d2cdc5; font-size: 15px; margin-bottom: 20px; }
.soon { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(3, 82%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; min-height: 500px; }
}

/* what's coming: a message thread */
.coming { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; padding: 110px var(--gut); max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.coming-head p { color: var(--dim); margin-top: 16px; max-width: 380px; }
.thread { display: flex; flex-direction: column; gap: 6px; }
.bub { align-self: flex-start; max-width: 88%; }
.bub p { padding: 11px 16px; border-radius: 20px; background: #26272b; font-size: 16px; line-height: 1.4; }
.bub.done { align-self: flex-end; }
.bub.done p { background: var(--blue); color: #fff; }
.bub small { display: block; margin: 3px 12px 10px; color: var(--faint); font-size: 12px; }
.bub.done small { text-align: right; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 15px 16px; border-radius: 20px; background: #26272b; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; animation: dot 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 900px) { .coming { grid-template-columns: 1fr; gap: 34px; padding: 80px var(--gut); } }

/* price */
.price { padding: 100px var(--gut); max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-row > div { padding: 28px 0; }
.price-row > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.price-row strong { font-family: var(--head); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.price-row p { color: var(--dim); margin-top: 6px; }
.price-note { color: var(--dim); margin-top: 18px; }
@media (max-width: 700px) {
  .price-row { grid-template-columns: 1fr; }
  .price-row > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .price-row > div { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 0; }
  .price-row strong { font-size: 40px; }
}

/* sign up */
.signup { position: relative; padding: 120px var(--gut); background: #0e1014 url(/media/story-cabin.jpg) center 30% / cover; }
.signup::before { content: ""; position: absolute; inset: 0; background: rgba(11,12,15,.8); }
.signup-in { position: relative; max-width: 640px; margin: 0 auto; text-align: center; }
.signup p { color: #cfcac2; margin: 16px auto 0; max-width: 480px; }
.form { display: flex; gap: 10px; margin: 30px auto 0; max-width: 480px; }
.form input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(236,232,225,.28); background: rgba(11,12,15,.6); color: var(--ink); font: 16px var(--ui); }
.form input[type=email]::placeholder { color: var(--faint); }
.form .btn { min-height: 52px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; font-size: 15px; }
.form-msg.ok { color: #8fe0a0; } .form-msg.err { color: #ffb4a8; }
@media (max-width: 520px) { .form { flex-direction: column; } .form .btn { width: 100%; } }

/* faq */
.faq { padding: 110px var(--gut); max-width: 860px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--dim); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); padding: 0 40px 22px 0; }

/* footer */
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 40px var(--gut) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot nav a { color: var(--dim); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
@media (max-width: 700px) { .foot { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); } .foot nav { margin-left: 0; } }

/* phone: the play button stays in reach */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: block; position: fixed; z-index: 25; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateY(140%); transition: transform .35s ease; }
  .dock.in { transform: none; }
  .dock .btn { width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .note, .ln, .beats li, .ls-call { transition: none !important; }
  .typing i, .ls-call-btns i.yes { animation: none; }
}

/* smallest phones: keep all five messages on the lock screen */
@media (max-width: 380px) {
  .ls-top { padding-top: 22px; }
  .ls-top strong { font-size: 44px; }
  .ls-list { top: 90px; gap: 4px; left: 7px; right: 7px; }
  .ln { font-size: 10.5px; padding: 6px 8px 7px 36px; }
  .ln b { font-size: 10.5px; } .ln small { font-size: 9px; top: 6px; right: 8px; }
  .ln .app-ic { width: 20px; height: 20px; left: 8px; top: 7px; }
}
