/* FLUQO website. Colours and type follow brand/brand-direction.md section 2a. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0f10;
  --ink: #ede8db;
  --ink-2: #b2ada1;
  --rule: rgba(237, 232, 219, 0.16);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 12px; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
}
.page-home .topbar {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto 0;
  justify-content: flex-end;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.brand { display: block; padding: 8px 0; }
.brand img { width: 112px; height: auto; }

/* Hero: the launch video comes first.
   Without JavaScript or with reduced motion it is a still of the last frame.
   With .is-scrubbing the stage stays pinned while scrolling moves the video;
   once the video has run through, the page scrolls on. */
.hero {
  position: relative;
  height: 88vh;
  height: 88svh;
  min-height: 480px;
  background: var(--bg);
}
.hero__stage {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero.is-scrubbing {
  height: calc(100vh + 150vh);
  height: calc(100svh + 150vh);
}
.hero.is-scrubbing .hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
}
.hero__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero.is-scrubbing:not(.is-started) .hero__cue { opacity: 0.8; }
.hero__video {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  object-fit: cover;
}
.hero__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(14, 15, 16, 0), rgba(14, 15, 16, 0.6) 45%, var(--bg));
  pointer-events: none;
}
.hero__copy {
  position: absolute;
  z-index: 2;
  inset: auto var(--gutter) clamp(32px, 6vh, 64px) var(--gutter);
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.625rem, 6.4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 500;
}
.hero__sub {
  margin: 0.45em 0 0;
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  line-height: 1.4;
}
.label {
  margin: 1.1em 0 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 560px) {
  /* Wider than the portrait video: its edges melt into the page. */
  .hero__video {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  }
}

/* Gameplay clip */
.clip {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(16px, 3vw, 32px) var(--gutter) 0;
}
.clip__frame {
  position: relative;
  margin: 0;
  width: min(100%, 420px, calc(84vh * 9 / 16));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}
.clip__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip__toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: rgba(14, 15, 16, 0.62);
  color: var(--ink);
  cursor: pointer;
}
.clip__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.clip__toggle[data-state="paused"] .icon-pause,
.clip__toggle[data-state="playing"] .icon-resume { display: none; }
.note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  text-align: center;
}

/* Text blocks: "no ads" dominates */
.blocks {
  display: grid;
  gap: clamp(40px, 7vw, 72px);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(56px, 11vw, 120px) var(--gutter) 0;
}
.block h2 {
  margin: 0;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 500;
}
.block p {
  margin: 0.6em 0 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
}
.block--lead { text-align: center; }
.block--lead h2 {
  font-size: clamp(3.5rem, 15vw, 8.5rem);
  line-height: 1.02;
}
.block--lead p {
  margin-top: 0.9em;
  color: var(--ink);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  line-height: 1.45;
}
.blocks__pair {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  padding-top: clamp(32px, 6vw, 56px);
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .blocks__pair { grid-template-columns: 1fr 1fr; }
}

.maker {
  margin: clamp(56px, 10vw, 104px) 0 0;
  padding: 0 var(--gutter);
  color: var(--ink-2);
  text-align: center;
}

/* Legal and support pages */
.doc {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) var(--gutter) 0;
}
.doc h1 {
  margin: 0;
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  line-height: 1.15;
  font-weight: 500;
}
.doc h2 {
  margin: 2.2em 0 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
}
.doc h3 {
  margin: 1.6em 0 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 500;
}
.doc p, .doc ul, .doc address { margin: 0.8em 0 0; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 0.35em; }
.doc a { overflow-wrap: anywhere; }
.doc__meta { color: var(--ink-2); font-size: 0.875rem; }
.doc__lead { font-size: 1.125rem; }
.mail-link { font-size: clamp(1.0625rem, 4.4vw, 1.375rem); }
address { font-style: normal; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(56px, 9vw, 96px);
  padding: 28px max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--rule);
}
.footer__brand { display: block; padding: 6px 0; }
.footer__brand img { width: 96px; height: auto; }
.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
