/* GRAPHICA Flow showreel — gate-designs.css — v2.18 (the turning phone half-way between LOADING and the note on every height: it touched the note on a 760-800 px screen) | v2.17 (the site's start Play upright on a phone: word + ring glide to the middle together) | v2.16 (the turn note over the Back: --gk-note-bottom) | v2.15 (.gk-loading__bar: a fine line under LOADING, how much of the film is in; Martin 2026-11-22) | v2.14 (Martin 2026-11-22: the turning phone never shows on a sideways screen, gone at once; Android: the phone a little higher, --gk-off) | v2.13 (.gk-hinting / .gk-ghost: the one-time turn hint is played by gate-designs.js playTurnHint, variant 4 "zoom + ghost trail"; .gk-hint-out is gone) | v2.12 (.gk-hint-out: the one-time turn hint leaves with a fade and a blur, launch-gate.js / start-gate.js) | v2.10 (.gk-swipe: "swipe to start" for an iPhone held sideways) | v2.11 (the LOADING word blurs out, 12px over 0.9s, as the Elbo preloader; Martin 2026-11-18) | v2.10 (no LOADING on the site: the door word and its .gk-loading--fixed are gone, the word shows once in the film gate) | v2.09 (the door's word fades out again: its fade-in no longer holds opacity 1) | v2.08 (BLACK ground and a white word again, everywhere, no colour change between the door and the gate: the white version flashed; Martin 2026-11-18) | v2.07 (the loading screen is WHITE with a dark word, its size follows the screen; the door's one fades in; Martin 2026-11-18) | v2.06 (.gk-loading: a fine, still LOADING word replaces the turning ring of a film that loads; .gk-loader and the ring hand-over rules are gone; Martin 2026-11-18) | v2.05 (inside the site the ring and the arc are there from the first frame: they take over from the site's own spinner) | v2.04 (the spinner turns only with transform: smooth on a busy tablet, no dot, no blink) | v2.03 (.gk-tap: "touch to start" under the Play after a turn with no touch; a Play
   that is still loading cannot be pressed) | v2.02 (.gk-loader: the spinner of a film that loads) | v2.01 (.gk-fixed: the ring stays in the middle on the site's start screen) | v2.00 (the new Play and the new "turn the phone" screen, from the Play-gate prototype, Martin 2026-11-17; before: v1.03, a white disc with a turning ring, the phone that stretched)
   The look of every start gate and every "turn the phone" screen of the films (gate-designs.js draws the markup and fits it).
   The Play: a thin ring draws itself and turns alone in the middle of the screen (it is the preloader, a bright arc runs round it
   while the page loads); when the page is ready the triangle pops, one pulse ring goes out behind the ring, and the word PLAY
   flows out of the ring to the left; the ring and the word then stand as one button in the middle of the screen.
   The turn screen: under that, a phone with a Galaxy S25 Ultra shape that only turns (never changes shape), the plain GRAPHICA Flow
   logo level inside it, and a fine note at the very bottom. Flow colours: #fec231 → #4bf1e2.
   Motion is transform, opacity, rotate, scale, translate and mask; no glass, because a gate fades in and out. */

:root {
  --gk-fs0: clamp(30px, 4.6vmin, 60px); /* the base of the Play: the word is 0.88 of it, the ring 0.9 */
  --gk-art: clamp(110px, min(38vw, 20vh), 240px); /* a short screen: smaller, so it fits between LOADING and the note */ /* the size of the turning phone's box */
  --gk-off: clamp(90px, calc(25vh - 65px), 290px); /* Martin 2026-11-22: exactly half-way between LOADING (the middle) and the note (104 px + its two lines over the bottom), on every screen height */ /* how far under the middle the phone sits: a little higher so it never covers the note (Martin 2026-11-22) */
  --gk-note: clamp(12px, 3.1vw, 15px);
  /* the note's distance over the bottom edge: over the Back at the bottom left (about 80 px high upright; Martin
     2026-11-22: "the turn note stands behind the Back") */
  --gk-note-bottom: 104px;
  --gk-yellow: #fec231;
  --gk-cyan: #4bf1e2;
  --gk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gk-heavy: cubic-bezier(0.65, 0, 0.35, 1); /* a smooth start and a smooth end, with weight */
  --gk-lap: 1.1s; /* one lap of the bright arc while the page loads */
  --gk-pulse-a: 0.4;
  --gk-cycle: 7.2s; /* one round of the phone: 0.5 s upright, 1.3 s turn, 3.4 s lying, 1.3 s turn back, 0.7 s upright */
}

