@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@400;500;600&display=swap");

:root {
  --cream: #f6f4f2;
  --surface: #e8dfd0;
  --green: #38402b;
  --green-soft: #5a6644;
  --ink: #291b14;
  --gold: #d2b47e;
  --serif: "Cormorant Garamond", Palatino, "Times New Roman", serif;
  --sans: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--green);
}

a { color: inherit; text-decoration: none; }

/* One photograph, one heading, one short paragraph, one way in. The type
   stands in the lower half of the picture, on the trees and the dark of the
   window frames rather than on the sky, and ends above the water: the pool
   at the bottom of the page is left to the brand drawing alone. */
.stage {
  --u: min(0.72px, calc(0.26px + 0.036vw));   /* one unit of the brand drawing */
  --edge: 64px;                               /* page margin of the brand grid */
  --band-h: 240px;                            /* height of the band the drawing is cropped to */
  --lift: 0px;                                /* how far the drawing is raised, see below */
  /* Open water kept below the type: all of the band (its last 53 units lie
     under the edge the drawing is placed on), so no line of the drawing
     runs under the paragraph or the button. */
  --pool: calc(var(--band-h) - var(--u) * 53 + var(--lift));
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(56, 64, 43, 0.46) 0%, rgba(56, 64, 43, 0.12) 34%, rgba(41, 27, 20, 0.55) 100%),
    linear-gradient(90deg, rgba(56, 64, 43, 0.72) 0%, rgba(56, 64, 43, 0.28) 48%, rgba(56, 64, 43, 0.08) 100%),
    url("../foto/les-bazen.jpg") center 42% / cover no-repeat;
}

/* The brand drawing "Vlnenie v slnku", lying in the pool along the bottom of
   the page. The drawing is 3300 × 640 units: the traced tile (900 × 520) in
   the middle, 60 units of margin above and below, and the same contours
   carried on for 1200 units to either side. It is only ever scaled as a
   whole and cropped, never stretched.

   .waves       the stage itself as a window: the drawing is wider than the
                page and must not widen it
   .waves-art   the drawing, placed so that row 464 of the tile is the bottom
                edge of the page and the tile's x = 363 its middle. The
                island (rows 287 to 453) then lies just above that edge, in
                the water the type leaves free (.stage --pool).
                Cropped to a band of --band-h that fades out upwards
   .waves-tile  the six traced contours, shown inside the tile only
   .waves-more  the contours beyond the tile; they also redraw the last
                stretch inside it, where the tile's own lines fade, so every
                line runs through. They fade out towards both edges of the
                screen
   .waves-ends  a box around .waves-more that fades the same lines towards
                the ends of the drawing, on a screen that is wider than it

   Every mask here is a single layer. Two fades that must both let a line
   through sit on two nested boxes, never in one mask with mask-composite:
   Safari composites the layers only where the upper one is painted and
   shows the lower one untouched everywhere else.

   Nothing is hidden by a mask alone. The tile paths carry opacity="0" in the
   markup and .waves-more is at opacity 0 here; both are shown by the rules
   under "The drawing at rest" below, or by the intro when their beat comes. */
/* Height the type does not need goes to the water. The drawing is raised
   from the bottom edge of the page until its island lies on the pool and
   not on the grating in front of it: by what the window has to spare
   (it needs about 740 px for the header, the type and the band), and at
   most up to the near edge of the water. That edge is 12.3 % of the
   photograph's height above its bottom; the photograph covers the stage,
   at least 66.76vw high (1193 : 1787), and 58 % of what does not fit is cut
   off at the bottom (background-position: center 42%). */
@supports (height: 1svh) {
  .stage {
    --lift: clamp(0px, 100svh - 740px, 58svh - max(45.7svh, 30.51vw));
  }
}

.waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.waves-art {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * -116 + var(--lift));
  width: calc(var(--u) * 3300);
  height: calc(var(--u) * 640);
  margin-left: calc(var(--u) * -1563);
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.3) 4.5%, #000 12.5%, #000 87.5%, rgba(0, 0, 0, 0.3) 95.5%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% var(--band-h);
  -webkit-mask-position: 0 calc(var(--u) * 577 - var(--band-h));
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.3) 4.5%, #000 12.5%, #000 87.5%, rgba(0, 0, 0, 0.3) 95.5%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% var(--band-h);
  mask-position: 0 calc(var(--u) * 577 - var(--band-h));
}

