/* The home page: the hero's moment of writing, then one painted day under it. What it is (noon and
   afternoon), how it works (dusk), the company and the invitation (night), and the footer. The page
   has one light, the scroll's: the day ends once, at night, and everything after it stays in that
   night. */

/* The hero's claim breaks between its two sentences, never inside one. On the narrowest phones the
   longer line under it runs on without its break. */
.hero .one-liner span { white-space: nowrap; }
@media (max-width: 350px) { .home .sub-first { display: inline; } }

/* --hero-end is the colour the hero's painting fades into at its foot where there is no moving sky
   to fade into (the stills, which have no moving sky): by day it is the morning painting's top edge, so
   the morning rises out of it with no paper between. --dawn is shown before the painting decodes. */
:root { --hero-end: #C2E0F5; --dawn: #B9DFFA; --night-ground: #141F40; --seam: 96px;
  --halo: rgba(249,250,247,.86);
  /* A window lies on the painting as a watercolour object lies on paper: a wide, faint pool of ink
     below it, never a glow, with the window's own edge left crisp. */
  --paint-shadow: 0 22px 40px -12px rgba(32,42,46,.30), 0 48px 96px -24px rgba(44,62,84,.30), 0 90px 140px -50px rgba(44,62,84,.22); }
 [data-light="night"], .day-end, .site-footer {
  --halo: rgba(20,31,64,.8);
  --paint-shadow: 0 24px 44px -12px rgba(2,8,30,.6), 0 52px 100px -24px rgba(2,8,30,.55), 0 96px 150px -50px rgba(2,8,30,.4);
}
/* The two worlds' tokens: the day's for the day's stops, the night's for the night and after. */
.day, [data-light="day"] {
  --w-ground: #EEEBE1; --w-sheet: #F9FAF7; --w-well: #E4E1D6;
  --w-ink: #202A2E; --w-ink-2: rgba(32,42,46,.76); --w-ink-3: rgba(32,42,46,.70);
  --w-hair: rgba(32,42,46,.14); --w-line: rgba(32,42,46,.26); --w-edge: rgba(32,42,46,.46);
  --w-ring: #3F7AA5; --halo: rgba(249,250,247,.86);
  --w-float: 0 0 0 .5px rgba(32,42,46,.22), 0 2px 2px -1px rgba(32,42,46,.08), 0 12px 24px -12px rgba(32,42,46,.35);
  --paint-shadow: 0 22px 40px -12px rgba(32,42,46,.30), 0 48px 96px -24px rgba(44,62,84,.30), 0 90px 140px -50px rgba(44,62,84,.22);
  color-scheme: light;
}
[data-light="night"], .day-end, .site-footer {
  --w-ground: #141F40; --w-sheet: #1E2E5C; --w-well: #0E1633;
  --w-ink: #EEEFE9; --w-ink-2: rgba(238,239,233,.76); --w-ink-3: rgba(238,239,233,.70);
  --w-hair: rgba(238,239,233,.16); --w-line: rgba(238,239,233,.32); --w-edge: rgba(238,239,233,.50);
  --w-ring: #9CC8E8;
  --w-float: 0 0 0 .5px rgba(238,239,233,.42), 0 2px 2px -1px rgba(0,0,0,.4), 0 16px 32px -12px rgba(2,8,30,.8);
  --w-paper-btn: #2B3E74; --w-paper-btn-hover: #34488A; --w-paper-seat: #060B1F;
  color-scheme: dark;
}

/* Words set on the painting carry a soft halo of the sky they sit on. */
.said, .sheet-title, .beat-line, .beat-label, .cue, .step-line, .step-note, .company-title, .company-line { text-shadow: 0 0 1px var(--halo), 0 0 12px var(--halo); }

