/* Habitage v2 — one evening turning into dawn (see ART_DIRECTION.md).
   The page background is a living sky canvas (#sky) painted by site.js; every
   section sits on it with no opaque ground of its own. */
:root {
  --night: #0a0d1c; --violet: #2a1e5e; --rose: #c07aa0; --amber: #f3b27a; --cream: #fff1d8;
  --lamp: #eadbc3; --ink: #f6eee2; --ink-soft: rgba(246, 238, 226, .74); --ink-faint: rgba(246, 238, 226, .5);
  --glass: rgba(246, 238, 226, .08); --glass-line: rgba(246, 238, 226, .16);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Nunito", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 8px; }

/* The sky is sized to the LARGE viewport (lvh), not inset:0 / 100%: on iOS Safari a
   fixed inset:0 box resizes whenever the toolbar shows or hides, which stretched
   the canvas mid-scroll and made the stars and aurora jump. 100lvh never changes. */
#sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }

h1, h2 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; color: #fff6e8; }
h1 { font-size: clamp(44px, 7.4vw, 96px); }
h2 { font-size: clamp(36px, 5.2vw, 68px); margin-bottom: 18px; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.measure { max-width: 40ch; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); opacity: .8; margin-bottom: 14px; }
.wrap { padding-inline: var(--gutter); max-width: 1240px; margin-inline: auto; }
section { position: relative; }

/* reveal: visible at rest; eased in from a small offset when JS marks it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 14px;
  transition: background 600ms var(--ease), backdrop-filter 600ms var(--ease), transform 500ms var(--ease);
}
.nav.tuck { transform: translateY(-110%); }
.nav.solid { background: rgba(10, 13, 28, .42); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a, .nav-cta { text-decoration: none; color: var(--ink-soft); transition: color 300ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 15px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── phone frame ── */
/* The SCREEN carries the recordings' exact aspect (1290×2796, iPhone 14 Pro Max)
   so footage fills it edge to edge — no crop, no letterbox. The bezel is a
   uniform 3.2% padding around it; the outer radius = screen radius + bezel. */
.phone {
  position: relative; width: 100%; height: auto;
  padding: 2.2%; border-radius: 14.4% / 6.83%; /* modern iPhone Pro bezel (~2.2% of width); outer radius = screen radius + bezel */
  background: linear-gradient(145deg, #2a2838, #0c0c14 40%, #1b1a26);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -20px rgba(4, 4, 16, .7), 0 0 90px -30px rgba(234, 219, 195, .35);
}
.screen { position: relative; width: 100%; aspect-ratio: 1290 / 2796; border-radius: 12.8% / 5.9%; overflow: hidden; background: #050610; }
.screen video, .screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone.island .screen::after { /* the Dynamic Island the screen recordings don't include */
  content: ""; position: absolute; left: 30.6%; width: 38.8%; top: 1.57%; height: 3.43%; border-radius: 999px; background: #000; z-index: 2;
}

/* stacked videos that cross-fade (journeys, home window, crew, cinema) */
.stack > video, .screen > video[data-t], .window-frame > video, .cinema-frame > video, .screen > .jv {
  opacity: 0; transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}
.screen > video.on, .window-frame > video.on, .cinema-frame > video.on { opacity: 1; }

/* ── 1 · hero ── */
.hero { min-height: 100svh; display: grid; align-items: end; padding: 0 var(--gutter) clamp(56px, 11vh, 120px); }
/* the film dissolves into the sky (a mask), instead of ending on a flat navy
   floor that met the sky in a visible seam once the hero scrolled up */
.hero-film { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); }
.hero-film video { width: 100%; height: 100%; object-fit: cover; }
.hero-film::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,28,.55) 0%, rgba(10,13,28,0) 22%, rgba(10,13,28,0) 48%, rgba(10,13,28,.72) 82%, var(--night) 100%); }
.hero-copy { position: relative; max-width: 760px; }
.lede { font-size: clamp(20px, 2.2vw, 26px); color: var(--lamp); margin: 18px 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px 11px 16px; border-radius: 999px;
  background: rgba(246, 238, 226, .1); border: 1px solid var(--glass-line); font-weight: 600; font-size: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.store svg { width: 19px; height: 19px; fill: currentColor; }
.fine { font-size: 14px; color: var(--ink-faint); margin-top: 14px; }

/* ── 2 · meet Aurel ── */
.meet { display: grid; align-items: center; justify-items: center; gap: 24px; padding: 12vh var(--gutter); max-width: 1240px; margin: 0 auto; }
.meet-stage { width: min(100%, 520px); aspect-ratio: 4 / 5; max-height: 76vh; cursor: pointer; }
.meet-copy { max-width: 440px; }
.meet-copy p { font-size: 20px; }
.hint { font-size: 15px !important; color: var(--ink-faint); }
@media (min-width: 900px) { .meet { grid-template-columns: minmax(0, 540px) minmax(0, 440px); gap: 56px; justify-content: center; } }

/* ── sticky scroll stages (journeys, days, isles) ── */
.journeys { height: calc(var(--steps) * 72vh + 100vh); }
.days { height: 360vh; }
.isles { height: 300vh; }
.sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }

