/* Britti Sans, the main font (Trial files for now: replace with the licensed ones before
   going live). There is no Medium, so 500 uses Regular */
@font-face {
  font-family: "Britti Sans";
  src: url("assets/fonts/BrittiSans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Britti Sans";
  src: url("assets/fonts/BrittiSans-Regular.otf") format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Britti Sans";
  src: url("assets/fonts/BrittiSans-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Britti Sans";
  src: url("assets/fonts/BrittiSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Values come from the Figma frame (ladningpagev1.svg, 1440px wide). */
:root {
  --bg: #0e0e0e;
  --hero-bg: #121212;
  --hero-border: #c9302b;
  --red: #b00600;
  --red-shadow: #610a07;
  --red-dark: #950500;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);

  --font: "Britti Sans", "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;

  /* Layout scales down from the 1440px design */
  --page-gap: clamp(10px, 1.1vw, 16px);
  --hero-radius: clamp(28px, 3.26vw, 47px);
  --video-top: 90px;
  --video-side: 24.5px;
  --video-radius: 66px;
  --clouds-opacity: 0.06;
  --navbar-top: 20px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Everything is selectable, with a brand-red highlight */
html {
  -webkit-user-select: text;
  user-select: text;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

/* Images and video can't be dragged off the page or selected */
img,
video,
svg,
canvas {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Scroll stage ---------- */

.stage {
  position: relative;
  /* 100vh for the sticky screen + 240vh of scroll: 140 bring the video up close,
     100 shrink it up into the navbar */
  height: 340vh;
  height: 340svh;
}

.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: var(--page-gap);
  overflow: hidden;
}

.stage__dim {
  position: absolute;
  inset: 0;
  background: #050505;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  /* The hero keeps its original Helvetica Neue look, the rest of the site uses Britti Sans */
  --font: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  font-family: var(--font);
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Background and stroke are drawn by .frame-bg and .frame so they can travel to the video */
  border: 1px solid transparent;
  border-radius: var(--hero-radius);
  overflow: hidden;
}

.nav {
  /* Above the video, so the logo and Join visibly fall into it */
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 41px 0 49px;
}

/* Page links sit just left of Join, as one group with it */
.nav__end {
  position: relative;
  will-change: transform, opacity, filter;
  display: flex;
  align-items: center;
}

/* Placed by main.js under the active item; slides between them */
.nav__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 39px;
  border-radius: 999px;
  background: #fff;
  pointer-events: none;
}

.nav__pill.is-ready {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__link {
  position: relative;
  /* A hidden semibold copy (zero height, below the text) reserves the width,
     so turning bold never shifts the layout */
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 39px;
  padding: 0 13px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.nav__link::after {
  content: attr(data-label);
  height: 0;
  font-weight: 600;
  visibility: hidden;
  overflow: hidden;
}

.nav__link:hover {
  color: #fff;
}

/* The item under the pill: semibold and red, like Join */
.nav__link.is-active {
  color: var(--red-dark);
  font-weight: 600;
  /* Turns red as the pill arrives, not before */
  transition: color 0.3s ease 0.1s;
}

.logo {
  will-change: transform, opacity, filter;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  /* Just for looks: no link, plain cursor */
  cursor: default;
}

.hero__content {
  position: relative;
  z-index: 1;
  /* Stays on its own GPU layer while it blurs during the scroll transition */
  will-change: transform, opacity, filter;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  margin: 76px 0 0;
  font-size: 107px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.052em;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.05);
}

/* "Hey" swaps to another greeting on hover. The invisible sizer keeps "Hey"'s width, and
   the words sit on top, anchored to the comma, so longer greetings grow to the left and
   nothing else on the line ever moves */
.greet {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  cursor: default;
}

.greet__sizer {
  visibility: hidden;
}

.greet__word {
  position: absolute;
  top: 0;
  right: 0;
  will-change: transform, opacity, filter;
}

/* "Designer" glitch: the real letter stays in place (invisible) and the glitch font is
   drawn on top as an overlay, so swapping fonts never moves anything on the page */
.glitch__char {
  position: relative;
  display: inline-block;
  text-align: center;
}

.glitch__char.is-glitching {
  color: transparent;
  text-shadow: none;
}

.glitch__char.is-glitching::after {
  content: attr(data-glyph);
  position: absolute;
  top: 0;
  left: 50%;
  /* Same red as the "Get inside" button */
  color: var(--red);
  font-family: var(--glitch-family);
  font-style: var(--glitch-style);
  font-weight: var(--glitch-weight);
  /* Match x-heights so every font reads at the same size */
  font-size-adjust: 0.52;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translate(-50%, var(--glitch-y, 0));
  text-shadow: -1.5px 0 rgba(255, 255, 255, 0.35), 1.5px 0 rgba(97, 10, 7, 0.9);
  pointer-events: none;
}

.hero__subtitle {
  margin: 30px 0 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  gap: 9px;
  margin-top: 25px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn--join {
  position: relative;
  width: 80px;
  height: 39px;
  margin-left: 13px;
  border-radius: 999px;
  /* The white comes from .nav__pill, which can slide away to a hovered link */
  background: transparent;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}

.btn--join.is-active {
  color: var(--red-dark);
  transition: color 0.3s ease 0.1s;
}

.btn--primary,
.btn--secondary {
  height: 47px;
  border-radius: 999px;
  font-size: 18px;
  letter-spacing: -0.06em;
}

.btn--primary {
  width: 139.5px;
  background: var(--red);
  box-shadow: 0 5px 0 var(--red-shadow);
}

.btn--secondary {
  position: relative;
  width: 140.5px;
  background: linear-gradient(180deg, #111111 0%, #282828 100%);
  box-shadow: 0 5px 0 #151515;
}

/* 0.5px gradient border: grey at the top fading out at the bottom */
.btn--secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.5px;
  background: linear-gradient(180deg, rgba(103, 103, 103, 0.95) 0%, rgba(103, 103, 103, 0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn--primary:hover,
.btn--secondary:hover {
  transform: translateY(2px);
}

.btn--primary:hover {
  box-shadow: 0 3px 0 var(--red-shadow);
}

.btn--secondary:hover {
  box-shadow: 0 3px 0 #151515;
}

.btn--primary:active,
.btn--secondary:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 transparent;
}

/* ---------- Video ---------- */

/* In-flow placeholder: how much of the "cut" video shows inside the hero */
.hero__video-slot {
  flex: 1 0 auto;
  min-height: 200px;
  /* Never show more than ~55% of the 16:9 video, so it always reads as cut */
  max-height: calc((100vw - 2 * var(--page-gap) - 2px - 2 * var(--video-side)) * 0.5625 * 0.55);
  margin: var(--video-top) var(--video-side) 0;
}

/* Clouds sit in the gap between the buttons and the video; the video covers their base */
.hero__video-slot {
  position: relative;
}

.hero__clouds {
  position: absolute;
  z-index: 0;
  left: calc(-1 * var(--video-side));
  right: calc(-1 * var(--video-side));
  bottom: 12%;
  aspect-ratio: 1672 / 941;
  opacity: var(--clouds-opacity);
  pointer-events: none;
  will-change: opacity;
}

/* Two halves of the same image, so main.js can part them as the video rises. main.js
   draws each half once into a canvas with the edge fade baked in, so scrolling only
   moves ready-made GPU layers (a CSS mask here was redrawn every frame and flickered) */
.hero__cloud {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  will-change: transform;
}

.hero__cloud canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__cloud--left {
  left: 0;
}

.hero__cloud--right {
  right: 0;
}

/* Positioned by main.js; clip-path starts as the hero's inner shape */
.video-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--video-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  /* main.js only moves and scales it; its size stays fixed */
  will-change: transform;
  transform-origin: 0 0;
}

.video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Positioned by main.js: start as the hero's shape and outline, end as the video's edge */
.frame-bg,
.frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, width, height;
  /* Same pivot as .video so they tilt together */
  transform-origin: 50% 60%;
}

.frame-bg {
  background: var(--hero-bg);
}

.frame {
  border: 1px solid var(--hero-border);
  z-index: 4;
}

/* ---------- Navbar ---------- */

/* Sizes from navbar.svg (483 x 97), drawn at 85%. --nu is one design pixel; it shrinks on narrow screens */
.navbar {
  --nu: min(0.85px, calc((100vw - 32px) / 483));
  /* Very soft lift off the page: wide and faint */
  --navbar-shadow: 0 calc(14 * var(--nu)) calc(56 * var(--nu)) rgba(0, 0, 0, 0.16), 0 calc(3 * var(--nu)) calc(14 * var(--nu)) rgba(0, 0, 0, 0.1);
  position: fixed;
  top: var(--navbar-top);
  left: 50%;
  z-index: 10;
  display: flex;
  gap: calc(7 * var(--nu));
  /* Height and corner radius (in design px) are stretched by main.js while it rides the video */
  height: calc(var(--navbar-h, 97.04) * var(--nu));
  font-size: calc(22.3 * var(--nu));
  line-height: 1;
  /* main.js fades it in once the video has shrunk into it */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  will-change: transform, opacity, filter;
}

.navbar__pill {
  display: flex;
  align-items: center;
  width: calc(384.74 * var(--nu));
  padding-left: calc(24.5 * var(--nu));
  border-radius: calc(var(--navbar-r, 34.31) * var(--nu));
  background: #fff;
  box-shadow: var(--navbar-shadow);
}

.navbar__icon {
  flex: none;
  display: block;
  width: calc(53.04 * var(--nu));
  height: calc(53.04 * var(--nu));
  margin-right: calc(35 * var(--nu));
}

.navbar__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.navbar__link {
  color: #858585;
  font-weight: 400;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar__link + .navbar__link {
  margin-left: calc(15.6 * var(--nu));
}

.navbar__link:hover {
  color: #121212;
}

.navbar__join {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(91.01 * var(--nu));
  border-radius: calc(var(--navbar-r, 34.31) * var(--nu));
  background: var(--red);
  color: #ff8985;
  box-shadow: var(--navbar-shadow);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.navbar__join:hover {
  /* Colors swap on hover */
  background: #ff8985;
  color: var(--red);
}

/* Over a red section the red button would vanish: it turns white with red text */
.navbar__join.is-on-red {
  background: #fff;
  color: var(--red);
  transition-duration: 0.45s;
}

.navbar__join.is-on-red:hover {
  background: #ffe1df;
}

/* ---------- Liquid glass button ---------- */

/* Pinned to the video's bottom-left; main.js fades it in as the video arrives */
.glass-btn {
  --size: 38px;
  --light: 315deg;
  position: absolute;
  left: 18px;
  bottom: 18px;
  transform-origin: 0 100%;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  opacity: 0;
  isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12),
    inset 0 -6px 10px -6px rgba(255, 255, 255, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Glass blur only once the video has arrived: a backdrop filter on a moving 3D layer
   is expensive and flickers in Chromium */
.video-arrived .glass-btn {
  -webkit-backdrop-filter: blur(8px) saturate(170%) brightness(1.06);
  backdrop-filter: blur(8px) saturate(170%) brightness(1.06);
}

/* Chromium: bend what's behind the rim like real glass */
.has-refraction.video-arrived .glass-btn {
  -webkit-backdrop-filter: url(#glass-refraction) saturate(170%) brightness(1.08);
  backdrop-filter: url(#glass-refraction) saturate(170%) brightness(1.08);
}

/* Hairline rim lit from the pointer's side */
.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.5px;
  background: conic-gradient(
    from var(--light),
    rgba(255, 255, 255, 0.75) 0deg,
    rgba(255, 255, 255, 0.08) 70deg,
    rgba(255, 255, 255, 0.02) 180deg,
    rgba(255, 255, 255, 0.3) 250deg,
    rgba(255, 255, 255, 0.75) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Soft specular glint near the top */
.glass-btn::after {
  content: "";
  position: absolute;
  top: 9%;
  left: 22%;
  width: 56%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.glass-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.glass-btn:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.glass-btn__icon {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  transition: opacity 0.18s ease;
}

.glass-btn__icon--unmuted,
.glass-btn[aria-pressed="true"] .glass-btn__icon--muted {
  opacity: 0;
}

.glass-btn[aria-pressed="true"] .glass-btn__icon--unmuted {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .nav {
    padding: 28px 32px 0 36px;
  }

  .hero__title {
    margin-top: 64px;
    font-size: clamp(56px, 9.7vw, 107px);
  }

  .hero__subtitle {
    font-size: clamp(18px, 2.3vw, 25px);
  }

  :root {
    --video-top: 72px;
    --video-side: 20px;
    --video-radius: 48px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
  .hero__content {
    padding: 0 12px;
  }

  .nav {
    padding: 18px 16px 0 22px;
  }

  .logo {
    font-size: 19px;
  }

  /* No room beside Join on a phone; the links live in the navbar */
  .nav__link {
    display: none;
  }

  .nav__pill {
    height: 34px;
  }

  .btn--join {
    margin-left: 0;
    width: 68px;
    height: 34px;
    font-size: 15px;
  }

  .hero__title {
    margin-top: 72px;
    font-size: clamp(38px, 12.6vw, 64px);
    letter-spacing: -0.05em;
  }

  .hero__subtitle {
    margin-top: 16px;
    font-size: 17px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .btn--primary,
  .btn--secondary {
    height: 44px;
    font-size: 16px;
  }

  .btn--primary {
    width: 128px;
  }

  .btn--secondary {
    width: 132px;
  }

  :root {
    --video-top: 56px;
    --video-side: 10px;
    --video-radius: 22px;
    --navbar-top: 12px;
  }

  .hero__video-slot {
    min-height: 150px;
  }

  /* Wider than the screen so the cloud sides frame the text on a narrow phone */
  .hero__clouds {
    left: -25%;
    right: -25%;
    bottom: 0;
  }

  .glass-btn {
    --size: 34px;
    left: 12px;
    bottom: 12px;
  }

  .glass-btn__icon {
    width: 15px;
    height: 15px;
  }
}

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

/* Hidden until main.js plays the intro (see the head script in index.html) */
.is-loading .frame-bg,
.is-loading .frame,
.is-loading .nav,
.is-loading .hero__title,
.is-loading .hero__subtitle,
.is-loading .hero__actions,
.is-loading .hero__video-slot,
.is-loading .video-layer {
  opacity: 0;
}

/* ---------- Manifesto ---------- */

.manifest {
  position: relative;
  /* Starts rising in during the end of the video-to-navbar scroll instead of after it,
     so there is no empty screen in between */
  z-index: 1;
  margin-top: -75vh;
  margin-top: -75svh;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 6vw, 96px) clamp(120px, 14vw, 200px);
  text-align: center;
  overflow: hidden;
}

/* The hero's clouds again, faint, drifting above the text */
.manifest__clouds {
  position: absolute;
  inset: 0 -10% auto;
  height: min(70%, 640px);
  background: url("oblaci.png") center top / cover no-repeat;
  opacity: 0.07;
  /* Soft at the top too, so there is no edge where the section begins */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 45%, transparent 100%);
  pointer-events: none;
}

.manifest__eyebrow,
.inside__eyebrow {
  position: relative;
  margin: 0 0 clamp(28px, 3.4vw, 48px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.manifest__text {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.manifest__lead,
.manifest__sub {
  margin: 0;
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.manifest__sub {
  margin-top: clamp(40px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.38);
}

/* main.js wraps every word; it brightens as the scroll reaches it */
.mf-word {
  display: inline-block;
  will-change: opacity;
}

.mf-glue {
  white-space: nowrap;
}

/* Real macOS app icons sitting between the words, slightly tilted. The box is the icon's
   visible body; the image (which has the usual transparent margin) overflows it, centered,
   so it is never stretched */
.manifest__icon {
  position: relative;
  display: inline-block;
  width: 1.12em;
  height: 1.12em;
  margin: 0 0.12em;
  vertical-align: -0.2em;
  transform: rotate(var(--tilt, -6deg)) scale(var(--pop, 1));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.manifest__icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--img, 140%);
  height: auto;
  aspect-ratio: 1;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0.12em 0.22em rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.manifest__icon:hover {
  transform: rotate(0deg) scale(1.12);
}

/* Its artwork fills more of the canvas than a macOS icon does */
.manifest__icon--edu { --tilt: -7deg; --img: 124%; }
.manifest__icon--apple { --tilt: 6deg; }
.manifest__icon--ae { --tilt: -5deg; }
/* Followed straight by a comma, so no gap after it */
.manifest__icon--x { --tilt: 7deg; margin-right: 0.02em; }

/* The words set apart: handwritten in red, like a note in the margin, with a scribbled underline */
.manifest__accent {
  position: relative;
  font-family: "Schoolbell", "Marker Felt", "Comic Sans MS", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: 0;
  color: #e5372f;
  transform: rotate(-2deg);
  white-space: nowrap;
}

.manifest__scribble {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.28em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  /* main.js draws it in once the words are reached */
  stroke-dasharray: 1;
  stroke-dashoffset: var(--draw, 1);
}

@media (max-width: 600px) {
  .manifest__lead,
  .manifest__sub {
    letter-spacing: -0.035em;
  }

  .manifest__clouds {
    inset: 0 -40% auto;
  }
}

/* ---------- Features: the three modules ---------- */

.inside {
  position: relative;
  padding: clamp(40px, 5vw, 80px) clamp(16px, 4vw, 64px) clamp(120px, 14vw, 200px);
}

/* A faint pixel grid behind the heading, fading out at the edges */
.inside__dots {
  position: absolute;
  inset: 0 0 auto;
  height: min(90%, 900px);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 100%);
  pointer-events: none;
}

.inside__head {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.inside__eyebrow {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.inside__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.inside__sub {
  margin: 12px 0 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.45);
}

/* Bento: The Path large on the left, the other two stacked on the right */
.inside__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-auto-rows: clamp(240px, 24vw, 380px);
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 1320px;
  margin: clamp(56px, 7vw, 104px) auto 0;
}

/* main.js brings each card up out of a blur as it scrolls in */
.module {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  border-radius: 30px;
  background: #131212;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  will-change: transform, opacity, filter;
  transition: border-color 0.35s ease;
}

.module:first-child {
  grid-row: span 2;
}

.module__pixels {
  cursor: pointer;
  touch-action: pan-y;
}

/* Darkens the bottom so the name reads over the pixels */
.module::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(19, 18, 18, 0.92), rgba(19, 18, 18, 0));
  pointer-events: none;
}

.module:hover {
  border-color: rgba(201, 48, 43, 0.3);
}

/* The pixel picture fills the whole card */
.module__pixels {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Just the number and the name; one short line slides up out of a blur on hover */
.module__body {
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 14px;
  padding: 0 clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 28px);
}

.module__index {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--hero-border);
}

.module__name {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.module__text {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5);
  max-height: 0;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.module:hover .module__text {
  max-height: 3em;
  margin-top: 8px;
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* No hover on touch screens: show the line */
@media (hover: none) {
  .module__text {
    max-height: none;
    margin-top: 8px;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .inside__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: clamp(220px, 34vw, 340px);
  }

  .module:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .inside__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: clamp(240px, 72vw, 320px);
  }
}

/* ---------- Manifesto lens ---------- */

/* SwiftUI-style liquid glass: follows the pointer over the manifesto in place of the cursor.
   main.js moves it and draws its refraction map */
.lens {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  width: var(--lens-w, 150px);
  height: var(--lens-h, 94px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1.5px 1px -0.5px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px -0.5px rgba(255, 255, 255, 0.2),
    inset 0 0 22px rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.4) brightness(1.1);
  backdrop-filter: blur(1.5px) saturate(1.4) brightness(1.1);
}

.has-refraction .lens {
  -webkit-backdrop-filter: url(#lens-refraction) saturate(1.25) brightness(1.06);
  backdrop-filter: url(#lens-refraction) saturate(1.25) brightness(1.06);
}

/* Soft sheen across the top, like light catching the glass */
.lens::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(80% 60% at 75% 110%, rgba(255, 255, 255, 0.06), transparent 70%);
}

/* The lens is the cursor while it is over the text block (main.js sets the class) */
.manifest.is-lensing,
.manifest.is-lensing * {
  cursor: none;
}

/* ---------- Ending ---------- */

/* A rounded red panel (inset like the hero) with the footer line under it; together they
   fill the last screen */
.ending {
  --ending-foot: 64px;
  /* Same unit as the navbar, so the title can clear it */
  --nu: min(0.85px, calc((100vw - 32px) / 483));
  position: relative;
  /* Above the section before it, which waits in place (and blurs) while this rises over it */
  z-index: 6;
  /* A pause before it starts rising: the section before it holds still to be read */
  margin-top: 45vh;
  padding: 0 var(--page-gap);
}



.ending__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: max(560px, calc(100svh - var(--page-gap) - var(--ending-foot)));
  padding: clamp(24px, 3.4vw, 48px);
  /* The fixed navbar sits over the top of the panel, like its own nav row */
  padding-top: calc(var(--navbar-top) + 97.04 * var(--nu) + clamp(20px, 2.6vw, 36px) - var(--page-gap));
  border-radius: var(--hero-radius);
  overflow: hidden;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.45);
  /* Shown until (or instead of) the WebGL stripes */
  background: var(--red);
  transform-origin: 50% 100%;
  will-change: transform, filter;
}

.ending__waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

.ending__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.ending__title {
  max-width: 8.5em;
  margin: 0;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* X and Instagram: white liquid glass tiles (the Clyro kit's white glass). main.js adds the
   "bubble" hover: they lean and bulge toward the cursor and spring back */
.ending__social {
  flex: none;
  display: flex;
  gap: 12px;
}

.ending__icon {
  --lg-tint: rgba(255, 255, 255, 0.09);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: var(--lg-tint);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  /* Soft inner glow, only near the top and bottom */
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.16), inset 0 -6px 8px -6px rgba(255, 255, 255, 0.08);
  transition: background-color 150ms ease;
}

/* The rim: brighter at the top and bottom, faint down the sides */
.ending__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.04) 62%,
    rgba(255, 255, 255, 0.12) 86%,
    rgba(255, 255, 255, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.ending__icon:hover {
  --lg-tint: rgba(255, 255, 255, 0.14);
}

.ending__icon svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

/* main.js sizes it to fill the panel's width and splits it into letters */
.ending__word {
  width: max-content;
  margin: 0 0 -0.04em;
  font-weight: 400;
  font-size: 200px;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: #fff;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.ending__letter {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.ending__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--ending-foot);
  padding: 0 clamp(8px, 2vw, 32px);
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.ending__links {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}

.ending__links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ending__links a:hover {
  color: #fff;
}

@media (max-width: 680px) {
  .ending__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ending__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .ending__foot {
    font-size: 13px;
  }
}

/* Blur and a dark wash over the top of the panel, so the title and Join read clearly;
   main.js sets its height to just past them */
.ending__veil {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--veil-h, 45%);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 2, 1, 0.5), rgba(20, 2, 1, 0));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent);
  mask-image: linear-gradient(180deg, #000 45%, transparent);
}

/* ---------- Module 1: The Path ---------- */

.path {
  position: relative;
  padding-top: clamp(24px, 4vw, 64px);
}

.path__head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
  text-align: center;
}

.path__eyebrow {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.path__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* A short stretch of scrolling while the deck stays pinned: about a third of a screen per card */
.path__stage {
  height: 200vh;
  height: 200svh;
}

.path__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vh, 44px);
  height: 100vh;
  height: 100svh;
  /* Clear of the fixed navbar */
  padding: 104px clamp(16px, 4vw, 64px) 24px;
  perspective: 1600px;
}

/* The same faint pixel grid as behind the modules heading, fading out toward the edges */
.path__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 55%, #000 35%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 55%, #000 35%, transparent 100%);
}

/* ----- The deck ----- */

.path__deck {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  width: min(860px, 100%, (100svh - 260px) * 1.6);
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

/* A level card: its number, a simple sign for the level, and its name.
   main.js stacks the cards and takes them off one by one */
.path__card {
  --dim: 0;
  --draw: 1;
  --pad: clamp(20px, 3vw, 40px);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
  border-radius: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px -16px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

/* Darkens cards further back in the deck */
.path__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(10, 10, 10, var(--dim));
  pointer-events: none;
}


.path__art {
  display: block;
  width: min(72%, 520px);
  /* Centred in the space above the name */
  margin: auto;
  overflow: visible;
  opacity: var(--draw);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Level 01 runs edge to edge across the card and fades out at both sides */
.path__art--wide {
  width: calc(100% + 2 * var(--pad));
  margin: auto calc(-1 * var(--pad));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}

.pa-ruler {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}

/* Level 01: keyframes, playhead, and the ghost keyframe under the pointer */
.pa-key rect {
  fill: var(--bg);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
}

.pa-key rect.pa-key__fill {
  fill: var(--hero-border);
  stroke: var(--hero-border);
  filter: drop-shadow(0 0 8px rgba(201, 48, 43, 0.7));
}

.pa-ghost {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pa-head__line {
  stroke: var(--hero-border);
  stroke-width: 2;
}

.pa-head__cap {
  fill: var(--hero-border);
}

/* Level 02: the curve's rider, the ball, and draggable handles */
.pa-rider {
  fill: #fff;
}

.pa-handle {
  cursor: grab;
  /* Dragging a handle on a phone shouldn't scroll the page */
  touch-action: none;
}

.pa-handle:active {
  cursor: grabbing;
}

.pa-handle__hit {
  fill: transparent;
}

.pa-handle .path__dot {
  transition: r 0.2s ease;
}

.pa-handle:hover .path__dot {
  r: 8;
  fill: #fff;
}

/* Level 03: the travelling dot, its trail, and the click burst */
.pa-dot {
  fill: var(--hero-border);
  filter: drop-shadow(0 0 10px rgba(201, 48, 43, 0.6));
}

.pa-trail {
  fill: #fff;
}

.pa-burst circle,
.pa-burst path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Lines draw themselves in as the card comes to the front (--draw, set by main.js) */
.path__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw));
}

.path__line--dim {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
}

.path__line--red {
  stroke: var(--hero-border);
  stroke-width: 3.5;
}

.path__line--dash {
  stroke-dasharray: 0.012 0.012;
  stroke-dashoffset: 0;
  opacity: var(--draw);
}

.path__dot {
  fill: var(--bg);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  opacity: var(--draw);
}


.path__name {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

/* The level number, small and red, after the name */
.path__idx {
  margin-left: 0.45em;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  vertical-align: top;
  color: var(--hero-border);
}

@media (max-width: 600px) {
  .path__sticky {
    padding-top: 96px;
  }
}


/* ---------- Module 2: Trend Radar ---------- */

.trend {
  position: relative;
  padding: clamp(40px, 6vw, 96px) 0;
}

/* Red page for this section only. main.js opens it out from an inset rounded panel to the
   full width as it scrolls in (--inset, --round), and back as it leaves */
.trend__panel {
  --inset: 0px;
  --round: 0px;
  background: var(--red);
  clip-path: inset(0 var(--inset) round var(--round));
  will-change: clip-path;
}

.trend__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 80px) clamp(64px, 8vw, 120px);
}

.trend__head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.trend__eyebrow {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* The section's heading, in the same type as the other section headings */
.trend__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ----- The post: words on the left, the video on the right ----- */

.trend__post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  /* The video stretches to the height of the words beside it */
  align-items: stretch;
  gap: clamp(32px, 5vw, 80px);
}

.trend__copy {
  align-self: center;
}

.trend__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.trend__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  /* The face sits a little inside the white circle */
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.trend__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.trend__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The verified badge, white with a red tick on the red page */
.trend__badge {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.trend__badge .trend__check {
  fill: var(--red);
}

.trend__handle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

.trend__x {
  width: 22px;
  height: 22px;
  margin-left: auto;
  align-self: flex-start;
}

.trend__text {
  margin: 0;
  font-weight: 500;
  font-size: clamp(34px, 4.3vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* A mention, X style: set apart a little from the rest. On hover a white highlight sweeps
   across it (like selecting text) and the red shows through: it opens the post */
.trend__mention {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  border-radius: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  background: linear-gradient(#fff, #fff) no-repeat 0 55% / 0% 86%;
  transition: background-size 0.45s cubic-bezier(0.65, 0, 0.25, 1), color 0.3s ease;
}

.trend__mention:hover,
.trend__mention:focus-visible {
  color: var(--red);
  background-size: 100% 86%;
  outline: none;
}

/* ----- The video, framed like media in an X post ----- */

.trend__media {
  position: relative;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 40px -18px rgba(40, 0, 0, 0.3);
  transform-origin: 50% 70%;
  will-change: transform, filter;
}

.trend__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend__time {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
}

.trend__sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.3, 1.7, 0.5, 1), background-color 0.2s ease;
}

.trend__sound:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.75);
}

.trend__sound svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
}

.trend__sound-on,
.trend__sound[aria-pressed="true"] .trend__sound-off {
  display: none;
}

.trend__sound[aria-pressed="true"] .trend__sound-on {
  display: block;
}

/* ----- Numbers as steps ----- */

.trend__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(24px, 3vw, 48px);
}

.trend__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: clamp(220px, 24vw, 340px);
  padding: clamp(20px, 2.2vw, 32px);
  border-radius: 14px;
  background: rgba(70, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  will-change: transform, opacity, filter;
}

.trend__stat:nth-of-type(2) {
  height: calc(clamp(220px, 24vw, 340px) * 0.8);
}

.trend__stat:nth-of-type(3) {
  height: calc(clamp(220px, 24vw, 340px) * 0.6);
}

.trend__stat b {
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.trend__stat span {
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .trend__post {
    grid-template-columns: minmax(0, 1fr);
  }

  .trend__stats {
    gap: 8px;
  }

  .trend__stat {
    height: 200px;
    padding: 16px;
  }

  .trend__stat:nth-of-type(2) {
    height: 170px;
  }

  .trend__stat:nth-of-type(3) {
    height: 140px;
  }

  .trend__stat b {
    font-size: clamp(26px, 7vw, 40px);
  }

  .trend__stat span {
    font-size: 14px;
  }

}

/* ---------- Module 3: Taste Lab ---------- */

.taste {
  position: relative;
  padding: clamp(24px, 4vw, 64px) 0;
}

/* A light page, unlike everything around it. Opens out to the full width as it scrolls in
   and closes again as it leaves (main.js sets --inset and --round) */
.taste__panel {
  --inset: 0px;
  --round: 0px;
  padding: clamp(72px, 9vw, 140px) clamp(16px, 4vw, 64px) clamp(80px, 10vw, 160px);
  background: #efeeec;
  color: #111;
  clip-path: inset(0 var(--inset) round var(--round));
  will-change: clip-path;
}

.taste__head {
  max-width: 900px;
  margin: 0 auto clamp(40px, 5vw, 72px);
  text-align: center;
}

.taste__eyebrow {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.taste__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.taste__sub {
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.5);
}

.taste__stage {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  perspective: 1800px;
}

/* The notification, laid out from notificationoly.svg (353 × 77, every gap and padding as drawn),
   on the kit's glass in a dark tint. main.js runs its enter and exit on a spring: the box itself
   only moves and scales, the glass layer only fades, the content fades and unblurs */
.taste__notice {
  position: absolute;
  top: clamp(12px, 1.6vw, 22px);
  right: clamp(12px, 1.6vw, 22px);
  z-index: 3;
  isolation: isolate;
  box-sizing: border-box;
  width: 353px;
  max-width: calc(100% - 24px);
  min-height: 77.36px;
  padding: 15px 18px 15px 12.51px;
  border-radius: 25.02px;
  color: #fff;
  text-decoration: none;
  transform-origin: 50% 0;
  visibility: hidden;
  pointer-events: none;
}

.taste__notice.is-open {
  visibility: visible;
  pointer-events: auto;
}

.taste__notice-glass {
  --lg-tint: rgba(20, 20, 22, 0.42);
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lg-tint);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 11px 12px -9px rgba(255, 255, 255, 0.22),
    inset 0 -11px 12px -9px rgba(255, 255, 255, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.26);
  opacity: 0;
}

/* The rim: a thin, faint white edge, brighter at the top and bottom */
.taste__notice-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.75px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 14%,
    rgba(255, 255, 255, 0.06) 38%,
    rgba(255, 255, 255, 0.06) 62%,
    rgba(255, 255, 255, 0.2) 86%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.taste__notice-content {
  display: flex;
  align-items: flex-start;
  gap: 10.16px;
  opacity: 0;
}

/* Avatar 47.36px, with the app icon (15px, 6.33 corners) in its bottom-right corner */
.taste__notice-avatar {
  position: relative;
  flex: none;
  width: 47.36px;
  height: 47.36px;
}

.taste__notice-avatar img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.taste__notice-avatar .taste__notice-badge {
  position: absolute;
  right: -0.12px;
  bottom: 0.36px;
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 6.33px;
  background: none;
  object-fit: cover;
}

.taste__notice-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 226px;
  margin-top: -2px;
  font-size: 14px;
}

.taste__notice-body b {
  margin: -1.3px 0 1.3px;
  font-weight: 600;
  line-height: 18px;
}

.taste__notice-text {
  line-height: 14.6px;
}

.taste__notice-time {
  margin-left: auto;
  font-size: 13px;
  line-height: 18px;
  margin-top: -4px;
  color: rgba(255, 255, 255, 0.45);
}


/* ----- The compare slider ----- */

.compare {
  --pos: 0.5;
  --r: clamp(20px, 2.4vw, 32px);
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: #0b0b0b;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 80%;
  will-change: transform, filter;
}

.compare:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 40px 80px -40px rgba(0, 0, 0, 0.45);
}

.compare__layer {
  position: absolute;
  inset: 0;
}

.compare__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The right-hand version shows from the handle to the right edge */
.compare__layer--b {
  clip-path: inset(0 0 0 calc(var(--pos) * 100%));
}

/* The three window buttons, macOS colours; sized from the corner radius so they keep the same
   place in the corner at every size */
.compare__dots {
  position: absolute;
  top: calc(var(--r) * 0.486);
  left: calc(var(--r) * 0.486);
  z-index: 1;
  display: flex;
  gap: calc(var(--r) * 0.28);
  pointer-events: none;
}

.compare__dots i {
  width: calc(var(--r) * 0.56);
  height: calc(var(--r) * 0.56);
  border-radius: 50%;
  box-shadow: inset 0 0 0 calc(var(--r) * 0.035) var(--rim), 0 1px 1px rgba(0, 0, 0, 0.12);
}

.compare__dots i:nth-child(1) {
  --rim: rgba(205, 45, 40, 0.6);
  background: linear-gradient(180deg, rgb(251, 106, 96) 0%, rgb(248, 125, 116) 50%, rgb(242, 140, 130) 85%, rgb(234, 126, 117) 100%);
}

.compare__dots i:nth-child(2) {
  --rim: rgba(204, 134, 11, 0.6);
  background: linear-gradient(180deg, rgb(246, 179, 47) 0%, rgb(252, 201, 58) 50%, rgb(253, 210, 72) 85%, rgb(240, 194, 68) 100%);
}

.compare__dots i:nth-child(3) {
  --rim: rgba(68, 153, 37, 0.6);
  background: linear-gradient(180deg, rgb(91, 203, 34) 0%, rgb(130, 212, 94) 50%, rgb(152, 218, 121) 85%, rgb(136, 204, 108) 100%);
}

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--pos) * 100%);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Turns dark together with the handle */
.compare__line.is-dark {
  background: rgba(30, 30, 34, 0.32);
  box-shadow: none;
}

/* Liquid glass knob: the Clyro kit's white glass (.lg-pill--white). main.js squashes and
   stretches it (--sx, --sy) as it moves */
.compare__handle {
  --sx: 1;
  --sy: 1;
  --lg-tint: rgba(255, 255, 255, 0.09);
  position: absolute;
  top: 50%;
  left: calc(var(--pos) * 100%);
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 999px;
  color: #fff;
  background: var(--lg-tint);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  /* Soft inner glow, only near the top and bottom */
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.16), inset 0 -6px 8px -6px rgba(255, 255, 255, 0.08);
  transform: scale(var(--sx), var(--sy));
  pointer-events: none;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Over something light: the kit's glass for light backgrounds (.lg-pill), in a neutral dark */
.compare__handle.is-dark {
  --lg-tint: rgba(20, 20, 22, 0.42);
  box-shadow: inset 0 11px 12px -9px rgba(255, 255, 255, 0.3), inset 0 -11px 12px -9px rgba(255, 255, 255, 0.22);
}

/* Its rim: white at the top and bottom, a faint grey down the sides; fades in over the light one */
.compare__handle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.5) 14%,
    rgba(20, 20, 22, 0.2) 38%,
    rgba(20, 20, 22, 0.2) 62%,
    rgba(255, 255, 255, 0.5) 86%,
    rgba(255, 255, 255, 0.95) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.compare__handle.is-dark::after {
  opacity: 1;
}

/* The rim: brighter at the top and bottom, faint down the sides */
.compare__handle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.04) 62%,
    rgba(255, 255, 255, 0.12) 86%,
    rgba(255, 255, 255, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.compare__handle svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 17px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .compare {
    aspect-ratio: 4 / 3;
  }

  .compare__handle {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }
}


/* ---------- Personal brand ---------- */

/* ---------- Gallery ---------- */

.gallery {
  --gutter: clamp(16px, 4vw, 64px);
  /* As wide as fits: up to 900px, but short enough to leave room for the title */
  --card-w: clamp(280px, min(58vw, calc((100svh - 420px) * 1.7778)), 900px);
  position: relative;
  /* main.js sets the height: one screen plus however far the row has to travel */
  min-height: 100svh;
}

.gallery__pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  height: 100svh;
  /* Clears the floating navbar */
  padding-top: clamp(64px, 10vh, 100px);
  box-sizing: border-box;
  overflow: hidden;
}

