/* The front page, in the app's own style: Helvetica, the mark, white and warm grey, one blue.
   The hero's pictures sit under its sentence; further down, three framed pictures hang on a gallery wall, each with its label. */
.lp { height: 100%; overflow-y: auto; overflow-x: hidden; background: var(--bg); color: var(--fg); }
.lp figure { margin: 0; }
.lp h1, .lp h2 { font-weight: 700; letter-spacing: -.035em; margin: 0; }
.lp .blue { color: var(--accent); }
.lp-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lp-row.center { justify-content: center; }
.lp .b.lp-cta { height: 46px; padding: 0 24px; font-size: 15.5px; font-weight: 600; }

.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 68px; padding: 0 28px; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }

/* hero: the sentence centered, and under it the picture that goes with it */
.lp-hero { display: flex; flex-direction: column; align-items: center; padding: 12vh 6vw 4vh; text-align: center; }
.lp-hero h1 { font-size: clamp(36px, 4.6vw, 76px); line-height: 1.06; white-space: nowrap; margin-bottom: 36px; animation: lp-up 1s var(--ease) both; }
.lp-hero-t .lp-row { animation: lp-up 1s .15s var(--ease) both; }
.lp-mark { display: inline-block; white-space: nowrap; animation: lp-in .5s var(--ease) both; }
@keyframes lp-in { from { opacity: 0; transform: translateY(.18em); } }
@keyframes lp-up { from { opacity: 0; transform: translateY(14px); } }

/* a handful of the crew, each with the green dot that means working */
.lp-crew { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.lp-crew b { color: var(--fg); font-variant-numeric: tabular-nums; }
.lp-faces { display: flex; }
.lp-faces > span { position: relative; animation: lp-pop .5s var(--ease) both; }
.lp-faces > span + span { margin-left: -5px; }
.lp-faces > span:nth-child(1) { z-index: 5; } .lp-faces > span:nth-child(2) { z-index: 4; } .lp-faces > span:nth-child(3) { z-index: 3; } .lp-faces > span:nth-child(4) { z-index: 2; }
.lp-faces .av { border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg); }
.lp-faces .st.on { animation: lp-pulse 1.8s ease-in-out infinite; }
.lp-faces > span:nth-child(2n) .st.on { animation-delay: .6s; } .lp-faces > span:nth-child(3n) .st.on { animation-delay: 1.1s; }
@keyframes lp-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes lp-pulse { 50% { background: #7fe0a3; } }

/* the pictures: one at a time, crossfading, each drifting slowly closer while it's up */
.lp-shots { position: relative; width: min(1180px, 100%); aspect-ratio: 2.1 / 1; margin-top: 8vh; border-radius: 16px; overflow: hidden; background: #e9e7e2; animation: lp-up 1.2s .3s var(--ease) both; }
.lp-shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.lp-shot.on { opacity: 1; }
.lp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0s 1.6s; }
.lp-shot.go img { transform: scale(1.08); transition: transform 8s cubic-bezier(.3,.1,.5,1); }
.lp-shots::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; }
.lp-credit { position: absolute; left: 22px; bottom: 18px; z-index: 2; font-size: 12.5px; color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.5); animation: lp-up .8s .3s var(--ease) both; }