.journeys .sticky, .days .sticky { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 6vw, 96px); padding: 72px var(--gutter) 24px; max-width: 1240px; margin: 0 auto; }
.phone-slot { display: grid; justify-items: center; gap: 14px; }
.phone-slot .phone { width: min(34vh * 1, 330px); width: clamp(220px, calc((100svh - 150px) * 0.4614), 360px); }
.phone-caption { font-size: 15px; color: var(--ink-faint); margin: 0; min-height: 1.5em; }

.journey-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.journey-list button {
  all: unset; box-sizing: border-box; display: grid; gap: 2px; width: 100%; cursor: pointer; padding: 10px 14px; border-radius: 16px;
  transition: background 700ms var(--ease), opacity 700ms var(--ease); opacity: .5;
}
.journey-list b { font-weight: 600; font-size: 20px; color: var(--ink); }
.journey-list span { font-size: 15px; color: var(--ink-soft); max-height: 0; overflow: hidden; transition: max-height 700ms var(--ease); }
.journey-list li.on button { opacity: 1; background: var(--glass); }
.journey-list li.on span { max-height: 3em; }
.journey-list button:focus-visible { outline: 2px solid var(--lamp); }
/* the journey that leaves glides out left; the one arriving glides in from the right */
.screen > .jv { transform: translateX(14%) scale(1.02); }
.screen > .jv.on { transform: none; }
.screen > .jv.gone { transform: translateX(-14%) scale(1.02); }

/* ── 4 · home ── */
.home { padding: 16vh 0 10vh; }
.home-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 56px); padding: 40px var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.window { margin: 0; }
.window-frame { position: relative; aspect-ratio: 1290 / 820; border-radius: 28px; overflow: hidden; background: #0d1030;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 40px 90px -30px rgba(3, 3, 14, .8); }
.window-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.window figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
/* the line swaps text on every time switch: it owns a fixed box so nothing around it moves */
#clockLine { display: block; min-height: 1.6em; line-height: 1.6; }
.times, .seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.times button, .seg button { border: 0; background: none; cursor: pointer; padding: 6px 13px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); text-align: center; transition: background 500ms var(--ease), color 500ms var(--ease); }
.times button.on, .seg button.on { background: rgba(246, 238, 226, .16); color: var(--ink); }
.phone-home { width: clamp(200px, 22vw, 300px); }

