/* Book a Sport marketing site. Tokens follow docs/design-language.md (Fresh snow / Winter night, teal accent). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --canvas: #f7f9fb;
  --surface: #ffffff;
  --text: #14202b;
  --muted: #5b6b7a;
  --border: #e3e8ed;
  --edge: #7e8c99;
  --accent: #0f7c6e;
  --on-accent: #ffffff;
  --accent-tint: #eef7f5;
  --shot-edge: rgba(20, 32, 43, 0.1);
  --shadow-raised: 0 18px 40px -18px rgba(20, 32, 43, 0.45);
  --ink: #14202b;
  --device: #121b24;
  --on-ink: #e8eef3;
  --on-ink-muted: #93a2b0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --state: 300ms;
  --enter: 470ms;
  --press: 140ms;
  --rise: 8px;
  --radius: 16px;
  --radius-container: 24px;
  --gutter: 16px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --canvas: #0e141a;
    --surface: #17202a;
    --text: #e8eef3;
    --muted: #93a2b0;
    --border: rgba(255, 255, 255, 0.08);
    --edge: #7c8b99;
    --accent: #35b3a1;
    --on-accent: #06201c;
    --accent-tint: #13302d;
    --shot-edge: rgba(255, 255, 255, 0.1);
    --shadow-raised: 0 18px 40px -14px rgba(0, 0, 0, 0.65);
    --ink: #17202a;
    --on-ink: #e8eef3;
    --on-ink-muted: #93a2b0;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0e141a;
  --surface: #17202a;
  --text: #e8eef3;
  --muted: #93a2b0;
  --border: rgba(255, 255, 255, 0.08);
  --edge: #7c8b99;
  --accent: #35b3a1;
  --on-accent: #06201c;
  --accent-tint: #13302d;
  --shot-edge: rgba(255, 255, 255, 0.1);
  --shadow-raised: 0 18px 40px -14px rgba(0, 0, 0, 0.65);
  --ink: #17202a;
  --on-ink: #e8eef3;
  --on-ink-muted: #93a2b0;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: 'tnum' 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-raised);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* The header lines up with the hero and its screenshots, which run wider than the text sections below */
.top > .wrap {
  max-width: calc(1640px + 2 * var(--gutter));
}
.top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  /* B and S as the two halves of a court, T as the net between them */
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.nav {
  display: none;
  gap: 4px;
}
.nav a,
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    background-color var(--state) var(--ease),
    transform var(--press) var(--ease);
}
.nav a:hover,
.lang:hover {
  background: var(--accent-tint);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: var(--cursor-hand, pointer);
  transition:
    background-color var(--state) var(--ease),
    transform var(--press) var(--ease);
}
.icon-button:hover {
  background: var(--accent-tint);
}
.icon-button:active,
.nav a:active,
.lang:active,
.look-option:active {
  transform: scale(0.985);
}
.nav a,
.lang,
.icon-button,
.look-option,
.button {
  -webkit-tap-highlight-color: transparent;
}
.brand {
  transition: opacity var(--state) var(--ease);
}
.brand:hover {
  opacity: 0.8;
}
.foot a {
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: text-decoration-color var(--state) var(--ease);
}
.foot a:hover {
  text-decoration-color: var(--accent);
}
.theme-dark-icon {
  display: none;
}
:root[data-theme='dark'] .theme-dark-icon {
  display: block;
}
:root[data-theme='dark'] .theme-light-icon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-dark-icon {
    display: block;
  }
  :root:not([data-theme='light']) .theme-light-icon {
    display: none;
  }
}
.top-row .top-cta {
  display: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: var(--cursor-hand, pointer);
  transition:
    background-color var(--state) var(--ease),
    box-shadow var(--state) var(--ease),
    transform var(--press) var(--ease);
}
.button:active {
  transform: scale(0.985);
}
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover {
  background: color-mix(in oklab, var(--accent) 88%, var(--text));
}
.button-quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.button-quiet:hover {
  background: var(--accent-tint);
}
.button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 28px 0 56px;
  overflow-x: clip;
}
/* One reading order: the name, what it is, the line under it, the actions; the product beside them on a desktop. */
/* The hero spans the screenshots' width. On a wide screen the three promises are scattered around the product, one
   beside the name and two under the screenshot, each at its own offset; on narrower screens they follow the product
   as a plain list. */