/* Section headings with the drawn rule under them; day.js draws each rule once as its band arrives. */
.sheet-title { margin: 0; font: 400 clamp(36px, 3.6vw, 52px)/1.1 "Bree Serif", serif; letter-spacing: -.005em; color: var(--w-ink); text-wrap: balance; }
.drawn-block .heading-rule { position: static; display: block; width: min(240px, 60%); height: 8px; margin: 14px 0 0; color: var(--w-ink); }
.drawn-block .heading-rule path { stroke-width: 1.2; opacity: .7; }
.drawn-block.is-drawn .heading-rule path { stroke-dashoffset: 0; }

/* What someone said, as speech: light, lower case as they said it, after the listening mark, the
   same painted sun as the sky's (the moon by night). The painting's box is wider than its 11 px
   disc, so the margins take the difference back and the disc sits .55em from the words, centred
   on the lower-case letters. */
.said { margin: 0; max-width: 46ch; font: 300 17px/1.45 "DM Sans", sans-serif; text-wrap: balance; color: var(--w-ink); }
.said q, .cue q { quotes: "\201C" "\201D"; }
.said-mark { display: inline-block; width: 16px; height: 16px; margin: 0 calc(.55em - 2.5px) 0 -2.5px; vertical-align: -3px; background: image-set(url("assets/sky-sun.webp") 2x, url("assets/sky-sun@3x.webp") 3x) center / contain no-repeat; }
[data-light="night"] .said-mark{ background-image: image-set(url("assets/sky-moon.webp") 2x, url("assets/sky-moon@3x.webp") 3x); clip-path: circle(35.6% at 51.3% 49.5%); }
/* Every window on the page lies on the painting with the same pool of shadow. */
.hero-demo .app-window.app-window, .day .app-window.app-window { box-shadow: var(--aw-float), var(--paint-shadow); }

.hero-demo { position: relative; z-index: 1; width: min(520px, 100%); margin: 0 auto; text-align: left; }
.hero-demo .said { margin-bottom: 10px; }
/* The line hangs after its mark, so a second line starts under the first word. While listening the
   mark grows only away from the words (demo.js), so the grown sun stays clear of both lines. The
   indent is the mark's width and margins (below, and the phone size further down). */
.hero-demo .said { padding-left: calc(11px + .55em); text-indent: calc(-11px - .55em); }
.hero-demo .said > * { text-indent: 0; }
@media (max-width: 600px) { .hero-demo .said { padding-left: calc(10px + .55em); text-indent: calc(-10px - .55em); } }
/* Where the replay arrow cannot stand in the margin beside the mark (demo.js puts it under the
   spoken line instead), the line leaves the arrow its 14 px above the window. */
@media (max-width: 600px) { .hero-demo .said { margin-bottom: 20px; } }

/* The day: a sticky sky behind every stop under the hero. */
.day { position: relative; isolation: isolate; color: var(--w-ink); }
.day-sky { display: none; }
.day-live .day-sky { display: block; position: sticky; top: 0; z-index: 0; height: 100vh; overflow: hidden; pointer-events: none; contain: strict; background: var(--dawn); }
/* What follows the sky slides up over it rather than the sky reaching past it, so the sticky sky
   stays inside the day and lets go of the screen exactly when the day ends. */
.day-live .day-sky + * { margin-top: -100vh; }
/* Two paintings show at most: the stop's, and the next one fading in over it. day.js sets opacity
   and visibility; until it runs the morning shows. */
.day-painting { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }
.day-painting[data-painting="morning"] { opacity: 1; visibility: visible; }
.day-painting img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The five paintings share one composition, so they share one crop: the inscribed stone in view at the right. */
.day-painting img { object-position: 75% 60%; }

/* The sun and the moon are the live site's painted marks (index.html names their source). day.js
   moves them with transform and opacity only; they wait unseen until it places them. In the
   paintings the disc is 110 of 160 px across, so the 44 px box holds a 30 px disc here and the
   32 px box a 22 px disc on phones. The sun keeps the faint bloom it is painted with; the moon
   is cut just past its edge, as the live site cuts it. */