/* ── 5 · days ── */
.day-count { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.day-count span { font-size: 20px; color: var(--ink-soft); }
.day-count b { font-size: clamp(64px, 9vw, 120px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff6e8; min-width: 2ch; }
.path { list-style: none; padding: 0; margin: 12px 0 26px; display: grid; grid-template-columns: repeat(15, 14px); gap: 10px 8px; }
.path li { width: 14px; height: 14px; border-radius: 50%; background: rgba(246, 238, 226, .14); transition: background 500ms var(--ease), box-shadow 500ms var(--ease); }
.path li.lit { background: #ffd7a0; box-shadow: 0 0 12px 2px rgba(255, 196, 120, .55); }

/* ── 6 · isles ── */
.isles .sticky { align-content: center; gap: 28px; padding-top: 72px; }
.isles-copy { width: 100%; }
.isles-frame { position: relative; width: min(100% - 2 * var(--gutter), 1240px); margin: 0 auto; aspect-ratio: 16 / 9; max-height: 64svh; border-radius: 28px; overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(3, 3, 14, .85), 0 0 0 1px rgba(255,255,255,.06) inset; }
.isles-frame canvas { width: 100%; height: 100%; object-fit: cover; }
.quiet-link { display: inline-flex; gap: 8px; text-decoration: none; font-weight: 600; color: var(--lamp); padding: 8px 0; border-bottom: 1px solid rgba(234, 219, 195, .3); transition: border-color 400ms var(--ease); }
.quiet-link:hover { border-color: var(--lamp); }
@media (min-width: 900px) {
  .isles .sticky { grid-template-columns: 1fr; }
  .isles-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 16vh; pointer-events: none; }
  .isles-copy a { pointer-events: auto; }
  .isles-copy > * { max-width: 30ch; }
  .isles-frame { max-height: none; width: 100%; height: 100svh; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
  .isles-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(10,13,28,.7) 0%, rgba(10,13,28,.2) 38%, rgba(10,13,28,0) 60%),
                linear-gradient(180deg, var(--night-edge, rgba(20,16,50,1)) 0%, rgba(20,16,50,0) 14%, rgba(20,16,50,0) 86%, var(--night-edge, rgba(20,16,50,1)) 100%); }
}

/* ── 7 · worlds ── */
.worlds { padding: 18vh 0 10vh; }
.cinema { padding: 40px var(--gutter) 0; max-width: 1400px; margin: 0 auto; }
.cinema-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #0d1030;
  box-shadow: 0 50px 110px -40px rgba(3, 3, 14, .85), 0 0 0 1px rgba(255,255,255,.06) inset; }
.cinema-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema-frame::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 8, 24, .6)); pointer-events: none; }
.cinema-title { position: absolute; z-index: 2; left: clamp(18px, 3vw, 36px); bottom: clamp(14px, 3vw, 30px); margin: 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: #fff6e8; letter-spacing: -0.01em; transition: opacity 600ms var(--ease); }
.cinema-title span { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); opacity: .85; font-weight: 600; margin-bottom: 2px; }
.chapters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.chapters button { border: 0; background: none; cursor: pointer; text-align: left; padding: 10px 2px 0; font-size: 14px; color: var(--ink-faint); position: relative; transition: color 500ms var(--ease); }
.chapters button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(246, 238, 226, .16); }
.chapters button i { position: absolute; left: 0; top: 0; height: 2px; width: 0; border-radius: 2px; background: var(--lamp); }
.chapters button.on { color: var(--ink); }
@media (max-width: 800px) {
  .cinema-frame { aspect-ratio: 4 / 5; }
  .chapters button { font-size: 0; padding-top: 6px; }
}

