/* Islands — home. One ramp for type, one for space; everything centred
   unless it has a reason not to be. Same family as Lighthouse. */
:root {
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Avenir Next', Avenir, 'Mulish', 'Helvetica Neue', sans-serif;

  /* Type ramp */
  --t-xs: 0.75rem; /* 12 eyebrow */
  --t-sm: 0.875rem; /* 14 small */
  --t-base: 1.0625rem; /* 17 body */
  --t-md: 1.3125rem; /* 21 lede, card title */
  --t-lg: clamp(1.75rem, 3.4vw, 2.5rem); /* 28 → 40 statement */
  --t-xl: clamp(2.125rem, 4.4vw, 3.25rem); /* 34 → 52 section title */
  --t-2xl: clamp(2.75rem, 6.4vw, 4.75rem); /* 44 → 76 display */

  /* Space ramp */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section: clamp(var(--s-9), 11vw, 160px);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;

  /* Colour */
  --paper: #fbfbfc;
  --surface: #ffffff;
  --ink: #0b0f17;
  --ink-2: #4b525e; /* 7.9:1 on white */
  --ink-3: #6b7280; /* 4.8:1 */
  --line: #e8eaee;
  --midnight: #101b2f;
  --midnight-hover: #1a2742;
  --warm: #f6efe3;
  --night: #060a12;
  --night-ink: rgb(255 255 255 / 0.78); /* ≥ 9:1 on night */
  --beam: 255 226 182;

  --bar: 52px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable; /* no jump when a sheet locks the page */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid #3d6fd9;
  outline-offset: 3px;
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
}
[data-icon] {
  display: inline-flex;
}
.sr,
.honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 64px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
}

/* ── Type ────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.title {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.display .line,
.title .line {
  display: block; /* each sentence balances on its own */
}
.title em {
  color: var(--ink-2);
}
.title--light {
  color: #fff;
}
.lede {
  font-size: var(--t-md);
  line-height: 1.45;
  text-wrap: balance;
}
.sub {
  max-width: 34rem;
  margin: var(--s-5) auto 0;
  font-size: var(--t-md);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: balance;
}
/* Section labels: a small pill. One component for every label of this
   kind (section names, card groups, the cohort tag). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef0f3;
  box-shadow: inset 0 0 0 1px #d5d9df; /* a fine border, so it holds on any ground */
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2); /* 6.9:1 on the pill */
}
.eyebrow--dark {
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.86);
}
.eyebrow--beam {
  background: rgb(var(--beam) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--beam) / 0.22);
  color: rgb(var(--beam));
}

/* ── Buttons: one pill, one text link ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 48px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: 999px;
  background: var(--midnight);
  color: #fff;
  font-size: var(--t-base);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn .icon {
  font-size: 18px;
}
.btn--light {
  background: var(--warm);
  color: var(--ink);
}
.btn--sm {
  height: 32px;
  padding: 0 var(--s-4);
  font-size: var(--t-sm);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-size: var(--t-base);
  font-weight: 600;
  color: #2a5bd7; /* 5.5:1 on white */
  text-decoration: none;
}
.more--light {
  color: #fff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-6);
}

/* ── Hover: one answer for everything you can press ───────────────────
   It floats up a little and its shadow deepens. Colours never change. */