.day-sun, .day-moon { background: image-set(url("assets/sky-sun.webp") 2x, url("assets/sky-sun@3x.webp") 3x) center / contain no-repeat; }
.day-moon { background-image: image-set(url("assets/sky-moon.webp") 2x, url("assets/sky-moon@3x.webp") 3x); clip-path: circle(35.6% at 51.3% 49.5%); }
.day-sun, .day-moon { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: 0; will-change: transform, opacity; }

/* The passage from the hero into the day. The hero's painting dissolves straight
   into the morning sky: the day starts --seam under the hero's foot, the hero stays above it, and its
   painting fades out over that height, so the two paintings meet with nothing between them. The hero
   clips sideways only, so the demo window's shadow runs on down into the morning instead of being
   cut at the hero's foot. */
:root.day-live .hero { z-index: 1; overflow: clip visible; background: linear-gradient(#e5eff3 calc(100% - var(--seam)), rgba(229,239,243,0)); }
:root.day-live .hero::after { display: none; }
:root.day-live .hero .landscape { -webkit-mask-image: linear-gradient(#000 calc(100% - var(--seam)), rgba(0,0,0,.84) calc(100% - var(--seam) * .72), rgba(0,0,0,.42) calc(100% - var(--seam) * .4), rgba(0,0,0,.1) calc(100% - var(--seam) * .14), transparent); mask-image: linear-gradient(#000 calc(100% - var(--seam)), rgba(0,0,0,.84) calc(100% - var(--seam) * .72), rgba(0,0,0,.42) calc(100% - var(--seam) * .4), rgba(0,0,0,.1) calc(100% - var(--seam) * .14), transparent); }
:root.day-live .day { margin-top: calc(-1 * var(--seam)); }
/* The night hero's blurred stand-in for its painting (worlds.css) reaches 24 px past every edge; it
   dissolves with the painting, so nothing dark runs past the hero into the morning. */
:root.day-live .hero::before { -webkit-mask-image: linear-gradient(#000 calc(100% - var(--seam) - 24px), transparent calc(100% - 24px)); mask-image: linear-gradient(#000 calc(100% - var(--seam) - 24px), transparent calc(100% - 24px)); }
:root .hero::after { background: linear-gradient(rgba(194,224,245,0), var(--hero-end)); }
/* The first heading follows the demo window's shadow, about 150 px under the window. */
:root.day-live .day-sky + .band > .band-head { padding-top: calc(var(--seam) + 96px); }

/* A stop is one moment of the day: its words and windows on its painting. */
.stop { position: relative; z-index: 1; box-sizing: border-box; color: var(--w-ink); }
/* A section's heading, on the sky as the light changes, with its section's first stop close under it,
   so no screen holds a heading over painting alone. */
.band-head { display: grid; justify-items: center; align-content: end; padding: 18vh 24px 0; text-align: center; }
.band-head + .stop { padding-top: clamp(40px, 6vh, 64px); }
.band-head + .step { align-content: start; min-height: 0; }
.band-head .heading-rule { margin: 16px auto 0; }
.band-head .sheet-title { max-width: 22ch; }
/* A heading of two sentence groups puts each on its own line where there is room for it, which also
   keeps the longer one narrow enough to stay clear of the inscribed stone at the sky's right. */
@media (min-width: 601px) { .band-head .sheet-title .line { display: block; white-space: nowrap; } .band-head .sheet-title:has(.line) { max-width: none; } }

/* What it is: a beat is an intro line, then three windows side by side, each with what was said
   above it (Clara's three) or who wrote it below it (the three people). The windows of a beat start
   on one line whatever the words above them, through the shared rows of a subgrid. */
.beat { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 12vh clamp(24px, 4vw, 64px); }
.beat-line { margin: 0; max-width: 44ch; font: 400 clamp(19px, 1.6vw, 23px)/1.45 "DM Sans", sans-serif; text-align: center; text-wrap: balance; color: var(--w-ink); }
.beat-label { margin: clamp(36px, 4vw, 56px) 0 0; font: 500 14px/1.3 "DM Sans", sans-serif; color: var(--w-ink-3); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(20px, 2.4vw, 36px); width: min(1320px, 100%); margin: 14px 0 0; padding: 0; list-style: none; }
.trio-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 12px; min-width: 0; }
.trio-item > .said { align-self: end; }
.trio-window { min-width: 0; }
.trio-window .app-window { margin: 0 auto; }
/* The cue all three people said, once and large. */
.cue { margin: 22px 0 clamp(40px, 4.4vw, 64px); max-width: 32ch; font: 300 clamp(24px, 2.4vw, 34px)/1.3 "DM Sans", sans-serif; text-align: center; text-wrap: balance; color: var(--w-ink); }
/* Its listening mark is the small one every spoken line has, a little larger for the larger words. */
.cue .said-mark { width: max(16px, .56em); height: max(16px, .56em); margin: 0 .3em 0 -.1em; vertical-align: .02em; }
/* Who wrote each reply, on a small sheet of its own, so it reads on the meadow as well as the sky. */
.who { justify-self: start; display: grid; gap: 1px; margin: 0; padding: 10px 16px 11px; border-radius: 12px; background: var(--w-sheet); box-shadow: var(--w-float); font: 400 15px/1.4 "DM Sans", sans-serif; color: var(--w-ink-2); text-shadow: none; }
.who b { font-weight: 600; font-size: 16px; color: var(--w-ink); }

/* The windows another worker draws drop into these slots (index.html names each by data-window).
   Until they do, a plain sheet with the slot's copy holds its place. Delete these two rules once
   every slot holds its window. */

/* How it works: each step is one line beside its window, the sides alternating. The line stands
   level with the window's top, in the sky, clear of the stone and the meadow. */
.step { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 560px); justify-content: center; align-content: center; align-items: start; gap: clamp(32px, 5vw, 72px); min-height: 100vh; padding: 12vh clamp(24px, 6vw, 96px); }
.step[data-side="right"] { grid-template-columns: minmax(0, 560px) minmax(0, 340px); }
.step[data-side="right"] .step-copy { order: 2; }
.step-copy { display: grid; gap: 14px; }
.step-line { margin: 0; max-width: 16ch; font: 500 clamp(28px, 2.6vw, 38px)/1.2 "DM Sans", sans-serif; letter-spacing: -.015em; text-wrap: balance; color: var(--w-ink); }
.step-note { margin: 0; max-width: 34ch; font: 400 clamp(17px, 1.3vw, 19px)/1.5 "DM Sans", sans-serif; text-wrap: pretty; color: var(--w-ink-2); }
/* A bare grid column grows to a window's 520 px min-content; minmax(0, 1fr) holds it to the step's
   width so a window shrinks to the column and its own narrow layout takes over. */
.step-show { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
/* The Notes cue sits low in its step, so as the page scrolls it crosses the lake and the hills, where
   its light words lose the sky. A wide, soft wash of paper behind it gives it the sky's ground
   there, with no edge, as the company strip's band does for the logos. The step clips sideways so the
   wash never widens the page on a phone. "Hold a key and say it." crosses the same hills and takes
   the same wash. The company's lines cross the night hills, so theirs is the night's ground. */
.step-show > .said, #speak .step-line { position: relative; isolation: isolate; }
.step-show > .said::before, #speak .step-line::before { content: ""; position: absolute; inset: -30px -56px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(249,250,247,.8), rgba(249,250,247,.66) 45%, rgba(249,250,247,.28) 75%, rgba(249,250,247,0)); }

/* The company, on the night painting: its sentence in the brand's hand, the lines, then the
   community strip, all high enough to stand on the night sky rather than the hills. */
.company { display: grid; justify-items: center; align-content: start; min-height: 100vh; padding: 14vh 0 8vh; text-align: center; }
.company-title { margin: 0 24px; max-width: 24ch; font: 400 clamp(34px, 3.6vw, 54px)/1.1 "Own Hand", "Bree Serif", serif; text-wrap: balance; color: var(--w-ink); }
.company-line { position: relative; isolation: isolate; margin: 22px 24px 0; max-width: 54ch; font: 400 clamp(17px, 1.4vw, 20px)/1.55 "DM Sans", sans-serif; text-wrap: pretty; color: var(--w-ink-2); }
.company { overflow-x: clip; }
.company-line::before { content: ""; position: absolute; inset: -30px -56px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(20,31,64,.72), rgba(20,31,64,.58) 45%, rgba(20,31,64,.24) 75%, rgba(20,31,64,0)); }
/* The strip on a soft band of the night's
   ground so the logos read over the painted water as they did on the plain night. */
.company .community-logos { width: 100%; padding-block: 56px; background: linear-gradient(rgba(20,31,64,0), rgba(20,31,64,.6) 38%, rgba(20,31,64,.6) 62%, rgba(20,31,64,0)); }
.company .logo-group li, .company .ultra-word, .company .logo-residency span { color: #b9c6da; }
.company .logo-group img, .company .logo-group .logo-harvard, .company .logo-with-name img, .company .logo-ultra img { filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .6; }
.company .logo-group .logo-inxtech, .company .logo-with-name img[src$="researchcommons.svg"], .company .logo-residency img { filter: brightness(0) invert(1); opacity: .55; mix-blend-mode: normal; }

/* The paid line: a quiet underlined link to the reservation. */
.paid-line { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--w-line); transition: color .2s, text-decoration-color .2s; }
.paid-line[href]:hover { color: var(--w-ink); text-decoration-color: currentColor; }

/* The invitation to the private alpha, on the night painting. */
.join { display: grid; place-items: center; min-height: 100vh; padding: 12vh 24px; }
.join-sheet { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; width: min(1000px, 100%); padding: clamp(28px, 4vw, 56px); overflow: hidden; border-radius: 14px; background: var(--w-sheet); box-shadow: var(--w-float), var(--paint-shadow); text-align: left; }
.join-copy p.invite-line { margin: 22px 0 30px; max-width: 420px; font: 400 clamp(18px, 1.5vw, 21px)/1.5 "DM Sans", sans-serif; color: var(--w-ink-2); text-wrap: balance; }
/* The letter runs to the sheet's right edge, as if it were lying on it. */
.join-art { display: block; margin: -28px calc(-1 * clamp(28px, 4vw, 56px)) -28px 0; }
.join-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 92%, transparent); mask-composite: intersect; }

/* The day ends once: the night painting softens into the night's ground after the invitation,
   and the footer stays in that night. */
.day-end { position: relative; z-index: 1; height: 34vh; background: linear-gradient(rgba(20,31,64,0), var(--night-ground) 92%); pointer-events: none; }

/* Without the moving sky (no JavaScript, or reduced motion) each stop is a still: its own painting,
   with no sun or moon, since a fixed spot cannot know where a stop leaves clear sky. Only these load
   the paintings this way. */
:root:not(.day-live) .stop { background: var(--dawn) 75% 60% / cover no-repeat; }
:root:not(.day-live) .day-end { background: linear-gradient(#0B1636, var(--night-ground)); }
:root:not(.day-live) .stop[data-painting="morning"] { background-image: image-set(url("assets/landscape-morning.avif") type("image/avif"), url("assets/landscape-morning.webp") type("image/webp")); }
:root:not(.day-live) .stop[data-painting="noon"] { background-image: image-set(url("assets/landscape-noon.avif") type("image/avif"), url("assets/landscape-noon.webp") type("image/webp")); }
:root:not(.day-live) .stop[data-painting="afternoon"] { background-image: image-set(url("assets/landscape-afternoon.avif") type("image/avif"), url("assets/landscape-afternoon.webp") type("image/webp")); }
:root:not(.day-live) .stop[data-painting="dusk"] { background-image: image-set(url("assets/landscape-dusk.avif") type("image/avif"), url("assets/landscape-dusk.webp") type("image/webp")); }
:root:not(.day-live) .stop[data-painting="night"] { background-color: #141F40; background-image: image-set(url("assets/landscape-night.avif") type("image/avif"), url("assets/landscape-night.webp") type("image/webp")); }

/* The footer: the night's deep blue, the links, and the wordmark large and fading off the foot of
   the page with the moon for the dot of its i. */
.site-footer { overflow: hidden; padding: 24px 0 0; background: var(--night-ground); color: var(--w-ink-2); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; width: min(1180px, calc(100% - 112px)); margin: 0 auto; padding-top: 12px; border-top: 1px solid var(--w-hair); }
.footer-legal { margin: 0; font: 500 15px/1.3 "DM Sans", sans-serif; color: var(--w-ink-2); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font: 500 15px/1 "DM Sans", sans-serif; }
.footer-nav a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; color: var(--w-ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: transparent; transition: color .2s, text-decoration-color .2s; }
.footer-nav a:hover { color: var(--w-ink); text-decoration-color: var(--w-line); }
.footer-nav .footer-privacy { text-decoration-color: var(--w-line); }
/* The mark's own geometry: the i's dot is centred 6.5% across and 18.7% down its box. */
/* The page's foot cuts the mark at about three quarters of its letters' height, and the letters
   stay legible down to the cut. */
.footer-word { position: relative; display: block; width: min(1240px, calc(100% - 48px)); aspect-ratio: 1091 / 276; margin: clamp(48px, 7vw, 96px) auto -6%; }
/* The moon is the i's dot: the footer mask is the wordmark without that dot, and the moon sits on its centre, (62.85, 33.65) in the viewBox -8 -18 1091 276. */
.footer-word::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(238,239,233,.3) 10%, rgba(238,239,233,.13) 80%);
  -webkit-mask: url("assets/wordmark-footer.svg") 0 0 / 100% 100% no-repeat; mask: url("assets/wordmark-footer.svg") 0 0 / 100% 100% no-repeat; }
.footer-moon { position: absolute; left: 4.2758%; top: 29.4006%; width: 4.4772%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #FBF0CF, #EBD3A0 55%, #D2AE73); box-shadow: 0 0 18px 3px rgba(242, 217, 160, .45), 0 0 72px 16px rgba(201, 216, 240, .18); }

@media (max-width: 1100px) {
  /* Three across stops being three windows a reader can read; they stack, each at its full size. */
  .trio { grid-template-columns: minmax(0, 520px); grid-template-rows: none; justify-content: center; row-gap: 56px; }
  .trio-item { grid-row: auto; grid-template-rows: none; }
  .trio-item > .said { align-self: start; }
  .step, .step[data-side="right"] { grid-template-columns: minmax(0, 560px); justify-content: center; gap: 28px; }
  .step[data-side="right"] .step-copy { order: 0; }
}
@media (max-width: 900px) {
  .join-sheet { grid-template-columns: 1fr; }
  /* The letter follows the heading and the action, smaller. */
  .join-art { width: min(210px, 60%); margin: 4px auto -12px; }
  .footer-row { width: calc(100% - 64px); }
}
@media (max-width: 600px) {
  .band-head { padding: 12vh 20px 0; }
  .beat { min-height: 0; padding: 10vh 16px; }
  .step, .step[data-side="right"] { min-height: 0; padding: 10vh 16px; }
  .trio { row-gap: 48px; }
  .said { font-size: 15.5px; }
  .said-mark { width: 14.5px; height: 14.5px; margin: 0 calc(.55em - 2.25px) 0 -2.25px; vertical-align: -2.75px; }
  .cue { font-size: 22px; }
  .step-line { font-size: 26px; }
  /* The five paintings cover the whole sticky screen with one crop: sky behind the words, hills under the windows. */
  .day-painting img { object-position: 72% 100%; }
  .day-sun, .day-moon { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  :root:not(.day-live) .stop { background-position: 72% 100%; }
  .company { min-height: 0; padding: 14vh 0 8vh; }
  .company-title { font-size: 30px; }
  .join { min-height: 0; padding: 10vh 16px 8vh; }
  .join-copy p.invite-line { margin: 16px 0 24px; }
  .footer-row { width: calc(100% - 32px); flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 0 22px; }
  /* The last view on a phone is the moon and the wordmark, given their own room. */
  .site-footer { min-height: 52vh; display: flex; flex-direction: column; }
  .footer-word { width: calc(100% - 48px); margin: auto auto -6%; }
}
/* On the narrowest phones the sheet gives its words more of the width. */
@media (max-width: 400px) {
  .join-sheet { padding-inline: 18px; }
}

/* The demo's stop, on the morning sky right under the hero. */
.demo-stop { padding: 14vh 24px 4vh; }
/* With the moving sky the day starts --seam under the hero's foot, so the demo starts that much lower
   and nothing of it shows in the first view. */
:root.day-live .demo-stop { padding-top: calc(var(--seam) + 14vh); }
@media (max-width: 600px) { .demo-stop { padding: 10vh 16px 4vh; } :root.day-live .demo-stop { padding-top: calc(var(--seam) + 10vh); } }

/* The hero is the pre-v3 hero (styles.css, cta.css), its painting whole to its foot. Its two lines
   read a step larger than they did there, in the same proportions: the claim and the line under it
   and their gaps grow by about 15 percent at every width. */
.home .hero .one-liner { font-size: clamp(31px, 3.1vw, 46px); margin-top: 25px; }
.home .hero .sub-line { font-size: clamp(20px, 1.8vw, 26px); margin-top: 16px; }
@media (max-height: 800px) and (min-width: 901px) { .home .hero .one-liner { margin-top: 21px; } .home .hero .sub-line { margin-top: 12px; } }
@media (max-width: 900px) { .home .hero .one-liner { font-size: 29px; } }
@media (max-width: 600px) { .home .hero .one-liner { margin-top: 25px; font-size: 30px; } .home .hero .sub-line { font-size: 19px; margin-top: 14px; } }
@media (max-width: 360px) { .home .hero .one-liner { font-size: 22px; } }
/* At the larger size the line under the claim takes four lines on narrow phones; it breaks before
   the app, so no phrase is split. */
@media (max-width: 400px) { .home .hero .sub-line .apps-in { display: block; } }

/* One gap between sections everywhere below the hero: half of --gap above each section's content
   and half below, and no section is taller than its content, so the painting shows only in that
   gap and never as padding. The strip's band and the night's fade into the footer overlap their
   section's padding rather than add to it. The gap check measures every consecutive gap at
   1440 and 390 and fails above 10 percent off. */
:root { --gap: 120px; }
@media (max-width: 600px) { :root { --gap: 72px; } }
.home .day .stop, .home .day .band-head, .home .day .band-head + .stop { min-height: 0; padding-top: calc(var(--gap) / 2); padding-bottom: calc(var(--gap) / 2); }
.home .day .step { align-content: start; }
.home .day .join { place-items: start center; }
.home .company .community-logos { margin-bottom: -56px; }
.home .day-end { height: calc(var(--gap) / 2); margin-top: calc(var(--gap) / -2); }
.home .site-footer { padding-top: calc(var(--gap) / 2 - 12px); }
/* The demo keeps the first view to the hero: it starts the hero's seam plus a little sky lower. */
:root.day-live .day .demo-stop { padding-top: calc(var(--seam) + 14vh); }
@media (max-width: 600px) { :root.day-live .day .demo-stop { padding-top: calc(var(--seam) + 10vh); } }
/* The hero's line under the claim, a step up but not so far that the arrow leaves the smallest
   phones' screen. */
@media (max-width: 360px) { .home .hero .sub-line { font-size: 17.5px; } }

/* intention */