/* ── 8 · sightings ── */
.sightings { padding: 18vh 0 10vh; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); padding: 40px var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.tile { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: #0d1030; box-shadow: 0 30px 70px -30px rgba(3, 3, 14, .8); }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 14px; bottom: 12px; right: 56px; font-size: 14px; font-weight: 600; color: #fff6e8; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.sound { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-line); cursor: pointer;
  background: rgba(10, 13, 28, .35) center / 18px no-repeat; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6eee2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E"); }
.sound[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6eee2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
@media (max-width: 800px) {
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: center; }
}

/* ── 9 · together ── */
.together { padding: 18vh 0 12vh; }
.trio { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: center; gap: clamp(18px, 4vw, 64px); padding: 48px var(--gutter) 0; }
.trio figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.trio .phone { width: clamp(190px, 19vw, 270px); }
.trio .lead .phone { width: clamp(220px, 23vw, 320px); }
.trio figcaption { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.trio figure:first-child { transform: translateY(40px); }
.trio figure:last-child { transform: translateY(-40px); }
.js .trio figure.reveal:first-child:not(.in) { transform: translateY(58px); }
.js .trio figure.reveal:last-child:not(.in) { transform: translateY(-22px); }
@media (max-width: 800px) {
  .trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 12px; }
  .trio::-webkit-scrollbar { display: none; }
  .trio figure { scroll-snap-align: center; transform: none !important; }
  .trio .phone, .trio .lead .phone { width: 100%; }
  .trio .lead { order: -1; }
}

/* ── 10 · dawn ── */
.dawn { min-height: 100svh; display: grid; justify-items: center; align-content: center; text-align: center; padding: 10vh var(--gutter) 6vh; gap: 8px; }
.dawn-stage { width: min(78vw, 360px); aspect-ratio: 4 / 5; }
.dawn h2 { color: #2c1d3e; }
.dawn p { color: rgba(44, 29, 62, .78); font-size: 20px; }
.dawn .fine { font-size: 14px; color: rgba(44, 29, 62, .6); }
.dawn .stores { justify-content: center; margin-top: 10px; }
.dawn .store { color: #2c1d3e; background: rgba(255, 250, 240, .5); border-color: rgba(44, 29, 62, .16); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 26px); font-size: 14px; color: rgba(44, 29, 62, .7); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #2c1d3e; }

/* ── phone layouts ── */
@media (max-width: 800px) {
  body { font-size: 17px; }
  .journeys { height: calc(var(--steps) * 70vh + 100vh); }
  .journeys .sticky, .days .sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 12px; padding-top: 76px; }
  .journeys-copy h2, .days-copy h2 { font-size: 30px; margin-bottom: 6px; }
  .journeys-copy > p:not(.eyebrow), .days-copy .measure, .journeys-copy .eyebrow, .days-copy .eyebrow { display: none; }
  .journey-list li:not(.on) { display: none; }
  .journey-list span { max-height: 3em; }
  .journey-list b { font-size: 18px; }
  .journey-list button { padding: 0; opacity: 1; background: none !important; }
  .phone-slot .phone { width: min(62vw, calc((100svh - 250px) * .4614)); }
  .phone-caption { display: none; }
  .days-copy { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 16px; }
  .days-copy h2 { grid-column: 1 / -1; }
  .day-count { margin: 0; }
  .day-count b { font-size: 56px; }
  .path { grid-template-columns: repeat(15, 8px); gap: 6px 5px; margin: 0 0 8px; }
  .path li { width: 8px; height: 8px; }
  .home-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .window { width: 100%; }
  .phone-home { width: 62vw; }
  .isles { height: 260vh; }
  .isles-frame { aspect-ratio: 4 / 5; max-height: 58svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 1ms !important; animation: none !important; }
}
/* Together sits where the sky warms to rose: keep its captions legible */
.trio figcaption { color: #fff6e8; text-shadow: 0 1px 14px rgba(40, 20, 60, .55); }
.together h2, .together p { text-shadow: 0 1px 18px rgba(40, 20, 60, .35); }
/* inside Aurel's Home: two phones after the waking scrub */
.isles-more { padding: 12vh var(--gutter) 4vh; }
.pair { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: clamp(28px, 7vw, 120px); }
.pair figure { margin: 0; display: grid; justify-items: center; gap: 16px; text-align: center; }
.pair .phone { width: clamp(220px, 22vw, 300px); }
.pair figure:last-child { transform: translateY(64px); }
.pair figcaption { display: grid; gap: 4px; max-width: 28ch; }
.pair figcaption b { font-weight: 600; font-size: 19px; color: var(--ink); }
.pair figcaption span { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 800px) {
  .pair { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 66%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .pair::-webkit-scrollbar { display: none; }
  .pair figure { scroll-snap-align: center; transform: none !important; }
  .pair .phone { width: 100%; }
}

/* ═════════ phones: the art-directed pass ═════════ */
.jdots, .dots { display: none; }
@media (max-width: 800px) {
  :root { --gutter: clamp(18px, 5.2vw, 28px); }
  h1 { font-size: clamp(40px, 11.6vw, 52px); }
  h2 { font-size: clamp(31px, 8.6vw, 40px); margin-bottom: 14px; }
  .eyebrow { font-size: 13px; margin-bottom: 10px; }
  p { font-size: 17px; line-height: 1.58; }
  .measure { max-width: 34ch; }

  /* hero: copy sits on a deeper floor so it never fights the isles */
  .hero { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 44px); }
  .hero-film::after { background: linear-gradient(180deg, rgba(10,13,28,.5) 0%, rgba(10,13,28,0) 18%, rgba(10,13,28,0) 42%, rgba(10,13,28,.78) 72%, var(--night) 100%); }
  .lede { font-size: 21px; margin: 14px 0 22px; }
  .store { min-height: 46px; padding: 12px 20px 12px 16px; }

  /* Aurel: bigger, and the copy tucks under his feet */
  .meet { padding: 8vh var(--gutter) 10vh; gap: 4px; }
  .meet-stage { width: min(100%, 440px); max-height: 62svh; }
  .meet-copy p { font-size: 18px; }

  /* journeys: title → big centred phone → the journey's name + line + dots */
  .journeys .sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "title" "phone" "list";
    align-content: stretch; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 72px) var(--gutter) 22px; }
  .journeys-copy { display: contents; }
  .journeys-copy h2 { grid-area: title; font-size: clamp(27px, 7.4vw, 32px); margin: 0; }
  .journeys .phone-slot { grid-area: phone; align-self: center; }
  .journeys .phone-slot .phone { width: min(70vw, calc((100svh - 300px) / 2.3)); }
  .journey-list { grid-area: list; display: grid; margin: 0; gap: 0; min-height: 5.1em; align-content: start; text-align: center; }
  .journey-list span { max-width: 32ch; }
  .journey-list li:not(.on) { display: none; }
  .journey-list b { font-size: 19px; }
  .journey-list span { max-height: none; font-size: 15px; }
  .journey-list button { justify-items: center; }
  .jdots { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
  .jdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246,238,226,.22); transition: width 600ms var(--ease), background 600ms var(--ease); }
  .jdots i.on { width: 18px; border-radius: 3px; background: var(--lamp); }

  /* home: controls first (full-width segmented), a fixed two-line caption, then the phone */
  .home { padding: 12vh 0 6vh; }
  .home-stage { padding-top: 26px; gap: 34px; }
  .window-frame { border-radius: 22px; }
  .window figcaption { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .times { order: -1; width: 100%; }
  .times button { min-height: 40px; padding: 8px 0; font-size: 15px; }
  #clockLine { min-height: 3.2em; font-size: 14.5px; line-height: 1.6; }
  .phone-home { width: min(68vw, 300px); }

  /* days: phone as big as the stage allows */
  .days .sticky { padding-bottom: 20px; }
  .days .phone-slot .phone { width: min(70vw, calc((100svh - 260px) / 2.3)); }

  /* swipe rows: centred first card, peeking neighbours, dots */
  .tiles, .pair, .trio { grid-auto-columns: var(--card) !important; padding-inline: calc((100vw - var(--card)) / 2) !important; scroll-padding-inline: calc((100vw - var(--card)) / 2); gap: 14px; margin-inline: 0; max-width: none; overscroll-behavior-x: contain; }
  .tiles { --card: 74vw; padding-top: 30px; }
  .pair { --card: 64vw; padding-top: 6px; }
  .trio { --card: 64vw; padding-top: 34px; }
  .isles-more { padding-inline: 0; }
  .tile { border-radius: 22px; }
  .sound { width: 44px; height: 44px; right: 8px; bottom: 8px; }
  .tile figcaption { right: 60px; bottom: 16px; }
  .dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246,238,226,.25); transition: width 500ms var(--ease), background 500ms var(--ease); }
  .dots i.on { width: 18px; border-radius: 3px; background: var(--lamp); }
  .dawn-dots i { background: rgba(44,29,62,.2); }
  .pair figcaption b { font-size: 18px; }
  .pair figcaption span { font-size: 14.5px; }
  .trio figcaption { font-size: 15px; }

  /* worlds: taller 4:5 cinema, chapter tabs you can actually hit */
  .worlds, .sightings, .together { padding: 12vh 0 6vh; }
  .cinema { padding-top: 26px; }
  .cinema-frame { border-radius: 22px; }
  .chapters { gap: 6px; margin-top: 6px; }
  .chapters button { min-height: 36px; padding: 16px 0 0; font-size: 0; }
  .chapters button::before, .chapters button i { top: 16px; height: 3px; }

  /* isles */
  .isles .sticky { gap: 20px; padding-top: calc(env(safe-area-inset-top, 0px) + 70px); }
  .isles-frame { border-radius: 22px; }

  /* dawn */
  .dawn { padding-top: 6vh; }
  .dawn-stage { width: min(82vw, 380px); }
  .foot { justify-content: center; text-align: center; }
}
@media (max-width: 370px) {
  .journey-list span { font-size: 14px; }
  .path { grid-template-columns: repeat(15, 7px); gap: 5px 4px; }
  .path li { width: 7px; height: 7px; }
}


