@font-face {
  font-family: Kollektif;
  src: url('/fonts/Kollektif.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kollektif;
  src: url('/fonts/Kollektif-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* Website shell. Colors are the app's own roles (ormaAppearance.ts), on a warmer page
   so the phone reads as a screen. Everything inside .screen mirrors the native UI. */
:root {
  color-scheme: dark;
  --page: #1a1816;
  --page-deep: #141210;
  --text: #f2ede8;
  --body: #e5dacb;
  --muted: #afa79b;
  --faint: #8d877e;
  --line: #36322c;
  --gold: #d8b07a;
  --gold-bright: #e6c595;
  --on-gold: #25170d;
  --teal: #81c7b4;
  --sans: Kollektif, 'Avenir Next', Futura, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#main:focus { outline: none; }

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 16px; background: var(--gold); color: var(--on-gold); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

h1, h2 { font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.03em; }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 17px; text-decoration: none; transition: background-color .2s; }
.btn:hover { background: var(--gold-bright); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.quiet-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.quiet-link:hover { text-decoration-color: var(--gold); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; position: relative; z-index: 2; }
.wordmark { font: 700 34px/1 var(--sans); letter-spacing: -.05em; text-decoration: none; }
.wordmark span { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--text); }

/* ---------- The tour: a sticky stage, scrolled through one month ---------- */
.tour { position: relative; }
.js .tour { height: calc(var(--beats) * 100vh); height: calc(var(--beats) * 100svh); }
.tour-anchor { position: absolute; top: 100vh; top: 100svh; }
.stage { width: min(1100px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: center; gap: 64px; padding-block: 24px 64px; }
.js .masthead { position: absolute; top: 0; left: 0; right: 0; }
.js .stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 86px 32px; }

.captions { position: relative; align-self: stretch; }
.cap { max-width: 470px; padding-block: 24px; }
.cap h1 { font-size: clamp(44px, 5.3vw, 78px); line-height: .98; letter-spacing: -.04em; }
.cap h2 { font-size: clamp(32px, 3.4vw, 48px); }
.cap p { margin-top: 20px; color: var(--muted); max-width: 30em; }
.cap-hero { max-width: 560px; }
.cap-hero p { max-width: 27em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 30px; }
/* Inactive captions fade out but stay in the reading order for screen readers;
   only the hero, which holds links, leaves the tab order. */
.js .cap { position: absolute; left: 0; right: 0; top: 50%; padding: 0; opacity: 0; pointer-events: none; transform: translateY(calc(-50% + 18px)); transition: opacity .45s ease, transform .6s var(--ease); }
.js .cap.is-active { opacity: 1; pointer-events: auto; transform: translateY(-50%); transition-delay: .08s; }
.js .cap-hero:not(.is-active) { visibility: hidden; transition: opacity .45s ease, transform .6s var(--ease), visibility 0s .6s; }

/* The month clock: one tick per day, gold where a frame was kept. */
.clock { display: none; }
.js .clock { display: block; position: absolute; left: 0; bottom: 56px; width: min(380px, 40%); }
.clock-ticks { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 20px; }
.clock-ticks i { height: 6px; border-radius: 1px; background: rgb(242 237 232 / .14); transition: height .35s var(--ease), background-color .35s; }
.clock-ticks i.past { background: rgb(242 237 232 / .34); }
.clock-ticks i.kept { height: 20px; background: var(--gold); }
.clock-ticks i.now { height: 12px; background: var(--text); }
.clock-date { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* The phone. Screens are laid out at the app's 390×844 points and scaled to fit. */
.device-wrap { --s: .9; width: calc(414px * var(--s)); height: calc(868px * var(--s)); position: relative; }
.device { width: 414px; height: 868px; padding: 12px; border-radius: 62px; background: #0b0a09; box-shadow: inset 0 0 0 1.5px #4d4740, inset 0 0 0 6px #0b0a09, inset 0 0 0 7px #26231f, 0 60px 120px -40px rgb(0 0 0 / .85), 0 0 0 1px rgb(0 0 0 / .5); transform: scale(var(--s)); transform-origin: 0 0; }

/* ---------- In-app UI (mirrors orma_app components) ---------- */
.screen { position: relative; width: 390px; height: 844px; border-radius: 50px; overflow: hidden; background: #101010; color: #f2ede8; font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.screen p { margin: 0; }
.screen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen i { font-style: normal; }

.ui-status { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 52px; font: 600 16px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Plus Jakarta Sans', sans-serif; color: #fff; pointer-events: none; }
.ui-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ui-sys { display: flex; align-items: center; gap: 6px; }
.ui-sys svg { width: 17px; height: 12px; fill: #fff; stroke: none; }
.ui-batt { position: relative; width: 26px; height: 12.5px; border-radius: 4px; border: 1px solid rgb(255 255 255 / .45); padding: 1.5px; }
.ui-batt i { display: block; width: 72%; height: 100%; border-radius: 2px; background: #fff; }

.ui-notif { position: absolute; z-index: 7; top: 54px; left: 10px; right: 10px; display: flex; gap: 10px; padding: 12px 14px; border-radius: 24px; background: rgb(58 55 51 / .82); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Plus Jakarta Sans', sans-serif; opacity: 0; transform: translateY(-120%) scale(.96); transition: opacity .35s ease, transform .6s var(--ease); }
.ui-notif img { flex: none; width: 38px; height: 38px; border-radius: 9px; }
.ui-notif-app { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.2; color: rgb(255 255 255 / .55); }
.ui-notif-app b { font-weight: 600; color: rgb(255 255 255 / .55); }
.ui-notif-title { margin-top: 2px; font-weight: 600; font-size: 15px; line-height: 1.3; color: #fff; }
.ui-notif-body { font-size: 15px; line-height: 1.3; color: rgb(255 255 255 / .92); }
.screen.notif .ui-notif { opacity: 1; transform: none; }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.screen[data-scene='home'] .scene-home,
.screen[data-scene='story'] .scene-story,
.screen[data-scene='relive'] .scene-relive,
.screen[data-scene='friends'] .scene-friends,
.screen[data-scene='shelf'] .scene-shelf { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }

.ui-btn { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: rgb(242 237 232 / .06); box-shadow: inset 0 0 0 .5px rgb(242 237 232 / .12); color: #f2ede8; }
.ui-btn svg { width: 18px; height: 18px; }
.ui-round { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: rgb(0 0 0 / .38); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .14); color: #fff; }

/* Home */
.scene-home { padding-top: 58px; }
.home-head { padding: 0 18px 10px; }
.home-top { display: flex; align-items: flex-end; justify-content: space-between; }
.home-date { margin-bottom: 10px; font: 500 10.5px/1.3 'Plus Jakarta Sans', sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: rgb(242 237 232 / .4); }
.home-actions { display: flex; gap: 8px; padding-top: 6px; }
.home-greet { font: 300 26px/32px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.4px; color: rgb(242 237 232 / .7); }
.home-greet b { font: 700 26px/32px var(--sans); letter-spacing: -.6px; color: #f2ede8; }

.roll { padding-top: 16px; padding-bottom: 2px; border-top: .5px solid rgb(255 255 255 / .06); }
.roll-name { padding: 0 18px 6px; font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.4px; color: #fff; }
.roll-meta { display: flex; align-items: center; gap: 6px; padding: 0 18px 10px; font-size: 11.5px; color: rgb(255 255 255 / .62); }
.roll-meta b { font-size: 9.5px; letter-spacing: 1.6px; color: #b8a070; }
.roll-meta b.dim { color: rgb(242 237 232 / .5); }
.roll-sep-dot { font-size: 11px; color: rgb(255 255 255 / .22); }
.roll-dot { width: 6px; height: 6px; border-radius: 3px; background: #b8a070; box-shadow: 0 0 0 3px rgb(184 160 112 / .18); }
.roll-film { position: relative; height: 185px; margin-top: 2px; }
.roll-strip { display: flex; padding: 7px 14px; overflow: hidden; }
.roll-frame { flex: none; width: 0; height: 171px; border-radius: 3px; overflow: hidden; background: #161616; opacity: 0; transform: translateY(-26px) scale(1.22) rotate(-5deg); transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s ease, transform .6s cubic-bezier(.2, .9, .25, 1.05); }
.roll-frame.in { width: 128px; margin-right: 6px; opacity: 1; transform: none; }
.roll-frame img { width: 128px; height: 171px; max-width: none; object-fit: cover; }
.roll-empty { position: absolute; inset: 7px 14px; display: grid; place-items: center; padding: 0 24px; border-radius: 3px; border: .5px dashed rgb(255 255 255 / .22); font-size: 12px; color: rgb(255 255 255 / .45); text-align: center; transition: opacity .3s; }
.roll.has-frames .roll-empty { opacity: 0; }
.roll-counter { display: flex; align-items: center; gap: 14px; padding: 14px 18px 0; }
.roll-count { min-width: 34px; padding-top: 4px; font-size: 36px; line-height: 42px; letter-spacing: -1px; text-align: center; color: #f2ede8; transition: transform .25s ease; }
.roll-count.pulse { transform: scale(1.14); }
.roll-cbody { flex: 1; display: grid; gap: 6px; }
.roll-clabels { display: flex; align-items: center; justify-content: space-between; }
.roll-unit { font-size: 12.5px; color: rgb(255 255 255 / .62); }
.roll-whisper { font-weight: 700; font-size: 11px; color: #b8a070; opacity: 0; transition: opacity .3s; }
.roll-whisper.show { opacity: 1; }
.roll-track { height: 3px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .08); }
.roll-track i { display: block; width: 10%; height: 100%; background: #b8a070; transition: width .3s ease; }
.roll-day { font-size: 11px; color: rgb(255 255 255 / .45); }

.scene-home[data-mode='roll'] .sealed,
.scene-home[data-mode='roll'] .roll-oct,
.scene-home[data-mode='sealed'] .roll-sep { display: none; }
.sealed { padding: 16px 0 10px; border-top: .5px solid rgb(255 255 255 / .06); }
.sealed-ap { width: 9px !important; height: 9px !important; color: rgb(242 237 232 / .5); }
.sealed-card { --hp: 0; position: relative; margin: 0 18px; padding: 22px 16px 16px; border-radius: 16px; overflow: hidden; text-align: center; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .1); }
.sealed-stage { position: relative; height: 132px; margin-bottom: 14px; }
.print { position: absolute; left: 50%; top: 8px; width: 92px; height: 116px; margin-left: -46px; padding: 4px 4px 12px; border-radius: 3px; background: #ede8e1; box-shadow: 0 6px 12px rgb(0 0 0 / .45); transform: translateX(calc(var(--x) * (.12 + .88 * var(--hp)) * 1px)) rotate(calc((var(--r0) + (var(--r1) - var(--r0)) * var(--hp)) * 1deg)) scale(calc(.94 + .1 * var(--hp))); }
.print.p-l { --x: -58; --r0: -3; --r1: -14; }
.print.p-c { --x: 0; --r0: 2; --r1: 0; z-index: 2; }
.print.p-r { --x: 58; --r0: -1; --r1: 13; }
.print img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.5px; filter: blur(6px) brightness(.9); clip-path: inset(0 round 1.5px); }
.print img.sharp { position: absolute; top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 16px); filter: none; opacity: var(--hp); }
.sealed-title { font: 500 30px/1.15 'Cormorant Garamond', Georgia, serif; letter-spacing: -.5px; color: #f2ede8; }
.sealed-sub { margin-top: 4px; padding: 0 12px; font-size: 12.5px; line-height: 18px; color: rgb(242 237 232 / .6); }
.sealed-hold { position: relative; height: 44px; margin-top: 16px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: rgb(242 237 232 / .08); box-shadow: inset 0 0 0 .5px rgb(242 237 232 / .18); }
.sealed-hold i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--hp) * 100%); background: rgb(242 237 232 / .22); }
.sealed-hold span { position: relative; font-weight: 700; font-size: 13px; letter-spacing: .3px; color: #f2ede8; }
.sealed-flash { position: absolute; inset: 0; border-radius: 16px; background: #fff8ee; opacity: 0; pointer-events: none; }
.sealed-card.flash .sealed-flash { animation: flash .7s ease-out; }
@keyframes flash { 25% { opacity: 1; } }
.roll-oct .roll-film { height: 120px; }
.roll-oct .roll-empty { bottom: 7px; }

.home-ormas { padding-top: 22px; }
.home-ormas-title { padding: 0 18px; font-weight: 700; font-size: 18px; color: #f2ede8; }
.home-ormas-row { display: flex; gap: 10px; padding: 12px 18px; overflow: hidden; }
.ho-card { flex: none; width: 128px; }
.ho-card img { width: 128px; height: 112px; max-width: none; border-radius: 10px; object-fit: cover; }
.ho-card b { display: block; margin-top: 8px; font-size: 14px; color: #f2ede8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-card span { font-size: 12px; color: rgb(242 237 232 / .55); }

/* Tab bar (ModernTabBar) */
.ui-tabbar { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 6px 14px 30px; background: rgb(20 20 18 / .99); box-shadow: inset 0 .5px 0 rgb(246 241 235 / .1); transition: transform .45s var(--ease); }
.ui-rail { flex: 1; height: 60px; display: flex; align-items: center; padding: 5px; border-radius: 30px; background: rgb(246 241 235 / .025); }
.ui-tab { flex: 1; height: 50px; border-radius: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 500 9.5px/12px 'Plus Jakarta Sans', sans-serif; letter-spacing: .15px; color: rgb(246 241 235 / .4); transition: background-color .3s, color .3s; }
.ui-tab svg { width: 19px; height: 19px; color: rgb(246 241 235 / .42); }
.screen[data-tab='home'] .ui-tab[data-tab='home'],
.screen[data-tab='friends'] .ui-tab[data-tab='friends'],
.screen[data-tab='shelf'] .ui-tab[data-tab='shelf'] { background: rgb(246 241 235 / .08); box-shadow: inset 0 0 0 .5px rgb(246 241 235 / .1); color: #f6f1eb; font-weight: 600; }
.screen[data-tab='home'] .ui-tab[data-tab='home'] svg,
.screen[data-tab='friends'] .ui-tab[data-tab='friends'] svg,
.screen[data-tab='shelf'] .ui-tab[data-tab='shelf'] svg { color: #f6f1eb; }
.ui-cam { flex: none; width: 60px; height: 60px; padding: 4px; border-radius: 30px; background: rgb(129 199 180 / .2); box-shadow: inset 0 0 0 .5px rgb(129 199 180 / .5); }
.ui-cam i { width: 100%; height: 100%; border-radius: 26px; display: grid; place-items: center; background: #81c7b4; color: #10201c; }
.ui-cam svg { width: 22px; height: 22px; }
.screen[data-scene='story'] .ui-tabbar, .screen[data-scene='relive'] .ui-tabbar { transform: translateY(110%); }
.ui-homebar { position: absolute; z-index: 9; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgb(255 255 255 / .85); }

/* Orma page (Orma.tsx hero, OrmaExperienceNav, StoryScrollChapter) */
.scene-story { background: #121212; }
.st-compact { --c: 0; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 104px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px 10px; background: #121212; box-shadow: inset 0 -.5px 0 rgb(255 255 255 / .08); opacity: var(--c); }
.st-compact b { padding-bottom: 12px; font-size: 16px; line-height: 22px; color: #f2ede8; }
.st-compact .ui-round { width: 40px; height: 40px; background: rgb(255 255 255 / .06); }
.st-scroll { --y: 0px; transform: translateY(var(--y)); transition: transform .2s linear; }
.st-cover { position: relative; height: 480px; }
.st-cover > img { width: 100%; height: 100%; object-fit: cover; }
.st-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 18 18 / .25) 0%, rgb(18 18 18 / 0) 22%, rgb(18 18 18 / 0) 45%, rgb(18 18 18 / .85) 80%, #121212 100%); }
.st-top { position: absolute; z-index: 1; top: 56px; left: 20px; right: 20px; display: flex; justify-content: space-between; }
.st-top span { display: flex; gap: 10px; }
.st-cover-text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 4px; }
.st-dates { font-size: 12px; line-height: 18px; letter-spacing: 2.4px; color: #afa79b; }
.st-title { margin-top: 4px; font-weight: 700; font-size: 26px; line-height: 31px; color: #f2ede8; }
.st-meta { margin-top: 6px; font-size: 13px; line-height: 18px; color: #afa79b; }
.st-relive { height: 54px; margin: 16px 20px 0; border-radius: 27px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(105deg, transparent 52%, rgb(255 255 255 / .16) 52%, rgb(255 255 255 / .16) 68%, transparent 68%), #d8b07a; font-weight: 700; font-size: 16px; color: #25170d; }
.st-relive svg { width: 18px; height: 18px; fill: #25170d; stroke: none; }
.st-label { margin: 24px 20px 10px; font-size: 12px; letter-spacing: 2.2px; color: #9d978e; }
.st-chapters { display: flex; gap: 10px; padding: 0 20px; overflow: hidden; }
.st-ch { position: relative; flex: none; width: 150px; height: 196px; border-radius: 14px; overflow: hidden; }
.st-ch img { width: 100%; height: 100%; object-fit: cover; }
.st-ch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(0 0 0 / .65)); }
.st-ch b { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font-size: 14px; line-height: 18px; color: #fff; }
.st-tabs { display: flex; gap: 28px; margin: 22px 20px 0; padding-top: 16px; box-shadow: inset 0 .5px 0 #454039; font-weight: 700; font-size: 14px; line-height: 20px; color: #9d978e; }
.st-tabs .on { padding-bottom: 6px; color: #f2ede8; box-shadow: inset 0 -2px 0 #ead9ba; }
.st-story { padding: 22px 20px 140px; }
.st-entry { position: relative; padding: 0 0 26px 32px; }
.st-entry::before { content: ''; position: absolute; left: 3px; top: 4px; width: 10px; height: 10px; border-radius: 5px; background: #81c7b4; }
.st-entry::after { content: ''; position: absolute; left: 7.5px; top: 22px; bottom: 6px; width: 1px; background: rgb(255 255 255 / .12); }
.st-chno { font-size: 12px; line-height: 18px; letter-spacing: 2.4px; color: #81c7b4; }
.st-chtitle { margin-top: 6px; font-weight: 700; font-size: 20px; line-height: 26px; color: #f2ede8; }
.st-text { margin-top: 6px; font-size: 16px; line-height: 24px; color: #e5dacb; }
.st-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 14px; }
.st-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }

/* Relive opener */
.scene-relive { background: #0b0a09; }
.rl-mosaic { --y: 0px; position: absolute; left: -70px; right: -70px; top: -90px; display: flex; gap: 12px; transform: rotate(-11deg) translateY(var(--y)); transition: transform .2s linear; }
.rl-col { flex: 1; display: grid; gap: 12px; }
.rl-col:nth-child(2) { margin-top: 70px; }
.rl-col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.rl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 10 9 / .35) 0%, rgb(11 10 9 / 0) 18%, rgb(11 10 9 / 0) 48%, rgb(11 10 9 / .92) 76%, #0b0a09 100%); }
.rl-top { position: absolute; top: 58px; right: 16px; display: flex; gap: 10px; }
.rl-text { position: absolute; left: 26px; right: 26px; bottom: 74px; }
.rl-kicker { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 11px; letter-spacing: 2.6px; color: #d8b07a; }
.rl-kicker i { width: 28px; height: 1px; background: rgb(216 176 122 / .6); }
.rl-title { margin-top: 10px; font-weight: 700; font-size: 42px; line-height: 1.1; letter-spacing: -.8px; color: #f2ede8; }
.rl-meta { margin-top: 8px; font-size: 13.5px; color: #afa79b; }

/* Friends feed (FriendsFeedHeader, MemoryCard) */
.fr-scroll { --y: 0px; padding-top: 58px; transform: translateY(var(--y)); transition: transform .2s linear; }
.fr-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 14px 20px; }
.fr-title { font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -.6px; color: #f2ede8; }
.fr-sub { font-size: 13px; line-height: 18px; color: rgb(242 237 232 / .58); }
.fr-card { margin-bottom: 24px; }
.fr-card-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; }
.fr-card-head img, .fr-initial { flex: none; width: 32px; height: 32px; border-radius: 16px; object-fit: cover; }
.fr-initial { display: grid; place-items: center; background: #3a4440; font-weight: 700; font-size: 14px; color: #f2ede8; }
.fr-card-head div { flex: 1; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.fr-card-head b { font-size: 15px; line-height: 20px; color: #f2ede8; }
.fr-card-head span { font-size: 13px; line-height: 18px; color: rgb(242 237 232 / .58); }
.fr-card-head em { font-style: normal; color: rgb(242 237 232 / .38); }
.fr-new { min-height: 24px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: rgb(168 200 190 / .16); font-weight: 700; font-size: 12px; color: #a8c8be; }
.fr-photo { position: relative; height: 470px; background: #202320; }
.fr-photo img { width: 100%; height: 100%; object-fit: cover; }
.fr-loc, .fr-count { position: absolute; top: 12px; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 14px; background: rgb(0 0 0 / .6); font-size: 12px; line-height: 16px; color: #fff; }
.fr-loc { left: 12px; }
.fr-loc svg { width: 12px; height: 12px; }
.fr-count { right: 12px; }
.fr-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 6px; }
.fr-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .3); }
.fr-dots i.on { background: #f2ede8; }
.fr-actions { display: flex; gap: 18px; padding: 0 16px; color: #f2ede8; }
.fr-actions svg { width: 24px; height: 24px; }

/* My Ormas (MyOrma.tsx, YearBookShelf) */
.scene-shelf { padding-top: 58px; }
.sh-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 0; }
.ui-wordmark { font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -1.5px; color: #fff; }
.ui-wordmark span { color: #81c7b4; }
.sh-avatar { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: #3d5a4a; font-weight: 700; font-size: 14px; color: #f2ede8; }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.sh-title { font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.6px; color: #f2ede8; }
.sh-sub { margin-top: 4px; font-size: 14px; color: rgb(242 237 232 / .7); }
.sh-plus { width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center; background: #f2ede8; color: #101010; }
.sh-plus svg { width: 22px; height: 22px; }
.sh-books { display: flex; align-items: flex-end; justify-content: center; gap: 20px; padding: 26px 20px 0; }
.sh-book { position: relative; width: 78px; height: 104px; border-radius: 3px 7px 7px 3px; overflow: hidden; box-shadow: 4px 3px 0 -1px #d9d2c4, 7px 5px 0 -2px #bfb8a9, 0 12px 22px rgb(0 0 0 / .55); transform: perspective(500px) rotateY(-14deg); }
.sh-book.on { width: 88px; height: 118px; transform: none; }
.sh-book img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.sh-book::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(255 255 255 / .12) 60%, transparent); }
.sh-book b { position: absolute; z-index: 1; left: 9px; bottom: 8px; font-size: 19px; color: rgb(255 255 255 / .88); text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.sh-year { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 20px 10px; }
.sh-year b { font-size: 18px; color: #f2ede8; }
.sh-year span { font-size: 12.5px; color: rgb(242 237 232 / .7); }
.sh-month { display: flex; align-items: center; gap: 12px; margin: 0 20px; padding: 10px; border-radius: 14px; background: rgb(129 199 180 / .05); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .12); }
.sh-month img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; }
.sh-month div { flex: 1; display: flex; flex-direction: column; }
.sh-month b { font-size: 15px; color: #f2ede8; }
.sh-month span { font-size: 11.5px; color: rgb(242 237 232 / .7); }
.sh-month .sh-add { padding: 10px 12px; border-radius: 10px; background: #f2ede8; font-weight: 700; font-size: 13px; color: #101010; }
.sh-label { padding: 22px 20px 10px; font-weight: 700; font-size: 12px; letter-spacing: 1.6px; color: rgb(242 237 232 / .7); }
.sh-relive { position: relative; height: 196px; margin: 0 20px; border-radius: 16px; overflow: hidden; }
.sh-relive > img { width: 100%; height: 100%; object-fit: cover; }
.sh-relive::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .62), rgb(0 0 0 / .15) 70%); }
.sh-relive > div { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sh-relive-k, .sh-relive-s { font-size: 12.5px; color: rgb(255 255 255 / .88); }
.sh-relive b { font-size: 32px; line-height: 1.1; letter-spacing: -.6px; color: #fff; }
.sh-play { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 16px; border-radius: 22px; background: #f2ede8; font-weight: 700; font-size: 13px; color: #101010; }
.sh-play svg { width: 11px; height: 11px; fill: #101010; stroke: none; }

/* ---------- After the tour ---------- */
.occasions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; padding-block: 120px; border-top: 1px solid var(--line); }
.occ-copy > p { margin-top: 20px; color: var(--muted); max-width: 30em; }
.occ-copy .quiet-link { margin-top: 16px; }
.occ-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.occ-phones .still:nth-child(2) { margin-top: 72px; }
.still-device { padding: 8px; border-radius: 42px; background: #0b0a09; box-shadow: inset 0 0 0 1.5px #4d4740, 0 40px 80px -30px rgb(0 0 0 / .8); }
.still-device img { width: 100%; height: auto; border-radius: 34px; }
.still figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }

.questions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; padding-block: 112px 96px; border-top: 1px solid var(--line); }
.question-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-size: 20px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--gold-bright); }
details p { max-width: 36em; padding-bottom: 26px; color: var(--muted); }
details a { color: var(--text); text-underline-offset: 4px; }

.start { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; padding-block: 96px 120px; border-top: 1px solid var(--line); }
.start h2 { font-size: clamp(44px, 5.6vw, 80px); line-height: .96; letter-spacing: -.04em; }
.start-copy > p { margin-top: 20px; color: var(--muted); }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.store-badge { display: inline-flex; align-items: center; min-height: 44px; transition: opacity .2s; }
.store-badge:hover { opacity: .8; }
.store-badge.apple img { width: auto; height: 46px; }
.store-badge.google img { width: auto; height: 65px; }
.start-roll { padding: 18px 0 20px; border-radius: 22px; background: #101010; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--sans); }
.start-roll .roll-film { height: 150px; }
.start-roll .roll-empty { font-size: 14px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 28px 40px; border-top: 1px solid var(--line); }
.footer .wordmark { font-size: 28px; }
.footer > p { font-size: 15px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .stage { gap: 40px; }
  .js .clock { width: min(320px, 46%); }
  .occasions { grid-template-columns: 1fr; gap: 56px; }
  .occ-phones { max-width: 560px; }
}

/* Phones: the device sits on top, the caption underneath it. */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .masthead { padding-block: 16px; }
  .wordmark { font-size: 30px; }
  .nav { gap: 20px; }
  .nav > .nav-extra { display: none; }
  .stage { grid-template-columns: 1fr; }
  .device-wrap { margin-inline: auto; }
  .js .stage { display: block; width: 100%; padding: 0; }
  .js .device-wrap { position: absolute; left: 50%; top: 16px; margin: 0; transform: translate(-50%, 0); transition: transform .7s var(--ease); }
  .js .stage[data-beat='0'] .device-wrap { transform: translate(-50%, var(--hero-drop, 52vh)); }
  .js .captions { position: absolute; inset: 0 20px; }
  .js .cap { top: auto; bottom: 22px; transform: translateY(18px); }
  .js .cap.is-active { transform: none; }
  .js .cap-hero { top: 92px; bottom: auto; }
  .cap h1 { font-size: clamp(38px, 11vw, 52px); }
  .cap h2 { font-size: 26px; line-height: 1.12; }
  .cap p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; }
  .cap-hero p { margin-top: 16px; font-size: 17px; }
  .actions { margin-top: 22px; }
  .js .clock { display: none; }
  .occasions, .questions { padding-block: 80px; }
  .occ-phones { gap: 16px; }
  .occ-phones .still:nth-child(2) { margin-top: 48px; }
  .still-device { padding: 5px; border-radius: 28px; }
  .still-device img { border-radius: 23px; }
  .still figcaption { font-size: 14px; }
  .questions { grid-template-columns: 1fr; gap: 28px; }
  summary { font-size: 18px; }
  .start { grid-template-columns: 1fr; gap: 40px; padding-block: 72px 88px; }
  .store-badge.apple img { height: 43px; }
  .store-badge.google img { height: 61px; }
  .footer-links { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
