/*
  BwM Fitness website. Colours, type and radii come from the approved design tokens (design v1.0):
  charcoal, warm white, the pink accent and the logo spectrum. Motion is decoration only: everything
  reads and works without it, and it stops for anyone who asks their device for reduced motion.
*/

@font-face {
  font-family: 'Archivo Condensed';
  src: url('fonts/ArchivoCondensed-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0a0f;
  --ink-2: #0e0e14;
  --surface: #15151d;
  --surface-2: #1e1e28;
  --border: #272731;
  --border-2: #3a3a48;
  --text: #f6f1e8;
  --muted: #b5b2bb;
  --faint: #9a96a3;
  --pink: #ff1493;
  --on-pink: #0a0a0f;
  --pink-text: #ff4fae;
  --blue: #3b64f5;
  --cyan: #42e8e0;
  --focus: #42e8e0;
  --paper: #f6f1e8;
  --paper-text: #16151c;
  --spectrum: linear-gradient(100deg, #ff3ea5 0%, #b04cff 32%, #3b6cf6 66%, #42e8e0 100%);
  --display: 'Archivo Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: min(1180px, 100% - 40px);
  --radius: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 72px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--pink-text);
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 1.6em 0 0.5em;
}

h1,
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--paper);
  color: var(--paper-text);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  transition: background 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.page-plain .site-header {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
}

.logo img {
  width: 150px;
  height: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9688rem;
}

.site-nav a:hover {
  background: rgba(246, 241, 232, 0.08);
}

.site-nav a[aria-current='page'] {
  color: var(--pink-text);
}

.site-nav .nav-cta {
  background: var(--pink);
  color: var(--on-pink);
  margin-left: 6px;
  padding: 0 18px;
}

.site-nav .nav-cta:hover {
  background: #ff3ea5;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(21, 21, 29, 0.8);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    background: rgba(10, 10, 15, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }

  .js .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav a {
    width: 100%;
    font-size: 1.125rem;
  }

  .js .site-nav .nav-cta {
    justify-content: center;
    margin: 12px 0 0;
  }

  .site-header {
    padding-inline: 16px;
  }

  .logo img {
    width: 124px;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--pink);
  color: var(--on-pink);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.button:hover {
  background: #ff3ea5;
  box-shadow: 0 10px 36px rgba(255, 20, 147, 0.35);
  transform: translateY(-2px);
}

.button-ghost {
  background: rgba(246, 241, 232, 0.04);
  color: var(--text);
  border-color: rgba(246, 241, 232, 0.28);
}

.button-ghost:hover {
  background: rgba(246, 241, 232, 0.1);
  box-shadow: none;
}

.button .arrow {
  transition: transform 200ms var(--ease);
}

.button:hover .arrow {
  transform: translateX(4px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Shared type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--pink-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--spectrum);
  border-radius: 2px;
}

.iridescent {
  background: var(--spectrum);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.motion .iridescent {
  animation: shimmer 7s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--muted);
  max-width: 60ch;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
}

.section + .section {
  padding-top: clamp(24px, 3vw, 48px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 48px) 0 clamp(56px, 9vw, 104px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.94) 0%, rgba(10, 10, 15, 0.72) 38%, rgba(10, 10, 15, 0.08) 72%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 15, 0) 36%);
}

.hero-content {
  width: var(--shell);
  margin-inline: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.75rem, 11vw, 9.5rem);
  max-width: 9ch;
}

.hero .lede {
  margin-top: 24px;
  color: #d9d5de;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--faint);
  font-size: 0.9375rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
}

.scroll-cue span {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  position: relative;
}

.scroll-cue span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--pink);
}

.motion .scroll-cue span::after {
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(10, 10, 15, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.motion-toggle:hover {
  background: rgba(30, 30, 40, 0.9);
}

/* Page hero for inner pages */

.page-hero {
  position: relative;
  padding: calc(var(--header-height) + clamp(56px, 9vw, 112px)) 0 clamp(48px, 7vw, 88px);
  isolation: isolate;
  overflow: hidden;
}

.page-hero .shell > * {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.96) 0%, rgba(10, 10, 15, 0.7) 55%, rgba(10, 10, 15, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 15, 0) 50%);
}

.glow {
  overflow-x: clip;
}

.glow::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  right: -12vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.22), rgba(59, 100, 245, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.motion .glow::after {
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6vw, 5vw, 0) scale(1.12);
  }
}

/* Marquee */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--ink-2);
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding-left: 48px;
}

.motion .marquee-track {
  animation: marquee 38s linear infinite;
}

.motion-paused .marquee-track {
  animation-play-state: paused;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 241, 232, 0.55);
}

.marquee span:nth-child(3n + 1) {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.marquee span:nth-child(3n + 2) {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background: var(--surface);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
  color: var(--text);
  text-decoration: none;
}

.pillar:hover {
  border-color: rgba(255, 79, 174, 0.55);
}

.pillar img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.pillar:hover img {
  transform: scale(1.06);
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 15, 0.96) 12%, rgba(10, 10, 15, 0.45) 55%, rgba(10, 10, 15, 0.05) 100%);
}