/* ═════════ phones: the journeys stage is the phone's ═════════
   The headline scrolls in above the stage (.stage-intro); inside the stage only
   the journey's name + line sit on top, the phone takes every remaining pixel,
   and the nav tucks away while scrolling down (site.js). Budget under the phone:
   paddings 28 + name/line 70 + gaps 22 + dots 6 ≈ 126 → 128. */
.stage-intro { display: none; }
@media (max-width: 800px) {
  .stage-intro { display: block; padding: 16vh var(--gutter) 2vh; }
  .stage-intro h2 { margin-bottom: 12px; }
  .journeys .sticky { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "list" "phone"; gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .journeys-copy h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .journey-list { min-height: 4.4em; align-content: end; }
  .journeys .phone-slot { gap: 10px; align-self: start; }
  .journeys .phone-slot .phone { width: min(86vw, calc((100svh - 128px) / 2.116)); }
}

/* the Day 1 → 30 stage, same contract: a compact Day counter + the 30 path
   lights on top, the phone takes the rest (budget ≈ 118px). */
@media (max-width: 800px) {
  .days .sticky { grid-template-rows: auto minmax(0, 1fr); gap: 10px; align-content: stretch;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .days-copy h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .days-copy { align-items: center; }
  .day-count b { font-size: 40px; }
  .day-count span { font-size: 17px; }
  .days .phone-slot { align-self: start; }
  .days .phone-slot .phone { width: min(86vw, calc((100svh - 118px) / 2.116)); }
}

/* the intros scroll by before each stage pins — give the stages that distance
   back so the scrub dwell is unchanged */
@media (max-width: 800px) {
  .journeys { height: calc(var(--steps) * 70vh + 145vh); }
  .days { height: 405vh; }
}

/* ── Home Screen widgets — real screenshots (IMG_9049–9058), cut out with their
   own rounded corners; the day/night pair cross-fades like the app's sky ── */
.widgets { padding: 18vh 0 10vh; }
.wboard { --w: clamp(300px, 30vw, 380px); display: grid; grid-template-columns: var(--w) var(--w);
  grid-template-rows: auto auto; gap: calc(var(--w) * .0586) calc(var(--w) * .06); justify-content: center; margin-top: 48px; }
.wslot { position: relative; filter: drop-shadow(0 26px 44px rgba(4, 4, 16, .55)); }
.wslot img { display: block; width: 100%; height: auto; transition: opacity 1100ms var(--ease); }
.wslot .w-night { position: absolute; inset: 0; }
.wboard.day .w-night { opacity: 0; }
.wboard:not(.day) .w-day { opacity: 0; }
.w-large { grid-row: 1 / span 2; }
.seg { grid-template-columns: repeat(2, 1fr); display: inline-grid; }
.wcap { display: flex; justify-content: center; margin-top: 30px; }
@media (max-width: 800px) {
  .widgets { padding: 12vh 0 6vh; }
  .wboard { --w: min(86vw, 380px); grid-template-columns: var(--w); gap: 18px; margin-top: 30px; }
  .w-large { grid-row: auto; }
  .w-medium { display: none; } /* phones: the large Today + the crew — no repeats */
  .seg button { min-height: 40px; padding: 8px 26px; font-size: 15px; }
}


/* ── phones never stretch. In a row of cards (the Aurel's Home pair, the Together
   trio) a shorter caption let the grid stretch that card — and the extra height
   landed in the phone as a thick bottom bezel. Phones size to their screen only. */
.phone { align-self: start; }
.pair figure, .trio figure { align-content: start; }

/* ── swipe rows keep their shadows. A horizontally scrolling row clips vertically,
   so the phones' drop shadow + glow (≈60px above, ≈110px below) was cut off in a
   hard, faintly visible line across the section while swiping. Give the rows room
   for the shadow and take the same space back with negative margins (layout unchanged). */
@media (max-width: 800px) {
  .tiles { padding-top: 94px; margin-top: -64px; padding-bottom: 118px; margin-bottom: -110px; }
  .pair  { padding-top: 70px; margin-top: -64px; padding-bottom: 118px; margin-bottom: -110px; }
  .trio  { padding-top: 98px; margin-top: -64px; padding-bottom: 122px; margin-bottom: -110px; }
}
