/* Home page: app icon hero, what Canvas does, the waitlist. Nothing else. */

/* Hero: app icon, name, one line. Centred on paper ------------------------ */
.hero {
  min-height: 92svh; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: var(--s-12) var(--gutter) var(--s-16); overflow-x: clip;
}
.hero-icon { --size: min(540px, 64svh, 96vw); width: var(--size); aspect-ratio: 1; margin: calc(var(--size) * -0.12) 0 calc(var(--size) * -0.2); pointer-events: none; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: contain; mask-image: radial-gradient(closest-side, #000 82%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); }
.hero-name {
  font-size: clamp(64px, 11vw, 152px); font-weight: 700; line-height: 0.9; letter-spacing: -0.045em;
  font-variation-settings: "ROND" var(--rond-heading); margin-bottom: var(--s-5);
}
.hero-line { max-width: 34ch; color: var(--ink-2); text-wrap: balance; }
.hero-cta { display: grid; justify-items: center; gap: var(--s-3); margin-top: var(--s-8); }
.hero-note { padding-inline: var(--s-8); text-align: center; text-wrap: balance; }

.js .hero-icon, .js .hero-name, .js .hero-line, .js .hero-cta { opacity: 0; transform: translateY(20px); animation: rise 1000ms var(--ease-out) forwards; }
.js .hero-name { animation-delay: 150ms; }
.js .hero-line { animation-delay: 300ms; }
.js .hero-cta { animation-delay: 450ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: var(--s-8); }
}

/* What it does: one real recording ---------------------------------------- */
.what { padding-top: var(--s-8); }
.clip { margin: 0; }
/* Film controls, after IINA's floating controller: a dark glass panel over the bottom of the film. Shown while
   paused or while the pointer moves; fades after 2 s of stillness (player.js). Phones get it under the film. */
.player { position: relative; }
.player .film { cursor: pointer; }
.pc { position: absolute; left: 50%; bottom: 22px; width: min(560px, calc(100% - 44px)); transform: translate(-50%, 8px); box-sizing: border-box;
  padding: 8px 18px 14px; border-radius: 16px; color: #fff; opacity: 0; transition: opacity .25s, transform .25s;
  background: rgb(30 30 32 / .55); -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .18), 0 16px 40px -12px rgb(0 0 0 / .45); }
.player:not(.playing) .pc, .player.awake .pc, .player:focus-within .pc { opacity: 1; transform: translate(-50%, 0); }
.pc-row { position: relative; display: flex; justify-content: center; align-items: center; gap: 22px; height: 40px; }
.pc-btn { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: rgb(255 255 255 / .92); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, transform .12s; }
.pc-btn:hover { background: rgb(255 255 255 / .12); }
.pc-btn:active { transform: scale(.92); }
.pc-play { width: 42px; height: 40px; color: #fff; }
.pc-play .i-pause, .player.playing .pc-play .i-play { display: none; }
.player.playing .pc-play .i-pause { display: block; }
.pc-full { position: absolute; right: -8px; top: 2px; }
.pc-btn:focus-visible, .pc-seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pc-bar { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.pc-now, .pc-left { flex: none; width: 38px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .78); }
.pc-left { text-align: right; }
.pc-track { position: relative; flex: 1; min-width: 0; }
.pc-seek { --p: 0%; display: block; width: 100%; height: 18px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pc-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgb(255 255 255 / .26) var(--p)); }
.pc-seek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgb(255 255 255 / .26) var(--p)); }
.pc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); transform: scale(0); transition: transform .15s; }
.pc-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); transform: scale(0); transition: transform .15s; }
.pc-track:hover .pc-seek::-webkit-slider-thumb, .pc-seek:focus-visible::-webkit-slider-thumb, .pc-seek:active::-webkit-slider-thumb { transform: scale(1); }
.pc-track:hover .pc-seek::-moz-range-thumb, .pc-seek:active::-moz-range-thumb { transform: scale(1); }
.pc-tip { position: absolute; bottom: 24px; left: 0; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: rgb(20 20 22 / .85); color: #fff;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity .12s; }
.pc-track:hover .pc-tip { opacity: 1; }
@media (hover: none) { .pc-tip { display: none; } .pc-seek::-webkit-slider-thumb { transform: scale(1); } .pc-seek::-moz-range-thumb { transform: scale(1); } }
/* Full screen: black around the film, the controller over it as on desktop. */
.player:fullscreen { display: grid; place-items: center; background: #000; }
.player:fullscreen .film { width: 100%; height: 100%; max-height: 100vh; object-fit: contain; border-radius: 0; box-shadow: none; aspect-ratio: auto; background: #000; }
/* Phones: the panel would cover a third of the film, so it sits under it as a light bar. */
@media (max-width: 760px) {
  .player:not(:fullscreen) .pc { position: static; width: auto; margin-top: 12px; padding: 0; transform: none; opacity: 1; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: var(--ink); display: flex; align-items: center; gap: 6px; }
  .player:not(:fullscreen) .pc-row { display: contents; }
  .player:not(:fullscreen) .pc-back, .player:not(:fullscreen) .pc-fwd { display: none; }
  .player:not(:fullscreen) .pc-btn { color: var(--ink); }
  .player:not(:fullscreen) .pc-play { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; }
  .player:not(:fullscreen) .pc-play svg { width: 15px; height: 16px; }
  .player:not(:fullscreen) .pc-full { position: static; order: 2; }
  .player:not(:fullscreen) .pc-bar { flex: 1; order: 1; margin: 0 4px 0 8px; gap: 8px; }
  .player:not(:fullscreen) .pc-now, .player:not(:fullscreen) .pc-left { width: auto; color: var(--ink-2); }
  .player:not(:fullscreen) .pc-now { display: none; }
  .player:not(:fullscreen) .pc-seek::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--ink) var(--p), #d6d3c8 var(--p)); }
  .player:not(:fullscreen) .pc-seek::-moz-range-track { background: linear-gradient(90deg, var(--ink) var(--p), #d6d3c8 var(--p)); }
  .player:not(:fullscreen) .pc-seek::-webkit-slider-thumb { background: var(--ink); box-shadow: none; }
  .player:not(:fullscreen) .pc-seek::-moz-range-thumb { background: var(--ink); box-shadow: none; }
  .player:not(:fullscreen) .pc-btn:focus-visible, .player:not(:fullscreen) .pc-seek:focus-visible { outline-color: var(--ink); }
}
.film {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: var(--r-xl); background: var(--paper-2);
  box-shadow: var(--shadow-window);
}
@media (max-width: 760px) {
  .film { border-radius: var(--r-md); }
}

/* Waitlist ---------------------------------------------------------------- */
.join-section { padding-top: 0; }
.join { display: grid; justify-items: center; gap: var(--s-8); text-align: center; }
.join-title { text-wrap: balance; }
.join-line { color: var(--ink-2); margin-top: calc(-1 * var(--s-5)); }
.join .waitlist { max-width: 480px; }
.join .waitlist-note { justify-content: center; }

/* Reveal on scroll -------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Reduced motion: everything in place, videos hold their poster */
@media (prefers-reduced-motion: reduce) {
  .js .hero-icon, .js .hero-name, .js .hero-line, .js .hero-cta, .js [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
}

.hero-link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; white-space: nowrap; }
.hero-link:hover { color: var(--ink); }
