@font-face { font-family: Fraunces; src: url(Fraunces.ttf); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Figtree; src: url(Figtree.ttf); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --ink: #14204a; --soft: #525d85; --paper: #fbf6ee; --card: #fffdf9; --line: #ece2d3;
  --link: #b4472f; --button: #14204a; --button-ink: #fff8ec;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f4efe6; --soft: #b4bbd8; --paper: #0c1029; --card: #161c3f; --line: #27305c;
          --link: #ffa88a; --button: #ffd9a0; --button-ink: #14204a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 Figtree, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Fraunces, ui-serif, Georgia, serif; line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font: 650 1.25rem Fraunces, serif; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
nav .links { display: flex; align-items: center; gap: 1.2rem; font-weight: 600; font-size: 0.93rem; }
nav .links a { text-decoration: none; opacity: 0.88; }
nav .links a:hover { text-decoration: underline; opacity: 1; }

/* Support and privacy: an evening sky over a sheet of paper. */
.sky { background: linear-gradient(#232d5c, #7a4f7e 55%, #e8916f 85%, var(--paper)); color: #fff8ec; }
.sky a { color: inherit; }
.title { text-align: center; padding-top: 1.5rem; padding-bottom: 4rem; }
.title h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 640; text-shadow: 0 2px 24px rgb(20 12 60 / 0.35); }
.sheet { margin-top: -2rem; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.4rem, 5vw, 2.8rem); box-shadow: 0 24px 50px -30px rgb(20 14 60 / 0.5); }
.sheet h2 { font-size: 1.4rem; font-weight: 620; margin: 2.2rem 0 0.6rem; }
.sheet h2:first-child { margin-top: 0; }
.sheet li { margin-bottom: 0.5rem; }
.updated { color: var(--soft); font-size: 0.92rem; margin-top: 0; }
details { border-top: 1px solid var(--line); padding: 0.95rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 0.6rem 0 0; color: var(--soft); }
.button { display: inline-block; margin: 0.4rem 0 0.2rem; padding: 0.75rem 1.5rem; border-radius: 99px; background: var(--button); color: var(--button-ink); font-weight: 750; text-decoration: none; }

footer { margin-top: 5rem; border-top: 1px solid var(--line); padding: 2rem 1.25rem 3rem; color: var(--soft); font-size: 0.88rem; text-align: center; }
footer p { margin: 0.35rem 0; }

/* ---------- The front page: always night, so the city glows. ---------- */
.home { color-scheme: dark; --ink: #f5f1e8; --soft: #a3a9c6; --paper: #05060f; --card: #11142b; --line: #1f2444; --link: #ffb394; }
.home h2 { font-size: clamp(2.3rem, 6.4vw, 4.8rem); font-weight: 640; }
.bar { position: sticky; top: 0; z-index: 20; background: rgb(5 6 15 / 0.72); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.bar nav { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.bar a { color: inherit; }
.soon { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 99px; background: #f5f1e8; color: #0b0e22; font-weight: 750; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.bar .soon { color: #0b0e22; opacity: 1; }
.glow { background: linear-gradient(100deg, #ffd9a0, #ff9d7c 35%, #d58ad0 65%, #8fa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0 0 0.9rem; font-weight: 750; font-size: 1.05rem; color: #ffb394; }
.lede { margin: 1.2rem auto 0; max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--soft); }
.center { text-align: center; }

.phone { position: relative; width: 17rem; max-width: 100%; margin: 0 auto; padding: 8px; border-radius: 46px; background: #0a0b10; box-shadow: 0 0 0 2px #5d6070, 0 0 0 5px #14161f, 0 40px 80px -30px rgb(90 80 200 / 0.55); }
.screen { position: relative; aspect-ratio: 519 / 1130; border-radius: 38px; overflow: hidden; background: #11142b; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; z-index: 2; top: 17px; left: 50%; width: 27%; height: 24px; transform: translateX(-50%); border-radius: 99px; background: #000; }

.hero { overflow: hidden; padding: 5rem 1.25rem 0; text-align: center; background: radial-gradient(90% 60% at 50% 88%, rgb(232 145 111 / 0.28), transparent 70%), radial-gradient(70% 50% at 50% 40%, rgb(88 72 170 / 0.28), transparent 70%); }
.hero h1 { font-size: clamp(3rem, 10.5vw, 8rem); font-weight: 660; line-height: 0.98; }
.hero .soon { margin-top: 1.8rem; font-size: 1rem; padding: 0.65rem 1.4rem; }
.hero .phone { margin-top: 3.5rem; width: min(21rem, 78vw); }

.statement { max-width: 56rem; margin: 0 auto; padding: 11rem 1.25rem; font: 600 clamp(1.7rem, 4.2vw, 3rem)/1.28 Fraunces, serif; letter-spacing: -0.01em; }
.statement span { transition: opacity 0.25s; }
.motion .statement span { opacity: 0.14; }
.motion .statement span.lit { opacity: 1; }

/* Layer by layer */
.build { padding: 4rem 1.25rem; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.stack { --h: min(68svh, 40rem); position: relative; height: var(--h); width: calc(var(--h) * 402 / 874); }
.layers { position: absolute; inset: 0; transform-style: preserve-3d; }
.sheetlayer { position: absolute; inset: 0; border-radius: calc(var(--h) * 0.06); overflow: hidden; }
.sheetlayer img { width: 100%; height: 100%; }
.frame { position: absolute; inset: -8px; border-radius: calc(var(--h) * 0.06 + 8px); border: 8px solid #0a0b10; box-shadow: 0 0 0 2px #5d6070, 0 40px 80px -30px rgb(90 80 200 / 0.55); pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; max-width: 26rem; text-align: center; }
.steps li { margin-bottom: 1.6rem; }
.steps h3 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 640; margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--soft); font-size: 1.1rem; }

/* One day */
.day { padding: 7rem 1.25rem 3rem; }
.viewer { max-width: 70rem; margin: 2.5rem auto 0; }
.viewer canvas { display: none; width: 100%; aspect-ratio: 16 / 10; border-radius: 28px; background: #11142b; }
.stills { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.stills img { border-radius: 20px; width: 100%; height: auto; }
.readout { display: none; }
.note { text-align: center; color: #7f86a8; font-size: 0.82rem; margin: 0.4rem 0 0; }

/* Features beside a phone that stays put */
.tour { max-width: 62rem; margin: 0 auto; padding: 6rem 1.25rem 0; }
.beat { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 3rem 0; text-align: center; }
.beat h3 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 640; margin-bottom: 0.8rem; }
.beat p { margin: 0 auto; max-width: 24rem; color: var(--soft); font-size: 1.15rem; }
.holder { display: none; }

/* Four cities */
.cities { padding: 8rem 1.25rem 0; text-align: center; }
.cities .phone { margin-top: 2.5rem; width: min(18rem, 76vw, max(12rem, 26svh)); }
.cities .screen { aspect-ratio: 402 / 874; }
.picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.picker button { border: 1px solid var(--line); border-radius: 99px; padding: 0.6rem 1.2rem; background: transparent; color: var(--ink); font: 700 0.95rem Figtree, sans-serif; cursor: pointer; }
.picker button[aria-pressed="true"] { background: #f5f1e8; border-color: #f5f1e8; color: #0b0e22; }
.blurb { min-height: 1.6em; margin: 1.1rem 0 0; color: var(--soft); }
.cities .screen img { transition: opacity 0.5s; opacity: 0; }
.cities .screen img.on { opacity: 1; }

/* Details */
.details { max-width: 68rem; margin: 0 auto; padding: 9rem 1.25rem 0; }
.bento { display: grid; gap: 1rem; margin-top: 2.5rem; grid-template-columns: repeat(6, 1fr); }
.tile { grid-column: span 2; background: linear-gradient(160deg, #171b3a, #0e1125); border: 1px solid var(--line); border-radius: 30px; padding: 2rem; }
.tile.broad { grid-column: span 3; }
.tile h3 { font-size: 1.75rem; font-weight: 640; margin-bottom: 0.7rem; }
.tile p { margin: 0; color: var(--soft); }
.big { display: block; margin-bottom: 1.4rem; font: 680 clamp(3rem, 6vw, 4.6rem)/1 Fraunces, serif; }
@media (max-width: 860px) { .tile, .tile.broad { grid-column: span 3; } }
@media (max-width: 560px) { .tile, .tile.broad { grid-column: span 6; } }

.closing { padding: 10rem 1.25rem 8rem; text-align: center; background: radial-gradient(60% 45% at 50% 52%, rgb(232 145 111 / 0.22), transparent 70%); }
.closing img { width: 108px; height: 108px; margin: 0 auto 1.8rem; border-radius: 26px; box-shadow: 0 24px 50px -16px rgb(255 157 124 / 0.55); }
.closing .soon { margin-top: 2rem; font-size: 1rem; padding: 0.65rem 1.4rem; }
.home footer { margin-top: 0; }

/* ---------- Scroll storytelling. Only when the visitor has not asked for less motion. ---------- */
.motion .rise { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .rise.seen { opacity: 1; transform: none; }

.motion .build { height: 620vh; padding: 0; }
.motion .build .stage { position: sticky; top: 0; height: 100svh; justify-content: center; gap: 1.2rem; overflow: hidden; padding: 3.5rem 1.25rem 1rem; }
.motion .stack { --h: min(56svh, 36rem); perspective: 1800px; }
.motion .layers { will-change: transform; }
.motion .sheetlayer { box-shadow: inset 0 0 0 1px rgb(255 255 255 / var(--edge, 0)); will-change: transform, opacity; backface-visibility: hidden; }
.motion .steps { position: relative; width: 100%; height: 8.5rem; }
.motion .steps li { position: absolute; inset: 0 0 auto; margin: 0; opacity: 0; transform: translateY(18px); transition: opacity 0.35s, transform 0.35s; }
.motion .steps li.on { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .motion .build .stage { flex-direction: row; justify-content: center; gap: 10rem; }
  .motion .stack { --h: min(74svh, 42rem); }
  .motion .steps { width: 22rem; text-align: left; height: 12rem; }
}

.motion .day { height: 520vh; padding: 0; }
.motion .day .pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: safe center; padding: 4rem 1.25rem 0.5rem; overflow: hidden; }
.motion .day h2 { font-size: clamp(1.8rem, min(5.5vw, 5.8svh), 4rem); }
.motion .viewer { width: min(70rem, 100%, calc(50svh * 1.6)); margin: 1.2rem auto 0; }
.motion .viewer canvas { display: block; }
.motion .stills { display: none; }
.motion .readout { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0.3rem 1.5rem; margin-top: 0.8rem; }
.clock { font: 640 clamp(1.8rem, min(5vw, 6svh), 3.2rem)/1 Fraunces, serif; font-variant-numeric: tabular-nums; min-width: 6.4em; }
.sky-now { margin: 0; text-align: right; color: var(--soft); font-weight: 700; }
.track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #ffd9a0, #ff9d7c, #d58ad0, #8fa8ff); }
.caption { grid-column: 1 / -1; margin: 0.2rem 0 0; min-height: 1.8em; text-align: center; font-size: 1.15rem; }
@media (max-width: 700px) { .caption { min-height: 3.2em; } }
@media (max-width: 700px) {
  .motion .viewer { width: 100%; }
  .motion .viewer canvas { aspect-ratio: auto; height: 48svh; }
}

@media (min-width: 860px) {
  .motion .tour { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
  .motion .beat { min-height: 88vh; justify-content: center; align-items: flex-start; text-align: left; padding: 0; opacity: 0.18; transition: opacity 0.4s; }
  .motion .beat.on { opacity: 1; }
  .motion .beat p { margin: 0; }
  .motion .beat .phone { display: none; }
  .motion .holder { display: block; }
  .motion .holder > div { position: sticky; top: calc(50svh - 19rem + 1.5rem); height: 38rem; }
  .motion .holder .phone { width: 17.4rem; }
  .motion .holder img { opacity: 0; transform: scale(1.06); transition: opacity 0.55s, transform 0.8s; }
  .motion .holder img.on { opacity: 1; transform: none; }
}
