/* Allo, by Josh Puckett (SIL OFL, fonts/Allo-OFL.txt), baked at roundness 80 as in the app (scripts/allo/bake.py). Optical size follows the font size on its own. */
@font-face {
  font-family: "Allo";
  src: url("/fonts/baaw-allo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The walls, as paint: marigold, terracotta, celeste, olive, plaster, rose. Black ink on all of them. */
  --red: #EC9270;
  --yellow: #F4BD30;
  --blue: #8CC9C6;
  --green: #BDCC7F;
  --paper: #E5E5E5;
  --pink: #EDA9B6;
  --wall: var(--yellow);

  /* The page: a near-white field, quiet grey tiles, near-black type, and colour only where a wall is. Greys are Tailwind's Neutral ramp. */
  --field: #FAFAFA;
  --card: #F3F3F3;
  --raised: #fff;
  --tile: #E5E5E5;
  --tile-hover: #D4D4D4;
  --ink: #171717;
  --quiet: #737373;
  --hair: #D4D4D4;
  /* The filled controls: dark on light, light on dark. */
  --solid: #171717;
  --on-solid: #fff;
  --backdrop: rgb(0 0 0 / .32);
  --radius: clamp(20px, 2vw, 28px);
  /* The camera's yellow, for guides that are level, as in the app. */
  --level: #FFD60A;
  color-scheme: light dark;

  --face: "Allo", system-ui, sans-serif;
  /* The page is at most 1120 px wide, centred; every edge lines up on this. */
  --gutter: max(clamp(16px, 3.4vw, 48px), calc((100vw - 1120px) / 2));
  /* Animation.brandLean: response 0.42, damping 0.58, over 1 s. */
  --brand-lean: linear(0, .06, .205, .387, .575, .744, .882, .985, 1.053, 1.091, 1.106, 1.104, 1.09, 1.072, 1.052, 1.033, 1.017, 1.005, .996, .991, .989, .989, .99, .992, .994, .996, .998, .999, 1, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1, 1, 1, 1, 1);
}

/* The page goes dark with the system. The walls and share cards don't: black ink on paint, as exported. */
@media (prefers-color-scheme: dark) {
  :root {
    --field: #0A0A0A;
    --card: #161616;
    --raised: #262626;
    --tile: #262626;
    --tile-hover: #404040;
    --ink: #F5F5F5;
    --quiet: #A1A1A1;
    --hair: #404040;
    --solid: #F5F5F5;
    --on-solid: #0A0A0A;
    --backdrop: rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--field); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(16px, 1.2vw, 19px)/1.45 var(--face);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3, p { text-wrap: balance; }
ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.defs { position: absolute; }

h2 {
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -.022em;
}


.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- The page: a hero, then the tour a tile a page, then questions and the invite ---- */

main { padding: 0 var(--gutter); }

.hero-mark { display: block; width: 64px; height: 64px; margin-bottom: 28px; overflow: visible; color: var(--ink); }

/* The floating bar: icon, name and invite on a raised card. In on the brand's spring, from above,
   a little small; out quicker, as things leaving should. */
.float-bar {
  position: fixed; z-index: 3; top: max(12px, env(safe-area-inset-top)); left: 50%;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 24px); padding: 8px 8px 8px 8px;
  border-radius: 20px; background: var(--raised);
  box-shadow: 0 1px 3px rgb(0 0 0 / .08), 0 12px 32px rgb(0 0 0 / .12);
  opacity: 0; transform: translate(-50%, -130%) scale(.94);
  transition: transform 220ms cubic-bezier(.4, 0, 1, 1), opacity 160ms ease-out;
}
.float-bar.shown { opacity: 1; transform: translate(-50%, 0); transition: transform 1s var(--brand-lean), opacity 200ms ease-out; }
.float-bar img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.float-bar p { min-width: 0; display: grid; margin-right: 6px; line-height: 1.2; }
.float-bar b { font-size: 15px; font-weight: 600; }
.float-bar span { font-size: 13px; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:not(.js) .float-bar { display: none; }

/* Every button is flat: filled for the main ones, a quiet tile for the rest. */
.invite-open, .invite-form button, .flip-play { background: var(--solid); }
.quiet-button, .invite-close { background: var(--tile); }
.invite-open:active, .quiet-button:active, .invite-form button:active, .flip-play:active, .walk-play:active, .invite-close:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .quiet-button:hover { background: var(--tile-hover); } }
/* The ones with words are 34 px tall; the ::after keeps the target 44. */
.invite-open, .quiet-button, .invite-form button { position: relative; display: inline-flex; align-items: center; gap: .35em; min-height: 34px; padding: 0 14px; border-radius: 99em; font-size: 14px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease-out; }
.invite-open, .invite-form button { color: var(--on-solid); }
.quiet-button { color: var(--ink); }
.invite-open::after, .quiet-button::after, .invite-form button::after { content: ""; position: absolute; inset: -5px 0; }

.hero { display: grid; justify-items: center; text-align: center; padding: clamp(56px, 10vw, 128px) 0 clamp(64px, 10vw, 120px); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
/* The lines are fixed, so the word changing width only re-centres its line. */
.hero-line { display: block; white-space: nowrap; }
/* The word is a button: tapping it shows the next bike in every tile. Dotted underline says it can be pressed. */
.hero-word { display: inline-block; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-decoration-thickness: .06em; text-underline-offset: .14em; text-decoration-color: var(--quiet); border-radius: .2em; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .hero-word:hover { text-decoration-color: var(--ink); } }
.hero-word:active { transform: scale(.97); }
.hero p { max-width: 26em; margin-top: 20px; color: var(--quiet); font-size: clamp(16px, 1.4vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---- The tour: two across, each a picture over its icon, title and words ---- */

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); scroll-margin-top: 88px; }
.feature { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.pic { position: relative; aspect-ratio: 4 / 3; margin: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 0; }
.feature-text { margin-top: auto; padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px); }
.feature h2 { margin-top: 12px; font-size: clamp(18px, 1.5vw, 20px); font-weight: 700; line-height: 1.2; letter-spacing: -.012em; }
.feature p { margin-top: 4px; max-width: 34em; color: var(--quiet); text-wrap: pretty; }
/* The icon: the glyph alone, in the type's ink. */
.f-ico { display: block; width: 22px; height: 22px; }
.f-ico svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.f-ico svg[viewBox^="-"] { stroke-width: 24; }

/* A photo in a picture: paint behind a drawn bike, with the app's plate corners. */
.cam-photo, .sees-photo, .foot-photo { position: absolute; overflow: hidden; border-radius: 14px; background: var(--yellow); color: #000; }
.pic svg { display: block; overflow: visible; }

/* 1. The camera */
.cam-photo { inset: 0 0 64px; }
.cam-world, .cam-guide { position: absolute; inset: 0; }
.cam-world svg, .cam-guide { width: 100%; height: 100%; }
.cam-photo { will-change: transform; }
.cam-world, .cam-guide { will-change: transform; }
/* Horizon Lock's badge, on the phone's screen so it tips with it: a muted capsule while it looks,
   solid yellow with the lock shut once it holds. The ring is the yellow wave out from the middle. */
.cam-lock { position: absolute; left: 50%; top: 10px; translate: -50% -6px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 99em; background: rgb(0 0 0 / .45); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 200ms ease-out, translate 400ms var(--brand-lean), background-color 160ms ease-out, color 160ms ease-out; }
.cam-lock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cam-lock .shackle { transform: translate(3px, -1.5px) rotate(14deg); transform-origin: 16px 11px; transition: transform 220ms var(--brand-lean); }
.cam-lock.on { opacity: 1; translate: -50% 0; }
.cam-lock.held { background: var(--level); color: #000; }
.cam-lock.held .shackle { transform: none; }
.cam-ripple { position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--level); opacity: 0; pointer-events: none; }
.cam-guide .ring, .cam-guide .ring-under { fill: none; stroke-linecap: round; }
.cam-guide .ring-under { stroke: rgb(0 0 0 / .35); stroke-width: 7; }
.cam-guide .ring { stroke: #fff; stroke-width: 3.5; transition: stroke 160ms ease-out; }
.cam.level .cam-guide .ring { stroke: var(--level); }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.fire { animation: flash 260ms ease-out; }
@keyframes flash { from { opacity: .7; } to { opacity: 0; } }
.cam-shutter { position: absolute; left: 50%; bottom: 0; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: grid; place-items: center; }
.cam-shutter::before { content: ""; grid-area: 1 / 1; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); }
.cam-shutter svg { grid-area: 1 / 1; width: 100%; height: 100%; transform: rotate(-90deg); }
.cam-count { fill: none; stroke: var(--level); stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.cam-track { fill: none; stroke: var(--hair); stroke-width: 5; }

/* 2. The camera's foot, in the bike's paint */
.foot { --sheet: max(42%, 132px); }
.foot-photo { inset: 0 0 calc(var(--sheet) - 18px); }
.foot-strip { display: flex; width: 200%; height: 100%; will-change: transform; }
.foot-page { flex: 1; display: grid; place-items: center; }
.foot-page svg { width: 88%; height: 88%; }
.foot-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sheet); border-radius: 22px 22px 14px 14px; background: #3E5B45; color: #fff; display: grid; justify-items: center; align-content: center; gap: 8px; overflow: hidden; }
.foot-sheet.light { color: #000; }
.foot-zoom { display: flex; gap: 4px; padding: 3px; border-radius: 99em; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 11px; font-weight: 600; }
.foot-zoom span { display: grid; place-items: center; min-width: 26px; height: 22px; border-radius: 99em; }
.foot-zoom .on { background: color-mix(in srgb, currentColor 22%, transparent); }
.foot-shutter { width: 46px; height: 46px; border-radius: 50%; border: 3px solid currentColor; display: grid; place-items: center; }
.foot-shutter::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: currentColor; }
.foot-names { position: relative; width: 100%; height: 22px; }
.foot-name { position: absolute; left: 50%; top: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.foot-name svg { width: 20px; height: 14px; fill: none; stroke: currentColor; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

/* 3. Eyebaaw and the detector */
.sees-photo { inset: 0; }
.sees-bike, .sees-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.sees-bike { transition: opacity 300ms ease-out; }
.sees-photo.dim .sees-bike { opacity: .7; }
/* A fine field of white points washing across, as if it were being measured. */
.sees-scan {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle, rgb(255 255 255 / .95) 1.1px, transparent 1.6px) 0 0 / 11px 11px;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--wash, 0%) - 30%), #000 var(--wash, 0%), transparent calc(var(--wash, 0%) + 30%));
  mask-image: linear-gradient(90deg, transparent calc(var(--wash, 0%) - 30%), #000 var(--wash, 0%), transparent calc(var(--wash, 0%) + 30%));
}
.ripple { fill: none; stroke: #fff; stroke-width: 4; opacity: 0; }
.found { opacity: 0; }
.found-under { fill: none; stroke: rgb(0 0 0 / .3); stroke-width: 6; }
.found-box { fill: rgb(255 214 10 / .12); stroke: var(--level); stroke-width: 3; }
.found-label rect { fill: var(--level); }
.found-label text { fill: #000; font: 700 15px var(--face); }
.sees-badge { position: absolute; left: 50%; bottom: 14px; translate: -50% 8px; padding: 6px 12px; border-radius: 99em; background: rgb(0 0 0 / .62); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 200ms ease-out, translate 400ms var(--brand-lean); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sees-badge.on { opacity: 1; translate: -50% 0; }

/* 4. History, as the bike page draws it */
.history { overflow: hidden; border-radius: 14px; background: #2B2A26; color: #fff; }
.hist-page { position: absolute; inset: 0; padding: 18px 18px 0; }
.history .hist-name { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.history .hist-head { margin: 10px 0 10px; color: rgb(255 255 255 / .6); font-size: 13px; font-weight: 600; }
.hist-days { display: grid; gap: 10px; padding-left: 16px; border-left: 2px solid rgb(255 255 255 / .18); }
.hist-days li { position: relative; }
.hist-days li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.history .hist-date { color: rgb(255 255 255 / .6); font-size: 12px; line-height: 1.4; }
.hist-card { margin-top: 5px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .09); display: grid; gap: 8px; }
.history .hist-part { color: rgb(255 255 255 / .6); font-size: 11px; }
.history .hist-value { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.25; }
.hist-row s { display: block; color: rgb(255 255 255 / .5); font-size: 13px; line-height: 1.25; }
.history .hist-note { margin-top: 3px; color: rgb(255 255 255 / .7); font-size: 12px; font-style: italic; }
.hist-days li.drop { animation: drop 700ms var(--brand-lean) both; }
.hist-days li.drop ~ li { animation: nudge 700ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-36px) scale(.96); } }
@keyframes nudge { from { transform: translateY(-48px); } }
/* The foot fades into the tile, as the page carries on below. */
.history::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, #2B2A26); pointer-events: none; }

/* 5. The timelapse, with the bike's sticker */
.flip-player.pic { aspect-ratio: auto; display: flex; flex-direction: column; }
.flip-player .flip-view { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; }
.flip-player .flip-foot { padding-top: 12px; }
.sticker { position: absolute; left: 12px; top: 12px; display: flex; width: 172px; min-height: 62px; overflow: hidden; border-radius: 9px; background: #FBFAF7; color: #111; box-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 4px 12px rgb(0 0 0 / .12); transform: rotate(-4deg); }
.sticker-window { flex: none; width: 50px; display: grid; place-items: center; background: #3E5B45; }
.sticker-window svg { width: 30px; height: 30px; color: rgb(255 255 255 / .22); }
.sticker-words { min-width: 0; display: grid; align-content: center; padding: 7px 9px; font-size: 10px; line-height: 1.2; }
.sticker-words b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker-by { margin-top: 3px; color: #777; }
/* Wear: scratches, grime and a dulled coat, coming in as the years go by. */
.sticker-wear { position: absolute; inset: 0; opacity: 0; pointer-events: none; background:
  repeating-linear-gradient(115deg, transparent 0 9px, rgb(255 255 255 / .5) 9px 10px, transparent 10px 23px),
  radial-gradient(circle at 92% 88%, rgb(90 74 52 / .5), transparent 42%),
  radial-gradient(circle at 6% 10%, rgb(90 74 52 / .35), transparent 30%),
  linear-gradient(rgb(120 104 84 / .18), rgb(120 104 84 / .3)); mix-blend-mode: multiply; }

/* 6. The share cards, fanned */
.cards { display: grid; place-items: center; }
.cards .deck { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; align-items: center; }
.cards .card:nth-child(1) { transform: rotate(-6deg) translate(14%, 4%); }
.cards .card:nth-child(2) { z-index: 1; transform: scale(1.08); }
.cards .card:nth-child(3) { transform: rotate(6deg) translate(-14%, 4%); }
/* Play only on the card in front; the others are its deck. */
.cards .card:not(:nth-child(2)) .walk-play { display: none; }

/* ---- Questions ---- */

.faq { max-width: 38em; margin: clamp(72px, 9vw, 120px) auto 0; }
.faq details { margin: 2px 0; }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--quiet), var(--quiet)) center / 100% 2px no-repeat, linear-gradient(var(--quiet), var(--quiet)) center / 2px 100% no-repeat; transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px 24px; color: var(--quiet); }

/* ---- The invite ---- */

.end-cta { display: grid; justify-items: center; text-align: center; padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.end-icon { width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 4px 14px rgb(0 0 0 / .14); }
.end-cta h2 { margin-top: 22px; max-width: 14em; font-weight: 700; letter-spacing: -.028em; }
.end-cta p { margin: 12px 0 24px; color: var(--quiet); }
.end-cta .invite-dialog p { margin: 0; }
.end-cta .invite-dialog { text-align: left; }
.end-cta .invite-form p { color: var(--quiet); }
.end-cta .invite-note { color: var(--ink); font-weight: 600; }

/* ---- Walls, by change day (data-build, as in code) ---- */

[data-build="1"] { --wall: var(--yellow); }
[data-build="2"] { --wall: var(--pink); }
[data-build="3"] { --wall: var(--blue); }
[data-build="4"] { --wall: var(--paper); }
[data-build="5"] { --wall: var(--red); }
[data-build="6"] { --wall: var(--green); }
[data-build="7"] { --wall: var(--yellow); }

.bike { display: block; overflow: visible; }
/* ---- The mark: each letter turned about its ink centroid ---- */

.m-b, .m-a1, .m-a2, .m-w { transition: transform 1s var(--brand-lean); }
.m-b { transform: translate(-587.1px, -366.9px) rotate(-6deg); }
.m-a1 { transform: translate(244.9px, -529.4px) rotate(24deg); transition-delay: 60ms; }
.m-a2 { transform: translate(-626.9px, 483.1px) rotate(-30deg); transition-delay: 120ms; }
.m-w { transform: translate(319.1px, 330.8px) rotate(12deg); transition-delay: 180ms; }

/* ---- The flipbook ---- */

.flip-head p { margin-top: .4em; }
.flip-player { min-width: 0; margin-top: 16px; }
.flip-view { aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius) - 6px); background: var(--tile); }
.flip-frame { position: relative; width: 100%; height: 100%; overflow: hidden; }
.flip-tone { fill: var(--wall); }
.flip-frame .bike { position: absolute; inset: 0; width: 100%; height: 100%; }
.flip-scene { fill: #000; fill-opacity: .2; }
.flip-foot { padding-top: 16px; }
.flip-info { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; min-height: 2em; font-size: 16px; }
.flip-label { font-weight: 600; }
.flip-date { color: var(--quiet); }
.flip-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.flip-play {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.flip-play::before, .flip-play::after { content: ""; grid-area: 1 / 1; background: var(--on-solid); transition: opacity 160ms cubic-bezier(.23, 1, .32, 1), transform 160ms cubic-bezier(.23, 1, .32, 1); }
.flip-play::before { width: 15px; height: 17px; margin-left: 3px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.flip-play::after { width: 14px; height: 15px; background: linear-gradient(90deg, var(--on-solid) 35%, transparent 35% 65%, var(--on-solid) 65%); opacity: 0; transform: scale(.6); }
.playing .flip-play::before, .rail-play.playing::before { opacity: 0; transform: scale(.6); }
.playing .flip-play::after, .rail-play.playing::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .flip-view { cursor: ew-resize; } }
.flip-track { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; touch-action: pan-y; }
.flip-track:focus-visible { outline-offset: 0; }
/* A line for each frame, as on the app's track: the frame's stands full height, its build's are darker. */
.flip-segment { flex: 1; min-width: 0; display: flex; justify-content: space-around; pointer-events: none; }
.flip-tick { width: 2px; height: 24px; border-radius: 1px; background: var(--hair); transform: scaleY(.5); transition: transform 120ms ease-out, background-color 120ms ease-out; }
.flip-tick.near { background: var(--quiet); }
.flip-tick.on { background: var(--ink); transform: none; }
html:not(.js) .flip-foot { display: none; }

/* ---- Cards: type sized against the card, so it's the same card at any width ---- */

.cards-head { display: grid; gap: .7em; max-width: 40em; }
.cards-head p { color: var(--quiet); }
.deck {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  margin: clamp(24px, 3vw, 44px) auto 0;
}
.card {
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .08);
  transition: transform 700ms cubic-bezier(.23, 1, .32, 1), opacity 400ms ease-out;
}
.card:nth-child(2) { transition-delay: 60ms; }
.card:nth-child(3) { transition-delay: 120ms; }
.js .deck:not(.in) .card { opacity: 0; transform: translateY(24px); }

.card > *, .card .plate { font-size: 3.4cqw; }
.card .pill { font-size: 2.5cqw; }
.card b { font-weight: 800; }
.plate { background: var(--wall); display: grid; place-items: center; overflow: hidden; position: relative; }
.plate .bike { width: 86%; }
.cfoot { display: flex; justify-content: space-between; align-items: center; }
.cmark { width: 7cqw; height: 7cqw; }

.museum { background: #E9E7E2; color: #211F1B; padding: 7% 7% 5%; display: flex; flex-direction: column; }
.museum .plate { aspect-ratio: 4 / 2.25; flex: none; box-shadow: 0 1px 8px rgb(0 0 0 / .18); }
.museum .label { background: #F7F6F2; margin-top: 5cqw; padding: 4cqw 4.4cqw; display: grid; gap: .45em; font-size: 2.9cqw; line-height: 1.2; box-shadow: 0 1px 6px rgb(0 0 0 / .1); }
.museum .label b { font-size: 5cqw; }
.museum .row { display: flex; gap: .7em; align-items: center; margin: .25em 0; }
.museum dl { margin-top: 3cqw; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .9cqw 2cqw; font-size: 2.3cqw; line-height: 1.2; }
.museum dt { opacity: .6; }
.museum .cfoot { margin-top: auto; font-size: 2.6cqw; font-variant-numeric: tabular-nums; }

.meta { background: #0B0B0B; color: #fff; padding: 0; }
.meta .plate { height: 62%; align-items: start; padding-top: 9cqw; }
.meta .plate::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #0B0B0B); }
.meta > .cmark { position: absolute; top: 4cqw; right: 4cqw; color: #000; }
.meta .name { position: absolute; left: 5cqw; right: 5cqw; top: 41%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1cqw; }
.meta .name b { width: 100%; white-space: nowrap; font-size: calc(13cqw * var(--fit, 1)); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.meta .line { display: flex; justify-content: space-between; margin: 1.5cqw 5cqw 0; font-size: 2.8cqw; opacity: .75; }
.meta .line + .line { margin-top: .6cqw; }
.meta dl { margin: 2.4cqw 5cqw 0; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 1.3cqw 2.4cqw; font-size: 2.7cqw; border-top: 1px solid rgb(255 255 255 / .3); padding-top: 2.4cqw; }
.meta dt { opacity: .6; }
.meta .cfoot { position: absolute; left: 5cqw; right: 5cqw; bottom: 3.6cqw; border-top: 1px solid rgb(255 255 255 / .3); padding-top: 1.8cqw; font-size: 2.6cqw; opacity: .75; }

.swiss { background: #fff; color: #211F1B; display: flex; flex-direction: column; }
.swiss .plate { height: 44%; flex: none; }
.swiss .plate .bike { width: 62%; margin-top: 5cqw; }
.swiss .head { display: block; align-self: flex-start; width: calc(100% - 10cqw - max(44px, 11cqw) - 2cqw); white-space: nowrap; margin: 3cqw 5cqw 0; font-size: calc(12cqw * var(--fit, 1)); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.swiss .byline { margin: 2cqw 5cqw 0; display: grid; gap: .5cqw; font-size: 2.9cqw; line-height: 1.2; }
.swiss dl { margin: 2.6cqw 5cqw 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; font-size: 2.5cqw; line-height: 1.2; border-top: 1px solid #000; padding-top: 1.6cqw; }
.swiss dt { opacity: .6; }
.swiss dd { font-weight: 700; }
.swiss .cfoot { margin: auto 5cqw 3.4cqw; font-size: 2.5cqw; }
.swiss .cmark { width: 6cqw; height: 6cqw; }

/* Play on a card: the walk, as in the reel. Its words sit where each look has room for them. */
.walk-play {
  position: absolute; z-index: 2;
  bottom: 3.4cqw;
  width: max(44px, 11cqw); height: max(44px, 11cqw);
  border-radius: 50%;
  /* The cards don't change with the page, so neither do their buttons. */
  background: #171717;
  --walk-icon: var(--yellow);
  display: grid; place-items: center;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.walk-play::before, .walk-play::after {
  content: ""; grid-area: 1 / 1;
  background: var(--walk-icon);
  transition: opacity 160ms cubic-bezier(.23, 1, .32, 1), transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.walk-play::before { width: 34%; height: 40%; margin-left: 8%; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.walk-play::after { width: 30%; height: 30%; opacity: 0; transform: scale(.6); }
.walking .walk-play::before { opacity: 0; transform: scale(.6); }
.walking .walk-play::after { opacity: 1; transform: none; }
.museum .walk-play { right: 20cqw; }
.meta .walk-play {
  right: 5cqw; --walk-icon: #000;
  background: #fff;
}
.swiss .walk-play { right: 5cqw; bottom: auto; top: calc(44% + 3cqw); }

.walk-hero { position: absolute; left: 5cqw; right: 5cqw; top: 76cqw; display: grid; gap: .6cqw; opacity: 0; pointer-events: none; }
.walk-hero span { font-size: 3cqw; opacity: .65; }
.card .walk-hero b { font-size: 6.4cqw; font-weight: 900; line-height: 1.02; letter-spacing: -.025em; }
.museum { --walk-grows: 1; }
.museum .walk-hero { left: 7%; top: 92cqw; }
.meta { --walk-grows: 1; }
.meta .plate::after { top: calc(40% + var(--walk-open, 0) * 42%); }
.meta .walk-hero { top: 98cqw; }
.swiss .walk-hero { top: 74cqw; }

/* ---- The invite form ---- */

.invite-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: var(--raised); color: inherit; box-shadow: 0 2px 6px rgb(0 0 0 / .08), 0 24px 64px rgb(0 0 0 / .22); }
/* Closing: quick, and kept in the top layer until it has finished. */
.invite-dialog { opacity: 0; transform: translateY(6px) scale(.98); transition: opacity 150ms ease-out, transform 150ms ease-out, overlay 150ms allow-discrete, display 150ms allow-discrete; }
.invite-dialog::backdrop { background: rgb(0 0 0 / 0); transition: background-color 150ms ease-out, overlay 150ms allow-discrete, display 150ms allow-discrete; }
/* Opening. */
.invite-dialog[open] { opacity: 1; transform: none; transition: opacity 200ms ease-out, transform 260ms cubic-bezier(.23, 1, .32, 1), overlay 260ms allow-discrete, display 260ms allow-discrete; }
.invite-dialog[open]::backdrop { background: var(--backdrop); transition: background-color 200ms ease-out, overlay 260ms allow-discrete, display 260ms allow-discrete; }
@starting-style { .invite-dialog[open] { opacity: 0; transform: translateY(12px) scale(.98); } }
@starting-style { .invite-dialog[open]::backdrop { background: rgb(0 0 0 / 0); } }
.invite-box { position: relative; padding: clamp(24px, 3vw, 32px); }
.invite-box h3 { padding-right: 44px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
/* It stays in reach while the questions scroll. */
.invite-close { position: sticky; z-index: 1; float: right; top: 16px; margin: -8px -8px 0 0; width: 44px; height: 44px; border-radius: 50%; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.invite-close::before, .invite-close::after { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); }
.invite-close::after { transform: rotate(-45deg); }
html:not(.js) .invite-dialog { display: block; position: static; width: auto; margin: 16px 0 0; box-shadow: none; background: none; opacity: 1; transform: none; }
html:not(.js) .invite-box { padding: 0; }
html:not(.js) .invite-open, html:not(.js) .invite-close { display: none; }
.invite-form { position: relative; display: grid; gap: 18px; max-width: 32em; margin-top: clamp(24px, 3vw, 40px); }
.invite-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 500; color: var(--quiet); }
.invite-form input { min-height: 44px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; color: var(--ink); font: inherit; font-size: 18px; font-weight: 500; transition: border-color 160ms ease-out; }
.invite-form input:focus { outline: 0; border-bottom-color: var(--ink); }
.invite-form button { justify-self: start; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.invite-form button:disabled { opacity: .6; cursor: default; }
.end-cta .invite-fine { margin: 0; font-size: 14px; }
.invite-fine a { color: inherit; }
.invite-trap { position: absolute; left: -9999px; }
.invite-note { display: none; }
.end-cta .invite-note { font-weight: 600; color: var(--ink); }
.invite-note:target, .invite-note.shown { display: block; }
#invite-sent:target ~ #invite-form, #invite-sent.shown ~ #invite-form { display: none; }
/* The questions: only after the invite is sent, so only where the script runs. */
.invite-survey { display: none; }
#invite-sent.shown ~ .invite-survey { display: grid; }
#invite-sent.shown ~ #survey-done.shown { display: block; }
#invite-sent.shown ~ .invite-survey:has(~ #survey-done.shown) { display: none; }
#invite-sent:focus, #survey-done:focus { outline: 0; }
/* The thank-you and the questions after it ease in rather than jump: a little rise on the brand's spring. */
.invite-note.shown, #invite-sent.shown ~ .invite-survey { transition: opacity 200ms ease-out, transform 400ms var(--brand-lean); }
#invite-sent.shown ~ .invite-survey { transition-delay: 60ms; }
@starting-style {
  .invite-note.shown, #invite-sent.shown ~ .invite-survey { opacity: 0; transform: translateY(8px); }
}
.invite-survey p { margin: 0; font-size: 15px; }
.invite-survey fieldset { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.invite-survey legend { padding: 0 0 10px; font-size: 15px; font-weight: 500; color: var(--quiet); }
.invite-form .choice { position: relative; display: block; font-size: 14px; color: var(--ink); cursor: pointer; }
.invite-form .choice input { position: absolute; inset: 0; min-height: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 99em;
  background: var(--tile);
  transition: background-color 160ms ease-out;
}
.choice input:checked + span {
  background: var(--solid);
  color: var(--on-solid);
}
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.end {
  display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap;
  color: var(--quiet);
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  font-size: 15px;
}
.end a { color: inherit; text-underline-offset: .2em; display: inline-block; padding: 10px 0; margin: -10px 0; }
.end a:hover { color: var(--ink); }

/* ---- Narrow ---- */

@media (max-width: 760px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { width: 52px; height: 52px; margin-bottom: 22px; }
  .float-bar span { display: none; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
}
@media (max-width: 380px) {
  .hero-line { white-space: normal; }
}

/* Without the script each picture is its drawing and words; the loops aren't there. */
html:not(.js) .cam-shutter, html:not(.js) .foot-sheet, html:not(.js) .sees-badge, html:not(.js) .flip-foot, html:not(.js) .sticker { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .invite-dialog::backdrop { transition: none !important; }
  .invite-note.shown, #invite-sent.shown ~ .invite-survey { transform: none; transition: opacity 150ms ease-out !important; }
  .walk-play::before, .walk-play::after, .flip-play::before, .flip-play::after { transform: none !important; transition: opacity 120ms ease-out !important; }
  /* With Reduce Motion the bar fades in place. */
  .float-bar, .float-bar.shown { transform: translate(-50%, 0); transition: opacity 200ms ease-out !important; }
}
