/* Loaded before React. The launch storyboard uses the same paper and logo geometry. */
@font-face {
  font-family: 'TonVillage Startup';
  src: url('/fonts/bricolage-grotesque-latin-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
#tv-ios-intro { display: none; }
.tv-native-ios.tv-ios-starting #tv-ios-intro {
  --tv-launch-size: min(90vw, 360px, 50vh);
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  overflow: hidden;
  isolation: isolate;
  background: #f3efe6;
  color: #124d39;
  opacity: 1;
  font-family: 'TonVillage Startup', system-ui, sans-serif;
  text-align: center;
  pointer-events: auto;
}
.tv-ios-intro-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 37%;
  width: var(--tv-launch-size);
  height: var(--tv-launch-size);
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.tv-ios-intro-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 16px;
  top: calc(37% + var(--tv-launch-size) * .32);
}
.tv-ios-intro-name {
  margin: 0;
  font-size: clamp(34px, 12vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.tv-ios-intro-tagline {
  margin: 10px 0 0;
  font-size: clamp(13px, 4vw, 19px);
  font-weight: 400;
  line-height: 1.3;
}
.tv-ios-intro-scene {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 45%;
  background: url('/illustrations/ios-startup-neighbours.webp') center bottom / auto 222% no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 22%);
  mask-image: linear-gradient(transparent, #000 22%);
}
.tv-ios-intro-copy, .tv-ios-intro-scene { opacity: 0; }
.tv-ios-intro-animated .tv-ios-intro-copy { animation: tv-intro-appear .45s .12s both; }
.tv-ios-intro-animated .tv-ios-intro-scene { animation: tv-intro-appear .7s .25s both; }
.tv-ios-intro-exit [data-intro-content] {
  animation: none;
  opacity: 0;
  transition: opacity .16s ease-out;
}
.tv-native-ios.tv-ios-starting #tv-ios-intro.tv-ios-intro-exit {
  opacity: 0;
  transition: opacity .18s ease-out .16s;
}
@keyframes tv-intro-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 550px) {
  .tv-ios-intro-scene { display: none; }
  .tv-ios-intro-name { font-size: 36px; }
  .tv-ios-intro-tagline { margin-top: 5px; font-size: 15px; }
}
/* A portrait illustration becomes a narrow, hard-edged rectangle on tablets.
   Feather its sides into the paper; landscape keeps the uncluttered lockup. */
@media (min-width: 600px) and (orientation: portrait) {
  .tv-ios-intro-scene {
    -webkit-mask-image: radial-gradient(ellipse 23vh 100% at 50% 100%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 23vh 100% at 50% 100%, #000 70%, transparent 100%);
  }
}
@media (orientation: landscape) {
  .tv-ios-intro-scene { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #tv-ios-intro, #tv-ios-intro [data-intro-content] { animation: none !important; transition: none !important; }
}