.btn,
.round,
.sheet__close,
.more,
.tile__read,
.card__open,
.tile,
.bar__links a {
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease);
}
.btn,
.round,
.sheet__close {
  box-shadow: 0 1px 2px rgb(11 15 23 / 0.08);
}
@media (hover: hover) {
  .btn:hover,
  .round:not([disabled]):hover,
  .sheet__close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgb(11 15 23 / 0.35);
  }
  .more:hover,
  .tile__read:hover,
  .bar__links a:hover {
    transform: translateY(-2px);
  }
  .card__open:hover,
  .tile:hover {
    transform: translateY(-4px);
  }
  .tile:hover {
    box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -24px rgb(11 15 23 / 0.45);
  }
  .tile--statement:hover {
    box-shadow: 0 24px 40px -24px rgb(11 15 23 / 0.55);
  }
  .card__open img {
    transition: box-shadow 260ms var(--ease);
  }
  .card__open:hover img {
    box-shadow: 0 24px 40px -24px rgb(11 15 23 / 0.45);
  }
}
.btn:active,
.round:active,
.sheet__close:active,
.card__open:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 120ms;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--bar);
  background: rgb(251 251 252 / 0.78);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 0 rgb(11 15 23 / 0.06);
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease);
}
.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.bar__links {
  display: flex;
  gap: var(--s-6);
}
.bar__links a {
  display: inline-block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
html.on-dark .bar {
  background: rgb(6 10 18 / 0.72);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}
html.on-dark .bar__links a {
  color: rgb(255 255 255 / 0.8);
}
html.on-dark .bar .btn {
  background: var(--warm);
  color: var(--ink);
}
@media (max-width: 560px) {
  .bar__links {
    display: none;
  }
}

/* The wordmark: dark ink on light ground, light ink over night. */
.logo {
  position: relative;
  display: block;
  flex: none;
  height: 22px;
}
.logo img {
  height: 100%;
  width: auto;
  transition: opacity 400ms var(--ease);
}
.logo__light {
  position: absolute;
  inset: 0;
  opacity: 0;
}
html.on-dark .logo__dark {
  opacity: 0;
}
html.on-dark .logo__light {
  opacity: 1;
}

/* ── 01 · Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--bar) + var(--s-9)) var(--gutter) 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgb(48 164 234 / 0.14), transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgb(255 161 66 / 0.12), transparent 70%),
    var(--night);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero__copy {
  max-width: 48rem;
  margin: 0 auto;
}
.hero__word {
  font-style: italic;
  color: rgb(var(--beam));
}
.rotator {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
  will-change: filter, opacity;
}
.hero .lede {
  max-width: 30rem;
  margin: var(--s-5) auto 0;
  color: var(--night-ink);
}
.hero__art {
  max-width: var(--max);
  margin: var(--s-9) auto 0;
}
.hero__art img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
@media (max-width: 640px) {
  .hero__art img {
    aspect-ratio: 4 / 3;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .hero__art {
    animation: rise 700ms var(--ease) both;
  }
  .hero__copy > :nth-child(2) {
    animation-delay: 100ms;
  }
  .hero__copy > :nth-child(3) {
    animation-delay: 200ms;
  }
  .hero__art {
    animation-delay: 320ms;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: var(--section) var(--gutter) 0;
}
.section > * {
  max-width: var(--max);
  margin-inline: auto;
}
.head {
  text-align: center;
  margin-bottom: var(--s-8);
}
#problem .head {
  margin-bottom: var(--s-6);
}

/* ── 02 · Triad: bold word, light rest ───────────────────────────────── */
.triad {
  padding: var(--section) var(--gutter) 0;
  text-align: center;
}
.triad p {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink-2);
}
.triad b {
  font-weight: 600;
  color: var(--ink);
}