.waves svg,
.waves-ends {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* The water is never quite still: the tile and the lines beyond it drift a
   few units, together (.waves-more is carried by .waves-ends). */
.waves-tile,
.waves-ends {
  animation: drift 36s ease-in-out infinite alternate;
}

.waves path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* At rest the drawing has one tone, a shade lighter than the water it lies
   on, and one thin line. The gold and cream of the markup belong to the
   intro, where the rings are drawn on black; they pass into this tone while
   the drawing sinks to the pool (intro-line-tone). */
html:not(.intro-on) .waves path {
  stroke: var(--cream);
  stroke-width: 1.1;
}

/* Full strength 70 units inside the tile, nothing at its left and right edge. */
.waves-tile {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.3) 2.8%, #000 7.8%, #000 92.2%, rgba(0, 0, 0, 0.3) 97.2%, transparent 100%);
  -webkit-mask-size: 27.2727% 100%;   /* 900 of 3300: the tile */
  -webkit-mask-position: 50% 0;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.3) 2.8%, #000 7.8%, #000 92.2%, rgba(0, 0, 0, 0.3) 97.2%, transparent 100%);
  mask-size: 27.2727% 100%;
  mask-position: 50% 0;
}

/* Two fades, both must let a line through. The outer box fades over the
   drawing itself and is the one that drifts, so the fade travels with the
   lines. */
.waves-ends {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: 0 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-size: 100% 100%;
  mask-position: 0 0;
}

/* The inner fade is as wide as the screen and centred on it.
   Unseen until the drawing spreads (the intro) or the page is at rest. */
.waves-more {
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 3%, #000 8.5%, #000 91.5%, rgba(0, 0, 0, 0.35) 97%, transparent 100%);
  -webkit-mask-size: 100vw 100%;
  -webkit-mask-position: calc(var(--u) * 1563 - 50vw) 0;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 3%, #000 8.5%, #000 91.5%, rgba(0, 0, 0, 0.35) 97%, transparent 100%);
  mask-size: 100vw 100%;
  mask-position: calc(var(--u) * 1563 - 50vw) 0;
}

/* The drawing at rest. js/intro.js puts .intro-done on <html> when the
   sequence has ended or was skipped, and at once where it does not run at
   all; it then also takes opacity="0" off the tile paths. With
   prefers-reduced-motion: reduce the page is at rest from the first paint
   (see the media query below), without scripting a <noscript> rule in
   index.html says the same. */
html.intro-done .waves-more,
html.intro-done .waves-tile path {
  opacity: 1;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--u) * -34)); }
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.5vh, 32px) var(--edge) 0;
}

/* The logo is a mark here, not a link. Never under 120 px wide (brand
   manual, minimum size on screen). */
.logo img {
  display: block;
  width: 132px;
  height: auto;
}