@property --gk-p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

/* the places of the two parts inside a gate (.reel-gate of phone-gate.js, .demo-gate of launch-gate.js): the Play is a
   button in the middle of the screen, the turn screen a layer over the whole gate */
.reel-gate__play,
.demo-gate__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: calc(var(--gk-fs0) * 6.4);
  height: calc(var(--gk-fs0) * 2);
  padding: 0;
  translate: -50% -50%;
}

.reel-gate__turn,
.demo-gate__turn {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gk-play {
  position: absolute;
  inset: 0;
  display: block;
  color: transparent;
  transition: filter 0.6s var(--gk-ease);
}

.gk-play:hover {
  filter: drop-shadow(0 0 0.7em rgb(254 194 49 / 38%));
}

/* the ring box in the middle; it glides left when the word has come out, so that word + ring are in the middle together */
.gk-grp {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: calc(var(--gk-fs0) * 0.9);
  height: calc(var(--gk-fs0) * 0.9);
  translate: -50% -50%;
  font-size: calc(var(--gk-fs0) * 0.88);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.gk-ic {
  position: absolute;
  inset: 0;
  display: block;
}

.gk-ic svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gk-word {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.35em);
  display: inline-flex;
  white-space: nowrap;
  translate: 0 -50%;
  -webkit-mask-image: linear-gradient(270deg, #000 var(--gk-p), transparent calc(var(--gk-p) + 16%));
  mask-image: linear-gradient(270deg, #000 var(--gk-p), transparent calc(var(--gk-p) + 16%));
  font-family: var(--reel-font, 'Roboto Flex', system-ui, sans-serif);
}

/* every letter carries a slice of one gradient: the word reads as one Flow gradient (gate-designs.js fits the slices) */
.gk-c {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--gk-yellow), var(--gk-cyan));
  background-repeat: no-repeat;
  background-size: calc(var(--w, 300) * 1px) 100%;
  background-position: calc(var(--x, 0) * -1px) 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* before ready: only the ring (drawn, with a bright arc running round it) */
.gk-c,
.gk-tri,
.gk-rip {
  opacity: 0;
}

/* the ring and the bright arc move only with opacity and transform (v2.04, Martin 2026-11-18): those run on the graphics
   card, so a weak tablet that is busy loading the film still turns them smoothly (the drawn stroke and the arc's
   drop-shadow were painted by the busy page: the ring stood as a dot, the arc blinked on every lap) */
.gk-ring {
  will-change: transform, opacity;
  animation: gk-ring-in 0.7s var(--gk-ease) both;
}

.gk-comet {
  opacity: 1;
  transition: opacity 0.45s ease;
  will-change: transform, opacity;
  animation:
    gk-fade 0.5s ease 0.25s both,
    gk-spin var(--gk-lap) linear infinite;
}

.gk-comet circle {
  stroke-dasharray: 0.16 1;
}

@keyframes gk-ring-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gk-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ready (gate-designs.js adds is-ready on the gate when the page, the font and the logo are there): the sign pops, one pulse
   goes out behind the ring, the word flows out to the left and the whole button settles in the middle */
/* ready: the bright arc keeps turning while it fades out (no jump back to the top) */
.is-ready .gk-comet {
  animation: gk-spin var(--gk-lap) linear infinite;
  opacity: 0;
}

.is-ready .gk-tri {
  transform-box: fill-box;
  transform-origin: center;
  animation: gk-pop 0.8s var(--gk-ease) both;
}

.is-ready .gk-rip {
  animation: gk-ripple 1.7s var(--gk-ease) 0.15s both;
}

.is-ready .gk-rip circle {
  animation: gk-ripple-line 1.7s var(--gk-ease) 0.15s both;
}

.is-ready .gk-word {
  animation: gk-wipe 1.3s var(--gk-ease) 0.15s both;
}

.is-ready .gk-c {
  animation: gk-slide 1.2s var(--gk-ease) calc(0.15s + (3 - var(--i)) * 0.08s) both;
}

.is-ready .gk-grp {
  animation: gk-glide 1.4s var(--gk-ease) 0.15s both;
}

/* the site's own start screen (.gk-fixed): the ring stays in the middle of the screen, the word comes out to its left and the button does not glide */
.gk-fixed.is-ready .gk-grp {
  animation: none;
}

/* a phone held upright (Martin 2026-11-22): first the ring alone turns in the middle; when the sign and the word come
   out, the two glide together so that word + ring stand exactly in the middle (the films' glide, gk-glide) */
@media (orientation: portrait) and (pointer: coarse) {
  .gk-fixed.is-ready .gk-grp {
    animation: gk-glide 1.4s var(--gk-ease) 0.15s both;
  }
}

@keyframes gk-pop {
  from { opacity: 0; scale: 0.4; }
  60% { opacity: 1; scale: 1.12; }
  to { opacity: 1; scale: 1; }
}

@keyframes gk-ripple {
  0% { opacity: 0; scale: 1; }
  10% { opacity: var(--gk-pulse-a); }
  100% { opacity: 0; scale: 3.6; }
}

@keyframes gk-ripple-line {
  from { stroke-width: 1.2px; }
  to { stroke-width: 0.34px; }
}

@keyframes gk-wipe {
  from { --gk-p: -16%; }
  to { --gk-p: 100%; }
}

@keyframes gk-slide {
  from { opacity: 0; transform: translateX(0.9em); }
  to { opacity: 1; transform: none; }
}

@keyframes gk-glide {
  from { translate: -50% -50%; }
  to { translate: calc(-50% + var(--gk-shift, 0) * 1px) -50%; }
}

/* ───────────── the turn screen: a phone that only turns, a fine note at the very bottom ───────────── */

.gk-turn {
  position: absolute;
  inset: 0;
}

.gk-ph {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--gk-off));
  display: grid;
  place-items: center;
  width: calc(var(--gk-art) * 0.78);
  height: calc(var(--gk-art) * 0.78);
  translate: -50% -50%;
  opacity: 0;
}