.hero-grid {
  --stage-w: min(calc(100vw - 2 * var(--gutter)), 1640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'copy' 'stage' 'promise';
  gap: 32px;
  width: var(--stage-w);
  margin-left: calc((100% - var(--stage-w)) / 2);
}
.hero-copy {
  grid-area: copy;
}
.stage {
  grid-area: stage;
}
.promise {
  grid-area: promise;
}
@media (min-width: 1600px) {
  /* The promises are a column of cards on the right, starting level with the name and running down over the top
     corner of the product; they end above the phone, so its booking and the sport list stay clear. Only where the
     screen leaves room beside the name. */
  .hero-grid {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'copy' 'stage';
  }
  .hero-grid .promise {
    position: absolute;
    top: 0;
    right: 3%;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 14px;
    width: 400px;
    margin: 0;
  }
  .hero-grid .promise li {
    /* site.js floats each card gently and lets it be tugged a little; it springs back when let go */
    touch-action: none;
    cursor: grab;
    user-select: none;
    align-content: center;
    padding: 12px 18px 12px 12px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow:
      0 0 0 1px var(--shot-edge),
      0 18px 40px -16px rgb(0 0 0 / 0.4);
  }
}

/* "Book THE Sport": three waves, each word rising out of its own line; "THE" stands upright between them in the accent. */
/* The logo stands beside the name; while scrolling, the whole line glides up and settles in the header as its brand. */
.brandline {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.2em;
  width: max-content;
  transform-origin: 0 0;
  will-change: transform;
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 11.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.bl {
  display: inline-flex;
  align-items: baseline;
}
.bl-word {
  display: inline-block;
  overflow: hidden;
  padding: 0 0.02em 0.12em;
  margin-bottom: -0.12em;
}
.bl-word > span {
  display: inline-block;
  animation: bl-rise 820ms var(--ease) both;
}
.bl-2 {
  /* "THE" reads normally in the hero; while the name glides into the header it turns upright, squeezed between
     Book and Sport (site.js narrows this slot and rotates the word). Centred on the capitals. */
  align-self: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin: 0 0.3em;
  padding: 0;
  font-size: 0.34em;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  top: 0.21em;
}
.bl-the {
  display: inline-block;
  white-space: nowrap;
  /* letter-spacing leaves a trailing gap after the last letter; pull it back so the word sits centred */
  margin-right: -0.14em;
}
.bl-1 > span {
  animation-delay: 120ms;
}
.bl-2 > span {
  animation: the-in 700ms var(--ease) 560ms both;
}
@keyframes the-in {
  from {
    opacity: 0;
    transform: translateY(40%);
  }
}
.bl-3 > span {
  animation-delay: 1000ms;
}
.bl-logo {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  animation: bl-logo-in 820ms var(--ease) both;
}
.bl-logo svg {
  width: 100%;
  height: 100%;
}
@keyframes bl-logo-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
}
/* With scripts on, the hero line is the brand, so the header's own copy stays invisible underneath it */
.js .top .brand > * {
  opacity: 0;
}
@keyframes bl-rise {
  from {
    opacity: 0;
    transform: translateY(105%);
  }
  40% {
    opacity: 1;
  }
}

/* Simple, fast, secure: the fourth wave under the heading. One strong word each, one true line under it. */
.promise {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.promise li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  animation: rise var(--enter) var(--ease) both;
}
/* The promises come in one by one, slowly, as the line under the name finishes surfacing, each well after the one before */
.promise li {
  animation-duration: 1500ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.promise li:nth-child(1) {
  animation-delay: 3300ms;
}
.promise li:nth-child(2) {
  animation-delay: 4000ms;
}
.promise li:nth-child(3) {
  animation-delay: 4700ms;
}
.promise strong {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.promise-icon {
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}
/* Once each card has landed, its icon acts out its word: the finger taps twice, the bolt strikes, the shield
   ticks itself. One time only; reduced motion leaves them still. */
.promise-icon svg,
.promise-icon path {
  transform-box: fill-box;
  transform-origin: center;
}
.promise li:nth-child(1) .promise-icon svg {
  animation: icon-tap 520ms cubic-bezier(0.3, 0, 0.3, 1) 4400ms 2;
}
.promise li:nth-child(1) .promise-icon path:last-child {
  animation: icon-tap-rays 520ms ease 4400ms 2;
}
.promise li:nth-child(2) .promise-icon svg {
  animation: icon-zap 700ms ease 5100ms;
}
.promise li:nth-child(2) .promise-icon path {
  fill: currentColor;
  fill-opacity: 0;
  animation: icon-zap-fill 900ms ease 5100ms;
}
.promise li:nth-child(3) .promise-icon svg {
  animation: icon-guard 800ms cubic-bezier(0.3, 0, 0.3, 1) 5800ms;
}
.promise li:nth-child(3) .promise-icon path:last-child {
  stroke-dasharray: 12;
  animation: icon-tick 600ms ease-out 5950ms backwards;
}
@keyframes icon-tap {
  35% {
    transform: translate(1px, 2px) scale(0.86);
  }
  70% {
    transform: none;
  }
}
@keyframes icon-tap-rays {
  30% {
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
}
@keyframes icon-zap {
  15% {
    transform: rotate(-9deg) scale(1.08);
  }
  35% {
    transform: rotate(7deg) scale(1.12);
  }
  55% {
    transform: rotate(-3deg) scale(1.04);
  }
  80% {
    transform: none;
  }
}
@keyframes icon-zap-fill {
  20%,
  55% {
    fill-opacity: 1;
  }
}
@keyframes icon-guard {
  40% {
    transform: scale(1.14);
  }
  75% {
    transform: none;
  }
}
@keyframes icon-tick {
  from {
    stroke-dashoffset: 12;
  }
}
.promise span {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.45;
}
@media (min-width: 640px) {
  .promise {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 48px;
  }
}

/* The wordmark: "Book" and "Sport" at full weight with an upright accent "THE" between them. */
.wm {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
/* The same upright "THE" as in the hero heading, read top to bottom, in the accent */
.wm-a {
  align-self: center;
  margin: 0 0.085em 0 0.26em;
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
  writing-mode: vertical-rl;
  position: relative;
  top: 0.07em;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin: 14px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.5;
}
.stage {
  /* Wider than the text column wherever the screen allows, up to about the screenshots' own resolution */
  position: relative;
  min-width: 0;
  padding-bottom: 12%;
}
.shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--shot-edge),
    var(--shadow-raised);
}
.shot-desktop {
  position: relative;
  z-index: 1;
  width: 88%;
  border-radius: 14px;
}
.shot-phone {
  border-radius: 26px;
}
.stage .shot-phone {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 34%;
  max-width: 380px;
}

/* Sections */

.section {
  padding: 72px 0;
}
.section-head {
  max-width: 720px;
}
.section-head h2,
.band h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 56ch;
}
/* Facts: each one a cropped piece of the real app, its title and one line. A phone scrolls them sideways. */

.facts {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 32px 28px;
}
.facts li {
  min-width: 0;
}
.fact-shot {
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--shot-edge);
}
.fact-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.facts strong,
.fact-plain strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.facts span,
.fact-plain span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.5;
}
.fact-plain {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (max-width: 639.98px) {
  .facts {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .facts li {
    scroll-snap-align: start;
  }
}

/* Motion: the app's values (docs/design-language.md 5.1). Entrances rise 8 px and settle; nothing waits on them. */

.js .hero-copy > :not(.brandline),
.js .stage {
  animation: rise var(--enter) var(--ease) both;
}
.js .stage {
  animation-delay: 200ms;
}
/* The line under the name starts only once Book, THE and Sport have finished rising (Sport: 1000ms delay + 820ms) */
.js .hero-copy > h1:not(.brandline) {
  /* A calm afterthought to the heading: after a short pause it surfaces left to right through a soft, feathered edge */
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: soft-in 2200ms cubic-bezier(0.45, 0.05, 0.35, 1) 2050ms both;
}
@keyframes soft-in {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    opacity: 0.6;
    transform: translateY(4px);
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease) var(--d, 0ms),
    transform 720ms var(--ease) var(--d, 0ms),
    filter 720ms var(--ease) var(--d, 0ms);
}
.reveal[data-rv='left'] {
  transform: translateX(-28px);
}
.reveal[data-rv='right'] {
  transform: translateX(28px);
}
.reveal[data-rv='grow'] {
  transform: scale(0.94);
}
.reveal[data-rv='focus'] {
  transform: translateY(12px);
  filter: blur(6px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Sideways entrances never widen the page on a phone */
main {
  overflow-x: clip;
}

/* Theme switch: colours ease across for one moment, then transitions go back to normal */

.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition:
    background-color var(--state) var(--ease),
    color var(--state) var(--ease),
    border-color var(--state) var(--ease),
    box-shadow var(--state) var(--ease),
    fill var(--state) var(--ease),
    stroke var(--state) var(--ease) !important;
}
.theme-anim img.shot,
.theme-anim .icon-button svg {
  animation: theme-fade var(--state) var(--ease);
}
@keyframes theme-fade {
  from {
    opacity: 0;
  }
}

/* A screenshot comes in a light and a dark take; the page shows the one of its theme */

.only-dark {
  display: none;
}
:root[data-theme='dark'] .only-light {
  display: none;
}
:root[data-theme='dark'] .only-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-light {
    display: none;
  }
  :root:not([data-theme='light']) .only-dark {
    display: block;
  }
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* One booking as a story: a phone whose screen follows the step in view. Desktop pins the phone beside the steps;
   a phone swipes through the steps under it. */

.journey {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.j-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.j-phone {
  width: min(240px, 64vw);
  padding: 9px;
  border-radius: 44px;
  background: var(--device);
  box-shadow:
    0 0 0 1px var(--shot-edge),
    var(--shadow-raised);
  touch-action: pan-y;
}
.j-screen {
  position: relative;
  aspect-ratio: 600 / 1298;
  max-width: 100%;
  overflow: hidden;
  border-radius: 35px;
  background: var(--canvas);
  --dx: 28px;
}
.j-shot {
  -webkit-user-drag: none;
  user-select: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(var(--dx));
}
.j-shot.is-on {
  z-index: 2;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--state) var(--ease),
    transform var(--enter) var(--ease);
}
.j-shot.was-on {
  z-index: 1;
  opacity: 0;
  transform: translateX(calc(var(--dx) * -0.4));
  transition:
    opacity var(--state) var(--ease),
    transform var(--enter) var(--ease);
}
.j-mark {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  pointer-events: none;
  opacity: 0;
}
.j-tap {
  width: 22%;
  aspect-ratio: 1;
  margin: -11% 0 0 -11%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0 30%, transparent 70%);
}
.j-tap.is-on {
  animation: j-tap 2.8s var(--ease) 520ms infinite;
}
@keyframes j-tap {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  8% {
    opacity: 0.9;
  }
  34%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
.j-pulse {
  left: 4%;
  top: 16.26%;
  width: 92%;
  height: 28.58%;
  border-radius: 4.46% / 6.63%;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.j-pulse.is-on {
  animation: j-pulse 2.4s ease-in-out 520ms infinite;
}
@keyframes j-pulse {
  0%,
  100% {
    opacity: 0;
    outline-offset: 2px;
  }
  45% {
    opacity: 0.7;
    outline-offset: 4px;
  }
}
.j-dots {
  display: flex;
  gap: 2px;
}
.j-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: var(--cursor-hand, pointer);
  -webkit-tap-highlight-color: transparent;
}
.j-dot span {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--edge);
  opacity: 0.6;
  transition:
    width var(--state) var(--ease),
    background-color var(--state) var(--ease),
    opacity var(--state) var(--ease);
}
.j-dot[aria-current='step'] span {
  width: 22px;
  background: var(--accent);
  opacity: 1;
}
.j-rail {
  position: relative;
  min-width: 0;
}
.j-progress {
  display: none;
}
.j-steps {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.j-steps::-webkit-scrollbar {
  display: none;
}
.j-step {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.j-step-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: var(--cursor-hand, pointer);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--state) var(--ease);
}
.j-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--edge);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  background: var(--canvas);
  transition:
    background-color var(--state) var(--ease),
    color var(--state) var(--ease),
    box-shadow var(--state) var(--ease);
}
.j-step.is-on .j-num {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.j-copy strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.j-copy > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  max-width: 40ch;
}
.j-count {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .journey {
    grid-template-columns: minmax(0, 500px) auto;
    justify-content: center;
    gap: 120px;
    margin-top: 56px;
    align-items: start;
  }
  .j-stage {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(50vh - 300px);
  }
  .j-phone {
    width: 268px;
  }
  .j-dots {
    display: none;
  }
  .j-rail {
    grid-column: 1;
    grid-row: 1;
    padding-left: 22px;
  }
  .j-progress {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 2px;
    border-radius: 1px;
    background: var(--border);
    overflow: hidden;
  }
  .j-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: 50% 0;
    transform: scaleY(var(--progress, 0));
    transition: transform var(--enter) var(--ease);
  }
  .j-steps {
    display: block;
    overflow: visible;
  }
  .j-step {
    display: flex;
    align-items: center;
    min-height: 60vh;
  }
  .j-step:first-child {
    min-height: 40vh;
    align-items: flex-start;
    padding-top: 12vh;
  }
  .j-step:last-child {
    min-height: 50vh;
  }
  .j-step-button {
    padding: 16px 18px;
    opacity: 0.5;
    transition:
      background-color var(--state) var(--ease),
      opacity var(--state) var(--ease);
  }
  .j-step-button {
    position: relative;
    z-index: 1;
  }
  /* A hovered card covers the line behind it; only its own number sits on the line */
  .j-step-button:hover {
    background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--canvas);
    opacity: 1;
  }
  .j-step.is-on .j-step-button {
    opacity: 1;
  }
  .j-copy strong {
    font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  }
}

