/*
 * underthestatic.com: one page, two tones (Under the Static, serious; Closed for Renovations, light), two
 * languages (en-GB, pt-PT). <html data-tone="uts|cfr" lang="en-GB|pt-PT"> picks what shows: [data-t] and [data-l]
 * blocks for the other tone or language are display:none. The palettes are the itch pages' themes and the type is
 * the teaser's: system fonts only, nothing is downloaded from anywhere else.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: dark;
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

/* The serious tone (default; also inside a .skin-uts card on the light page). */
:root,
.skin-uts {
  --bg: #050a16;
  --bg2: #0e1830;
  --surface: rgba(14, 24, 48, 0.72);
  --text: #e8e2d2;
  --dim: #a3abbd;
  --accent: #e3a857;
  --accent-text: #0b0906;
  --link: #e3a857;
  --line: rgba(227, 168, 87, 0.34);
  --header-bg: rgba(5, 10, 22, 0.86);
  --radius: 2px;
  --radius-lg: 3px;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-title: 'Segoe UI Light', 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-ui: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, 'Liberation Mono', 'Courier New', monospace;
  --title-weight: 300;
  --title-spacing: 0.16em;
  --title-transform: uppercase;
  --title-shadow: none;
  --sub-color: #e3a857;
  --sub-weight: 400;
  --sub-spacing: 0.05em;
  --h2-weight: 300;
  --h2-spacing: 0.14em;
  --h2-transform: uppercase;
  --ui-transform: uppercase;
  --ui-spacing: 0.08em;
  --ui-size: 0.82rem;
  --ui-weight: 600;
}

/* The light tone. */
:root[data-tone='cfr'],
.skin-cfr {
  --bg: #1b2340;
  --bg2: #283158;
  --surface: rgba(40, 49, 88, 0.85);
  --text: #f7f1e6;
  --dim: #ccd1ea;
  --accent: #ff8a3d;
  --accent-text: #1b1305;
  --link: #9fd8cf;
  --line: rgba(159, 216, 207, 0.38);
  --header-bg: rgba(27, 35, 64, 0.9);
  --radius: 14px;
  --radius-lg: 22px;
  --font-body: ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-title: ui-rounded, 'SF Pro Rounded', 'Segoe UI Black', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --font-ui: ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --title-weight: 900;
  --title-spacing: 0.01em;
  --title-transform: uppercase;
  --title-shadow: 0 0.07em 0 rgba(0, 0, 0, 0.35);
  --sub-color: #9fd8cf;
  --sub-weight: 700;
  --sub-spacing: 0;
  --h2-weight: 800;
  --h2-spacing: 0;
  --h2-transform: none;
  --ui-transform: none;
  --ui-spacing: 0;
  --ui-size: 0.95rem;
  --ui-weight: 750;
}

/* ------------------------------------------------------------------ tone and language */

:root[data-tone='uts'] [data-t='cfr'],
:root[data-tone='cfr'] [data-t='uts'],
:root[lang|='en'] [data-l='pt'],
:root[lang|='pt'] [data-l='en'] {
  display: none !important;
}

/* Without JavaScript the switches can't work: hide them (the page stays in the serious tone, in English). */
:root:not(.js) .needs-js {
  display: none !important;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root[data-tone='uts'] body {
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(19, 37, 74, 0.55), transparent 70%),
    var(--bg);
}

:root[data-tone='cfr'] body {
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(58, 72, 130, 0.55), transparent 70%),
    var(--bg);
}

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

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

[tabindex='-1']:focus {
  outline: none;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 650;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--accent);
  color: var(--accent-text);
  font: var(--ui-weight) 0.95rem var(--font-ui);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

@media (min-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  min-height: 44px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__name {
  display: none;
  color: var(--text);
  font: 500 0.8rem/1 var(--font-ui);
  letter-spacing: 0.08em;
}

.lang-switch {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 3px);
  padding: 3px;
  gap: 2px;
}

.lang-switch__opt {
  min-width: 44px;
  min-height: 38px;
  padding: 0 0.7em;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 700 0.85rem/1 var(--font-ui);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-switch__opt:hover {
  background: rgba(255, 255, 255, 0.07);
}

.lang-switch__opt[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}

/* The tone switch: two options and a thumb that slides between them. Each label is set in its own tone's type. */
.tone-switch {
  order: 3;
  flex: 1 1 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 3px);
  background: rgba(0, 0, 0, 0.22);
}

.tone-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: var(--radius);
  background: var(--accent);
  transition: transform 0.4s cubic-bezier(0.3, 1.35, 0.5, 1), border-radius 0.4s;
}

:root[data-tone='cfr'] .tone-switch::before {
  transform: translateX(100%);
}