/* ── 03 · Problem rail ───────────────────────────────────────────────── */
.section > .rail {
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
}
.rail__track {
  --inset: max(var(--gutter), (100vw - var(--max)) / 2);
  display: flex;
  gap: var(--s-4);
  /* room above and below so a lifted card and its shadow aren't clipped */
  padding: var(--s-3) var(--inset) var(--s-6);
  margin: calc(-1 * var(--s-3)) 0 calc(-1 * var(--s-6));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar {
  display: none;
}
.tile {
  flex: 0 0 clamp(260px, 30vw, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tile--statement {
  justify-content: center;
  padding: var(--s-6);
  background: var(--night);
  box-shadow: none;
}
.tile__statement {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.tile img {
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tile__tag {
  margin: var(--s-5) var(--s-5) 0;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tile__title {
  margin: var(--s-2) var(--s-5) var(--s-3);
  font-family: var(--serif);
  font-size: var(--t-md);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.tile__open {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tile__open:focus-visible {
  outline-offset: -4px;
}
.tile--statement .tile__open {
  justify-content: center;
}
.tile__read {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  align-self: flex-start;
  min-height: 44px;
  margin: auto var(--s-5) var(--s-3);
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--t-sm);
  font-weight: 600;
  color: #2a5bd7; /* 5.5:1 on white */
  cursor: pointer;
}
.tile--statement .tile__read {
  margin: var(--s-5) 0 0;
  align-self: flex-start;
}
.tile__read--light {
  color: rgb(var(--beam));
}
.rail__nav {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eceef1;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}
.round[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* ── 04 · Shift ──────────────────────────────────────────────────────── */
.section > .prompt {
  position: relative;
  max-width: 40rem;
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgb(16 27 47 / 0.4);
  overflow: hidden;
}
.prompt::before {
  /* the ring's colours, a hairline along the top */
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ffa142, #f7c754, #4db394, #30a4ea, #5570dc, #7742b9, #f92242, #ff7d59);
}
.prompt__text {
  padding-right: var(--s-8);
  font-family: var(--serif);
  font-size: var(--t-md);
  line-height: 1.4;
}
.prompt__text .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.prompt__mic {
  position: absolute;
  right: var(--s-5);
  bottom: var(--s-5);
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--midnight);
  color: #fff;
  font-size: 18px;
}

/* ── 05 · Tension ────────────────────────────────────────────────────── */
/* The wry turn that closes the shift, right under the prompt. */
.section > .turn {
  max-width: 46rem;
  margin-top: var(--s-9);
  text-align: center;
}

/* ── 06 · Vision ─────────────────────────────────────────────────────── */
/* The vision answers the question above it, on the same night: the words,
   then worlds joined by light rising out of the dark. */
.section.vision {
  margin-top: var(--section);
  padding-bottom: 0;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.vision .sub {
  color: var(--night-ink);
}
.section > .vision__art {
  max-width: none;
  margin: var(--s-7) calc(-1 * var(--gutter)) 0;
}
.vision__art img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
@media (max-width: 640px) {
  .vision__art img {
    aspect-ratio: 4 / 3;
  }
}
.section.vision + .section.eco {
  margin-top: 0;
}
/* The ecosystem: its own band, so it reads as a chapter of its own. */
.section.eco {
  margin-top: var(--section);
  padding-bottom: var(--section);
  background: #f1f2f5;
}
.eco__lead {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.2;
  color: var(--ink-2);
}
.eco + .lighthouse {
  margin-top: 0;
}
/* "4 to build…", "3 to connect…": a big numeral leads each group. */
.section > .count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  font-weight: 400;
}
.count__n {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 1;
  /* Trim the box to the figure itself, so it centres on the words beside it. */
  text-box: trim-both cap alphabetic;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.count__text {
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-2);
  text-align: left;
}
.cards {
  display: grid;
  gap: var(--s-5);
}
.section > .cards + .count {
  margin-top: var(--s-9);
}
.cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .section > .cards--3 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
@media (max-width: 480px) {
  .section > .cards--4 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
.card {
  text-align: center;
}
.card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: inherit;
  cursor: pointer;
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: #2a5bd7; /* 5.5:1 on the page */
}
.sheet__line {
  margin-top: var(--s-2);
  font-family: var(--serif);
  font-size: var(--t-md);
  color: var(--ink-2);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.card h3 {
  margin-top: var(--s-4);
  font-size: var(--t-base);
  font-weight: 700;
}
.card p {
  margin-top: var(--s-1);
  font-size: var(--t-base);
  color: var(--ink-2);
  text-wrap: balance;
}

/* ── 07 · Lighthouse ─────────────────────────────────────────────────── */
.lighthouse {
  position: relative;
  margin-top: var(--section);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
/* The Lighthouse page's hero scene, held still: the only moving light is the ı. */
.lighthouse__hero {
  --beam-lit: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  max-width: none;
  padding: calc(var(--bar) + var(--s-8)) var(--gutter) var(--s-8);
}
.lighthouse__scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}
.lighthouse__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lighthouse__copy {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.lighthouse__copy > div:first-child {
  max-width: 32rem;
}
.actions--start {
  justify-content: flex-start;
}
@media (max-width: 760px) {
  /* Phones: words at the top, the tower and beam below them. */
  .lighthouse__hero {
    align-items: flex-start;
    min-height: 100svh;
  }
}
.lighthouse .display {
  font-size: clamp(3rem, 8vw, 6rem);
  text-shadow: 0 0 60px rgb(var(--beam) / 0.3);
}
.lighthouse .lede {
  max-width: 28rem;
  margin: var(--s-4) 0 0;
  color: var(--night-ink);
}
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--beam));
  box-shadow: 0 0 10px rgb(var(--beam));
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgb(var(--beam));
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  from {
    opacity: 0.9;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after {
    animation: none;
  }
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-8) var(--gutter) var(--section);
  text-align: center;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6) var(--s-5);
  }
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
}
.steps__icon {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: rgb(var(--beam));
  font-size: 18px;
}
.steps b {
  font-size: var(--t-base);
}
.steps li > span:last-child {
  max-width: 14rem;
  font-size: var(--t-sm);
  color: var(--night-ink);
  text-wrap: balance;
}

/* ── 08 · Apps ───────────────────────────────────────────────────────── */
.section > .apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
  max-width: 880px;
}
@media (max-width: 640px) {
  .section > .apps {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s-7) var(--s-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  text-align: center;
}
/* The real app icons (dock/icon, sandbox/app/icon), shown as they are. */
.app__icon {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 12px 18px rgb(11 15 23 / 0.14));
}
.app h3 {
  margin-top: var(--s-5);
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.1;
}
.app p {
  margin-top: var(--s-2);
  color: var(--ink-2);
}
.soon {
  margin-top: var(--s-5);
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f2f4;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
}

/* ── 09 · Join ───────────────────────────────────────────────────────── */
.join .head {
  margin-bottom: var(--s-6);
}
.section > .signup {
  max-width: 30rem;
}
.signup__field {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: 60px;
  padding: 6px 6px 6px var(--s-5);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px #d5d9df;
  transition: box-shadow var(--dur);
}
.signup__field:focus-within {
  box-shadow: 0 0 0 2px var(--midnight);
}
.signup__field.is-invalid {
  box-shadow: 0 0 0 2px #b4232c;
}
.signup__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.signup__field input::placeholder {
  color: var(--ink-3);
}
.signup__msg {
  min-height: 1.5em;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-align: center;
}
.signup__msg.is-error {
  color: #b4232c; /* 6.4:1 on white */
  font-weight: 600;
}
.done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-align: center;
}
.done__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: var(--midnight);
  color: #fff;
  font-size: 22px;
}
.done b {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
}
.done span {
  color: var(--ink-2);
}

/* ── Footer: water, with the ring floating in it ─────────────────────── */
.footer {
  position: relative;
  margin-top: var(--section);
  display: grid;
  place-items: center;
}
.footer__ring {
  display: block;
  width: 100%;
  height: clamp(300px, 42vh, 420px);
  border: 0;
  background: transparent;
  color-scheme: light;
  pointer-events: none;
}
.footer__legal {
  position: absolute;
  bottom: var(--s-5);
  left: 0;
  right: 0;
  font-size: var(--t-xs);
  color: var(--ink-2);
  text-align: center;
}

/* ── Reveal on scroll: rise and come into focus ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    transition:
      opacity 700ms var(--ease),
      transform 700ms var(--ease),
      filter 700ms var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  /* Line by line: the second waits a beat after the first. */
  .js .reveal--lines,
  .js .reveal--lines.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .js .reveal--lines .line {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(6px);
    transition:
      opacity 900ms var(--ease),
      filter 900ms var(--ease),
      transform 900ms var(--ease);
  }
  .js .reveal--lines.is-in .line {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .js .reveal--lines.is-in .line + .line {
    transition-delay: 1400ms;
  }
}

/* ── Read more sheet ─────────────────────────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s-5);
}
.sheet[hidden] {
  display: none;
}
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgb(6 10 18 / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 360ms var(--ease);
}
.sheet__panel {
  position: relative;
  width: min(100%, 36rem);
  max-height: min(80svh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-7) var(--s-7) var(--s-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 40px 100px -30px rgb(6 10 18 / 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 360ms var(--ease),
    transform 420ms var(--ease),
    filter 360ms var(--ease);
}
.sheet.is-open .sheet__scrim {
  opacity: 1;
}
.sheet.is-open .sheet__panel {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (max-width: 600px) {
  /* A sheet rising from the bottom on phones. */
  .sheet {
    place-items: end stretch;
    padding: 0;
  }
  .sheet__panel {
    width: 100%;
    max-height: 86svh;
    padding: var(--s-7) var(--s-5) var(--s-7);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(40px);
  }
}
.sheet__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eceef1;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.sheet__title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.sheet__body {
  margin-top: var(--s-5);
}
.sheet__body p {
  color: var(--ink-2);
  text-wrap: pretty;
}
.sheet__body p + p {
  margin-top: var(--s-4);
}
.sheet__body b {
  color: var(--ink);
}
html.is-locked {
  overflow: hidden;
}
/* ── The lit ı in Lighthouse: copied from lighthouse/styles.css (.lh*) so
   the word matches islands.bio/lighthouse exactly. ── */