/* a framed picture: a black frame, then a white mat */
.lp-mat { position: relative; background: #fff; padding: var(--matw, 22px); border: var(--frw, 9px) solid #161616; }
.lp-mat img { display: block; }

/* the product */
.lp-product { padding: 18vh 6vw; background: var(--side); }
.lp-product h2, .lp-end h2 { text-align: center; font-size: clamp(32px, 3.9vw, 58px); line-height: 1.06; }
.lp-product h2 { margin-bottom: 64px; }
/* a browser window, so it's plain the app lives on the web; inside it, the app's own markup and styles */
.lp-win { max-width: 1120px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--bg); text-align: left; box-shadow: 0 0 0 1px rgba(0,0,0,.09), 0 30px 70px -30px rgba(0,0,0,.28); }
.lp-bar { display: flex; align-items: center; height: 44px; padding: 0 14px; background: #efeeeb; border-bottom: 1px solid var(--line2); }
.lp-lights { display: flex; gap: 8px; width: 60px; }
.lp-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.lp-lights i:nth-child(2) { background: #febc2e; } .lp-lights i:nth-child(3) { background: #28c840; }
.lp-lights.ghost { visibility: hidden; }
.lp-url { flex: 1; max-width: 420px; margin: 0 auto; height: 28px; border-radius: 8px; background: #e2e1dd; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #55554f; }
.lp-url .icon { width: 13px; height: 13px; color: #8f8e89; }
.lp-win .app { height: 640px; }
.lp-win a.row { cursor: pointer; }
.lp-win .seam { cursor: default; pointer-events: none; }
.lp-a { animation: lp-up .45s var(--ease) both; }

/* the wall: plaster, a soft light from above, three frames of one size side by side, a small white label under each */
.lp-wall { padding: 18vh 4vw 20vh; background:
  radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255,255,255,.7), transparent 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  #f1ede6; }
.lp-gallery { --pic: clamp(200px, 19vw, 290px); display: grid; grid-template-columns: repeat(3, auto); grid-template-areas: "l m r" "la ma ra"; justify-content: center; column-gap: clamp(28px, 4vw, 72px); }
.lp-l { grid-area: l; } .lp-m { grid-area: m; } .lp-r { grid-area: r; }
.lp-gallery .lp-mat { box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 18px 34px -16px rgba(70,50,25,.45); }
.lp-gallery img, .lp-paper { width: var(--pic); aspect-ratio: .786; }
.lp-gallery img { object-fit: cover; }
.lp-r img { object-position: 18% 50%; }
/* the note: a real one, written by hand, on warm white paper */
.lp-paper { box-sizing: border-box; padding: 5% 3%; background: #fffdf7; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.lp-gallery .lp-paper img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
/* museum labels */
.lp-lab { justify-self: center; box-sizing: border-box; width: calc(var(--pic) * .78); margin-top: 26px; padding: 9px 12px 10px; background: #fff; font-size: 11.5px; line-height: 1.4; color: #4a4943; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 4px 10px -4px rgba(70,50,25,.2); }
.lp-la { grid-area: la; } .lp-ma { grid-area: ma; } .lp-ra { grid-area: ra; }
.lp-m.rv, .lp-ma.rv { transition-delay: .15s; } .lp-r.rv, .lp-ra.rv { transition-delay: .3s; }
.lp-video { max-width: 900px; margin: 12vh auto 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); }
.lp-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* the end runs edge to edge in black: the sky of the photograph is the page, so the Earth rises under the question */
.lp-end { position: relative; background: #000; color: #fff; text-align: center; padding-top: 15vh; overflow: hidden; }
.lp-end > .rv { position: relative; z-index: 1; padding: 0 6vw; }
.lp-end .lp-row { margin-top: 34px; }
.lp-end .b.lp-cta { background: #fff; color: #111; border-color: #fff; }
.lp-end small { display: block; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.5); }
.lp .lp-earth { position: relative; width: min(100%, 980px); margin: 40px auto 0; }
.lp-earth img { display: block; width: 100%; aspect-ratio: 1 / .6; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.lp-earth figcaption { position: absolute; left: 0; right: 0; bottom: 20px; font-size: 12.5px; color: rgba(255,255,255,.75); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.lp-foot { display: flex; align-items: center; gap: 10px; padding: 24px 28px 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.lp-foot b { color: var(--fg); font-size: 14px; }

.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .lp-nav { padding: 0 16px; height: 60px; }
  .lp-hero { padding: 64px 16px 40px; }
  .lp-hero h1 { font-size: 8.4vw; margin-bottom: 28px; }
  .lp-hero .lp-row { flex-direction: column; gap: 18px; }
  .lp-shots { aspect-ratio: 1 / 1; margin-top: 48px; border-radius: 12px; }
  .lp-product h2, .lp-end h2 { font-size: 8.4vw; }
  .lp-product { padding: 96px 14px; }
  .lp-product h2 { margin-bottom: 40px; padding: 0 8px; }
  .lp-win .app { height: 560px; }
  .lp-lights { width: 44px; gap: 6px; } .lp-lights i { width: 10px; height: 10px; }
  .lp-wall { padding: 88px 16px 104px; }
  .lp-gallery { --pic: 38vw; grid-template-columns: auto auto; grid-template-areas: "m m" "ma ma" "l r" "la ra"; column-gap: 20px; }
  .lp-m { justify-self: center; } .lp-m .lp-paper { --pic: min(100vw - 100px, 330px); }
  .lp-ma { width: min(100vw - 100px, 330px); margin-bottom: 56px; }
  .lp-gallery .lp-mat { --matw: 10px; --frw: 6px; }
  .lp-m .lp-mat { --matw: 16px; --frw: 8px; }
  .lp-lab { width: calc(var(--pic) + 20px); font-size: 11px; margin-top: 18px; }
  .lp-end { padding-top: 96px; }
  .lp .lp-earth { width: 100%; margin-top: 0; }
  .lp-earth img { aspect-ratio: auto; height: 110vw; -webkit-mask-image: none; mask-image: none; }
  .lp-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero h1, .lp-hero-t .lp-row, .lp-mark, .lp-a, .lp-faces > span, .lp-faces .st.on, .lp-credit { animation: none !important; }
  .lp-shot img, .lp-shot.go img { transform: none; transition: none; }
  .rv { opacity: 1; transform: none; }
}