/* Reception: one large screen, switched by the buttons above it */

.viewer {
  margin-top: 40px;
}
.viewer-tabs {
  margin-top: 0;
}
.viewer-frame {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.viewer-frame .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0s linear var(--state);
}
.viewer-frame .shot.is-on {
  z-index: 1;
  opacity: 1;
  transition: opacity var(--state) var(--ease);
}
.viewer-caption {
  margin: 14px 0 0;
  min-height: 2.9em;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 70ch;
}

/* Looks switcher */

.looks {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding: 24px;
  border-radius: var(--radius-container);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.looks h3 {
  margin: 0;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.looks p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 44ch;
}
.look-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.look-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 14px;
  background: var(--canvas);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: var(--cursor-hand, pointer);
  box-shadow: inset 0 0 0 1px var(--border);
  transition:
    background-color var(--state) var(--ease),
    box-shadow var(--state) var(--ease),
    transform var(--press) var(--ease);
}
.look-option:hover {
  background: var(--accent-tint);
}
.look-option[aria-pressed='true'] {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 43, 0.12);
}
.look-view {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  aspect-ratio: 600 / 1298;
}
.look-view .shot-phone {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0s linear var(--state);
}
.look-view .shot-phone.is-on {
  z-index: 1;
  opacity: 1;
  transition: opacity var(--state) var(--ease);
}
.looks-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Built for Czech centres */