/* The other language: a quiet line of text, not a second door. */
.lang {
  margin: 2px -8px 0 0;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(246, 244, 242, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s ease;
}

.lang:hover,
.lang:focus-visible {
  text-decoration-color: var(--cream);
}

.lang:focus-visible,
.enter:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* Logo and type share the left edge of the page. The block is pushed down
   to the pool and never stands closer to the header than 40 px. */
.claim {
  position: relative;
  z-index: 1;
  margin: auto 0 var(--pool);
  padding: clamp(16px, 4vh, 40px) var(--edge) 0;
}

/* On the photograph all type is cream. Gold is kept for dark green: the
   arrow in the button. */
.kicker {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Two lines, as written: "Viac priestoru" / "pre Vás." In a low window the
   heading gives way before the page has to scroll. */
h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, min(7vw, 11vh), 92px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lead {
  margin: 0;
  max-width: 31em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream);
}

/* The one way in: a button, dark green, cream type, gold arrow. */
.enter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  margin-top: 32px;
  padding: 8px 28px 8px 32px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.enter svg {
  flex: none;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.enter:hover,
.enter:focus-visible {
  background: #2c3321;
}

.enter:hover svg,
.enter:focus-visible svg {
  transform: translateX(4px);
}

@media (max-width: 1023px) {
  .stage { --edge: 40px; }
}

/* On a phone the photograph shows its middle: the sky stands in the upper
   window, the trees below it, then the water. The band of the drawing is
   lower here (150 px: the island and the rings next to it), so the type can
   stand on the trees; the drawing is raised only by what is left once the
   type starts under the sky, at about a third of the height (the type and
   the band take about 466 px below that). */
@media (max-width: 800px) {
  .stage {
    --edge: 24px;
    --band-h: 150px;
  }
  .top { padding-top: 24px; }
  .logo img { width: 120px; }
  .claim { padding-top: 24px; }
  h1 { font-size: clamp(44px, 13.3vw, 52px); }
  .lead { font-size: 16px; }
  .enter { margin-top: 28px; }

  @supports (height: 1svh) {
    .stage {
      --lift: clamp(0px, 69svh - 466px, 12.3svh);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .waves-tile,
  .waves-ends { animation: none; }
  .waves-more,
  .waves-tile path { opacity: 1; }
  .lang,
  .enter,
  .enter svg { transition: none; }
}

/* ------------------------------------------------------------------
   Intro sequence

   Everything below is inert until js/intro.js puts .intro-on on <html>.
   Without the script, or with prefers-reduced-motion: reduce, the page
   simply shows its resting state. When the sequence ends (or is skipped)
   the script removes the classes and the overlay, so nothing here
   applies any more, and marks the page with .intro-done.

   html.intro-on    black overlay up, stage content held back
   html.intro-lock  page scroll held (released when the view opens)
   html.intro-play  assets are ready, the timeline runs
   html.intro-done  the page is at rest: the whole brand drawing is shown
                    (rule above, outside this media query)
   ------------------------------------------------------------------ */

.intro,
.intro-skip { display: none; }

.intro-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  html.intro-on {
    /* Beats, in seconds, counted from the moment the assets are ready. */
    --t-water: 0.3s;    /* water detail rises from black */
    --t-drop: 1.5s;     /* the drop starts to fall */
    --t-impact: 2.4s;   /* it meets the surface, ripples begin */
    --t-lines: 6.8s;    /* the ripples have become the brand drawing */
    --t-caption: 6.3s;  /* small caption under the drawing */
    --t-lie: 9.2s;      /* the drawing lies down on the water, under the logo */
    --t-logo: 10s;      /* logo appears, centred */
    --t-open: 12.2s;    /* view opens, logo travels to the header, the drawing
                           sinks to the bottom of the page and spreads sideways */
    --t-claim: 15.2s;   /* place, slogan and lead */
    --t-enter: 16.3s;   /* the way in rises */
    --t-end: 17.6s;     /* everything at rest */

    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-move: cubic-bezier(0.65, 0, 0.35, 1);

    /* Geometry. Measured and overwritten by intro.js. */
    --logo-x: 0px;
    --logo-y: 0px;
    --logo-s: 1;
    --band-y: 68vh;
    --cap-y: calc(100% - 30px);
    --art-x: 0px;       /* the drawing while it is held: island under the drop */
    --art-y: -30vh;
    --art-s: 1.3;
    --art-x1: 0px;      /* lying under the centred logo */
    --art-y1: -26vh;
    --art-s1: 1.2;
    --art-h1: 240px;    /* what is left of its height there, and from where */
    --art-m1: 190px;
    --more-w1: 100vw;   /* how far the lines have spread by then */
    --water-ox: 32%;
    --water-oy: 78%;
    --water-x: 0px;
    --water-y: 0px;
    --water-s: 3;
  }

  /* 1. Black. Nothing of the stage may show through. */
  html.intro-lock {
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.intro-lock,
  html.intro-lock body,
  html.intro-lock .stage {
    background: #000;
  }

  html.intro-lock .intro { touch-action: none; }

  html.intro-on .intro {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    background: #000;
  }

  html.intro-on .top,
  html.intro-on .claim {
    z-index: 4;
  }

  html.intro-on .lang,
  html.intro-on .claim > * {
    opacity: 0;
  }

  .intro-loading {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 1px;
    margin: 0 0 0 -56px;
    overflow: hidden;
    background: rgba(210, 180, 126, 0.2);
    animation: intro-fade-in 0.5s ease 0.15s both;
  }

  .intro-loading-line {
    display: block;
    height: 100%;
    background: var(--gold);
    animation: intro-load 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  html.intro-play .intro-loading { animation: intro-fade-out 0.4s ease both; }
  html.intro-play .intro-loading-line { animation-play-state: paused; }

  /* 2. Water. The stage photograph itself, held close on the pool, so the
        later opening is one continuous pull back to the full picture. */
  .intro-water,
  .intro-grade {
    position: absolute;
    inset: 0;
    opacity: 0;
  }

  .intro-water {
    background: url("../foto/les-bazen.jpg") center 42% / cover no-repeat;
    transform-origin: var(--water-ox) var(--water-oy);
    transform: translate3d(var(--water-x), var(--water-y), 0) scale(var(--water-s));
    /* This close, the picture is softened a little: glints, not pixels. */
    filter: blur(1.4px);
  }

  /* The same two gradients the stage carries, so the hand-over is invisible. */
  .intro-grade {
    background:
      linear-gradient(180deg, rgba(56, 64, 43, 0.46) 0%, rgba(56, 64, 43, 0.12) 34%, rgba(41, 27, 20, 0.55) 100%),
      linear-gradient(90deg, rgba(56, 64, 43, 0.72) 0%, rgba(56, 64, 43, 0.28) 48%, rgba(56, 64, 43, 0.08) 100%);
  }

  .intro-shade {
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse min(60vw, 96vh) min(58vh, 100vw) at 50% 58%, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.64) 44%, rgba(0, 0, 0, 0.94) 78%, #000 100%);
  }

  html.intro-play .intro-water {
    animation:
      intro-fade-in 2.2s var(--ease-out) var(--t-water) both,
      intro-water-rise calc(var(--t-open) - var(--t-water)) var(--ease-out) var(--t-water) both,
      intro-water-open 3.4s var(--ease-move) var(--t-open) forwards,
      intro-water-clear 2.4s var(--ease-move) var(--t-open) forwards;
  }

  /* 3. The drop, the ripples, the brand drawing. */
  .intro-motif {
    position: fixed;
    left: 50%;
    top: var(--band-y);
    width: min(88vw, 820px);
    height: calc(min(88vw, 820px) * 0.28);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .intro-drop {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 13px;
    margin: -13px 0 0 -2.5px;
    border-radius: 50% 50% 50% 50% / 72% 72% 28% 28%;
    background: linear-gradient(180deg, rgba(246, 244, 242, 0) 0%, var(--cream) 62%);
    opacity: 0;
  }

  .intro-glint {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30%;
    height: 34%;
    background: radial-gradient(closest-side, rgba(246, 244, 242, 0.5) 0%, rgba(210, 180, 126, 0.2) 46%, rgba(210, 180, 126, 0) 100%);
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  html.intro-play .intro-drop {
    animation: intro-drop 0.9s cubic-bezier(0.5, 0, 0.9, 0.55) var(--t-drop) both;
  }

  html.intro-play .intro-glint {
    animation: intro-glint 2.4s var(--ease-out) var(--t-impact) both;
  }

  /* The ripples: six rings that intro.js grows from the point of impact and
     bends, a little more with every frame, until together they are the brand
     drawing "Vlnenie v slnku". They are the six paths of .waves-tile, the
     drawing that lies along the bottom of the finished page, so nothing is
     swapped later: for the intro the whole drawing is lifted and enlarged
     until the island lies under the drop (--art-x, --art-y, --art-s), shown
     at full height and at full strength. Beyond the tile it fades over a
     margin of 60 units, and the lines to either side stay unseen.

     Unseen is a matter of opacity, not of a mask. The tile paths have
     opacity="0" in the markup, so they are blank before any of this is
     read, and intro.js raises each one as its ring is sent out. .waves-more
     keeps the opacity 0 of its own rule until --t-lie. */
  html.intro-on .waves { z-index: 3; }

  html.intro-on .waves-art {
    opacity: 1;
    transform-origin: 0 0;
    transform: translate(var(--art-x), var(--art-y)) scale(var(--art-s));
    -webkit-mask-size: 100% 100%;
    -webkit-mask-position: 0 0;
    mask-size: 100% 100%;
    mask-position: 0 0;
  }

  html.intro-on .waves-tile {
    -webkit-mask-size: 30.9091% 100%;   /* 1020 of 3300: the tile and its margin */
    mask-size: 30.9091% 100%;
  }

  html.intro-on .waves-tile path { opacity: 0; }

  html.intro-on .waves-more {
    opacity: 0;
    -webkit-mask-size: calc(var(--u) * 660) 100%;
    -webkit-mask-position: calc(var(--u) * 1320) 0;
    mask-size: calc(var(--u) * 660) 100%;
    mask-position: calc(var(--u) * 1320) 0;
  }

  /* The rings themselves move in intro.js, from --t-impact to --t-lines.
     Held to be read, the drawing then goes where it belongs, in two breaths
     of one movement and without ever leaving the screen.

     --t-lie   It lies down on the water: a little smaller, a little lower,
               its upper part fading so the logo can stand above it, and its
               lines begin to reach out past the tile.
     --t-open  With the camera pulling back it sinks to the pool at the bottom
               of the page and the lines run on to both sides, until they
               fade at the edges of the screen. */
  html.intro-play .waves-art {
    animation:
      intro-art-lie 1.2s var(--ease-move) var(--t-lie) forwards,
      intro-art-settle 3.4s var(--ease-move) var(--t-open) forwards;
  }

  /* The lines beyond the tile come up from opacity 0 at --t-lie and no
     sooner (intro-more-show). How far they reach is the width of their one
     mask layer, which opens from the tile outwards (intro-more-reach, then
     intro-more-spread). Where a mask is not honoured they are still unseen
     until --t-lie and then fade in whole. */
  html.intro-play .waves-more {
    animation:
      intro-more-show 0.6s var(--ease-out) var(--t-lie) forwards,
      intro-more-reach 2.6s var(--ease-out) var(--t-lie) forwards,
      intro-more-spread 3.4s var(--ease-move) var(--t-open) forwards;
  }

  /* No drift while the sequence runs, as for the tile; both start again
     together when it ends. */
  html.intro-play .waves-ends {
    animation: none;
  }

  /* Once the lines beyond the tile are there, the tile lets go of its margin. */
  html.intro-play .waves-tile {
    animation: intro-tile-edge 3.4s var(--ease-move) var(--t-open) forwards;
  }

  /* Sinking to the pool, the gold and cream rings take the one tone the
     drawing has at rest. */
  html.intro-play .waves path {
    animation: intro-line-tone 3.4s var(--ease-move) var(--t-open) forwards;
  }

  .intro-caption {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--cap-y);
    margin: 0;
    text-align: center;
    text-indent: 0.22em;
    /* The one line of explanation in the film: large enough to be read
       without effort, still quiet. Cream, as all type on the photograph. */
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0;
  }

  /* In as the drawing resolves, out as it lies down. */
  html.intro-play .intro-caption {
    animation: intro-caption calc(var(--t-lie) - var(--t-caption) + 0.6s) ease var(--t-caption) both;
  }

  /* 4. Logo, centred. It is the header logo, moved there by a transform. */
  html.intro-on .logo img {
    opacity: 0;
    transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-s));
  }

  html.intro-play .logo img {
    animation:
      intro-fade-in 1.4s var(--ease-out) var(--t-logo) both,
      intro-logo-travel 3.2s var(--ease-move) var(--t-open) forwards;
  }

  /* 5. The view opens. */
  html.intro-play .intro-shade {
    animation: intro-fade-out 2.8s var(--ease-move) var(--t-open) both;
  }

  html.intro-play .intro-grade {
    animation: intro-fade-in 2.8s var(--ease-move) var(--t-open) both;
  }

  html.intro-play .intro {
    animation: intro-fade-out 0.5s linear calc(var(--t-open) + 3.4s) both;
  }

  html.intro-play .lang {
    animation: intro-fade-in 1.2s var(--ease-out) calc(var(--t-open) + 2.4s) both;
  }

  /* 6. Place, slogan and lead. */
  html.intro-play .claim > * {
    animation: intro-claim 1.1s var(--ease-out) var(--t-claim) both;
  }

  html.intro-play .claim > :nth-child(2) { animation-delay: calc(var(--t-claim) + 0.2s); }
  html.intro-play .claim > :nth-child(3) { animation-delay: calc(var(--t-claim) + 0.45s); }

  /* 7. The way in. It is the last thing to move: when it has risen,
        intro.js puts the page at rest. */
  html.intro-play .claim > .enter {
    animation: intro-rise 1.1s var(--ease-out) var(--t-enter) both;
  }

  /* Skip. */
  html.intro-on .intro-skip {
    display: block;
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 5;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--cream);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s, color 0.3s ease;
  }

  html.intro-skip-on .intro-skip {
    opacity: 0.68;
    visibility: visible;
    transition-delay: 0s;
  }

  html.intro-skip-on .intro-skip:hover,
  html.intro-skip-on .intro-skip:focus-visible {
    color: var(--gold);
    opacity: 1;
  }

  html.intro-on .intro-skip:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  html.intro-play .intro-skip {
    animation: intro-skip-out 0.6s ease calc(var(--t-end) - 0.9s) forwards;
  }

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

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

  @keyframes intro-skip-out {
    to { opacity: 0; }
  }

  @keyframes intro-load {
    from { transform: translateX(-101%); }
    to { transform: translateX(101%); }
  }

  @keyframes intro-water-rise {
    from { transform: translate3d(var(--water-x), calc(var(--water-y) + 5vh), 0) scale(calc(var(--water-s) * 0.93)); }
    to { transform: translate3d(var(--water-x), var(--water-y), 0) scale(var(--water-s)); }
  }

  @keyframes intro-water-open {
    from { transform: translate3d(var(--water-x), var(--water-y), 0) scale(var(--water-s)); }
    to { transform: translate3d(0, 0, 0) scale(1); }
  }

  @keyframes intro-water-clear {
    from { filter: blur(1.4px); }
    to { filter: blur(0); }
  }

  @keyframes intro-drop {
    0% { opacity: 0; transform: translateY(calc(-1 * var(--band-y) - 24px)); }
    14% { opacity: 0.9; }
    94% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(0); }
  }

  @keyframes intro-glint {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
    22% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
  }

  @keyframes intro-art-lie {
    to {
      opacity: 0.62;
      transform: translate(var(--art-x1), var(--art-y1)) scale(var(--art-s1));
      -webkit-mask-size: 100% var(--art-h1);
      -webkit-mask-position: 0 var(--art-m1);
      mask-size: 100% var(--art-h1);
      mask-position: 0 var(--art-m1);
    }
  }

  @keyframes intro-art-settle {
    from {
      opacity: 0.62;
      transform: translate(var(--art-x1), var(--art-y1)) scale(var(--art-s1));
      -webkit-mask-size: 100% var(--art-h1);
      -webkit-mask-position: 0 var(--art-m1);
      mask-size: 100% var(--art-h1);
      mask-position: 0 var(--art-m1);
    }
    to {
      opacity: 0.35;
      transform: translate(0, 0) scale(1);
      -webkit-mask-size: 100% var(--band-h);
      -webkit-mask-position: 0 calc(var(--u) * 577 - var(--band-h));
      mask-size: 100% var(--band-h);
      mask-position: 0 calc(var(--u) * 577 - var(--band-h));
    }
  }

  @keyframes intro-more-show {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes intro-more-reach {
    to {
      -webkit-mask-size: var(--more-w1) 100%;
      -webkit-mask-position: calc(var(--u) * 1650 - var(--more-w1) / 2) 0;
      mask-size: var(--more-w1) 100%;
      mask-position: calc(var(--u) * 1650 - var(--more-w1) / 2) 0;
    }
  }

  @keyframes intro-more-spread {
    from {
      -webkit-mask-size: var(--more-w1) 100%;
      -webkit-mask-position: calc(var(--u) * 1650 - var(--more-w1) / 2) 0;
      mask-size: var(--more-w1) 100%;
      mask-position: calc(var(--u) * 1650 - var(--more-w1) / 2) 0;
    }
    to {
      -webkit-mask-size: 100vw 100%;
      -webkit-mask-position: calc(var(--u) * 1563 - 50vw) 0;
      mask-size: 100vw 100%;
      mask-position: calc(var(--u) * 1563 - 50vw) 0;
    }
  }

  @keyframes intro-tile-edge {
    to {
      -webkit-mask-size: 27.2727% 100%;
      mask-size: 27.2727% 100%;
    }
  }

  @keyframes intro-line-tone {
    to {
      stroke: var(--cream);
      stroke-width: 1.1;
    }
  }

  @keyframes intro-caption {
    0% { opacity: 0; }
    26% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
  }

  @keyframes intro-logo-travel {
    from { transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-s)); }
    to { transform: none; }
  }

  @keyframes intro-claim {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes intro-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}