.tone-switch__opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.35em 0.6em;
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  line-height: 1.15;
  transition: color 0.25s;
}

.tone-switch__opt:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.tone-switch__opt[aria-current='true'] {
  color: var(--accent-text);
  background: transparent;
}

.tone-switch__opt--uts {
  font: 400 0.74rem 'Segoe UI', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tone-switch__opt--cfr {
  font: 800 0.86rem ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
}

@media (min-width: 1100px) {
  .brand__name {
    display: inline;
  }
}

@media (min-width: 760px) {
  .tone-switch {
    order: 2;
    flex: 0 1 30rem;
    margin: 0 auto;
  }

  .lang-switch {
    order: 3;
    margin-left: 0;
  }

  .tone-switch__opt--uts {
    font-size: 0.8rem;
  }

  .tone-switch__opt--cfr {
    font-size: 0.92rem;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__art {
  position: relative;
  z-index: -2;
  height: min(66vw, 430px);
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 58% 40%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

:root[data-tone='uts'] .hero__art {
  background-image: url('/assets/img/uts-hero-960.4450d645e9.webp');
}

:root[data-tone='cfr'] .hero__art {
  background-image: url('/assets/img/cfr-hero-960.0547979de4.webp');
}

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

:root[data-tone='uts'] .hero__fx {
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}

.hero__inner {
  position: relative;
  margin-top: -4.5rem;
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(84vh, 760px);
  }

  .hero__art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    height: auto;
    background-position: 30% 45%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 26%, rgba(0, 0, 0, 0.6) 40%, #000 56%),
      linear-gradient(to bottom, #000 70%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, transparent 26%, rgba(0, 0, 0, 0.6) 40%, #000 56%),
      linear-gradient(to bottom, #000 70%, transparent);
    mask-composite: intersect;
  }

  :root[data-tone='uts'] .hero__art {
    background-image: url('/assets/img/uts-hero-1920.462e0a6978.webp');
  }

  :root[data-tone='cfr'] .hero__art {
    background-image: url('/assets/img/cfr-hero-1920.f97c9c5878.webp');
  }

  .hero__inner {
    margin-top: 0;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .hero__inner > * {
    max-width: 31rem;
  }
}

.kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font: var(--ui-weight) var(--ui-size) / 1.3 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nowrap {
  white-space: nowrap;
}

.hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: clamp(2.3rem, 6.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: var(--title-spacing);
  text-transform: var(--title-transform);
  text-shadow: var(--title-shadow);
  text-wrap: balance;
}

.hero__subtitle {
  margin: 0.6rem 0 1.4rem;
  color: var(--sub-color);
  font-family: var(--font-title);
  font-weight: var(--sub-weight);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  letter-spacing: var(--sub-spacing);
  line-height: 1.25;
  text-wrap: balance;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__lede {
  color: var(--dim);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* The serious tone: grain and scanlines over the art; the grain shifts like a weak signal. */
:root[data-tone='uts'] .hero__fx::before {
  content: '';
  position: absolute;
  inset: -120px;
  background: url('/assets/img/noise.947130e62c.svg');
  opacity: 0.09;
}

:root[data-tone='uts'] .hero__fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}

/* The light tone: the works' hazard tape along the bottom, and the kicker as a sticker. */
:root[data-tone='cfr'] .hero__fx::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, #ff8a3d 0 16px, #f7f1e6 16px 32px);
  opacity: 0.9;
}

:root[data-tone='cfr'] .kicker {
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: #f7f1e6;
  color: #1b2340;
  letter-spacing: 0.08em;
  font-weight: 800;
  transform: rotate(-2.5deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
  :root[data-tone='uts'] .hero__fx::before {
    animation: grain 0.9s steps(6) infinite;
  }

  :root[data-tone='uts'] .hero__title {
    animation: tune-in 1.4s ease-out both;
  }

  :root[data-tone='cfr'] .hero__title {
    animation: hang-sign 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) both;
    transform-origin: 8% 0;
  }

  :root[data-tone='cfr'] .kicker {
    animation: sticker 0.6s 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-37px, 21px); }
  33% { transform: translate(29px, -44px); }
  50% { transform: translate(-13px, 52px); }
  67% { transform: translate(48px, 9px); }
  83% { transform: translate(-51px, -27px); }
  100% { transform: translate(0, 0); }
}

@keyframes tune-in {
  0% { opacity: 0; filter: blur(6px); }
  18% { opacity: 0.7; filter: blur(0); transform: translateX(-3px); }
  22% { opacity: 0.2; transform: translateX(4px); }
  30% { opacity: 0.85; transform: translateX(0); }
  36% { opacity: 0.45; }
  48% { opacity: 1; }
  100% { opacity: 1; filter: none; transform: none; }
}

@keyframes hang-sign {
  0% { opacity: 0; transform: translateY(-0.5em) rotate(-4deg); }
  55% { opacity: 1; transform: translateY(0.04em) rotate(1.5deg); }
  78% { transform: rotate(-0.6deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes sticker {
  0% { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  100% { opacity: 1; transform: rotate(-2.5deg); }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.65em 1.25em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font: var(--ui-weight) var(--ui-size) / 1.2 var(--font-ui);
  letter-spacing: var(--ui-spacing);
  text-transform: var(--ui-transform);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: rgba(227, 168, 87, 0.12);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn--primary:hover {
  background: #f0bd73;
}

.btn__icon {
  width: 0.95em;
  height: 0.95em;
  flex: none;
}

:root[data-tone='cfr'] .btn,
.skin-cfr .btn {
  border-width: 2px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.32);
}

:root[data-tone='cfr'] .btn:hover,
.skin-cfr .btn:hover {
  background: rgba(255, 138, 61, 0.14);
  transform: translateY(-1px);
}

:root[data-tone='cfr'] .btn--primary:hover,
.skin-cfr .btn--primary:hover {
  background: #ffa060;
}

:root[data-tone='cfr'] .btn:active,
.skin-cfr .btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

/* The serious card on the light page keeps the serious buttons. */
:root[data-tone='cfr'] .skin-uts .btn {
  border-width: 1px;
  box-shadow: none;
  transform: none;
}

:root[data-tone='cfr'] .skin-uts .btn:hover {
  background: rgba(227, 168, 87, 0.12);
}

:root[data-tone='cfr'] .skin-uts .btn--primary:hover {
  background: #f0bd73;
}

/* ------------------------------------------------------------------ sections */

.section {
  padding-top: var(--space);
}

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-title);
  font-weight: var(--h2-weight);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: var(--h2-spacing);
  text-transform: var(--h2-transform);
  text-wrap: balance;
}

.section__aside {
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dim);
  white-space: nowrap;
}

:root[data-tone='uts'] .section__title::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--accent);
}

:root[data-tone='cfr'] .section__title::before {
  content: '';
  display: block;
  width: 4.5rem;
  height: 9px;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #ff8a3d 0 8px, #f7f1e6 8px 16px);
}

.note,
.small {
  color: var(--dim);
  font-size: 0.95rem;
}

/* The teaser. */
.video-frame {
  position: relative;
  max-width: 60rem;
  border-radius: var(--radius-lg);
  background: #000;
}

.teaser-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  background: #000;
}

.section--teaser .note {
  max-width: 60rem;
  margin-top: 1rem;
}

/* The serious tone: the Aegis HUD's corner brackets around the video. */
:root[data-tone='uts'] .video-frame::before,
:root[data-tone='uts'] .video-frame::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  border-color: var(--accent);
  border-style: solid;
}

:root[data-tone='uts'] .video-frame::before {
  top: -9px;
  left: -9px;
  border-width: 2px 0 0 2px;
}

:root[data-tone='uts'] .video-frame::after {
  right: -9px;
  bottom: -9px;
  border-width: 0 2px 2px 0;
}

:root[data-tone='cfr'] .video-frame {
  padding: 8px;
  background: #f7f1e6;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
}

:root[data-tone='cfr'] .teaser-video {
  border-radius: calc(var(--radius-lg) - 8px);
}

/* The prologue. */
.prologue {
  max-width: 46rem;
  margin: 0 0 2.5rem;
  font-size: clamp(1.08rem, 1.9vw, 1.2rem);
  line-height: 1.7;
}

:root[data-tone='uts'] .prologue {
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 2px solid var(--accent);
}

/* The light tone: the management's notice, pinned up with tape. */
.prologue--notice {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.6rem) clamp(1rem, 3vw, 1.8rem);
  border-radius: var(--radius);
  background: #f7f1e6;
  color: #1b2340;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(-0.6deg);
}

