/* The landing page at /. Tokens and shared parts are in base.css. */

/* Page frame */

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.symbol-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.button {
  min-height: 56px;
  padding: 16px 28px;
  border: 1px solid transparent;
  background: var(--iris);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  transition: background var(--motion-quick), box-shadow var(--motion-quick), transform var(--motion-quick);
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(49, 34, 138, .13);
}

.button:hover {
  background: var(--iris-deep);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(49, 34, 138, .1);
}

.button-small {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
}

.button-light {
  background: #fff;
  color: var(--iris);
  box-shadow: 0 5px 0 rgba(20, 20, 50, .16);
}

.button-light:hover {
  background: var(--lilac);
  color: var(--iris-deep);
}

.text-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  line-height: 1.4;
}

.text-link:hover { color: var(--iris); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s, transform .7s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Header */

.site-header {
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 231, 240, .65);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 14px;
}

.header-nav a:hover { color: var(--iris); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero */

/* The hero is a band (base.css): its glow and orbits stop at the window's edge. */
.hero {
  position: relative;
  min-height: min(880px, calc(100svh - 40px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding-block: 72px 104px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 16px 0 48px;
}

.hero h1 {
  font-size: clamp(3.75rem, 6.45vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  margin-top: 24px;
  font-weight: 800;
}

.hero h1 span { color: var(--iris); }

.tiny-spark {
  display: inline-block;
  color: var(--iris);
  font-size: 23px;
  vertical-align: middle;
  margin-right: 8px;
}

.hero-description {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  max-width: 460px;
  margin: 32px 0;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.preview-note {
  font-size: 14px;
  line-height: 1.5;
}

.hero-footer {
  position: absolute;
  bottom: 32px;
  left: var(--bleed);
  right: var(--bleed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-wheel {
  width: 19px;
  height: 27px;
  border: 1.6px solid #9a9fb3;
  border-radius: 14px;
  position: relative;
}

.scroll-wheel::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--iris);
  top: 5px;
  left: 6px;
}

.dot-separator { padding: 0 10px; }

/* The hero's little world: Pip on a record, with covers and notes around him. */

.hero-world {
  height: 620px;
  min-width: 0;
  position: relative;
  isolation: isolate;
  touch-action: pan-y;
  padding-bottom: 64px;
}

.world-glow {
  position: absolute;
  inset: 12% -8% 2% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ece5ff 0%, #f2edff 48%, rgba(248, 250, 255, 0) 72%);
  z-index: -2;
}

.world-orbits {
  position: absolute;
  inset: -2% -10%;
  width: 120%;
  height: 110%;
  stroke: #ded8f3;
  stroke-width: 1;
  z-index: -1;
}

.world-tilt {
  height: 100%;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

.turntable {
  width: 78%;
  height: 74%;
  position: absolute;
  bottom: 4%;
  left: 13%;
  transform: rotateX(66deg) rotateZ(-16deg);
  transform-style: preserve-3d;
  z-index: 1;
}

.record-edge, .record {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #b9ade8;
}

.record-edge {
  transform: translateZ(-14px);
  box-shadow: 0 32px 56px #a59bc23a;
}

.record {
  background: radial-gradient(circle at 40% 30%, #b9a9ef, #8b79ce 70%);
  border: 4px solid #cfc1fa;
  overflow: hidden;
  box-shadow: inset 0 4px 5px #fff8;
}

.record-rings {
  position: absolute;
  inset: 12%;
  border: 1px solid #ddd3fa88;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #b8a5e745, 0 0 0 17px #dfd5f75e, 0 0 0 34px #b8a5e730, 0 0 0 35px #dfd5f744;
}

.record-label {
  position: absolute;
  inset: 35%;
  background: #f5eeff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.record-label img { width: 46%; }

.floating-cover {
  position: absolute;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 44px rgba(53, 38, 86, .12), 0 4px 0 #e4dff1;
  z-index: 2;
  pointer-events: none;
}

.floating-cover > img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  width: 100%;
}

.floating-cover figcaption {
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink);
}

.cover-joy {
  left: -4%;
  top: 8%;
  width: 170px;
  transform: rotate(-13deg);
}

.cover-calm {
  width: 145px;
  right: -4%;
  top: 34%;
  transform: rotate(12deg);
}

.approved-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3f4e9;
  color: #146c4b;
  display: grid;
  place-items: center;
}

.approved-mini .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.world-note {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 24px #4537871a;
  pointer-events: none;
}

.note-one {
  width: 64px;
  height: 64px;
  border-radius: 19px;
  background: #fff3cd;
  color: #a86f14;
  top: 12%;
  right: 5%;
  transform: rotate(15deg);
}

.note-one .icon {
  width: 32px;
  height: 32px;
}

.note-two {
  color: #d29816;
  left: 9%;
  bottom: 28%;
  box-shadow: none;
  transform: rotate(-12deg);
}

.note-two .icon {
  width: 44px;
  height: 44px;
  fill: var(--yellow);
  stroke: var(--yellow);
}

.hero-pip-stage {
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  z-index: 6;
}

.hero-pip-stage .pip-poster { filter: drop-shadow(0 24px 20px #422a6318); }

.approval-tag {
  grid-row: 2;
  justify-self: center;
  align-self: end;
  min-height: 48px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 12px 32px #58438216;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
  font-size: 12px;
  line-height: 1.5;
}

.approval-tag > .icon {
  color: var(--iris);
  width: 24px;
  height: 24px;
}

.approval-tag strong { font-size: 14px; }

/* The idea */

.idea-intro {
  padding: 120px 0 112px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.idea-intro h2 {
  margin: 24px auto 32px;
  font-size: clamp(2.5rem, 4.65vw, 4.6rem);
}

.idea-intro h2 span { color: var(--iris); }

.idea-intro > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.8;
}

.idea-trail {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 650;
}

.idea-trail > li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.idea-trail .icon {
  width: 21px;
  height: 21px;
  color: var(--iris);
}

/*
 * Pip's lighthouse. Without its script the section is a short still: a
 * night card with the scene's sentence, the four genres and Get the app.
 * js/landing.mjs adds is-live, which reserves the scene's tall track and
 * draws its frame (dusk, dawn, the stage pinned below the header, and the
 * placeholder); the scene's own styles (css/lighthouse.css) arrive with it
 * once the visitor heads its way, and nothing here moves when they do.
 */

.lh {
  --lh-night-top: #0c0f33;
  --lh-dawn-from: #090b26; /* the sea under the stage's bottom scrim */
  --lh-font-display: "Fredoka", ui-rounded, "Avenir Next", system-ui, sans-serif;
  position: relative;
}

.lh-dusk, .lh-dawn, .lh-track { display: none; }

.lh.is-live {
  background: var(--lh-night-top);
  color: #fff;
}

.lh.is-live .lh-still { display: none; }

.lh-still {
  margin: 0 24px;
  padding: 88px 24px;
  border-radius: 40px;
  background: linear-gradient(180deg, var(--lh-night-top) 0%, #12164a 40%, #1d2068 100%);
  color: #fff;
  text-align: center;
}

.lh-still > p {
  max-width: 22em;
  margin: 0 auto;
  color: #fff;
  font: 600 clamp(24px, 3.2vw, 40px) / 1.15 var(--lh-font-display);
  text-wrap: balance;
}

.lh-still-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}

.lh-still-genres li {
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(12, 15, 50, .82);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  color: #b9b6ee;
  font: 500 15px/1 var(--lh-font-display);
}

.lh-still-genres .is-lit {
  background: #fff6e4;
  box-shadow: 0 6px 22px rgba(255, 214, 106, .4);
  color: var(--ink);
}

/* Dusk and dawn: the night arrives and leaves as a sky, not a cut. */
.lh.is-live .lh-dusk, .lh.is-live .lh-dawn {
  display: block;
  position: relative;
  overflow: clip;
}

.lh-dusk {
  height: 56vh;
  height: 56svh;
  background: linear-gradient(180deg, var(--canvas) 0%, #e9e4ff 16%, #c3b8f7 34%, #8c7de6 52%, #5446bd 68%, #2b2a80 82%, #151a52 92%, var(--lh-night-top) 100%);
}

.lh-dawn {
  height: 44vh;
  height: 44svh;
  background: linear-gradient(180deg, var(--lh-dawn-from) 0%, #171b55 16%, #2f2c88 32%, #5c4fc6 50%, #9a8cec 66%, #cfc6fa 80%, #ece8ff 90%, var(--canvas) 100%);
}

.lh-dusk::after, .lh-dawn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #fff6d8 0 1.5px, transparent 2px),
    radial-gradient(circle, #fff6d8 0 1px, transparent 1.6px),
    radial-gradient(circle, #ffe9a8 0 2px, transparent 2.6px);
  background-size: 190px 170px, 130px 110px, 310px 260px;
  background-position: 20px 30px, 80px 70px, 140px 10px;
  opacity: .7;
  mask-image: linear-gradient(180deg, transparent 52%, #000 96%);
}

.lh-dawn::after {
  mask-image: linear-gradient(0deg, transparent 70%, #000 100%);
  opacity: .25;
}

/*
 * The tide (js/tide.mjs). With motion on, the dawn band is the night itself
 * and a sea of wave layers draws back off the page below it as it ebbs. With
 * motion off, the bands keep the still skies above. The way into the scene is
 * the paper theatre, further down.
 */
.lh-dawn {
  --tide-0: #e2dbff;
  --tide-1: #b9adf5;
  --tide-2: #7d6fdc;
  --tide-3: #4a3fae;
  --tide-4: #1f2166;
  --tide-5: var(--lh-dawn-from);
  --tide-foam: #ffe9c4;
  --tide-lamp: 68%;
  --tide-shore: 50%;
}

.tide-sea { display: none; }

html[data-motion=on] .has-tide .lh-dawn {
  overflow: visible;
  background: linear-gradient(0deg, var(--canvas) var(--tide-shore), var(--tide-5) 0);
}

/* The still's stars give way to the tide's own, and the scene covers what the waves leave under it. */
html[data-motion=on] .has-tide .lh-dawn::after { display: none; }

html[data-motion=on] .has-tide .lh-track { z-index: 2; }

html[data-motion=on] .has-tide .tide-sea {
  display: block;
  position: absolute;
  inset: var(--tide-shore) 0 0;
  z-index: 1;
  overflow-x: clip;
  pointer-events: none;
}

html[data-motion=on] .has-tide .lh-dawn .tide-sea {
  inset: 0 0 var(--tide-shore);
  transform: scaleY(-1);
}

.tide-layer {
  position: absolute;
  inset: 0 0 auto;
  color: var(--tide-colour);
  will-change: transform;
}

.tide-layer:first-child { opacity: .5; }

.tide-drift { animation: tide-drift linear infinite paused; }

.is-near .tide-drift { animation-play-state: running; }

.tide-drift svg {
  display: block;
  fill: currentColor;
}

.tide-body {
  height: calc(var(--tide-reach) + var(--tide-rest) + 48px);
  margin-top: -1px;
  background: currentColor;
}

.tide-foam {
  fill: none;
  stroke: #beb4ff;
  stroke-width: 1.5;
  opacity: .3;
}

.tide-layer:first-child .tide-foam { opacity: 0; }

.tide-layer:nth-child(2) .tide-foam {
  stroke: var(--tide-foam);
  stroke-width: 3;
  opacity: 1;
}

/* Spray: two groups of droplets thrown ahead of the leading wave while it moves. */
.tide-spray {
  position: absolute;
  inset: 0 0 auto;
  will-change: transform, opacity;
}

.tide-spray i, .tide-star {
  position: absolute;
  top: calc(var(--up) * var(--tide-reach) * -1);
  width: var(--size);
  height: var(--size);
}

.tide-spray i {
  border-radius: 50%;
  background: currentColor;
}

/* Pip's lamp, shining through from behind the nearer waves. */
.tide-glow {
  position: absolute;
  left: var(--tide-lamp);
  top: 0;
  z-index: -1;
  width: max(46vw, 420px);
  height: 340px;
  margin: -170px 0 0 calc(max(46vw, 420px) / -2);
  background: radial-gradient(closest-side, rgba(255, 220, 140, .85), rgba(255, 176, 96, .32) 46%, rgba(255, 176, 96, 0));
  will-change: opacity;
}

/* The first stars come out one by one as the tide passes their mark. */
.tide-star {
  color: #f6b93b;
  scale: 0;
  transition: scale .5s cubic-bezier(.3, 1.5, .5, 1);
}

.tide-star.is-out { scale: var(--tide-star, 1); }

.tide-star .icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes tide-drift {
  to { transform: translate3d(calc(var(--tide-period) * -1), 0, 0); }
}

/* A link within the page dips the page out, jumps, and brings it back (js/jump.mjs). */
main, .site-footer { transition: opacity .2s ease; }

html.is-jumping :is(main, .site-footer) { opacity: 0; transition-duration: .12s; }

/* A section a link jumped to takes the focus without showing a ring: it is not a control. */
main section[tabindex="-1"]:focus { outline: none; }

/*
 * The paper theatre (js/theatre.mjs). With motion on, the scene's stage lies
 * over the idea section (--th-over, its height) and stays stuck for the act
 * (--th-run of scroll) before the scene's own story. The track's negative
 * margin runs through the section's top, so a link to the scene lands where
 * the act starts, like a link to the idea. The scene hangs above the stage like a curtain
 * (--th-drop, px still to fall) and comes down over the sheet, a copy of the
 * page with the idea's words that shows below its edge, so until then the
 * page looks as it did. A pale
 * copy of the words shows on the night as the curtain passes them. The dusk
 * band is not needed then.
 */
.th-props { display: none; }

html[data-motion=on] .has-theatre .lh-dusk { display: none; }

html[data-motion=on] .has-theatre .lh-track {
  z-index: 2;
  margin-top: calc(var(--th-over, 0px) * -1);
  height: calc(560vh + var(--th-run, 0px));
  height: calc(560svh + var(--th-run, 0px));
}

/*
 * The curtain: everything the scene puts on the stage, hung above its place.
 * Not .lh-safe, the invisible box the scene measures its camera's frame from.
 */
html[data-motion=on] .has-theatre .lh-stage > :not(.th-props, .lh-safe) { translate: 0 var(--th-drop, 0px); }

/* The page below the curtain's edge: it starts a hem's height above the stage, so it is taller by that much. */
.th-sheet {
  position: absolute;
  inset: 0 0 -80px;
  overflow: clip;
  background: var(--canvas);
  will-change: transform;
}

html[data-motion=on] .has-theatre .th-props {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 900;
  overflow: clip;
  pointer-events: none;
}

/* The curtain's hem: a row of big scallops in the colour of the scene's foot, hanging under it. */
.th-hem {
  --hem: clamp(30px, 4.6vw, 68px);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  height: var(--hem);
  background: radial-gradient(circle at 50% 0, #090b2a 0 calc(var(--hem) - 1px), transparent var(--hem)) 50% 0 / calc(var(--hem) * 2) 100% repeat-x;
  will-change: transform;
}

/* The night's words show only where the curtain has come down over them. */
.th-night-clip {
  position: absolute;
  inset: 0;
  overflow: clip;
  will-change: transform;
}

.idea-intro.th-words {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin-block: 0;
  opacity: 1;
  transform: none;
}

.idea-intro.th-day { color: var(--ink); }

.idea-intro.th-day { will-change: transform; }

.idea-intro.th-night {
  border-top-color: transparent;
  will-change: transform, opacity;
}

.th-night, .th-night :is(h2, p, li) { color: #f6f3ff; }

.th-night :is(.eyebrow, h2 span, .icon) { color: #c3b8ff; }

/* A nudge in the empty page under the idea's words, until the curtain starts to fall. */
.th-hint {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  translate: 0 -50%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.th-hint i {
  display: block;
  width: 12px;
  height: 12px;
  margin: 12px auto 0;
  border-right: 2px solid var(--iris);
  border-bottom: 2px solid var(--iris);
  rotate: 45deg;
  animation: th-nudge 1.6s ease-in-out infinite;
}

@keyframes th-nudge {
  0%, 100% { translate: 0 0; opacity: .5; }
  50% { translate: 0 8px; opacity: 1; }
}

.th-string {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  background: rgba(255, 255, 255, .55);
}

.th-glow {
  position: absolute;
  left: -24vmin;
  top: -24vmin;
  width: 48vmin;
  height: 48vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 160, .95) 0, rgba(255, 205, 110, .5) 28%, transparent 68%);
  opacity: 0;
  will-change: transform, opacity;
}

/*
 * The page beside a tide. js/tide.mjs sets --tide (0 to 1, how high the tide
 * stands) on Pip's portrait while the dawn band is near: Pip comes up to meet
 * the page as the night ebbs.
 */
@property --tide { syntax: "<number>"; inherits: false; initial-value: 0; }

/* translate, so the halo's and the sticker's own tilt stays. */
html[data-motion=on] .pip-portrait > .is-tidal {
  translate: 0 calc(var(--tide) * var(--sink, 36px));
  will-change: translate;
}

.pip-portrait-halo { --sink: 72px; }
.hello-sticker { --sink: 110px; }

.lh.is-live .lh-track {
  display: block;
  position: relative;
  height: 560vh;
  height: 560svh;
}

.lh-stage {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  height: calc(100svh - var(--header));
  overflow: clip;
  background: var(--lh-night-top);
}

/* Until the art has decoded. */
.lh-placeholder {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--lh-night-top) 0%, #12164a 40%, #1d2068 100%);
  color: #b9b6ee;
  font: 500 16px/1.2 var(--lh-font-display);
  letter-spacing: .02em;
  transition: opacity .7s ease, visibility 0s linear .7s;
}

.lh-placeholder span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lh-placeholder span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 22px 6px rgba(255, 213, 106, .4);
  animation: lh-breathe 1.8s ease-in-out infinite;
}

.lh-stage.is-ready .lh-placeholder {
  opacity: 0;
  visibility: hidden;
}

/* Shared with the scene's own loops (css/lighthouse.css). */
@keyframes lh-breathe {
  0%, 100% { opacity: .78; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* The scene's phone layout starts at 720 px. */
@media (max-width: 720px) {
  .lh { --lh-dawn-from: #070921; }
  .lh { --tide-star: .7; }
}

/* Pip */

.pip-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 96px;
  padding: 64px 0 144px;
}

.pip-portrait {
  position: relative;
  isolation: isolate;
  max-width: 480px;
  width: 100%;
  margin: auto;
}

.pip-portrait > img {
  width: 100%;
  position: relative;
  z-index: 1;
}

.pip-portrait-halo {
  position: absolute;
  inset: 15% 3% 0;
  border-radius: 50%;
  background: #eee8fb;
  transform: rotate(-12deg);
  z-index: -1;
}

.hello-sticker {
  position: absolute;
  right: -8px;
  top: 32px;
  padding: 14px 24px;
  background: #fff2cc;
  border: 1px solid #efdea5;
  border-radius: var(--radius-lg);
  transform: rotate(8deg);
  font-size: 16px;
  font-weight: 750;
  z-index: 2;
  box-shadow: 0 4px 0 #efdea550;
}

.pip-copy h2 { margin: 24px 0 32px; }

.pip-copy > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.pip-copy > .text-link {
  display: inline-block;
  margin-top: 8px;
}

/* Our story */

.founder-section {
  padding: 112px max(20px, env(safe-area-inset-right, 0px)) 120px max(20px, env(safe-area-inset-left, 0px));
  background: linear-gradient(#f3f0ff, var(--page, #f8faff));
}

/* A note pinned to the page: one card, a little askew, held by a strip of tape. */
.founder-note {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px);
  background: #fffdf7;
  border-radius: 6px 24px 24px 24px;
  box-shadow: 0 24px 50px rgba(50, 40, 120, 0.13);
  rotate: -0.6deg;
}

.founder-note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 110px;
  height: 28px;
  translate: -50% 0;
  rotate: 2deg;
  background: rgba(99, 85, 217, 0.22);
  border-radius: 3px;
}

.founder-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.founder-label > .icon {
  color: var(--iris);
  width: 20px;
  height: 20px;
}

.founder-note h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 28px;
  text-wrap: balance;
}

.founder-note h2 span { display: block; color: var(--iris); }

.founder-note > p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.founder-note > .founder-sign {
  margin: 32px 0 0;
  font-family: var(--lh-font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--iris);
}

/* Questions */

.faq-section {
  display: grid;
  grid-template-columns: .85fr 1.3fr;
  gap: 112px;
  padding: 128px 0;
}

.faq-heading h2 { margin: 24px 0 40px; }

.faq-heading > img { opacity: .9; }

.faq-list details { border-bottom: 1px solid #dfe2ed; }

.faq-list details:first-child { border-top: 1px solid #dfe2ed; }

.faq-list summary {
  list-style: none;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary > .icon {
  width: 20px;
  height: 20px;
  transition: transform var(--motion-quick);
}

.faq-list details[open] summary > .icon { transform: rotate(45deg); }

.faq-list details > p {
  padding: 0 40px 32px 0;
  font-size: 16px;
  line-height: 1.8;
}

/* Closing and footer */

.closing-section {
  background: #5d4ed1;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
  border-radius: 40px;
}

.closing-inner {
  position: relative;
  z-index: 2;
  padding: 104px 0 96px;
}

.closing-section .eyebrow { color: #e5dfff; }

.closing-section h2 {
  font-size: clamp(2.75rem, 4.6vw, 4.5rem);
  line-height: 1.12;
  margin: 24px 0 40px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* The closing band's second button: an outline on the band's violet. */
.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  box-shadow: none;
}

.button-outline:hover {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.closing-note {
  color: #e1dafa;
  font-size: 14px;
  margin-top: 24px;
}

.closing-spark {
  font-size: 44px;
  color: var(--yellow);
  display: block;
  margin-bottom: 24px;
}

.closing-orbit {
  position: absolute;
  width: 1000px;
  height: 500px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  left: calc(50% - 500px);
  top: 50px;
  transform: rotate(-20deg);
  box-shadow: 0 0 0 60px #ffffff04, 0 0 0 120px #ffffff03;
}

.site-footer {
  padding: 56px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-weight: 650;
}

/* Motion off */

html[data-motion=off] .reveal {
  opacity: 1;
  transform: none;
}

/* Breakpoints, widest first */

@media (min-width: 1600px) {
  .hero { min-height: 840px; }
  .hero-world { height: 680px; }
}

@media (max-width: 1150px) and (min-width: 701px) {
  :root { --gutter: 40px; }
}

@media (max-width: 900px) and (min-width: 701px) {
  :root { --frame-gutter: 24px; }
}

@media (min-width: 901px) {
  /* The nav keeps the place it had beside the wider logo of the mockup. */
  .site-header .wordmark { min-width: 216px; }
}

@media (max-width: 1150px) {
  .header-nav { gap: 24px; }
  .header-nav a { font-size: 13px; }
  .header-actions { gap: 16px; }

  .hero h1 { font-size: clamp(3.3rem, 6.5vw, 5rem); }
  .hero-world { height: 540px; }
  .cover-joy { width: 142px; }
  .cover-calm { width: 124px; }
  .note-one {
    right: 1%;
    width: 56px;
    height: 56px;
  }

  .pip-section { gap: 56px; }
  .faq-section { gap: 64px; }
}

@media (max-width: 900px) {
  :root { --header: 80px; }

  .site-header { gap: 20px; }
  .header-nav { display: none; }

  .hero {
    gap: 0;
    padding-top: 48px;
    min-height: 740px;
  }
  .hero h1 { font-size: clamp(3rem, 6.5vw, 4rem); }
  .hero-description { font-size: 17px; }
  .hero-actions .button {
    padding: 16px 20px;
    font-size: 14px;
  }
  .hero-actions .text-link { font-size: 14px; }
  .hero-footer { font-size: 12px; }
  .hero-world { height: 460px; }
  .floating-cover {
    padding: 8px;
    border-radius: var(--radius-md);
  }
  .floating-cover figcaption {
    font-size: 11px;
    margin-top: 8px;
  }
  .cover-joy { width: 112px; }
  .cover-calm { width: 106px; }
  .approved-mini {
    width: 17px;
    height: 17px;
  }
  .approved-mini .icon {
    width: 11px;
    height: 11px;
  }
  .note-one {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    top: 10%;
  }
  .note-one .icon {
    width: 24px;
    height: 24px;
  }
  .note-two { display: none; }

  .idea-intro { padding: 96px 0; }

  .pip-section { gap: 40px; }
  .pip-copy > p:not(.eyebrow) { font-size: 16px; }
  .founder-note > p { font-size: 16px; }
  .faq-section { gap: 40px; }
  .faq-list summary { font-size: 16px; }
}

@media (max-height: 740px) and (min-width: 701px) {
  .hero-world { height: clamp(400px, 70svh, 560px); }
}

@media (max-width: 700px) {
  :root { --header: 72px; }

  .site-header { gap: 8px; }
  .header-actions { gap: 4px; }
  .header-actions > .button {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  /* The hero stacks: heading, Pip's world, then the words and actions. */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 32px 88px;
    min-height: 0;
  }
  .hero-copy {
    display: contents;
    text-align: center;
  }
  .hero-copy > .eyebrow {
    grid-row: 1;
    text-align: center;
  }
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: .06em;
  }
  .tiny-spark { font-size: 20px; }
  .hero h1 {
    grid-row: 2;
    text-align: center;
    font-size: clamp(40px, 10.5vw, 56px);
    line-height: 1.04;
    margin-top: 20px;
  }
  .hero-world {
    grid-row: 3;
    justify-self: center;
    width: 100%;
    height: clamp(384px, 60svh, 520px);
    margin-top: 24px;
  }
  .hero-description {
    grid-row: 4;
    text-align: center;
    justify-self: center;
    font-size: 17px;
    line-height: 1.65;
    margin: 24px auto;
    max-width: 350px;
  }
  .hero-actions {
    grid-row: 5;
    justify-content: center;
    margin-bottom: 20px;
  }
  .hero-actions > .button {
    padding: 16px 24px;
    font-size: 14px;
  }
  .preview-note {
    grid-row: 6;
    text-align: center;
    font-size: 12px;
  }
  .world-glow { inset: 10% -12%; }
  .world-orbits {
    inset: 0 -6%;
    width: 112%;
    height: 100%;
  }
  .turntable {
    width: 76%;
    left: 12%;
    height: 70%;
  }
  .floating-cover figcaption {
    font-size: 10px;
    gap: 4px;
  }
  .cover-joy {
    width: 112px;
    left: -8px;
  }
  .cover-calm {
    width: 104px;
    right: -8px;
    top: 32%;
  }
  .approval-tag {
    font-size: 11px;
    padding: 8px 12px;
  }
  .approval-tag strong { font-size: 13px; }
  .note-one {
    top: 6%;
    right: 8%;
    width: 48px;
    height: 48px;
  }
  .hero-footer {
    bottom: 20px;
    flex-direction: column;
    gap: 16px;
    font-size: 11px;
  }
  .hero-footer .scroll-cue { display: none; }

  .idea-intro { padding: 80px 0; }
  .idea-intro h2 {
    font-size: 42px;
    margin: 24px auto;
  }
  .idea-intro > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }
  .idea-trail {
    gap: 16px 24px;
    margin-top: 32px;
    font-size: 12px;
  }
  .idea-trail .icon {
    width: 18px;
    height: 18px;
  }
  .idea-trail > li { gap: 8px; }

  .pip-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 0 80px;
  }
  .pip-portrait { width: min(350px, 90%); }
  .hello-sticker {
    font-size: 14px;
    right: -16px;
    top: 8px;
    padding: 12px 20px;
  }
  .pip-copy { text-align: center; }
  .pip-copy h2 {
    font-size: 40px;
    margin: 20px 0 24px;
  }
  .pip-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }

  .founder-section { padding-block: 72px; }
  .founder-note { padding: 32px 24px; }
  .founder-note h2 { font-size: 30px; }
  .founder-note > p { line-height: 1.8; }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 80px 0;
  }
  .faq-heading h2 {
    font-size: 40px;
    margin: 20px 0 0;
  }
  .faq-heading h2 br { display: none; }
  .faq-heading > img { display: none; }
  .faq-list summary {
    font-size: 16px;
    padding: 24px 0;
    gap: 16px;
  }
  .faq-list details > p {
    padding: 0 16px 24px 0;
    font-size: 15px;
    line-height: 1.8;
  }

  .lh-still {
    margin: 0 16px;
    padding: 64px 20px;
    border-radius: 28px;
  }
  .lh-still-genres li { font-size: 14px; }

  .closing-section {
    margin: 0 16px;
    border-radius: 28px;
  }
  .closing-inner { padding: 64px 0; }
  .closing-section h2 {
    font-size: 36px;
    margin: 24px 0 32px;
  }
  .closing-section .eyebrow {
    font-size: 11px;
    letter-spacing: .05em;
  }
  .closing-spark {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .closing-actions > .button {
    font-size: 14px;
    padding: 16px 20px;
  }
  .closing-note { font-size: 13px; }

  .site-footer {
    padding: 40px 0;
    flex-wrap: wrap;
    gap: 24px;
  }
  .site-footer p {
    order: 3;
    width: 100%;
    font-size: 12px;
  }
  .footer-links { font-size: 13px; }
}

@media (max-width: 380px) {
  .header-actions > .button { padding: 12px; }

  .hero-world { height: clamp(368px, 62svh, 472px); }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion=on]) .reveal {
    opacity: 1;
    transform: none;
  }
}
