/* Wabisabi landing page, coming-soon state. One picture fills the first screen; the pitch sits in
   its sky. hero.js chooses the picture's files and runs the train; air.js draws the dust. */
@font-face {
  font-family: "Figtree";
  src: url(assets/v1/figtree.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
:root {
  --ink: #222222;
  --off: rgba(34, 34, 34, 0.38); /* anything that does not work yet */
  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* the brand's film grain, and a 96 x 64 copy of the picture to show before anything has loaded */
  --grain: 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.5' intercept='-0.25'/%3E%3CfeFuncG type='linear' slope='1.5' intercept='-0.25'/%3E%3CfeFuncB type='linear' slope='1.5' intercept='-0.25'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --blur: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD//gAQTGF2YzYyLjI4LjEwMAD/2wBDAAgEBAQEBAUFBQUFBQYGBgYGBgYGBgYGBgYHBwcICAgHBwcGBgcHCAgICAkJCQgICAgJCQoKCgwMCwsODg4RERT/xACGAAABBQEBAQAAAAAAAAAAAAAEAwUABwECBggBAAMBAQEAAAAAAAAAAAAAAAACAQMFBBAAAQMDAgQFAgYDAQAAAAAAAQIDABEEBSESEzFBFAZRYSJxodGBBxZCIzKR4bEVEQABAwMEAgIDAQAAAAAAAAABAgARAwRRFDESIRNBBWFCIiPx/8AAEQgAQABgAwEiAAIRAAMRAP/aAA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pSsDp5znfLU10YuEoIpqMpL9tldioopn8YbHZ4x9m7c1UuhPtA3VHxFrV22ssmnclwrJ0QpIpr8iPNrd2Jui4yNqvcDppqImrF2t3edzxUFQrRNNeekwt76lKuRIMYbVTS64HYse4tu5WtW11IVrQKTQViCMOlTm0F0EEVqocob3lkh8NbtU86+kXOaxrKVJCUk0FTQTU3aEjb36/x5GvT7ksdzDtLZ27+Q011jecOy2raS8Ty/umPibzHuNhdB00Pr8RU2djcNhxJAO0kUji+orIQkGcQwKpq2DYF4hQZUW0vn5UlQ/wCTUYe8ZbS6EJ1p8j8IZcuXVsF8NY2iulf9CBJztw6C24aJH4zomnRo2krWpBUnoQ11KaFTlxl//9k=);
}
* { box-sizing: border-box; margin: 0; }
body { background: #ffffff; color: var(--ink); font-family: var(--font); }
.page { padding: 14px; }
/* The bar and the pitch are outside the picture in the page, laid over it */
.landing { position: relative; container-type: inline-size; }

.hero {
  position: relative;
  overflow: hidden;
  height: calc(100dvh - 28px);
  max-width: 1600px;
  margin: 0 auto;
  container-type: size; /* lets the pieces inside size themselves from the frame */
  border-radius: 20px;
}
/* The stage holds the still and both videos. It keeps the picture's 3:2 shape and is as small as it
   can be while still covering the frame, so a frame of another shape crops the picture, never bends
   it. Sideways it keeps the crossing in view; 0.7 of the vertical crop comes off the top. */
.hero__stage {
  --w: max(100cqw, 150cqh);
  position: absolute;
  left: clamp(100cqw - var(--w), 50cqw - 0.64 * var(--w), 0px);
  top: calc((100cqh - var(--w) / 1.5) * 0.7);
  width: var(--w);
  aspect-ratio: 3 / 2;
  isolation: isolate;
  scale: 1.05;
  transition: scale 2.6s var(--ease);
}
/* The tiny copy, blurred heavily to hide its blockiness. It reaches past the stage so the blur's
   faded rim is out of sight. */
.hero__stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6%;
  background: var(--blur) 0 0 / 100% 100%;
  filter: blur(calc(var(--w) * 0.022));
}
/* A still of the video's first frame, the silent looping video over it, and the train video over
   that. All three are the same size and sit exactly on top of each other. */
.hero__still, .hero__scene, .hero__train {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.hero__still, .hero__scene { transition: opacity 1.4s ease; }
/* The train shows only over the railway, through a soft-edged window: the 972 x 162 box at
   (642, 840) of a 1764 x 1176 picture. It must stay full size: Chrome draws small videos darker.
   Leaving is a slow dissolve, because by the end of the clip the picture has crept a pixel or so. */
.hero__train {
  transition: opacity 0.6s ease;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-size: 55.1020% 13.7755%;
  mask-position: 81.0606% 82.8402%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}
/* arriving is quick, so the layer is fully there before the train's nose a quarter second in */
.hero__train.on { opacity: 1; transition: opacity 0.15s ease; }
/* Phones held upright get files that hold only the middle half of the picture, set in its place.
   The railway runs past both sides of that half, so its window only fades at top and bottom. */
.tall .hero__still, .tall .hero__scene, .tall .hero__train { left: 39.0278%; width: 50%; }
.tall .hero__train { mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-size: 100% 13.7755%; mask-position: 0 82.8402%; }

/* Over the picture: dust in the sun and grain, both continuous. Only along the bottom and up the
   left side, so the sky, the words and the far view stay clean. */
.hero__air, .hero__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image:
    linear-gradient(to top, #000 0%, #000 26%, transparent 42%),
    radial-gradient(ellipse 34% 58% at 0% 78%, #000 45%, transparent 100%);
}
/* the dust comes last and slowly, after the picture is fully there, so it never sits on the blur */
.hero__air { mix-blend-mode: screen; opacity: 0; transition: opacity 2.5s ease 1.8s; }
.hero__grain { background: var(--grain) 0 0 / 220px 220px; mix-blend-mode: overlay; opacity: 0.25; animation: grain 0.6s steps(1) infinite; }
@keyframes grain {
  0% { background-position: 0 0; }
  17% { background-position: 73px 41px; }
  33% { background-position: 151px 118px; }
  50% { background-position: 34px 187px; }
  67% { background-position: 122px 9px; }
  83% { background-position: 199px 96px; }
}

/* The floating bar */
.nav {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 9px 9px 9px 20px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(60, 40, 60, 0.1);
  transform: translateX(-50%);
  white-space: nowrap;
  animation: drop 0.9s var(--ease) 0.35s both;
}
.nav img { display: block; width: auto; height: 22px; }
.nav__links { display: flex; gap: 24px; font-size: 15px; color: var(--off); }
.nav__soon { padding: 11px 18px; border-radius: var(--pill); background: var(--ink); color: #ffffff; font-size: 15px; font-weight: 500; line-height: 1; }

/* The pitch, centred in the sky: close under the bar, but never touching it in a short window */
.pitch {
  position: absolute;
  top: max(13.5%, 106px);
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
  padding: 0 24px;
  text-align: center;
}
.pitch__tag { margin-bottom: 14px; padding: 7px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.6); font-size: 14px; font-weight: 500; }
.pitch h1 { margin-bottom: 20px; font-size: clamp(30px, 5cqw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -0.03em; }
.pitch h1 span { display: inline-block; }
.pitch p { font-size: clamp(16px, 1.75cqw, 22px); line-height: 1.45; color: #3d3a40; }
/* Neither button works yet, so both are greyed out */
.pitch__acts { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.pitch__acts button { border: 0; background: none; color: var(--off); font: 500 16px/1 var(--font); }
.pitch__acts .go { padding: 16px 24px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.5); }

/* Entrance. The blurred copy is there at once. When the still is ready (hero.js adds "ready") it
   fades in and the picture settles from slightly large; when the video can play through ("playing")
   it fades in over the still. The bar drops in, then each piece of the pitch comes up out of a blur. */
.ready .hero__still, .playing .hero__scene, .ready .hero__air { opacity: 1; }
.ready .hero__stage { scale: 1; }
.in { animation: arrive 0.64s var(--ease) both; animation-delay: calc(var(--i) * 0.094s + 0.47s); }
@keyframes drop {
  from { opacity: 0; translate: 0 -14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes arrive {
  from { opacity: 0; filter: blur(10px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .in, .nav, .hero__grain { animation: none; }
  .hero__stage, .hero__still, .hero__scene, .hero__air { transition: none; }
}

/* Phones: no links in the bar, and a larger headline that breaks into two even lines */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .pitch h1 { font-size: 38px; }
  .pitch h1, .pitch p { text-wrap: balance; }
}