.band {
  padding: 64px 0;
  background: var(--accent-tint);
}
.band-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.band-list li {
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.band-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.975rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* Planned */

.planned {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.planned li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px dashed var(--edge);
}
.planned strong {
  font-size: 1.125rem;
  font-weight: 700;
}
.planned span {
  color: var(--muted);
}
.tag {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--edge);
}

/* Contact */

.contact {
  padding: 80px 0 88px;
  background: var(--ink);
  color: var(--on-ink);
}
.contact p {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--on-ink-muted);
  font-size: 1.125rem;
}
.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.mail-address {
  font-size: clamp(1.375rem, 0.9rem + 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
  user-select: all;
}
.contact .button-quiet {
  color: var(--on-ink);
  box-shadow: inset 0 0 0 1px var(--on-ink-muted);
}
.contact .button-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}
.copy-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
}
.contact-note {
  font-size: 0.875rem !important;
}

.foot {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
  .band-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
  .planned {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-row .top-cta {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }
  .nav {
    display: flex;
    margin-right: 8px;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .hero-grid {
    gap: 40px;
  }
  .section {
    padding: 112px 0;
  }
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .looks {
    grid-template-columns: 1.2fr 1fr;
    padding: 48px;
    gap: 48px;
  }
  .band {
    padding: 88px 0;
  }
  .band-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact {
    padding: 120px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .button:active,
  .icon-button:active,
  .nav a:active,
  .lang:active,
  .look-option:active {
    transform: none;
  }
}

/* Cursor: a small ball in the brand colours, a bigger teal one over anything clickable. Mouse and trackpad only. */
@media (hover: hover) and (pointer: fine) {
  :root {
    --cursor-ball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='7.5' fill='%239FE1CB' stroke='%230E141A' stroke-width='1.5'/%3E%3Cpath d='M7.5 6.9c2.25 2.55 2.25 7.65 0 10.2M16.5 6.9c-2.25 2.55-2.25 7.65 0 10.2' fill='none' stroke='%230F7C6E' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, auto;
    --cursor-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%230F7C6E' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Cpath d='M6.6 5.88c2.7 3.06 2.7 9.18 0 12.24M17.4 5.88c-2.7 3.06-2.7 9.18 0 12.24' fill='none' stroke='%239FE1CB' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, pointer;
    cursor: var(--cursor-ball);
  }
  a,
  button,
  summary,
  label,
  .hero-grid .promise li {
    cursor: var(--cursor-hand);
  }
  input,
  textarea {
    cursor: text;
  }
}

/* Air behind the ball cursor: three speed lines streaming back from under the ball the way it came, the outer two
   fanning out a little; longer the faster it moves */
.cursor-air {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  will-change: transform, opacity;
}
.cursor-air stop {
  stop-color: var(--accent);
}