.gallery__head {
  padding: 0 var(--gutter);
  text-align: center;
}

.gallery__track {
  position: relative;
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  /* The first card starts in the middle of the screen and the last one ends there */
  padding: 0 calc((100% - var(--card-w)) / 2);
  will-change: transform;
}

.gallery__card {
  --focus: 1;
  flex: none;
  width: var(--card-w);
  margin: 0;
}

.gallery__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(16px, 1.8vw, 26px);
  background: #1a1a1a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: scale(calc(0.93 + 0.07 * var(--focus)));
  transform-origin: 50% 50%;
}

.gallery__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards away from the middle sink back into the dark */
.gallery__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b0b0b;
  opacity: calc(0.55 * (1 - var(--focus)));
  pointer-events: none;
}

.gallery__card figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-left: 4px;
  opacity: calc(0.35 + 0.65 * var(--focus));
}

.gallery__idx,
.gallery__count {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gallery__name {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.03em;
}

/* Anything that shows Creator Oly (avatar or name) opens creatoroly.com; main.js marks them */
.is-oly-link {
  cursor: pointer;
}

/* A small credit on the right of each caption */
.gallery__by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.gallery__by:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.gallery__by img {
  width: 18px;
  height: 18px;
  padding: 1.5px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.gallery__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 var(--gutter);
}

.gallery__count b {
  font-weight: 400;
  color: #fff;
}

.gallery__bar {
  position: relative;
  width: clamp(120px, 14vw, 200px);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.gallery__bar i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (max-width: 640px) {
  .gallery {
    --card-w: 82vw;
  }
}

/* ---------- Reviews ---------- */

.reviews {
  position: relative;
  padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px);
}

.reviews__head {
  margin-bottom: clamp(40px, 5vw, 72px);
  padding: 0 clamp(16px, 4vw, 64px);
  text-align: center;
}

.reviews__eyebrow {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reviews__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Two rows of red cards drifting in opposite directions */
.reviews__wall {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews__row {
  overflow: hidden;
}

/* Toward the edges each card breaks up into pixels: main.js draws them on this canvas,
   in the page color, over the card (PIXELS) */
.rv-pixels {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}

.reviews__strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.rv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  padding: 14px 16px 20px;
  border-radius: 10px;
  background: var(--red);
}

.rv-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-face {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.rv-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The crops carry a sliver of white page around the edge; zoom past it */
  transform: scale(1.22);
}

/* Monogram, Apple Contacts grey */
.rv-face--mono {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #a1a7b5 0%, #666770 100%);
}

.rv-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.rv-who b {
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-who small {
  overflow: hidden;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Five stars in the corner, SF Symbol star.fill */
.rv-stars {
  flex: none;
  align-self: flex-start;
  width: 58px;
  height: 10px;
  margin: 4px 0 0 auto;
  background: rgba(255, 255, 255, 0.9);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2.6c.4 0 .8.2 1 .6l2.5 5 5.5.8c.9.1 1.3 1.3.6 1.9l-4 3.9.9 5.5c.2.9-.8 1.6-1.6 1.2L12 19l-4.9 2.6c-.8.4-1.8-.3-1.6-1.2l.9-5.5-4-3.9c-.7-.6-.3-1.8.6-1.9l5.5-.8 2.5-5c.2-.4.6-.6 1-.6Z%27/%3E%3C/svg%3E") 0 0 / 10px 10px space;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2.6c.4 0 .8.2 1 .6l2.5 5 5.5.8c.9.1 1.3 1.3.6 1.9l-4 3.9.9 5.5c.2.9-.8 1.6-1.6 1.2L12 19l-4.9 2.6c-.8.4-1.8-.3-1.6-1.2l.9-5.5-4-3.9c-.7-.6-.3-1.8.6-1.9l5.5-.8 2.5-5c.2-.4.6-.6 1-.6Z%27/%3E%3C/svg%3E") 0 0 / 10px 10px space;
}

.rv-card p {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

@media (max-width: 640px) {
  .rv-card {
    width: 260px;
  }
}

.brand {
  position: relative;
  padding: clamp(80px, 10vw, 160px) clamp(16px, 4vw, 64px) clamp(60px, 8vw, 120px);
}

.brand__head {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.brand__eyebrow,
.bento__eyebrow,
.gallery__eyebrow {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand__title,
.bento__title,
.gallery__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* The big number over the curve */
.brand__stage {
  position: relative;
  max-width: 1240px;
  height: clamp(320px, 38vw, 520px);
  margin: clamp(32px, 4vw, 56px) auto 0;
}

.brand__chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
}

.brand__grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.brand__line {
  fill: none;
  stroke: var(--hero-border);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.brand__area {
  opacity: 0;
}

/* Rides the end of the line as it draws */
.brand__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(201, 48, 43, 0.35), 0 0 24px rgba(201, 48, 43, 0.9);
  opacity: 0;
  pointer-events: none;
}

.brand__count {
  position: absolute;
  left: 0;
  top: 8%;
}

/* Odometer: each digit is a strip of 0–9 (and 0 again) that rolls */
.brand__number {
  display: flex;
  margin: 0;
  font-weight: 500;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

/* Each digit window is bigger than the digit (taller, and wider, pulled back with negative margins)
   so the soft fade at top and bottom only touches digits while they roll */
.odo {
  display: inline-block;
  height: 1.4em;
  /* Side padding too: with the tight letter spacing, wide digits (4, 6, 0) poke past
     their slot and would be clipped at the sides */
  padding: 0 0.1em;
  margin: -0.2em -0.1em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}

.odo__strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.odo__strip span {
  display: flex;
  align-items: center;
  height: 1.4em;
}

.odo__comma {
  margin: 0 -0.02em;
}

.brand__label {
  max-width: 22em;
  margin: 12px 0 0;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-muted);
}

.brand__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1240px;
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 0;
  list-style: none;
}

.brand__step {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  will-change: opacity, transform, filter;
}

.brand__step svg {
  width: 26px;
  height: 26px;
  fill: var(--hero-border);
}

.brand__step h3 {
  margin: 14px 0 6px;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.035em;
}

.brand__step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .brand__stage {
    height: 380px;
  }

  .brand__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Everything else (bento) ---------- */

.bento {
  position: relative;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 64px) clamp(80px, 10vw, 160px);
}

.bento__head {
  max-width: 900px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 20vw, 280px);
  gap: clamp(10px, 1.2vw, 16px);
  max-width: 1240px;
  margin: 0 auto;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 1.8vw, 26px);
  border-radius: 30px;
  background: #131212;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  will-change: transform, opacity, filter;
  transition: border-color 0.35s ease;
}

.tile:hover {
  border-color: rgba(201, 48, 43, 0.3);
}

.tile--chat {
  grid-column: span 2;
  grid-row: span 2;
}

.tile--wheel {
  grid-row: span 2;
}

.tile--call {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  /* Ringing: everything sits in the middle. Connected: Oly left, buttons right */
  justify-content: center;
  gap: clamp(40px, 8vw, 140px);
  /* Extra side room so the pulsing rings and buttons breathe */
  padding-inline: clamp(36px, 5vw, 80px);
}

.tile__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tile__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: tile-live 2s ease-out infinite;
}