/* a gate without a Play (.gk-bare, or a demo inside the site: nothing is pressed, turning the phone is all it takes): the phone is the middle */
.demo-gate:not(.has-play) .gk-ph,
.gk-bare .gk-ph {
  top: 50%;
}

/* the phone and the note come up only when the gate is ready (nothing but the ring while the page loads) */
.is-turn-ready .gk-ph {
  animation: gk-fade 1.1s ease 0.5s both;
}

.gk-phone {
  /* the shape of a Galaxy S25 Ultra (162.8 x 77.6 mm), the corners a little rounder than the real ones */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: calc(var(--gk-art) * 0.372);
  height: calc(var(--gk-art) * 0.78);
  border: 1.5px solid transparent;
  border-radius: calc(var(--gk-art) * 0.055);
  background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, var(--gk-yellow), var(--gk-cyan)) border-box;
  box-shadow: 0 0 28px -8px rgb(75 241 226 / 28%);
  will-change: transform;
}

/* the turn comes soon after the phone appears; the long rests come after it (the logo is cut while it stands upright) */
.is-turn-ready .gk-phone {
  animation: gk-turn-r var(--gk-cycle) infinite 0.6s;
}

.is-turn-ready .gk-logo {
  animation: gk-turn-l var(--gk-cycle) infinite 0.6s;
}

@keyframes gk-turn-r {
  0%, 6.9% { rotate: 0deg; animation-timing-function: var(--gk-heavy); }
  25%, 72.2% { rotate: -90deg; animation-timing-function: var(--gk-heavy); }
  90.3%, 100% { rotate: 0deg; }
}

@keyframes gk-turn-l {
  0%, 6.9% { rotate: 0deg; animation-timing-function: var(--gk-heavy); }
  25%, 72.2% { rotate: 90deg; animation-timing-function: var(--gk-heavy); }
  90.3%, 100% { rotate: 0deg; }
}

/* the logo is live vector paths in the page (gate-designs.js), so it stays sharp at every angle */
.gk-logo {
  display: block;
  flex: none;
  width: calc(var(--gk-art) * 0.7);
  pointer-events: none;
  will-change: transform;
}

