/* The platform layer: the parts of the site that belong to no single app. Which top
   bar parts each app shows, the app switcher, Home (the launcher: a gallery of app cards,
   one for each app the person can open) and the sheet that introduces the apps. Colours, radii
   and type come from the tokens in app.css, so dark mode follows them. */

/* ---------------------------------------------- which app shows what */

/* The deck app's top bar parts (marked deck-only in index.html) stay out of the hub, Ideas and Home. */
html[data-app='hub'] .deck-only,
html[data-app='ideas'] .deck-only,
html[data-app='boardroom'] .deck-only,
html[data-app='home'] .deck-only {
  display: none !important;
}

/* The footer lists the deck app's pages; it has no place outside it. */
html[data-app='hub'] .footer,
html[data-app='ideas'] .footer,
html[data-app='boardroom'] .footer,
html[data-app='home'] .footer {
  display: none;
}

/* Someone without Decks (data-decks="off", app.js) still gets the deck app's top bar on
   Settings, but only its menu, without the deck pages, the Add buttons or the deck tools. */
html[data-decks='off'] .deck-only:not(.menu),
html[data-decks='off'] .footer,
html[data-decks='off'] #menu .menu__list--nav,
html[data-decks='off'] #menu .menu__sep--nav,
html[data-decks='off'] #menu .menu__head,
html[data-decks='off'] #menu .menu__adds,
html[data-decks='off'] #menu .menu__adds + .menu__sep,
html[data-decks='off'] #menu :is([data-action='find-logos'], [data-action='tags'], [data-action^='samples-'], [data-action='tour']) {
  display: none !important;
}

/* ------------------------------------------------------ app switcher */

/* The slot next to the logo hands its button straight to the top bar's row. */
.topbar__switcher {
  display: contents;
}

/* Home has the big orb in the middle; the little one (the way back to Home) waits for an app. */
html[data-app='home'] .topbar .logo {
  display: none;
}

.app-switcher .menu__panel {
  min-width: 272px;
}

/* --------------------------------------------------------------- Home */

.home-chrome .menu__foot {
  overflow-wrap: anywhere;
}

.launcher {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 6vh;
}

.launcher__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  text-align: center;
}

.launcher__orb {
  width: 112px;
  height: 112px;
  margin-bottom: 4px;
}

.launcher__title {
  max-width: 100%;
  font-size: 32px;
  font-weight: 510;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.launcher__lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.launcher__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

/* Two to a row where three would squeeze the pictures (one to a row on phones, below). */
@media (max-width: 1080px) {
  .launcher__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* One or two apps: the cards keep a full row's width and sit in the middle. */
.launcher__cards--1,
.launcher__cards--2 {
  justify-content: center;
}

.launcher__cards--1 {
  grid-template-columns: minmax(0, 384px);
}

.launcher__cards--2 {
  grid-template-columns: repeat(2, minmax(0, 384px));
}

/* Someone an admin hasn't given any app yet. */
.launcher__none {
  grid-column: 1 / -1;
  max-width: 44ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}

/* One app: a picture panel inset in a hairline card that lifts like a deck tile. */
.launcher__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.24s var(--ease), border-color 0.2s var(--ease), box-shadow 0.24s var(--ease);
}

@media (hover: hover) {
  .launcher__card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-tile);
  }

  .launcher__card:hover .launcher__open {
    background: var(--soft-3);
  }

  .launcher__card:hover .launcher__open svg {
    transform: translateX(3px);
  }
}

.launcher__open svg {
  transition: transform 0.24s var(--ease);
}

.launcher__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
}

.launcher__name {
  font-size: 22px;
  font-weight: 510;
  line-height: 1.2;
}

.launcher__text {
  max-width: 44ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

.launcher__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-left: 12px;
}