@keyframes tile-live {
  70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.tile__name {
  margin: auto 0 0;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* ----- Chat ----- */

.chat {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  margin: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 28%);
  mask-image: linear-gradient(transparent, #000 28%);
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 88%;
  transform-origin: 0 100%;
  animation: msg-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* Name + time, then the bubble, then "Read by" on the newest one */
.msg__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.msg__meta {
  margin: 0 0 4px 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

/* The typing bubble is short, so its line sits flush with the bubble */
.msg--typing .msg__meta {
  margin-left: 3px;
}

.msg__read {
  /* Clears the tail hanging under the bubble */
  margin: 12px 0 0 3px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.36);
  animation: msg-read 0.4s ease both;
}

@keyframes msg-read {
  from { opacity: 0; }
}

.msg__face {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  /* Apple Contacts monogram: vertical gradient, white initials */
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--face, linear-gradient(180deg, #a1a7b5 0%, #666770 100%));
}

/* Leave room for the "Read by" line so the face stays level with the bubble */
.msg:has(.msg__read) .msg__face {
  margin-bottom: 25px;
}

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

/* Oly: the logo a little smaller, on white */
.msg--oly .msg__face {
  background: #fff;
}

.msg--oly .msg__face img {
  box-sizing: border-box;
  padding: 3px;
  object-fit: contain;
}

.msg__face--emoji {
  font-size: 17px;
}

.msg__bubble {
  --bubble: #262424;
  position: relative;
  /* Keeps the tail under the text */
  isolation: isolate;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.32;
  background: var(--bubble);
}

/* Tail from examplebubble.svg (drawn bottom right there, on a corner radius of 66),
   scaled to our 18px corners. Mirrored to the left for everyone else */
.msg__bubble::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4.9px;
  bottom: -6px;
  width: 20.7px;
  height: 13.65px;
  background: var(--bubble);
  transform: scaleX(-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27366 108 76 50%27%3E%3Cpath d=%27M394.5 137.5C388 135 368 135.872 368 135.872L383.092 110L432.68 113.234C434.836 115.39 436.5 121 431.5 124.5C423.601 130.029 425.134 139.106 426.212 143.418C427.29 147.73 440.226 156.354 430.524 156.354C422.763 156.354 401 140 394.5 137.5Z%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27366 108 76 50%27%3E%3Cpath d=%27M394.5 137.5C388 135 368 135.872 368 135.872L383.092 110L432.68 113.234C434.836 115.39 436.5 121 431.5 124.5C423.601 130.029 425.134 139.106 426.212 143.418C427.29 147.73 440.226 156.354 430.524 156.354C422.763 156.354 401 140 394.5 137.5Z%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Your own messages: red, on the right, tail bottom right */
.msg--me {
  align-self: flex-end;
  transform-origin: 100% 100%;
}

.msg--me .msg__body {
  align-items: flex-end;
}

.msg--me .msg__meta {
  margin: 0 12px 4px 0;
}

.msg--me .msg__read {
  margin: 12px 3px 0 0;
}

.msg--me .msg__bubble {
  --bubble: var(--red);
}

.msg--me .msg__bubble::before {
  left: auto;
  right: 4.9px;
  transform: none;
}

/* Oly's name is tinted so it stands out */
.msg--oly .msg__meta {
  color: rgba(255, 120, 110, 0.85);
}

/* ----- Reactions ----- */

.msg__emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  line-height: 1;
}

/* Picker: a dark pill above the bubble on hover (or after a tap) */
.msg__body {
  position: relative;
}

.msg__picker {
  position: absolute;
  z-index: 3;
  bottom: calc(100% - 14px);
  left: 4px;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: #2c2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transform-origin: 20% 100%;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.msg--me .msg__picker {
  left: auto;
  right: 4px;
  transform-origin: 80% 100%;
}

@media (hover: hover) {
  .msg:not(.msg--typing) .msg__body:hover .msg__picker {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0.08s;
  }
}

.msg.is-picking .msg__picker {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.msg__picker button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 19px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.2s ease;
}

.msg__picker button:hover {
  transform: scale(1.28) translateY(-2px);
}

.msg__picker button:active {
  transform: scale(0.9);
}

.msg__picker button.is-mine {
  background: rgba(255, 255, 255, 0.16);
}

/* Reactions sit on the bubble's top corner, like a tapback */
.msg__reacts {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: -8px;
  display: flex;
  gap: 3px;
}

.msg--me .msg__reacts {
  right: auto;
  left: -8px;
}

.msg__chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 13px;
  background: #3a3737;
  box-shadow: 0 0 0 2px #131212;
}

.msg__chip small {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.msg__chip.is-mine {
  background: #4a4646;
}

/* Room above a bubble that carries reactions */
.msg.has-reacts .msg__meta {
  margin-bottom: 10px;
}

/* Shared files: an SFX clip or a project file */
.msg__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 4px 3px 0;
  min-width: 190px;
}

.msg__caption {
  display: block;
  margin-bottom: 8px;
}

.msg__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.msg__icon--doc {
  border-radius: 9px;
}

.msg__icon svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.msg__file b {
  display: block;
  font-weight: 500;
  font-size: 14px;
}

.msg__file small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Shared video: a link card that opens the post */
.msg__link {
  display: block;
  width: min(260px, 100%);
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s ease;
}

.msg__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* A shared video keeps its bubble about as wide as the card */
.msg__bubble:has(.msg__link) {
  max-width: 290px;
}

.msg--me .msg__link {
  background: rgba(0, 0, 0, 0.18);
}

.msg__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.msg__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.msg__link:hover .msg__thumb img {
  transform: scale(1.05);
}

.msg__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  translate: -50% -50%;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.msg__link:hover .msg__play {
  scale: 1.12;
}

.msg__play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  fill: #fff;
}

.msg__linkbody {
  display: block;
  padding: 8px 11px 10px;
}

.msg__linkbody b {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.3;
}

.msg__linkbody small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

.msg__wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  margin-bottom: 2px;
}

.msg__wave i {
  width: 2px;
  height: calc(var(--h) * 100%);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.msg__typing {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
}

.msg__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: typing 1.1s ease-in-out infinite;
}

.msg__typing i:nth-child(2) { animation-delay: 0.15s; }
.msg__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes msg-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.85); filter: blur(6px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* ----- Wheel -----
   Drawn like a still of hardware: flat dark greys, thin cable from the top, faint contour
   lines behind, one small green light. Only the slice it lands on lights up red */

.wheel {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  margin: 12px 0;
}

.wheel__terrain {
  position: absolute;
  inset: -12px -40px;
  width: calc(100% + 80px);
  height: calc(100% + 24px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}

.wheel__terrain path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.wheel__box {
  position: relative;
  height: min(100%, 230px);
  aspect-ratio: 1;
  /* The shadow sits on the box, which stays still, so it doesn't spin with the wheel */
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

/* The cable down from the top of the card to the pointer */
.wheel__box::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  width: 1.5px;
  height: 600px;
  margin-left: -0.75px;
  background: rgba(255, 255, 255, 0.42);
}

.wheel__disc {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 3.6s cubic-bezier(0.12, 0.75, 0.15, 1);
}

.wheel__disc .body { fill: #262626; }
.wheel__disc .rim { fill: none; stroke: #333; stroke-width: 5; }
.wheel__disc .edge { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.wheel__disc .face { fill: #121212; }
.wheel__disc .slice-b { fill: #171717; }
.wheel__disc .divider { stroke: #262626; stroke-width: 1.5; }
.wheel__disc .glyph {
  fill: #3d3d3d;
  transition: fill 0.5s ease;
}
.wheel__disc .glyph.is-won { fill: var(--red); }
.wheel__disc .led { fill: #34c759; }

/* Pointer: a small dark block where the cable meets the wheel */
.wheel__pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 1;
  width: 18px;
  height: 24px;
  margin-left: -9px;
  border-radius: 5px 5px 9px 9px;
  background: #2b2b2b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.wheel__pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.8);
}

.wheel__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  background: #2a2a2a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 6px #1b1b1b, 0 6px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), color 0.2s ease;
}

.wheel__hub:hover {
  color: #fff;
  transform: scale(1.06);
}

.wheel__hub:active {
  transform: scale(0.94);
}

.wheel__hub[disabled] {
  cursor: default;
}

/* ----- SFX ----- */

.sfx {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  margin: 12px 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.sfx__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 64px;
}

.sfx__wave i {
  width: 3px;
  height: calc(var(--h) * 100%);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transform: scaleY(var(--amp, 0.35));
  transition: background-color 0.3s ease;
}

.sfx.is-playing .sfx__wave i {
  background: var(--hero-border);
}

.sfx__play {
  position: absolute;
  width: 38px;
  height: 38px;
  padding: 11px;
  border-radius: 50%;
  fill: currentColor;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s ease;
}

.sfx:hover .sfx__play {
  transform: scale(1.12);
}

.sfx.is-playing .sfx__play {
  opacity: 0;
  transform: scale(0.6);
}

/* ----- Updates ----- */

.updates {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 14px;
  /* Room at the top for new files to fade in, instead of being cut by the edge */
  padding: 14px 0 0;
  list-style: none;
  overflow: hidden;
  /* New files flip down into place, in 3D */
  perspective: 700px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(transparent, #000 22px, #000 55%, transparent);
  mask-image: linear-gradient(transparent, #000 22px, #000 55%, transparent);
}

.updates li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  background: #1c1a1a;
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  animation: update-in 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.updates span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.updates small {
  flex: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.updates__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.updates__icon svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.updates b {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--red);
}

@keyframes update-in {
  from { opacity: 0; transform: translateY(-14px) translateZ(-60px) rotateX(-75deg); filter: blur(8px); }
  40% { opacity: 1; }
  to { opacity: 1; transform: none; filter: none; }
}

/* ----- 1:1 call ----- */

.tile--call {
  isolation: isolate;
  border-color: rgba(255, 80, 60, 0.16);
}

.tile--call.is-connected {
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.07);
}

.call__bg {
  position: absolute;
  /* Bleeds past the tile so the wave never shows its edges */
  inset: -60px;
  z-index: -1;
  overflow: hidden;
}

/* The red itself; main.js clips a wavy gap into it from the middle */
.call__red {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(120deg, #2a0302 0%, #4a0603 55%, #1c0201 100%);
}

/* Big blurred blobs drifting slowly, like an iOS call screen */
.call__bg i {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  animation: call-blob 5s ease-in-out infinite alternate;
}

.call__bg i:nth-child(1) { left: -8%; top: -60%; background: #d4100a; }
.call__bg i:nth-child(2) { left: 30%; top: 10%; background: #8a0804; animation-duration: 6s; animation-delay: -2s; }
.call__bg i:nth-child(3) { left: 62%; top: -50%; background: #ff3b2a; opacity: 0.7; animation-duration: 4.4s; animation-delay: -3s; }
.call__bg i:nth-child(4) { left: 78%; top: 30%; background: #b00600; animation-duration: 6.8s; animation-delay: -1s; }

@keyframes call-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(22%, 26%) scale(1.25); }
  100% { transform: translate(-18%, 10%) scale(0.88); }
}

/* A warm glow swelling out from the middle with every ring */
.call__red::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 70% at 50% 50%, rgba(255, 70, 50, 0.55), transparent 70%);
  opacity: 0;
  animation: call-glow 1.1s ease-out infinite;
}

@keyframes call-glow {
  0% { opacity: 0; transform: scale(0.7); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5); }
}


.call__who {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.call__avatar {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
}

.call__avatar img {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

/* Rings rippling out while it rings */
.call__avatar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  animation: call-ring 1.1s ease-out infinite;
}

.call__avatar i:nth-of-type(2) {
  animation-delay: 0.55s;
}

.tile--call:hover .call__avatar i {
  animation-duration: 0.8s;
}

.tile--call.is-connected .call__avatar i {
  animation: none;
  opacity: 0;
}

/* While it rings, Oly and the green button buzz in short bursts, like a phone on a table.
   Uses translate/rotate, so the buttons keep their hover scale */
.tile--call:not(.is-connected) .call__avatar,
.tile--call:not(.is-connected) .call__btn--accept {
  animation: call-buzz 1.1s ease-in-out infinite;
}

.tile--call:not(.is-connected) .call__btn--accept {
  animation-delay: 0.08s;
}

@keyframes call-buzz {
  0%, 30%, 100% { translate: 0; rotate: 0deg; }
  4% { translate: -1.5px 0; rotate: -2deg; }
  8% { translate: 1.5px 0; rotate: 2deg; }
  12% { translate: -1.5px 0; rotate: -1.5deg; }
  16% { translate: 1.5px 0; rotate: 1.5deg; }
  20% { translate: -1px 0; rotate: -1deg; }
  24% { translate: 0.5px 0; rotate: 0.5deg; }
}

@keyframes call-ring {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

.call__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
}

.tile--call .tile__name {
  margin: 0;
}

.call__state {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

/* Oly's voice, only while connected */
.call__voice {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -1px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.call__voice i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform: scaleY(0.25);
  animation: call-voice 0.9s ease-in-out infinite alternate;
}

.call__voice i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.call__voice i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.call__voice i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }
.call__voice i:nth-child(5) { animation-delay: -0.45s; animation-duration: 1s; }

@keyframes call-voice {
  0% { transform: scaleY(0.2); }
  40% { transform: scaleY(0.9); }
  70% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.tile--call.is-connected .call__voice {
  opacity: 1;
}

.tile--call.is-muted .call__voice {
  opacity: 0.25;
}

.call__buttons {
  display: flex;
  gap: 14px;
}

.call__btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.3s ease, width 0.4s ease;
}

.call__btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.call__btn--end {
  background: #ff3b30;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mute only shows during the call */
.call__btn--mute {
  display: none;
  background: rgba(255, 255, 255, 0.12);
}

.call__slash {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.call__btn--mute[aria-pressed="true"] {
  color: #1c0201;
  background: #fff;
}

.call__btn--mute[aria-pressed="true"] .call__slash {
  opacity: 1;
}

.tile--call.is-connected .call__btn--mute {
  display: grid;
  animation: call-pop 0.55s 0.08s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes call-pop {
  from { opacity: 0; transform: scale(0.6); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.call__btn--accept {
  background: #34c759;
}

.call__btn:hover {
  transform: scale(1.08);
}

.call__btn:active {
  transform: scale(0.92);
}

.tile--call.is-connected .call__btn--accept {
  display: none;
}

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

  .tile--wheel {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .bento__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 260px;
  }

  .tile--chat {
    grid-column: auto;
    grid-row: span 2;
  }

  .tile--call {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
  }

  .tile--call.is-connected {
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg,
  .updates li,
  .tile__live,
  .call__avatar i,
  .tile--call .call__avatar,
  .tile--call .call__btn--accept {
    animation: none !important;
  }

  .wheel__disc {
    transition: none;
  }
}

/* ---------- Page transition ---------- */

/* Red pixels sweep over the page before a link leaves, and clear off the next page as it
   arrives (shared.js). Until they're drawn, an arriving page is simply covered in red */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

html.is-arriving body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  /* The last page's pixels, one image pixel per cell, scaled up without smoothing */
  background: var(--red) var(--veil-img, none) 0 0 / var(--veil-size, auto) no-repeat;
  image-rendering: pixelated;
}

/* ---------- Pricing page ---------- */

/* The navbar is there from the start (no video to grow out of) */
.navbar--on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-pricing main,
.page-policy main {
  --gutter: clamp(16px, 4vw, 64px);
  padding: 0 var(--gutter);
}

.pr-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(170px, 20vw, 230px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}

/* Tag above the title: SF Pro, the label, then a quiet note */
.pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  padding: 7px 15px;
  border-radius: 999px;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
  background: linear-gradient(180deg, #1c1c1c, #141414);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pr-pill__note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.pr-pill__note::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.pr-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.pr-title > span {
  display: block;
}

.pr-title__soft {
  color: rgba(255, 255, 255, 0.45);
}

.pr-sub {
  max-width: 32em;
  margin: clamp(20px, 2.2vw, 30px) auto 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-wrap: balance;
}

.pr-h2 {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}

/* ----- Plans ----- */

.pr-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  max-width: 1020px;
  margin: 0 auto;
  align-items: stretch;
}

.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* The landing page's window buttons, lined up with the card's content edge */
  --r: 28px;
  --dots-top: clamp(22px, 2.4vw, 30px);
  padding: clamp(26px, 3vw, 40px);
  padding-top: calc(var(--dots-top) + 12px + clamp(24px, 2.6vw, 34px));
  border-radius: var(--r);
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.pr-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pr-card__name {
  margin: 0;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pr-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: clamp(28px, 3vw, 40px) 0 0;
}

.pr-price b {
  font-weight: 500;
  font-size: clamp(58px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.pr-price span {
  font-size: 17px;
  color: var(--text-muted);
}

.pr-card__pitch {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.pr-cta {
  display: grid;
  place-items: center;
  height: 56px;
  margin-top: clamp(28px, 3vw, 36px);
  border-radius: 14px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.pr-cta:hover {
  transform: scale(1.015);
}

.pr-cta:active {
  transform: scale(0.98);
}

.pr-cta--basic {
  color: #fff;
  background: #181818;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pr-cta--basic:hover {
  background: #202020;
}

.pr-list {
  display: grid;
  gap: 18px;
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.pr-list li {
  display: flex;
  gap: 14px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}

/* SF Symbol checkmark */
.pr-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: currentColor;
}

/* Premium: slowly moving red smoke behind it (pricing.js, WebGL) */
.pr-card--premium {
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(60% 50% at 50% 50%, #7a0300, #120000);
}

/* Soft white outline, drawn above the smoke so it stays visible all the way round */
.pr-card--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.pr-smoke {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.pr-card--premium .pr-card__pitch,
.pr-card--premium .pr-price span {
  color: rgba(255, 255, 255, 0.78);
}

.pr-card--premium .pr-list li {
  color: #fff;
}

.pr-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #111;
  background: #fff;
}

.pr-cta--premium {
  color: #111;
  background: #f4f2f1;
}

.pr-cta--premium:hover {
  background: #fff;
}

/* ----- How it works ----- */

.pr-steps {
  max-width: 1080px;
  margin: clamp(110px, 14vw, 200px) auto 0;
}

.pr-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each step: a little scene of what you do on top, the words under it */
.pr-step {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pr-step__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
  margin: 8px 8px 0;
  border-radius: 21px;
  background: radial-gradient(120% 90% at 50% 0%, #1d1d1d, #151515 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.pr-step__text {
  padding: 22px clamp(22px, 2.4vw, 28px) clamp(24px, 2.6vw, 30px);
}

.pr-steps__num {
  display: block;
  margin-bottom: 14px;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: #ff6b63;
}

.pr-step b {
  display: block;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.pr-step p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* The scenes loop only while on screen (pricing.js adds .is-playing) */
.pr-step__stage * {
  animation-play-state: paused !important;
}

.pr-step.is-playing .pr-step__stage * {
  animation-play-state: running !important;
}

/* ----- 02: watching the lessons ----- */

.st-les {
  width: min(84%, 270px);
  padding: 14px;
  border-radius: 20px;
  background: #0c0c0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.st-les__head {
  display: flex;
  justify-content: space-between;
  padding: 0 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.st-les__head span:last-child {
  color: #fff;
  font-weight: 500;
}

.st-les__list {
  position: relative;
  display: grid;
  grid-auto-rows: 34px;
  gap: 4px;
}

/* The lesson playing now: a soft row that moves down, with its progress filling */
.st-les__hl {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  animation: st-les-hl 6s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}

.st-les__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  animation: st-les-bar 2s linear infinite;
}

.st-les__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.st-les__icon {
  position: relative;
  display: grid;
  width: 16px;
  height: 16px;
}

.st-les__icon svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
}

.st-les__play {
  fill: rgba(255, 255, 255, 0.4);
  transform: scale(0.75);
}

.st-les__check {
  fill: var(--red);
  opacity: 0;
}

.st-les__row:nth-child(2) .st-les__play { animation: st-les-play-1 6s infinite; }
.st-les__row:nth-child(2) .st-les__check { animation: st-les-check-1 6s infinite; }
.st-les__row:nth-child(3) .st-les__play { animation: st-les-play-2 6s infinite; }
.st-les__row:nth-child(3) .st-les__check { animation: st-les-check-2 6s infinite; }
.st-les__row:nth-child(4) .st-les__play { animation: st-les-play-3 6s infinite; }
.st-les__row:nth-child(4) .st-les__check { animation: st-les-check-3 6s infinite; }

@keyframes st-les-hl {
  0%, 30% { transform: translateY(0); }
  36%, 63% { transform: translateY(38px); }
  69%, 94% { transform: translateY(76px); }
  100% { transform: translateY(0); }
}

@keyframes st-les-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Each lesson: play icon while waiting, a red check once watched, all reset at the end */
@keyframes st-les-play-1 { 0%, 31% { opacity: 1; } 34%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes st-les-check-1 { 0%, 31% { opacity: 0; transform: scale(0.5); } 36%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes st-les-play-2 { 0%, 64% { opacity: 1; } 67%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes st-les-check-2 { 0%, 64% { opacity: 0; transform: scale(0.5); } 69%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes st-les-play-3 { 0%, 93% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes st-les-check-3 { 0%, 93% { opacity: 0; transform: scale(0.5); } 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ----- 02: checkout ----- */

.st-pay {
  width: min(78%, 250px);
  padding: 16px;
  border-radius: 20px;
  background: #0c0c0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.st-pay__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.st-pay__row span:last-child {
  color: #fff;
  font-weight: 600;
}

.st-pay__line {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.07);
}

.st-pay__btn {
  position: relative;
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 13px;
  background: #f2f2f2;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  animation: st-pay-press 4.2s infinite;
}

.st-pay__fill {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: 0 50%;
  animation: st-pay-fill 4.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.st-pay__label,
.st-pay__done {
  position: relative;
  grid-area: 1 / 1;
}

.st-pay__label {
  animation: st-pay-label 4.2s infinite;
}

.st-pay__done {
  width: 22px;
  height: 22px;
  fill: #fff;
  animation: st-pay-done 4.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes st-pay-press {
  0%, 14% { transform: none; }
  18% { transform: scale(0.96); }
  24%, 100% { transform: none; }
}

@keyframes st-pay-fill {
  0%, 18% { transform: scaleX(0); }
  50%, 88% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes st-pay-label {
  0%, 40% { opacity: 1; filter: blur(0); color: #111; }
  30% { color: #fff; }
  48%, 90% { opacity: 0; filter: blur(4px); color: #fff; }
  100% { opacity: 1; filter: blur(0); color: #111; }
}

@keyframes st-pay-done {
  0%, 48% { opacity: 0; transform: scale(0.4); }
  58%, 86% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.8); }
}

/* ----- 03: say hi ----- */

.st-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(84%, 270px);
  font-size: 14px;
  line-height: 1.3;
}

.st-chat__msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.st-chat__msg--me {
  justify-content: flex-end;
  animation: st-chat-me 5s infinite;
}

.st-chat__msg--oly {
  animation: st-chat-oly 5s infinite;
}

.st-chat__msg img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* Same bubbles as the landing page chat (tail from examplebubble.svg) */
.st-chat__bubble {
  --bubble: #262424;
  position: relative;
  isolation: isolate;
  padding: 9px 14px;
  border-radius: 18px;
  line-height: 1.32;
  background: var(--bubble);
}

.st-chat__bubble::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4.9px;
  bottom: -6px;
  width: 20.7px;
  height: 13.65px;
  background: var(--bubble);
  transform: scaleX(-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27366 108 76 50%27%3E%3Cpath d=%27M394.5 137.5C388 135 368 135.872 368 135.872L383.092 110L432.68 113.234C434.836 115.39 436.5 121 431.5 124.5C423.601 130.029 425.134 139.106 426.212 143.418C427.29 147.73 440.226 156.354 430.524 156.354C422.763 156.354 401 140 394.5 137.5Z%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27366 108 76 50%27%3E%3Cpath d=%27M394.5 137.5C388 135 368 135.872 368 135.872L383.092 110L432.68 113.234C434.836 115.39 436.5 121 431.5 124.5C423.601 130.029 425.134 139.106 426.212 143.418C427.29 147.73 440.226 156.354 430.524 156.354C422.763 156.354 401 140 394.5 137.5Z%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.st-chat__msg--me .st-chat__bubble {
  --bubble: var(--red);
}

.st-chat__msg--me .st-chat__bubble::before {
  left: auto;
  right: 4.9px;
  transform: none;
}

@keyframes st-chat-me {
  0%, 8% { opacity: 0; transform: translateY(14px) scale(0.92); filter: blur(4px); }
  18%, 88% { opacity: 1; transform: none; filter: blur(0); }
  96%, 100% { opacity: 0; transform: none; filter: blur(4px); }
}

@keyframes st-chat-oly {
  0%, 36% { opacity: 0; transform: translateY(14px) scale(0.92); filter: blur(4px); }
  46%, 88% { opacity: 1; transform: none; filter: blur(0); }
  96%, 100% { opacity: 0; transform: none; filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-step__stage * {
    animation: none !important;
  }
}

/* ----- Compare ----- */

.pr-compare {
  max-width: 860px;
  margin: clamp(110px, 14vw, 200px) auto 0;
}

.pr-table {
  border-radius: 26px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  align-items: center;
  padding: 16px clamp(18px, 2.4vw, 28px);
  font-size: 15px;
}

.pr-row + .pr-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-row span:not(:first-child) {
  display: grid;
  place-items: center;
}

.pr-row--head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pr-row--head span:last-child {
  color: #ff6b63;
}

.pr-row .pr-check {
  width: 20px;
  height: 20px;
  margin: 0;
}

.pr-row span:nth-child(3) .pr-check {
  color: #ff6b63;
}

.pr-dash {
  color: rgba(255, 255, 255, 0.25);
}

.pr-row--price {
  font-weight: 600;
}

/* ----- FAQ ----- */

.pr-faq {
  max-width: 860px;
  margin: clamp(110px, 14vw, 200px) auto 0;
  padding-bottom: clamp(100px, 12vw, 180px);
}

.pr-faq__list {
  display: grid;
  gap: 10px;
}

.pr-q {
  border-radius: 20px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease;
}

.pr-q[open] {
  background: #181717;
}

.pr-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  font-size: clamp(16px, 1.3vw, 18px);
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.pr-q summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a minus */
.pr-q__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.pr-q__icon::before,
.pr-q__icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.pr-q__icon::after {
  transform: rotate(90deg);
}

.pr-q[open] .pr-q__icon::after {
  transform: rotate(0deg);
}

/* The answer's height is animated by pricing.js */
.pr-q__a {
  overflow: hidden;
}

.pr-q__a p {
  margin: 0;
  padding: 0 clamp(18px, 2.4vw, 28px) 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 800px) {
  .pr-plans,
  .pr-steps__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-row {
    grid-template-columns: minmax(0, 1fr) 64px 72px;
    font-size: 14px;
  }
}

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

.page-404 {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Breathing red pixels, fixed behind everything (404.html draws them) */
.nf-pixels {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The words, centered over the pixels */
.nf {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 16px 60px;
  box-sizing: border-box;
  text-align: center;
}

.nf__label {
  margin: 0 0 clamp(18px, 2.6vw, 38px);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: #ff6b63;
  animation: nf-in 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nf__num {
  display: flex;
  margin: 0.04em 0 0;
  font-size: clamp(170px, 36vw, 560px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Each digit flips up out of a blur, one after another */
.nf__num span {
  display: inline-block;
  animation: nf-digit 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nf__num span:nth-child(1) { animation-delay: 0.2s; }
.nf__num span:nth-child(2) { animation-delay: 0.32s; }
.nf__num span:nth-child(3) { animation-delay: 0.44s; }

.nf__text {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: -0.02em;
  color: var(--text-muted);
  animation: nf-in 1s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nf-digit {
  from {
    opacity: 0;
    transform: perspective(800px) translateY(0.35em) rotateX(-70deg) scale(0.9);
    filter: blur(24px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes nf-in {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf__label,
  .nf__num span,
  .nf__text {
    animation: none;
  }
}

/* ---------- Policy page ---------- */

.po-hero .pr-title {
  font-size: clamp(38px, 5vw, 76px);
}

/* The full text, with the section list pinned on the left */
.po-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px);
  justify-content: center;
  gap: clamp(40px, 7vw, 110px);
  max-width: 1080px;
  margin: clamp(30px, 4vw, 70px) auto 0;
}

.po-toc {
  position: sticky;
  top: 140px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.po-toc__label {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.po-toc a {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

/* A small red bar marks the section you're reading (policy.js) */
.po-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--red);
  transform: translateY(-50%);
  transition: height 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.po-toc a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.po-toc a.is-current {
  color: #fff;
}

.po-toc a.is-current::before {
  height: 16px;
}

.po-sec {
  /* Clears the fixed navbar when jumped to */
  scroll-margin-top: 140px;
}

.po-sec + .po-sec {
  margin-top: clamp(70px, 8vw, 110px);
}

.po-sec__num {
  display: block;
  margin-bottom: 14px;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: #ff6b63;
}

.po-h2 {
  margin-bottom: 24px;
  text-align: left;
}

.po-text p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
}

.po-text p + p {
  margin-top: 1.1em;
}

.po-text strong {
  font-weight: 500;
  color: #fff;
}

/* Monthly and lifetime side by side */
.po-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.po-plan {
  padding: 22px 24px;
  border-radius: 22px;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.po-plan b {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.po-text .po-plan p {
  font-size: 15px;
  line-height: 1.55;
}

.po-quote {
  margin: 36px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--red);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  color: #fff;
}

/* Contact card: soft red light in the corner, the address big, two buttons */
.po-contact {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(176, 6, 0, 0.32), transparent 60%),
    #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.po-text .po-contact__lead {
  max-width: 30em;
  font-size: 16px;
}

.po-text .po-contact__mail {
  margin-top: clamp(22px, 2.6vw, 32px);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
  overflow-wrap: anywhere;
}

.po-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.po-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.po-contact__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.po-contact__btn:active {
  transform: scale(0.97);
}

.po-contact__btn--main {
  color: #111;
  background: #f2f2f2;
  box-shadow: none;
}

.po-contact__btn--main:hover {
  background: #fff;
}

.po-text .po-thanks {
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 860px) {
  .po-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .po-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .po-toc {
    display: none;
  }
}

/* Room under the last section: the page pins once its bottom reaches the screen's bottom
   while the ending rises, so this keeps "Need help" up where it can be read first */
.page-policy main {
  padding-bottom: clamp(160px, 30vh, 320px);
}

/* Plan cards: the window buttons line up with the text inside (same left edge), a bit
   smaller and tighter than the landing's big frame */
.pr-card .compare__dots {
  top: var(--dots-top);
  left: clamp(26px, 3vw, 40px);
  gap: 7px;
}

.pr-card .compare__dots i {
  width: 12px;
  height: 12px;
  box-shadow: inset 0 0 0 0.5px var(--rim), 0 1px 1px rgba(0, 0, 0, 0.12);
}

/* Both plan cards: on hover a soft drop shadow (30%) comes up under them and they lift a touch */
.pr-card {
  transition: box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1), translate 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.pr-card--basic:hover {
  translate: 0 -4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 70px -10px rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.pr-card--premium:hover {
  translate: 0 -4px;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* The contact card's corner of red silk (policy.js), behind the text */
.po-contact {
  isolation: isolate;
  background: #121212;
}

.po-contact__silk {
  position: absolute;
  /* Softened, so the folds read as a glow more than as 3D */
  inset: -24px;
  filter: blur(14px);
  z-index: -1;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
}

/* ---------- First-visit loader (shared.js) ---------- */

/* Covered in red from the very first paint until the loader takes over */
html.is-first body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--red);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* No WebGL: plain red that fades away instead of the pixels */
.loader--plain {
  background: var(--red);
}

.loader__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader__word {
  position: relative;
  margin: 0;
  font-size: clamp(54px, 11vw, 168px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 10px 40px rgba(60, 0, 0, 0.45);
}

.loader__word span {
  display: inline-block;
  opacity: 0;
  will-change: transform, filter, opacity;
}

/* Pricing scrolls straight on into the ending, so it needs no long empty run-up */
.page-pricing .ending {
  margin-top: clamp(120px, 16vh, 200px);
}

/* ---------- Checkout window (pricing.js) ---------- */

.co {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 16px;
}

.co[hidden] {
  display: none;
}

/* Everything under it goes soft and dark */
.co__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.co__window {
  --r: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(860px, calc(100svh - 32px));
  border-radius: var(--r);
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.55), 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.97);
  filter: blur(10px);
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1), transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), filter 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.co.is-open .co__backdrop {
  opacity: 1;
}

.co.is-open .co__window {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Top bar: the window buttons (red closes), and a quiet lock on the right */
.co__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 52px;
  padding: 0 20px;
  flex: none;
}

.co__dots.compare__dots {
  top: 50%;
  left: 20px;
  gap: 8px;
  transform: translateY(-50%);
  pointer-events: auto;
}

.co__dots i,
.co__close {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px var(--rim), 0 1px 1px rgba(0, 0, 0, 0.12);
}

.co__close {
  --rim: rgba(205, 45, 40, 0.6);
  position: relative;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgb(251, 106, 96) 0%, rgb(248, 125, 116) 50%, rgb(242, 140, 130) 85%, rgb(234, 126, 117) 100%);
  cursor: pointer;
}

/* The little cross shows on hover, like macOS */
.co__close::before,
.co__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 1.2px;
  border-radius: 1px;
  background: rgba(90, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.co__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.co__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.co__dots:hover .co__close::before,
.co__dots:hover .co__close::after,
.co__close:focus-visible::before,
.co__close:focus-visible::after {
  opacity: 1;
}

.co__secure {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.co__secure svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Which plan, big and calm */
.co__head {
  padding: 10px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: none;
}

.co__label {
  margin: 0 0 6px;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: #ff6b63;
}

.co__title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.co__price {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.co__body {
  position: relative;
  min-height: 320px;
  padding: 20px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Three dots breathing while Whop's checkout loads */
.co__loading {
  position: absolute;
  top: 140px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}

.co__loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: co-dot 1.1s ease-in-out infinite;
}

.co__loading span:nth-child(2) { animation-delay: 0.15s; }
.co__loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes co-dot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.co.is-ready .co__loading {
  opacity: 0;
}

.co__mount {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.co.is-ready .co__mount {
  opacity: 1;
}

.co__fallback {
  margin: 120px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

.co__fallback a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* After paying */
.co__done {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 70px 20px;
  text-align: center;
}

.co__done[hidden] {
  display: none;
}

.co__done-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--red);
}

.co__done b {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.co__done p {
  max-width: 22em;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .co__backdrop,
  .co__window {
    transition: none;
  }
}

/* Thin dark scrollbar inside the checkout window */
.co__body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.co__body::-webkit-scrollbar {
  width: 6px;
}

.co__body::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

/* Arriving from another page: red from the very first paint, even before the body is drawn */
html.is-arriving {
  background: var(--red);
}