.gk-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.gk-note {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gk-note-bottom));
  width: min(300px, 80vw);
  margin: 0;
  translate: -50% 0;
  opacity: 0;
  font-family: var(--reel-font, 'Roboto Flex', system-ui, sans-serif);
  font-size: var(--gk-note);
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
  color: rgb(244 243 239 / 55%);
}

.is-turn-ready .gk-note {
  animation: gk-fade 1.4s ease 0.8s both;
}

.demo-gate:not(.has-play) .gk-note,
.gk-bare .gk-note {
  top: calc(50% + var(--gk-art) * 0.55 + 22px);
  bottom: auto;
}

/* "unlock the turn": only when the screen stays upright after Play */
.gk-help {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  width: min(300px, 80vw);
  margin: 0;
  translate: -50% 0;
  font-size: var(--gk-note);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  color: var(--gk-yellow);
}

.reel-gate.is-stuck .gk-help,
.demo-gate.is-stuck .gk-help {
  display: block;
}

/* the help line takes the very bottom (up to two lines): the note steps up above it, they never overlap */
.reel-gate.is-stuck .gk-note,
.demo-gate.is-stuck .gk-note {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gk-note-bottom) + 3em);
}

@keyframes gk-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* the one-time turn hint (an upright phone that is not an iPhone, Martin 2026-11-21): gate-designs.js playTurnHint moves
   the phone box, the phone, its ghosts, the logo and the note; the CSS round of the old turn screen stands still while
   .gk-hinting is on, and the ghosts lie on the same spot as the phone, under it */
.gk-hinting .gk-ph,
.gk-hinting .gk-note,
.gk-hinting .gk-phone,
.gk-hinting .gk-logo {
  animation: none;
}

.gk-hinting .gk-ph > * {
  grid-area: 1 / 1;
}

.gk-ghost {
  opacity: 0;
  pointer-events: none;
}

/* Martin 2026-11-22: the turning phone is never seen on a screen that lies sideways (a phone, a tablet, a computer):
   the moment the screen turns it is gone, at once, no fade (it stayed for a moment, big, over the words) */