.pillar-number {
  position: absolute;
  top: 20px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.72);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.pillar h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  text-transform: uppercase;
  line-height: 1;
}

.pillar p {
  margin: 0;
  color: #d9d5de;
}

.pillar .more {
  margin-top: 16px;
  color: var(--pink-text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: 420px;
  }
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 2px;
  background: var(--spectrum);
  transform-origin: left;
  border-radius: 2px;
}

.motion [data-reveal].step::after {
  transform: scaleX(0);
  transition: transform 900ms var(--ease) 250ms;
}

.motion [data-reveal].step.is-visible::after {
  transform: scaleX(1);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* App showcase */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.phone-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.28), rgba(59, 100, 245, 0.16) 45%, transparent 68%);
}

.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 600 / 1298;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2a2a34, #0e0e14 40%, #1e1e28);
  box-shadow:
    0 0 0 1px #3a3a48,
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 20, 147, 0.18);
}

.motion .phone {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.6deg);
  }
}

.phone-screens {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--ink);
}

.phone-screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.phone-screens img.is-current {
  opacity: 1;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 20px;
  background: #050507;
  z-index: 2;
}

.screen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.screen-dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.screen-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.screen-dot[aria-current='true']::before {
  background: var(--pink);
  transform: scale(1.3);
}

.screen-caption {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
  min-height: 1.6em;
}

.feature-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 20, 147, 0.12);
  color: var(--pink-text);
}

.feature-list .icon svg {
  width: 20px;
  height: 20px;
}

.feature-list strong {
  display: block;
}

.feature-list span.detail {
  color: var(--muted);
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase .phone-stage {
    order: 2;
  }
}

/* Statement band */

.statement {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.statement-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.motion .statement-media img {
  animation: slow-pan 24s ease-in-out infinite alternate;
}

@keyframes slow-pan {
  from {
    transform: scale(1.05) translateX(-2%);
  }
  to {
    transform: scale(1.14) translateX(2%);
  }
}

.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.35) 0%, rgba(10, 10, 15, 0.86) 70%);
}

.statement .display {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.statement p.lede {
  margin: 24px auto 0;
  color: #e6e2ea;
}

/* About teaser and about page */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 20, 147, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(59, 100, 245, 0.35), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait .portrait-mark {
  width: 46%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

.motion .portrait .portrait-mark {
  animation: float 8s ease-in-out infinite;
}

.portrait-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.72);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.about h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.95;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--spectrum);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px);
  mask: radial-gradient(circle, transparent 5px, #000 6px);
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about .portrait {
    max-width: 420px;
  }
}

/* Call to action band */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 11vw, 140px) 0;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.94) 0%, rgba(10, 10, 15, 0.7) 60%, rgba(10, 10, 15, 0.4) 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.cta-grid h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  text-transform: uppercase;
  line-height: 0.95;
}

@media (max-width: 760px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* QR code card */

.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--paper-text);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.qr-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 24px;
  background: var(--spectrum);
}

.qr-card img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}

.qr-card p {
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.qr-card.small img {
  width: 112px;
  height: 112px;
}

/* Cards, details and tables used across pages */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--spectrum);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 20, 147, 0.12);
  color: var(--pink-text);
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(64px, 9vw, 120px);
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-transform: uppercase;
  line-height: 0.95;
}

@media (min-width: 861px) {
  .split.reverse .split-media {
    order: 2;
  }
}

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

  .split-media {
    max-width: 520px;
  }
}

details {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details p {
  color: var(--muted);
}

.faq {
  max-width: 820px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9688rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-2);
}

.table-wrap {
  overflow-x: auto;
}

pre {
  white-space: pre-wrap;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Pages of reading: privacy, terms, support, deletion, licences, invitation */

.prose-page main {
  width: min(820px, 100% - 40px);
  margin-inline: auto;
  padding: calc(var(--header-height) + 56px) 0 80px;
}

.prose-page main h1 {
  margin: 0 0 12px;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
}

.prose-page main h2 {
  margin-top: 2em;
}

.prose-page main li {
  margin-bottom: 0.35em;
}

.updated {
  color: var(--faint);
  font-size: 0.9375rem;
  margin-top: 40px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contact-grid .qr-card {
  justify-self: start;
}

.big-link {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3rem);
  text-transform: uppercase;
  text-decoration: none;
  word-break: break-word;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink-2);
  padding: 64px 0 40px;
  color: var(--muted);
  font-size: 0.9688rem;
}

.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 32px;
}

.footer-grid .qr-card {
  align-self: start;
}

.footer-brand img {
  width: 150px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 32ch;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  width: var(--shell);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.875rem;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Reveal on scroll, only when motion is welcome and the script is running */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .pillar {
    transform: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-media,
  .marquee,
  .motion-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
