/* noviqventure.com — three states on black: the title and Play; the film; one address. */
@font-face {
  font-family: "Figtree";
  src: url("figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: block;
}

:root {
  --ink: #f5f5fa;
  --fade: 0.9s;
  --fade-film: 1.6s;
  color-scheme: dark;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* layers: centered, kept clear of notches and rounded corners */
.layer {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* layers overlap: only what can be clicked takes the pointer */
  transition: opacity var(--fade) ease, visibility 0s linear var(--fade);
}
.layer .play, .layer a { pointer-events: auto; }

.title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 0.9vw + 22.5px, 34px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-align: center;
  text-wrap: balance;
}

.play {
  appearance: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  opacity: 0.86;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.3s ease;
}
.arrival .play { margin-top: clamp(22px, 1.6vw + 14px, 36px); }
.play svg { width: 24px; height: 24px; fill: currentColor; transform: translateX(1.5px); }
@media (hover: hover) { .play:hover { opacity: 1; } }
.play:focus { outline: none; }
.play:focus-visible { opacity: 1; outline: 1px solid rgba(245, 245, 250, 0.55); outline-offset: 2px; }

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  pointer-events: none; /* only the playing or paused film takes a click (pause, resume) */
  transition: opacity var(--fade-film) ease;
}

.contact a {
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(17px, 0.55vw + 14.8px, 22px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: center;
}
@media (hover: hover) { .contact a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; } }
.contact a:focus { outline: none; }
.contact a:focus-visible { outline: 1px solid rgba(245, 245, 250, 0.55); outline-offset: 6px; }

/* states */
#stage.ready[data-state="arrival"] .arrival,
#stage[data-state="paused"] .resume,
#stage[data-state="error"] .resume,
#stage[data-state="contact"] .contact,
#stage[data-state="error"] .contact {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--fade) ease, visibility 0s;
}
#stage[data-state="film"] .film,
#stage[data-state="paused"] .film { opacity: 1; pointer-events: auto; }
#stage[data-state="paused"] .resume { background: rgba(0, 0, 0, 0.35); }
#stage[data-state="paused"] .resume,
#stage[data-state="error"] .resume { pointer-events: auto; cursor: pointer; } /* a tap anywhere resumes */
#stage[data-state="error"] .resume { padding-bottom: 96px; }
#stage[data-state="error"] .contact { padding-top: 96px; }
#stage[data-state="film"].idle,
#stage[data-state="film"].idle .film { cursor: none; }

@media (prefers-reduced-motion: reduce) {
  :root { --fade: 0.01s; --fade-film: 0.4s; }
}