.launcher__count {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* The pictures: drawn in CSS, from the tokens, so they follow the theme. */
.launcher__art {
  position: relative;
  container-type: inline-size;
  height: 216px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(circle at 30% 12%, var(--soft-2), transparent 70%), var(--soft-1);
}

/* The Asset Hub: a folder tree beside one described asset. */
.launcher__art--hub {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 188px);
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

.launcher__tree,
.launcher__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.launcher__sub {
  margin-left: 14px;
  padding-left: 6px;
  border-left: 1px solid var(--line-strong);
}

.launcher__node {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.launcher__node.is-open {
  color: var(--ink);
}

.launcher__node.is-current {
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  color: var(--ink);
}

.launcher__folder {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 11px;
  margin-top: 2px;
  border-radius: 2px 3px 3px 3px;
  background: currentColor;
  opacity: 0.55;
}

.launcher__folder::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 6px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

/* A third of the row is narrower than the tree and the asset need side by side. */
@container (max-width: 400px) {
  .launcher__art--hub {
    grid-template-columns: minmax(0, 150px) minmax(0, 168px);
    gap: 14px;
    padding: 0 14px;
  }
}

/* The Boardroom: a long table seen from its end, the board around it, the screen beyond. */
.launcher__art--boardroom {
  --tw: 150px;
  --th: 108px;
  --tt: 84px;
}

.launcher__screen {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 92px;
  height: 52px;
  border: 3px solid color-mix(in srgb, var(--ink) 78%, transparent);
  border-radius: 6px;
  background: var(--surface);
  transform: translateX(-50%);
}

.launcher__screen::before,
.launcher__screen::after {
  content: '';
  position: absolute;
  left: 12px;
  height: 5px;
  border-radius: 3px;
  background: var(--soft-3);
}

.launcher__screen::before {
  top: 12px;
  width: 44px;
}

.launcher__screen::after {
  top: 24px;
  width: 28px;
}

.launcher__table {
  position: absolute;
  left: 50%;
  top: var(--tt);
  width: var(--tw);
  height: var(--th);
  background: linear-gradient(to bottom, color-mix(in srgb, #c9a77c 50%, var(--surface)), color-mix(in srgb, #c9a77c 72%, var(--surface)));
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.launcher__seat {
  --t: calc((var(--n) + 0.5) / 5);
  --s: calc(11px + var(--n) * 1.6px);
  position: absolute;
  top: calc(var(--tt) + var(--th) * var(--t) - var(--s) / 2);
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  transition: transform 0.4s var(--ease);
}

.launcher__seat--left {
  left: calc(50% - var(--tw) / 2 + var(--tw) * 0.36 * (1 - var(--t)) - var(--s) - 5px);
}

.launcher__seat--right {
  left: calc(50% + var(--tw) / 2 - var(--tw) * 0.36 * (1 - var(--t)) + 5px);
}

.launcher__seat--head {
  --s: 11px;
  left: calc(50% - 5.5px);
  top: calc(var(--tt) - 13px);
}

.launcher__bubble {
  position: absolute;
  left: calc(50% + 56px);
  top: 104px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border-radius: 9px 9px 9px 2px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  .launcher__card:hover .launcher__bubble {
    transform: translateY(-4px) scale(1.06);
  }

  .launcher__card:hover .launcher__seat--right:nth-of-type(7) {
    transform: translateY(-2px);
  }
}

/* The narrowest phones: the picture gives up some padding so nothing is cut. */
@container (max-width: 290px) {
  .launcher__art--hub {
    gap: 10px;
    padding: 0 10px;
  }

  .launcher__node {
    gap: 6px;
    padding: 0 6px;
    font-size: 12px;
  }

  .launcher__sub {
    margin-left: 8px;
    padding-left: 4px;
  }
}

.launcher__asset {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 7px 7px 10px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  .launcher__card:hover .launcher__asset {
    transform: translateY(-4px) rotate(-1.2deg);
  }
}

.launcher__thumb {
  display: block;
  height: 72px;
  border-radius: 8px;
  background: radial-gradient(circle at 24% 34%, color-mix(in srgb, var(--blue) 50%, transparent), transparent 56%),
    radial-gradient(circle at 80% 78%, color-mix(in srgb, var(--ink) 26%, transparent), transparent 62%), var(--tile);
}

.launcher__caption {
  padding: 0 3px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 3px;
}

.launcher__tags span {
  height: 19px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 19px;
}

/* oliver.deck: three covers fanned out (sized by the picture's own width); they open a little wider when the card is hovered. */
.launcher__art--deck {
  --spread: 0.64;
}

.launcher__cover {
  --w: clamp(96px, 31cqw, 156px);
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  width: var(--w);
  aspect-ratio: 16 / 9;
  padding: 11px 12px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-tile);
  transform: translate(calc(-50% + var(--dx)), -50%) rotate(var(--tilt));
  transition: transform 0.4s var(--ease);
}

.launcher__cover::before {
  content: '';
  position: absolute;
}

.launcher__cover i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: currentColor;
}

.launcher__cover i + i {
  width: 38%;
  height: 5px;
  opacity: 0.4;
}

.launcher__cover i:first-child {
  width: 64%;
}

.launcher__cover--1 {
  --dx: calc(var(--w) * var(--spread) * -1);
  --tilt: -9deg;
  z-index: 1;
  background: var(--ink);
  color: var(--bg);
}

.launcher__cover--1::before {
  top: 10px;
  right: 11px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
}

.launcher__cover--2 {
  --dx: 0px;
  --tilt: 0deg;
  z-index: 3;
  background: var(--surface);
  box-shadow: var(--shadow-tile), 0 0 0 1px var(--line);
  color: var(--ink);
}

.launcher__cover--2::before {
  top: 11px;
  left: 12px;
  width: 36%;
  height: 30%;
  border-radius: 4px;
  background: var(--blue);
}

.launcher__cover--3 {
  --dx: calc(var(--w) * var(--spread));
  --tilt: 9deg;
  z-index: 2;
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  color: var(--ink);
}

.launcher__cover--3::before {
  top: 11px;
  right: 12px;
  width: 34px;
  height: 24px;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 8px 45% no-repeat, linear-gradient(var(--blue), var(--blue)) 13px 100% / 8px 100% no-repeat,
    linear-gradient(var(--blue), var(--blue)) 26px 100% / 8px 70% no-repeat;
}

@media (hover: hover) {
  .launcher__card:hover .launcher__art--deck {
    --spread: 0.74;
  }
}

/* Pitchside: a pitch seen from above, tipped back a little, with two teams and the ball. */
.launcher__art--pitch {
  display: grid;
  place-items: center;
  perspective: 640px;
}

.launcher__pitch {
  --chalk: color-mix(in srgb, #fff 82%, transparent);
  position: relative;
  width: min(80%, 290px);
  aspect-ratio: 105 / 68;
  border: 2px solid var(--chalk);
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, #3c9a58 64%, var(--surface)) 0 10%, color-mix(in srgb, #3c9a58 74%, var(--surface)) 10% 20%);
  box-shadow: var(--shadow-tile);
  transform: rotateX(26deg);
  transition: transform 0.4s var(--ease);
}

.launcher__line {
  position: absolute;
  border: 2px solid var(--chalk);
}

.launcher__line--half {
  left: 50%;
  top: 0;
  bottom: 0;
  border-width: 0 0 0 2px;
  transform: translateX(-1px);
}

.launcher__line--circle {
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.launcher__line--box-l,
.launcher__line--box-r {
  top: 24%;
  width: 15%;
  height: 52%;
}

.launcher__line--box-l {
  left: -2px;
  border-left: 0;
}

.launcher__line--box-r {
  right: -2px;
  border-right: 0;
}

.launcher__player {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease);
}

.launcher__player--home {
  background: #e0313f;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 0 0 1.5px #fff;
}

.launcher__player--away {
  background: #fff;
}

.launcher__ball {
  position: absolute;
  left: 52%;
  top: 44%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px #1d1d1f;
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease), top 0.6s var(--ease);
}

@media (hover: hover) {
  .launcher__card:hover .launcher__pitch {
    transform: rotateX(18deg);
  }

  .launcher__card:hover .launcher__ball {
    left: 70%;
    top: 52%;
  }

  .launcher__card:hover .launcher__player--home:nth-of-type(8) {
    transform: translate(calc(-50% + 10px), -50%);
  }
}

/* NOCTURNE: one painting in a gilded frame on a gallery wall after midnight, lit from above.
   Always dark, like the museum itself. */
.launcher__art--nocturne {
  border-color: #26231e;
  background: radial-gradient(ellipse 70% 90% at 50% -10%, #2d2922, #0e0e10 72%);
}

.launcher__beam {
  position: absolute;
  left: 50%;
  top: 0;
  width: 240px;
  height: 100%;
  background: linear-gradient(to bottom, rgb(255 236 200 / 0.16), rgb(255 236 200 / 0.04) 70%, transparent);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: 0.75;
  transform: translateX(-50%);
  transition: opacity 0.4s var(--ease);
}

.launcher__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 136px;
  height: 100px;
  padding: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, #d4b061, #8a6a2c 38%, #e6c97f 58%, #7d5f27);
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.6);
  transform: translate(-50%, -58%);
}

.launcher__painting {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 22% 30%, rgb(255 255 255 / 0.8) 0 0.6px, transparent 1.2px), radial-gradient(circle at 40% 14%, rgb(255 255 255 / 0.7) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 56% 34%, rgb(255 255 255 / 0.6) 0 0.5px, transparent 1.1px), linear-gradient(to bottom, #101d38, #2a3d68 62%, #6a5f7e);
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.35);
}

.launcher__moon {
  position: absolute;
  right: 18%;
  top: 16%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3e6bd;
  box-shadow: 0 0 10px 2px rgb(243 230 189 / 0.45);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.launcher__hills {
  position: absolute;
  left: -20%;
  right: -10%;
  bottom: -30%;
  height: 62%;
  border-radius: 50% 60% 0 0;
  background: #0d1627;
}

.launcher__plaque {
  position: absolute;
  left: 50%;
  top: calc(50% + 56px);
  width: 36px;
  height: 8px;
  border-radius: 2px;
  background: #b69656;
  opacity: 0.75;
  transform: translateX(-50%);
}

@media (hover: hover) {
  .launcher__card:hover .launcher__moon {
    box-shadow: 0 0 18px 6px rgb(243 230 189 / 0.6);
    transform: translateY(-3px);
  }

  .launcher__card:hover .launcher__beam {
    opacity: 1;
  }
}

/* Ideas: a small board of idea cards, one of them lit. */
.launcher__art--ideas {
  display: grid;
  place-items: center;
}

.launcher__board {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 10px;
  transform: rotate(-2deg);
}

.launcher__note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 64px;
  padding: 11px 10px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  transition: transform 0.4s var(--ease);
}

.launcher__note i {
  display: block;
  width: 46%;
  height: 5px;
  border-radius: 3px;
  background: var(--soft-3);
}

.launcher__note i:first-child {
  width: 82%;
  height: 6px;
  background: color-mix(in srgb, var(--ink) 34%, transparent);
}

.launcher__note i:nth-child(2) {
  width: 64%;
}

.launcher__note--2,
.launcher__note--6 {
  transform: translateY(6px);
}

.launcher__note--4 {
  transform: translateY(-4px);
}

.launcher__note.is-lit {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  box-shadow: var(--shadow-tile), 0 0 0 1.5px var(--blue);
}

.launcher__note.is-lit i:first-child {
  background: var(--blue);
}

@media (hover: hover) {
  .launcher__card:hover .launcher__note.is-lit {
    transform: translateY(-4px) rotate(3deg);
  }
}

/* Narrow cards: the board and the painting give up a little size so nothing is cut. */
@container (max-width: 290px) {
  .launcher__board {
    grid-template-columns: repeat(3, 66px);
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .launcher {
    justify-content: flex-start;
    gap: 28px;
    padding: 8px 0 24px;
  }

  .launcher__orb {
    width: 96px;
    height: 96px;
  }

  .launcher__title {
    font-size: 28px;
  }

  .launcher__lede {
    font-size: 16px;
  }

  .launcher__cards,
  .launcher__cards--1,
  .launcher__cards--2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .launcher__art {
    height: 200px;
  }

  .launcher__art--hub {
    gap: 14px;
    padding: 0 14px;
  }

  .launcher__thumb {
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launcher__card:hover .launcher__bubble,
  .launcher__card:hover,
  .launcher__card:hover .launcher__asset,
  .launcher__card:hover .launcher__moon {
    transform: none;
  }

  .launcher__card:hover .launcher__player {
    transform: translate(-50%, -50%);
  }

  .launcher__card:hover .launcher__pitch {
    transform: rotateX(26deg);
  }

  .launcher__card:hover .launcher__note.is-lit {
    transform: translateY(6px);
  }

  .launcher__card:hover .launcher__ball {
    left: 52%;
    top: 44%;
  }
}

/* ------------------------------------------- the two-apps introduction */

/* A sheet like the deck tour's (size 'tour'), but with room around its text instead of a picture on top. */
.sheet.sheet--tour.intro {
  width: min(920px, calc(100vw - 32px));
}

.sheet.intro .sheet__panel {
  gap: 28px;
  padding: 44px 48px 36px;
}

.sheet.intro .sheet__title {
  font-size: 26px;
  line-height: 1.15;
}

.intro__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.intro__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.intro__card:hover {
  box-shadow: var(--shadow-tile);
  transform: translateY(-2px);
}

.intro__words {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px 22px;
}

/* ------------------------------------------------ drawn photos (shared) */
/* Small landscapes drawn in CSS, for the intro and the hub tour (no image files). */

.art-pic {
  display: block;
  background: linear-gradient(#cfe4ff, #eef5ff);
}

.art-pic--sky {
  background:
    linear-gradient(to top right, #2f5d8a 50%, transparent 50.5%) 0 100% / 70% 55% no-repeat,
    linear-gradient(to top left, #23476b 50%, transparent 50.5%) 100% 100% / 60% 45% no-repeat,
    linear-gradient(#8ec5ff, #e4f1ff);
}

.art-pic--dusk {
  background:
    radial-gradient(circle at 68% 58%, #ffe0b0 0 9%, transparent 10%),
    linear-gradient(to top right, #2a1f4d 50%, transparent 50.5%) 0 100% / 70% 60% no-repeat,
    linear-gradient(to top left, #3b2b66 50%, transparent 50.5%) 100% 100% / 60% 50% no-repeat,
    linear-gradient(#f2709c, #ff9472);
}

.art-pic--sun {
  background:
    radial-gradient(circle at 30% 62%, #fff3c4 0 11%, transparent 12%),
    linear-gradient(to top left, #3b2b20 50%, transparent 50.5%) 100% 100% / 100% 50% no-repeat,
    linear-gradient(#ff8a3d, #ffd36b);
}

.art-pic--sea {
  background:
    linear-gradient(transparent 58%, #1e6f8f 58%, #15536b),
    radial-gradient(circle at 75% 35%, #fffbe6 0 8%, transparent 9%),
    linear-gradient(#7fd3e6, #e3f6fb);
}

.art-pic--snow {
  background:
    linear-gradient(to top right, #f4f8ff 50%, transparent 50.5%) 0 100% / 75% 62% no-repeat,
    linear-gradient(to top left, #dfe8f5 50%, transparent 50.5%) 100% 100% / 70% 50% no-repeat,
    linear-gradient(to top right, #7d8fb0 50%, transparent 50.5%) 20% 100% / 60% 80% no-repeat,
    linear-gradient(#5b86d6, #b8cff5);
}

.art-pic--forest {
  background:
    linear-gradient(transparent 70%, #1f3d2b 70%),
    linear-gradient(to top right, #2e5c3f 50%, transparent 50.5%) 0 100% / 45% 55% no-repeat,
    linear-gradient(to top left, #264e36 50%, transparent 50.5%) 100% 100% / 55% 62% no-repeat,
    radial-gradient(circle at 28% 32%, #fff6d8 0 7%, transparent 8%),
    linear-gradient(#9fd8b8, #e8f6ee);
}

/* ---------------------------------------------- the intro's two pictures */

.intro__art {
  position: relative;
  display: block;
  height: 168px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* The Boardroom: Home's table drawing, scaled to the card. */
.intro__art--boardroom {
  --tw: 120px;
  --th: 82px;
  --tt: 70px;
  background: linear-gradient(160deg, color-mix(in srgb, #c9a77c 12%, var(--bg)), var(--bg) 70%);
}

.intro__art--boardroom .launcher__screen {
  top: 14px;
  width: 76px;
  height: 42px;
}

.intro__art--boardroom .launcher__bubble {
  left: calc(50% + 44px);
  top: 84px;
}

/* The Asset Hub: a tilted wall of photos, one being described. */
.intro__art--hub {
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 7%, var(--bg)), var(--bg) 70%);
}

.intro__wall {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 10px;
  transform: translate(-50%, -50%) rotate(-8deg) skewX(6deg);
}

.intro__photo {
  height: 70px;
  border-radius: 10px;
  box-shadow: var(--shadow-tile);
  animation: intro-rise 9s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * -1s);
}

.intro__photo--2 { --d: 1; }
.intro__photo--3 { --d: 2.5; }
.intro__photo--4 { --d: 3.5; }
.intro__photo--5 {
  --d: 0.6;
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
}
.intro__photo--6 { --d: 4.2; }

@keyframes intro-rise {
  50% {
    translate: 0 -3px;
  }
}

.intro__note {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1f1f20;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 510;
  animation: intro-pop 8s var(--ease) infinite;
}

.intro__note svg {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.intro__tags {
  position: absolute;
  bottom: 16px;
  left: 18px;
  display: flex;
  gap: 6px;
}

.intro__tag {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-pill);
  color: var(--muted);
  font-size: 12px;
  line-height: 24px;
  animation: intro-pop 8s var(--ease) infinite;
  animation-delay: calc(0.4s + var(--i) * 0.2s);
}

@keyframes intro-pop {
  0%,
  6% {
    opacity: 0;
    transform: translateY(3px);
  }
  14%,
  88% {
    opacity: 1;
    transform: none;
  }
  94%,
  100% {
    opacity: 0;
    transform: none;
  }
}

/* oliver.deck: a quiet stack of slides, a bar chart on the front one. */
.intro__art--deck {
  background: linear-gradient(160deg, color-mix(in srgb, var(--ink) 4%, var(--bg)), var(--bg) 70%);
}

.intro__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 168px;
  aspect-ratio: 16 / 9;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--slide-bg);
  box-shadow: var(--shadow-tile);
  animation: intro-fan 10s ease-in-out infinite;
}

.intro__slide--1 {
  --slide-bg: #e9edf3;
  --r: -9deg;
  --x: -64%;
}

.intro__slide--2 {
  --slide-bg: #f3f4f6;
  --r: 8deg;
  --x: -36%;
}

.intro__slide--3 {
  --slide-bg: #ffffff;
  --r: -1deg;
  --x: -50%;
}

@keyframes intro-fan {
  0%,
  100% {
    transform: translate(var(--x), -47%) rotate(var(--r));
  }
  50% {
    transform: translate(var(--x), -50%) rotate(calc(var(--r) * 1.06));
  }
}

.intro__slide-title {
  width: 58%;
  height: 7px;
  border-radius: 4px;
  background: color-mix(in srgb, #1f1f20 62%, transparent);
}

.intro__slide-line {
  width: 40%;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, #1f1f20 16%, transparent);
}

.intro__slide--1 :is(.intro__slide-title, .intro__slide-line),
.intro__slide--2 :is(.intro__slide-title, .intro__slide-line) {
  opacity: 0.5;
}

.intro__bars {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}

/* One colour, four strengths: the chart grows once a loop and then rests. */
.intro__bars i {
  width: 16px;
  height: calc(var(--v) * 100%);
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--blue) calc(30% + var(--v) * 70%), #fff);
  transform-origin: bottom;
  animation: intro-bar 6s var(--ease) infinite;
}

.intro__bars i:nth-child(2) { animation-delay: 0.1s; }
.intro__bars i:nth-child(3) { animation-delay: 0.2s; }
.intro__bars i:nth-child(4) { animation-delay: 0.3s; }

@keyframes intro-bar {
  0% {
    transform: scaleY(0.4);
  }
  22%,
  100% {
    transform: none;
  }
}

.intro__body.is-still :is(.intro__photo, .intro__note, .intro__tag, .intro__slide, .intro__bars i) {
  animation: none;
}

.intro__body.is-still .intro__slide {
  transform: translate(var(--x), -48%) rotate(var(--r));
}

.intro__foot {
  display: flex;
  justify-content: center;
}

.intro__go {
  min-width: 200px;
}

@media (max-width: 640px) {
  .sheet.intro .sheet__panel {
    gap: 22px;
    padding: 36px 18px 20px;
  }

  .intro__body {
    gap: 22px;
  }

  .intro__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .intro__art {
    height: 112px;
  }

  .intro__wall {
    grid-template-columns: repeat(3, 70px);
    gap: 8px;
  }

  .intro__photo {
    height: 52px;
  }

  .intro__tags {
    display: none;
  }

  .intro__slide {
    width: 128px;
    padding: 10px 12px;
  }

  .intro__bars {
    height: 26px;
  }

  .intro__words {
    padding: 14px 16px 16px;
  }

  .intro__go {
    width: 100%;
  }
}