.prologue--notice::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 130px;
  height: 26px;
  margin-left: -65px;
  background: repeating-linear-gradient(-45deg, #ff8a3d 0 12px, #ffd2b0 12px 24px);
  opacity: 0.92;
  transform: rotate(2deg);
}

.prologue--notice strong {
  font-weight: 800;
}

.stills {
  display: grid;
  gap: 12px;
}

.stills img {
  width: 100%;
  aspect-ratio: 960 / 440;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg2);
}

@media (min-width: 700px) {
  .stills {
    grid-template-columns: repeat(3, 1fr);
  }
}

:root[data-tone='uts'] .stills img {
  border: 1px solid rgba(227, 168, 87, 0.22);
}

:root[data-tone='cfr'] .stills img {
  border: 4px solid #f7f1e6;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

:root[data-tone='cfr'] .stills img:nth-child(1) { transform: rotate(-1.2deg); }
:root[data-tone='cfr'] .stills img:nth-child(2) { transform: rotate(0.8deg); }
:root[data-tone='cfr'] .stills img:nth-child(3) { transform: rotate(-0.5deg); }

/* What you'll do. */
.features {
  display: grid;
  gap: 1rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feature;
}

@media (min-width: 800px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features li {
  position: relative;
  padding-left: 3.2rem;
  counter-increment: feature;
}

.features li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
}

:root[data-tone='uts'] .features li::before {
  content: counter(feature, decimal-leading-zero);
  color: var(--accent);
  font: 500 0.85rem/1.6 var(--font-ui);
  letter-spacing: 0.1em;
  padding-top: 0.15em;
}

:root[data-tone='cfr'] .features li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  top: -0.1em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font: 900 1rem/1 var(--font-ui);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

/* The other tone, in its own colours. */
.other-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-body);
}