@media (orientation: landscape) {
  .gk-turn {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-ring,
  .gk-ring circle,
  .gk-comet,
  .gk-phone,
  .gk-logo,
  .is-ready .gk-word,
  .is-ready .gk-c,
  .is-ready .gk-grp,
  .is-ready .gk-tri,
  .is-ready .gk-rip {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}

/* the word of a film that loads (gate-designs.js loadingWord, launch-gate.js): fine, small, white with a little transparency,
   still, in the middle of the screen, in the look of the Elbo site's preloader. It shows ONCE per film opening, from the first
   moment of the black: inside the site on the film door's cover (hub.css .film-cover), on a film's own page in its gate. It does not
   move and it only fades down when the film is there (Martin 2026-11-18). The ring and the word of the Play keep their own rules above. */
.gk-loading {
  --gk-loading-ground: #000;
  --gk-loading-ink: rgba(255, 255, 255, 0.78); /* white on the black ground, a little transparent */
  --gk-loading-size: clamp(12px, 1.2vmin + 5px, 16px); /* 14px on a 720px-high screen; a little smaller on a phone, a little larger on a big screen */
  --gk-loading-tracking: 0.24em; /* the tracking also follows the last letter: the word's padding-left keeps it centred */
  --gk-loading-fade: 0.9s; /* the word blurs out this slowly: the same as the Elbo site's preloader (wordSeconds) */
  --gk-loading-blur: 12px; /* ... into this blur (the Elbo preloader's wordBlurPx) */
  --gk-loading-ease: cubic-bezier(0.37, 0, 0.63, 1); /* sine in-out, as the Elbo preloader */

  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: opacity; /* its own layer: the letters are drawn grey-smooth, without the coloured fringes of sub-pixel text */
}

.gk-loading__word {
  transition: filter var(--gk-loading-fade) var(--gk-loading-ease), opacity var(--gk-loading-fade) var(--gk-loading-ease);
  will-change: filter, opacity;
  padding-left: var(--gk-loading-tracking);
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-stretch: 75%; /* the condensed cut: the look of Roboto Condensed on the Elbo site */
  font-weight: 400;
  font-size: var(--gk-loading-size);
  line-height: 1;
  letter-spacing: var(--gk-loading-tracking);
  text-transform: uppercase;
  color: var(--gk-loading-ink);
  -webkit-font-smoothing: antialiased;
}

/* the word leaves by blurring out (Martin 2026-11-18: "every LOADING word blurs out, as on Elbo Photography"): in a film's own gate
   when the film is in (.demo-gate.is-ready), on the site's film door when its cover goes (hub.css .film-cover.is-gone) */
.demo-gate.is-ready .gk-loading__word,
.film-cover.is-gone .gk-loading__word {
  filter: blur(var(--gk-loading-blur));
  opacity: 0;
}

/* the fine line under the word: how much of the film is in (gate-designs.js setLoadingShare; Martin 2026-11-22: "some load
   long, it must not look stuck"). Flat, no glow; it leaves with the word */
/* the word's own box: the line hangs under it, exactly as wide as the letters (the tracking after the last letter and the
   padding before the first are left out); the word itself does not move */
.gk-loading__box {
  position: relative;
  display: inline-block;
  font-size: var(--gk-loading-size); /* the tracking (em) means the same here as on the word */
  line-height: 1;
}

.gk-loading__bar {
  position: absolute;
  left: var(--gk-loading-tracking);
  right: var(--gk-loading-tracking);
  top: calc(100% + 0.75em);
  height: 1px; /* Martin 2026-11-22: thinner */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  transition: opacity var(--gk-loading-fade) var(--gk-loading-ease);
}

.gk-loading__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gk-loading-ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s ease-out;
}

.demo-gate.is-ready .gk-loading__bar,
.film-cover.is-gone .gk-loading__bar {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .gk-loading__word {
    transition-duration: 0.01s;
  }
}

/* a Play whose ring still spins (the pictures are coming) cannot be pressed */
.reel-gate:not(.is-ready) .reel-gate__play,
.demo-gate:not(.is-ready) .demo-gate__play,
.start-gate:not(.is-ready) .start-gate__button {
  pointer-events: none;
}

/* "touch to start" (gate-designs.js tapNote): a phone turned sideways with no touch; the browser gives the full screen only
   after a touch, so the Play waits and this line says so */
.gk-tap {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--gk-fs0) * 1.35);
  width: min(320px, 80vw);
  margin: 0;
  translate: -50% 0;
  font-family: var(--reel-font, 'Roboto Flex', system-ui, sans-serif);
  font-size: var(--gk-note);
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  color: rgb(244 243 239 / 72%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--gk-ease), visibility 0s linear 0.5s;
  pointer-events: none;
}

.is-tap .gk-tap {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s var(--gk-ease), visibility 0s;
}

/* "swipe to start" (gate-designs.js swipeSign): an iPhone held sideways; the swipe scrolls the page, Safari hides its
   bars, the film starts (Martin 2026-11-21). In the middle, where the Play would be: two chevrons and a dot that glides up. */
.gk-swipe {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(360px, 80vw);
  translate: -50% -50%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--gk-ease), visibility 0s linear 0.5s;
  pointer-events: none;
}

.is-swipe.is-asking .gk-swipe {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s var(--gk-ease), visibility 0s;
}

.gk-swipe__art {
  width: calc(var(--gk-fs0) * 1.4);
  height: calc(var(--gk-fs0) * 2.3);
  overflow: visible;
}

.gk-swipe__chev {
  animation: gk-swipe-chev 1.8s var(--gk-ease) infinite;
}

.gk-swipe__chev--b {
  animation-delay: 0.15s;
}

.gk-swipe__dot {
  animation: gk-swipe-dot 1.8s var(--gk-heavy) infinite;
}

@keyframes gk-swipe-chev {
  0%,
  100% {
    opacity: 0.35;
    translate: 0 0;
  }

  45% {
    opacity: 1;
    translate: 0 -3px;
  }
}

@keyframes gk-swipe-dot {
  0% {
    opacity: 0;
    translate: 0 0;
  }

  20% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.9;
    translate: 0 -26px;
  }

  100% {
    opacity: 0;
    translate: 0 -30px;
  }
}

.gk-swipe__note {
  margin: 0;
  font-family: var(--reel-font, 'Roboto Flex', system-ui, sans-serif);
  font-size: var(--gk-note);
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  color: rgb(244 243 239 / 72%);
}