.lh {
  position: relative;
  background: linear-gradient(180deg, #fff6e6 0%, #ffd9a0 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgb(255 214 150 / 0.25);
}
.lh__i {
  position: relative;
  display: inline-block;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lh__light {
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff 0 35%, #ffe3b0 60%, rgb(255 210 140 / 0) 100%);
  box-shadow:
    0 0 6px 2px rgb(255 220 160 / 0.9),
    0 0 18px 6px rgb(255 200 120 / 0.35);
}
/* The beam turns as a real lighthouse's does, round a vertical axis: it
   lengthens, narrows to nothing as it faces you (the lamp flares), and
   lengthens again. Made of soft, feathered light rather than a hard wedge:
   the two beams differ a little, it tilts a touch, the turn isn't perfectly
   even, and its brightness breathes on its own slower cycle. */
.lh__light::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6em;
  height: 1em;
  /* every glow ends inside the box, so no edge is ever cut */
  background:
    radial-gradient(25% 30% at 25% 50%, rgb(255 236 204 / 0.5), rgb(255 226 182 / 0.16) 50%, transparent 100%),
    radial-gradient(21% 24% at 77% 52%, rgb(255 236 204 / 0.38), rgb(255 226 182 / 0.1) 50%, transparent 100%),
    radial-gradient(9% 26% at 50% 50%, rgb(255 248 230 / 0.85), transparent 100%);
  filter: blur(1.4px);
  transform: translate(-50%, -50%);
  animation:
    lh-turn 10s linear infinite,
    lh-breathe 6.7s ease-in-out infinite;
  pointer-events: none;
}
/* a faint haze around the lamp, catching the beam */
.lh__light::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.4em;
  height: 1.1em;
  border-radius: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(closest-side, rgb(255 226 182 / 0.35), transparent);
  filter: blur(2px);
  animation: lh-breathe 4.3s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes lh-breathe {
  0%, 100% { opacity: 0.85; }
  23% { opacity: 1; }
  41% { opacity: 0.78; }
  67% { opacity: 0.95; }
  84% { opacity: 0.8; }
}
.lh__light {
  animation: lh-flash 10s linear infinite;
}
@keyframes lh-turn {
  0.0% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.999); }
  4.2% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.981); }
  8.3% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.944); }
  12.5% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.895); }
  16.7% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.833); }
  20.8% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.749); }
  25.0% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.641); }
  29.2% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.514); }
  33.3% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.386); }
  37.5% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.275); }
  41.7% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.185); }
  45.8% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.110); }
  50.0% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.032); }
  54.2% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.066); }
  58.3% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.185); }
  62.5% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.317); }
  66.7% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.444); }
  70.8% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.552); }
  75.0% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.641); }
  79.2% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.719); }
  83.3% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.796); }
  87.5% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.874); }
  91.7% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.944); }
  95.8% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.989); }
  100.0% { transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.999); }
}
@keyframes lh-flash {
  0%, 40%, 60%, 90%, 100% {
    box-shadow:
      0 0 6px 2px rgb(255 220 160 / 0.9),
      0 0 18px 6px rgb(255 200 120 / 0.35);
  }
  50% {
    box-shadow:
      0 0 10px 4px rgb(255 240 210 / 1),
      0 0 34px 14px rgb(255 214 150 / 0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lh__light,
  .lh__light::before,
  .lh__light::after {
    animation: none;
  }
  .lh__light::before {
    opacity: 0.4;
  }
}
.display .lh {
  font-size: 1em;
  margin-top: 0;
}