.skin-cfr.other-card {
  border: 0;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3);
}

.other-card__cover {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  margin: 0 auto;
}

@media (min-width: 760px) {
  .other-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.5rem;
  }
}

.other-card__kicker {
  margin: 0 0 0.8rem;
  color: var(--link);
  font: var(--ui-weight) var(--ui-size) / 1.3 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skin-cfr .other-card__kicker {
  letter-spacing: 0.06em;
}

.other-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: var(--title-spacing);
  text-transform: var(--title-transform);
  text-shadow: var(--title-shadow);
  text-wrap: balance;
}

.other-card__subtitle {
  margin: 0.4rem 0 1rem;
  color: var(--sub-color);
  font-family: var(--font-title);
  font-weight: var(--sub-weight);
  font-size: 1.1rem;
  letter-spacing: var(--sub-spacing);
}

/* Play & follow, Support. */
.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card .actions {
  margin: 0.2rem 0 1.2rem;
}

.card .small {
  margin-top: auto;
  margin-bottom: 0;
}

:root[data-tone='cfr'] .card {
  border: 0;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
}

.card__title {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-weight: var(--h2-weight);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  letter-spacing: var(--h2-spacing);
  text-transform: var(--h2-transform);
}

/* Credits. */
.credits {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .credits {
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
  }
}

.credits__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

:root[data-tone='cfr'] .credits__avatar {
  border: 5px solid #f7f1e6;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.credits__lead {
  font-size: 1.2rem;
}

.credits p {
  max-width: 46rem;
}

/* Contact, privacy. */
.fine {
  display: grid;
  gap: 2rem 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .fine {
    grid-template-columns: 1fr 2fr;
  }
}

.fine__title {
  margin: 0 0 0.8rem;
  color: var(--text);
  font: var(--ui-weight) var(--ui-size) / 1.3 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mail a {
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: var(--space);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--dim);
  font-size: 0.9rem;
}

:root[data-tone='cfr'] .site-footer {
  border-top: 0;
  background:
    repeating-linear-gradient(-45deg, #ff8a3d 0 14px, #f7f1e6 14px 28px) top / 100% 8px no-repeat,
    rgba(0, 0, 0, 0.18);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-block;
  padding: 0.55rem 0;
}

/* ------------------------------------------------------------------ the switch's flourish */

.burst {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  background: url('/assets/img/noise.947130e62c.svg');
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  :root.is-switching[data-tone='uts'] .burst {
    visibility: visible;
    animation: burst 0.55s ease-out both;
  }
}

@keyframes burst {
  0% { opacity: 0.55; transform: translate(0, 0); }
  30% { opacity: 0.35; transform: translate(-30px, 18px); }
  60% { opacity: 0.18; transform: translate(22px, -26px); }
  100% { opacity: 0; transform: translate(0, 0); }
}

/* ------------------------------------------------------------------ 404 */

.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 4rem 0;
  text-align: center;
}

.lost__code {
  margin: 0;
  color: var(--accent);
  font: 500 0.9rem var(--font-ui);
  letter-spacing: 0.3em;
}

.lost__title {
  margin: 0.8rem 0 1rem;
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: var(--title-spacing);
  text-transform: uppercase;
  line-height: 1.1;
}

.lost .actions {
  justify-content: center;
}

.lost__noise {
  position: fixed;
  inset: -120px;
  z-index: -1;
  background: url('/assets/img/noise.947130e62c.svg');
  opacity: 0.07;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .lost__noise {
    animation: grain 0.9s steps(6) infinite;
  }
}

/* ------------------------------------------------------------------ phones: the hero's kicker on one line */

@media (max-width: 479px) {
  .kicker {
    letter-spacing: 0.12em;
  }

  :root[data-tone='cfr'] .kicker {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }
}

/* ------------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
