/* Cougny website. The page wears the orb's colors (palette.js sets the
   tokens): the background is the orb's body color, and each section can
   switch the whole page to a light or deep tone as it reaches the middle
   of the screen (effects.js → body[data-tone]). */

:root {
  --c1: #d7ccff;
  --c2: #7c8cff;
  --c3: #23c4d9;
  --bg: #6370cc;
  --bg-deep: #454f8f;
  --ink: #14172b;
  --paper: #f4f1ff;
  --mark: #ff2d55;
  --radius: 16px;
  --max: 1200px;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --travel: cubic-bezier(0.45, 0, 0.2, 1);

  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

body {
  --page: var(--bg);
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.24);
  --surface: #ffffff;
  --on-surface: var(--ink);
  margin: 0;
  background: var(--page);
  color: var(--fg);
  overflow-x: hidden;
  transition:
    background-color 0.7s ease,
    color 0.7s ease;
}

body[data-tone="light"] {
  --page: var(--paper);
  --fg: var(--ink);
  --fg-dim: color-mix(in srgb, var(--ink) 72%, transparent);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --surface: #ffffff;
}

body[data-tone="deep"] {
  --page: var(--bg-deep);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html.is-locked,
html.is-menu {
  overflow: hidden;
}

::selection {
  background: var(--fg);
  color: var(--page);
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font: 700 0.8em/1.5 var(--mono);
  text-align: center;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
}

.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 72px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: var(--fg);
  color: var(--page);
  font: 800 17px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    translate 0.3s var(--ease),
    background-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  background: transparent;
  color: var(--fg);
}

.button-ghost {
  background: transparent;
  color: var(--fg);
}

.button-ghost:hover {
  background: var(--fg);
  color: var(--page);
}

.button-small {
  padding: 10px 16px;
  font-size: 15px;
}

.button-big {
  padding: 22px 36px;
  font-size: 21px;
}

.button.is-pulsing {
  animation: pulse 1.2s ease 3;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--fg) 25%, transparent);
  }
}

.apple {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.65s var(--travel);
}

.intro.is-out {
  clip-path: inset(0 0 100% 0);
}

.intro-line {
  font-weight: 900;
  font-size: clamp(32px, 6vw, 84px);
  letter-spacing: -0.04em;
  overflow: hidden;
  padding: 0 16px;
  text-align: center;
}

.intro-line span {
  display: inline-block;
  animation: rise 0.7s var(--ease) both;
}

.intro-line span:nth-child(2) {
  animation-delay: 0.08s;
}

.intro-line span:nth-child(3) {
  animation-delay: 0.16s;
}

.intro-line span:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    transform: translateY(110%);
  }
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  display: none;
  pointer-events: none;
}

.has-cursor .cursor {
  display: block;
}

.has-cursor body,
.has-cursor a,
.has-cursor button,
.has-cursor summary,
.has-cursor label,
.has-cursor [role="tab"] {
  cursor: none;
}

.cursor::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 2px var(--page);
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s ease;
}

.cursor.is-link::before {
  transform: scale(2.6);
  opacity: 0.35;
}

.cursor.is-label::before {
  transform: scale(5);
}

.cursor.is-hidden::before,
.cursor.is-away::before {
  opacity: 0;
}

.cursor-label {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  color: var(--page);
  white-space: nowrap;
  opacity: 0;
}

.cursor.is-label .cursor-label {
  opacity: 1;
}

/* ---------- nav: links, Cougny's resting place, download ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(16px, 3vw, 32px);
  transition: background-color 0.4s ease;
}

body:not([data-tone]) .nav,
.nav {
  background: color-mix(in srgb, var(--page) 0%, transparent);
}

html:not(.is-top) .nav {
  background: var(--page);
  box-shadow: 0 1px 0 var(--line);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 15px;
}

.menu-lines {
  display: grid;
  gap: 5px;
  width: 22px;
}

.menu-lines i {
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-button[aria-expanded="true"] .menu-lines i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-lines i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.dock {
  position: absolute;
  left: calc(50% - 15px);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dock-slot {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.dock-ring {
  position: absolute;
  inset: -7px;
  width: 44px;
  height: 44px;
  rotate: -90deg;
}

.dock-ring circle {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-dasharray: 125.66;
  stroke-linecap: round;
  opacity: 0.5;
}

.dock-note {
  position: relative;
  display: grid;
  height: 26px;
  min-width: 10px;
  padding: 0 12px;
  border-radius: 13px;
  background: #000;
  color: #fff;
  overflow: hidden;
  font: 700 12px/26px var(--mono);
  white-space: nowrap;
  opacity: 0;
  translate: -8px 0;
  transition:
    opacity 0.3s ease,
    translate 0.4s var(--ease);
}

.dock.is-docked .dock-note {
  opacity: 1;
  translate: 0 0;
}

.dock-note-text {
  grid-area: 1 / 1;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s ease;
}

.dock-note-text.is-entering {
  transform: translateY(100%);
  opacity: 0;
}

.dock-note-text.is-leaving {
  transform: translateY(-100%);
  opacity: 0;
}

.dock.is-busy .dock-note-text {
  background: linear-gradient(90deg, #fff 30%, var(--c1) 50%, #fff 70%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 90px 24px 40px;
  background: var(--page);
}

.menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  font-weight: 900;
  font-size: clamp(36px, 9vw, 64px);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.menu-links span {
  font: 700 13px var(--mono);
  opacity: 0.6;
}

/* ---------- Cougny, flying ---------- */

.flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform-origin: 50% 50%;
  will-change: transform;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flyer-body {
  position: absolute;
  inset: 0;
  display: block;
}

.is-intro .flyer-body,
body:not(.is-ready) .flyer-body {
  scale: 0.4;
  opacity: 0;
}

.is-ready .flyer-body {
  animation: orb-in 1.2s cubic-bezier(0.25, 1.4, 0.4, 1) both;
}

@keyframes orb-in {
  from {
    scale: 0.4;
    opacity: 0;
  }
}

.orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.orb-fallback::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 55%, var(--c3));
}

.flyer-shadow {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -6%;
  height: 8%;
  border-radius: 50%;
  background: #000;
  opacity: calc(var(--hero, 1) * 0.22);
  filter: blur(14px);
}

.bubble {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 56;
  pointer-events: none;
}

.bubble::before {
  content: attr(data-text);
}

.bubble {
  padding: 0;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.bubble.is-big {
  translate: -50% -100%;
}

.bubble:empty {
  display: none;
}

.bubble {
  background: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  opacity: 0;
  scale: 0.9;
  transition:
    opacity 0.25s ease,
    scale 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.bubble.is-shown.is-big {
  opacity: 1;
  scale: 1;
}

/* ---------- Ask: the overlay ---------- */

.ask {
  position: fixed;
  inset: 0;
  z-index: 54;
}

.ask[hidden] {
  display: none;
}

.ask-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky-fallback .ask-sky {
  display: none;
}

.ask.sky-fallback {
  background: color-mix(in srgb, var(--c1) 85%, transparent);
}

.ask-away {
  position: absolute;
  inset: 0;
}

.ask.is-closing {
  pointer-events: none;
}

.ask-ui {
  position: absolute;
  left: 50%;
  top: calc(33vh + clamp(60px, 12vh, 110px) + 24px);
  width: min(620px, calc(100vw - 32px));
  translate: -50% 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  color: var(--ink);
}

.ask-ui > * {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.45s ease,
    translate 0.55s var(--ease);
}

.ask.is-open .ask-ui > * {
  opacity: 1;
  translate: 0 0;
}

.ask.is-open .ask-ui > :nth-child(2) {
  transition-delay: 0.1s;
}

.ask.is-open .ask-ui > :nth-child(3) {
  transition-delay: 0.18s;
}

.ask.is-open .ask-ui > :nth-child(4) {
  transition-delay: 0.26s;
}

.ask.is-open .ask-ui > :nth-child(5) {
  transition-delay: 0.32s;
}

.ask-state {
  font-weight: 800;
  font-size: 22px;
  min-height: 1.2em;
}

.ask-reply {
  max-width: 520px;
  font-weight: 600;
  font-size: 19px;
}

.ask-reply:empty {
  display: none;
}

.ask-form {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 6px 6px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 3px var(--c2);
}

.ask-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 600 18px var(--display);
}

.ask-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ask-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ask-list li:hover,
.ask-list li[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.ask-foot {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: 0 16px clamp(28px, 4svh, 48px);
}

/* The orb, the words and the buttons all fit on the first screen. */
.hero-stage {
  position: relative;
  width: 100%;
  height: 58svh;
  min-height: 360px;
  padding-top: 64px;
  display: grid;
  place-items: start center;
  overflow-x: clip;
}

.giant {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(64px + 5svh);
  font-weight: 900;
  font-size: clamp(72px, 18vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
}

/* A gentle arc over the orb: outer letters sit lower and lean outward,
   and each letter is pushed away from the middle. --c is the letter's
   distance from the middle (-2.5 … 2.5), set by effects.js. */
.giant span {
  --c: 0;
  translate: calc(var(--c) * 1.6vw) calc(var(--c) * var(--c) * 1.2%);
  rotate: calc(var(--c) * 1.6deg);
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  will-change: transform;
}

.giant.is-in span {
  transform: none;
  opacity: 1;
  transition:
    opacity 0.6s ease,
    transform 1.1s cubic-bezier(0.2, 0.9, 0.2, 1.05);
}

.giant.is-settled span {
  transition: none;
}

.hero-slot {
  width: min(42svh, 64vw, 600px);
  aspect-ratio: 1;
  margin-top: 8px;
}

.hero-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 clamp(0px, 2vw, 24px);
  z-index: 3;
}

/* Bottom-left of the first screen; it fades once you start scrolling. */
.scroll-hint {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  bottom: 28px;
  z-index: 4;
  font: 700 12px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

html:not(.is-top) .scroll-hint {
  opacity: 0;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 2px;
  height: 34px;
  margin: 10px 0 0 4px;
  background: var(--fg);
  transform-origin: top;
  animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.try-pill {
  grid-column: 2;
  display: inline-flex;
  max-width: calc(100vw - 32px);
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: translate 0.3s var(--ease);
}

.try-pill-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 55%, var(--c3));
}

.try-pill-text {
  min-width: min(16ch, 50vw);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.try-pill-go {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  flex: none;
}

.swatches {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--s1), var(--s2) 55%, var(--s3));
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.swatch:hover {
  transform: scale(1.18);
}

.swatch[aria-pressed="true"],
.swatch.is-on {
  border-color: var(--fg);
  box-shadow: 0 0 0 2px var(--page);
}

.swatch-custom {
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(#ff5f5f, #ffd54a, #35d49c, #3a8dff, #b36bff, #ff5fa2, #ff5f5f);
}

.swatch-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 1100px;
  margin-top: clamp(12px, 2svh, 24px);
  text-align: center;
}

.roller-line {
  margin-bottom: 10px;
  font-weight: 800;
  font-size: clamp(20px, min(2.4vw, 3.6svh), 32px);
  letter-spacing: -0.02em;
}

.roller {
  position: relative;
  display: inline-block;
  height: 1.3em;
  vertical-align: bottom;
  padding: 0 0.3em;
  border-radius: 10px;
  background: var(--fg);
  color: var(--page);
  overflow: hidden;
  transition: width 0.5s var(--ease);
  box-sizing: content-box;
}

.roller-word {
  position: absolute;
  left: 0.3em;
  top: 0;
  line-height: 1.3em;
  white-space: nowrap;
  transition:
    transform 0.6s var(--ease),
    opacity 0.4s ease;
}

.roller-word.is-in {
  transform: translateY(100%);
  opacity: 0;
}

.roller-word.is-out {
  transform: translateY(-100%);
  opacity: 0;
}

.roller-measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(40px, min(5.8vw, 9svh), 92px);
}

@media (min-width: 901px) {
  .hero h1 br {
    display: none;
  }
}

.lede {
  max-width: 680px;
  margin: clamp(10px, 1.6svh, 18px) auto 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--fg-dim);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 2.4svh, 26px);
}

.fineprint {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ---------- words rising, reveals ---------- */

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

[data-split] .wi {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 0.06s);
}

[data-split].is-in .wi {
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

/* ---------- marquee ---------- */

.marquee {
  padding: 26px 0;
  border-block: 2px solid var(--fg);
  overflow: hidden;
  transform: skewY(var(--skew, 0deg));
}

.marquee-row {
  display: flex;
  width: max-content;
  font-weight: 900;
  font-size: clamp(46px, 8vw, 128px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-row.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
}

.marquee-row span {
  padding-right: 0.3em;
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) 16px;
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font: 700 13px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.idx {
  padding: 3px 8px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.section h2,
.skills h2,
.privacy h2,
.final h2 {
  max-width: 940px;
  font-size: clamp(42px, 6.6vw, 96px);
}

.section-lede {
  max-width: 600px;
  margin-top: 24px;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ---------- Teach it ---------- */

.teach-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.teach-grid > * {
  min-width: 0;
}

.tapp {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  background: var(--bg);
  transition: box-shadow 0.3s ease;
}

.tapp.is-recording {
  box-shadow: 0 0 0 4px var(--mark);
}

.tapp-rec {
  position: absolute;
  left: 50%;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  translate: -50% 0;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 700 13px var(--mono);
  white-space: nowrap;
}

.tapp-rec[hidden] {
  display: none;
}

.tapp-rec-count {
  opacity: 0.6;
}

.tapp-rec button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.tapp-win {
  border-radius: 14px;
  background: #fff;
  color: #1c1e2a;
  overflow: hidden;
  min-height: 340px;
}

.tapp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #ececf2;
  font-size: 14px;
}

.tapp-bar b {
  color: #6b6f86;
}

.t-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #ececf2;
}

.t-toolbar button,
.t-seg button {
  padding: 8px 12px;
  border: 1px solid #dcdde6;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.12s ease;
}

.t-toolbar button:hover {
  background: #f1f2f7;
}

.t-seg {
  display: inline-flex;
}

.t-seg button {
  border-radius: 0;
}

.t-seg button:first-child {
  border-radius: 8px 0 0 8px;
}

.t-seg button:last-child {
  border-radius: 0 8px 8px 0;
}

.t-seg button.is-on {
  background: #1c1e2a;
  color: #fff;
}

.tapp .is-pressed {
  outline: 3px solid var(--mark);
  outline-offset: 2px;
  transform: scale(0.95);
}

.t-notes {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 250px;
}

.t-list {
  margin: 0;
  padding: 8px;
  list-style: none;
  border-right: 1px solid #ececf2;
  background: #f7f7fa;
  font-size: 14px;
}

.t-list li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t-list li.is-on {
  background: #ffd54a;
}

.t-editor {
  width: 100%;
  min-height: 250px;
  padding: 16px;
  border: 0;
  outline: 0;
  resize: none;
  font: 500 16px/1.6 var(--display);
  color: inherit;
}

.t-events {
  margin: 0;
  padding: 14px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.t-events li {
  padding: 10px 12px;
  border-left: 4px solid var(--c2);
  border-radius: 6px;
  background: #f4f5fb;
  font-weight: 600;
}

.t-events li.is-flash,
.t-events li.is-new {
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
  background: color-mix(in srgb, var(--c2) 20%, #fff);
}

@keyframes pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}

.t-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
}

.t-player span:last-child {
  display: grid;
}

.t-player small {
  color: #6b6f86;
}

.t-cover {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: conic-gradient(from 90deg, var(--c1), var(--c2), var(--c3), var(--c1));
  transition: border-radius 0.4s ease;
}

.t-cover.is-playing {
  border-radius: 50%;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    rotate: 1turn;
  }
}

.t-cover i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.tapp-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.tapp-tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.tapp-tabs button.is-on {
  background: #fff;
  color: #1c1e2a;
}

.teach-side {
  display: grid;
  gap: 18px;
}

.teach-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.teach-orb {
  position: relative;
  flex: none;
  width: 120px;
  height: 120px;
}

.teach-guide {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g;
  font-weight: 700;
}

.teach-guide li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-dim);
  transition: color 0.3s ease;
}

.teach-guide li::before {
  counter-increment: g;
  content: counter(g);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font: 700 12px var(--mono);
}

.teach-guide li.is-now {
  color: var(--fg);
}

.teach-guide li.is-now::before {
  background: var(--fg);
  color: var(--page);
  border-color: var(--fg);
}

.teach-guide li.is-done::before {
  content: "✓";
}

.teach-form {
  display: grid;
  gap: 8px;
}

.teach-form[hidden] {
  display: none;
}

.teach-form label {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: none;
  font: 600 17px var(--display);
  color: var(--on-surface);
}

.field .button {
  padding: 10px 18px;
  font-size: 15px;
}

.teach-status {
  font-weight: 700;
}

.teach-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
}

.teach-steps li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--on-surface);
  font-weight: 600;
  animation: pop 0.3s ease;
}

.teach-steps li::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  font: 700 12px/1.9 var(--mono);
  opacity: 0.5;
}

.teach-steps li.is-now {
  box-shadow: 0 0 0 3px var(--c2);
}

.teach-steps li.is-done {
  opacity: 0.55;
}

.teach-fine {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ---------- Skills ---------- */

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mark);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.skills-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 80px 0 40px;
  overflow: hidden;
}

.skills-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skills-count {
  font: 700 15px var(--mono);
  white-space: nowrap;
}

.skills-count b {
  font-size: 40px;
}

.skills-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2 + 16px));
  will-change: transform;
}

.skill {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(280px, 30vw, 380px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--on-surface);
  overflow: hidden;
  transition: rotate 0.4s var(--ease);
}

.skill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill:hover::after {
  opacity: 1;
}

.skill-say {
  margin-top: 18px;
  font: 700 13px/1.5 var(--mono);
  color: color-mix(in srgb, var(--on-surface) 60%, transparent);
}

.skill h3 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.05;
}

.skill p:not(.skill-say) {
  margin-top: 10px;
  color: color-mix(in srgb, var(--on-surface) 75%, transparent);
  font-weight: 500;
  font-size: 16px;
}



.skill-try {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px 0 0;
  border: 0;
  background: none;
  color: var(--on-surface);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.skill-try:hover {
  text-decoration: underline;
}

.skills-bar {
  width: min(var(--max), calc(100% - 32px));
  height: 3px;
  margin: 0 auto;
  background: var(--line);
}

.skills-bar i {
  display: block;
  height: 100%;
  background: var(--fg);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.skill-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 150px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c1) 35%, #fff);
  overflow: hidden;
}

.art-volume i {
  width: 12px;
  border-radius: 3px;
  background: var(--c2);
  animation: level 1.6s ease-in-out infinite alternate;
}

.art-volume i:nth-child(n) {
  height: calc(20px + var(--h, 30px));
}

.art-volume i:nth-child(1) { --h: 6px; animation-delay: -0.1s; }
.art-volume i:nth-child(2) { --h: 18px; animation-delay: -0.3s; }
.art-volume i:nth-child(3) { --h: 30px; animation-delay: -0.5s; }
.art-volume i:nth-child(4) { --h: 42px; animation-delay: -0.7s; }
.art-volume i:nth-child(5) { --h: 54px; opacity: 0.25; animation-delay: -0.9s; }
.art-volume i:nth-child(6) { --h: 66px; opacity: 0.25; animation-delay: -1.1s; }
.art-volume i:nth-child(7) { --h: 78px; opacity: 0.25; animation-delay: -1.3s; }
.art-volume i:nth-child(8) { --h: 90px; opacity: 0.25; animation-delay: -1.5s; }

@keyframes level {
  to {
    transform: scaleY(0.7);
  }
}

.art-volume b {
  position: absolute;
  right: 12px;
  top: 10px;
  font: 700 12px var(--mono);
}

.art-marks {
  flex-wrap: wrap;
  padding: 18px;
  align-content: center;
}

.art-marks span {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  outline: 2px solid var(--mark);
  font-weight: 700;
  font-size: 14px;
}

.art-marks span.wide {
  flex-basis: 60%;
  color: #9a9db3;
}

.art-marks i {
  position: absolute;
  left: -8px;
  top: -10px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--mark);
  color: #fff;
  font: 700 11px/1.5 var(--mono);
  font-style: normal;
  animation: pop 2.4s ease infinite;
}

.art-split i {
  width: 40%;
  height: 70%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.3);
  animation: split-left 3s var(--ease) infinite;
}

.art-split i:last-child {
  animation-name: split-right;
}

@keyframes split-left {
  0%, 15% { transform: translate(20%, 10%) rotate(-4deg); }
  45%, 100% { transform: none; }
}

@keyframes split-right {
  0%, 15% { transform: translate(-30%, -8%) rotate(5deg); }
  45%, 100% { transform: none; }
}

.art-files i {
  width: 34px;
  height: 44px;
  border-radius: 5px;
  background: linear-gradient(#fff 60%, #ff5f57 60%);
  animation: into 3s var(--ease) infinite;
}

.art-files i:nth-child(2) { animation-delay: 0.2s; }
.art-files i:nth-child(3) { animation-delay: 0.4s; }

.art-files b {
  width: 64px;
  height: 50px;
  margin-left: 30px;
  border-radius: 7px;
  background: #6fb5ff;
  box-shadow: inset 0 12px 0 #8fc6ff;
}

@keyframes into {
  0%, 20% { transform: none; opacity: 1; }
  60%, 100% { transform: translateX(90px) scale(0.3); opacity: 0; }
}

.art-banner span {
  display: grid;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
  animation: slide-in 3s var(--ease) infinite;
}

@keyframes slide-in {
  0%, 10% { transform: translateX(130%); }
  35%, 85% { transform: none; }
  100% { transform: translateX(130%); }
}

.art-week span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c2);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.art-week span.off {
  background: #fff;
  color: #9a9db3;
}

.art-week b {
  position: absolute;
  bottom: 14px;
  font: 700 13px var(--mono);
}

.art-sheet {
  flex-direction: column;
  gap: 5px;
}

.art-sheet i {
  width: 70%;
  height: 16px;
  border-radius: 4px;
  background: #fff;
  animation: row 3s ease infinite;
}

.art-sheet i:nth-child(1) { background: var(--c2); }
.art-sheet i:nth-child(2) { animation-delay: 0.3s; }
.art-sheet i:nth-child(3) { animation-delay: 0.6s; }
.art-sheet i:nth-child(4) { animation-delay: 0.9s; }
.art-sheet i:nth-child(5) { animation-delay: 1.2s; }

@keyframes row {
  0% { transform: scaleX(0); transform-origin: left; }
  20%, 100% { transform: none; }
}

.art-memory {
  flex-direction: column;
  font-weight: 700;
}

.art-memory span {
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
}

.art-memory b {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--c2);
  color: #fff;
  font-size: 14px;
}

.art-steer {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 600;
}

.art-steer span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}

.art-steer .you {
  background: var(--ink);
  color: #fff;
  font-style: italic;
}

.art-undo i {
  width: 70px;
  height: 70px;
  border: 8px solid var(--c2);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 2.4s var(--ease) infinite reverse;
}

.art-connect {
  flex-wrap: wrap;
  padding: 18px;
  font-weight: 700;
  font-size: 13px;
}

.art-connect span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}

.art-connect span:first-child {
  background: var(--c2);
  color: #fff;
}

.art-connect i {
  width: 30px;
  height: 2px;
  background: var(--ink);
}

.art-teach {
  gap: 10px;
  font: 700 14px var(--mono);
}

/* ---------- Make it yours ---------- */

.yours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.yours-controls {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.control-label {
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.moods button {
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.moods button[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--page);
}

.palette-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.palette-list .swatch {
  width: 48px;
  height: 48px;
  border-width: 3px;
}

.mic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 12px 18px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: none;
  font-weight: 800;
  cursor: pointer;
}

.mic[aria-pressed="true"] {
  background: var(--fg);
  color: var(--page);
}

.mic-icon {
  width: 12px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-radius: 7px;
}

.mic[aria-pressed="true"] .mic-icon {
  background: currentColor;
  animation: blink 1s steps(2) infinite;
}

.mic-note {
  max-width: 440px;
  font-size: 14px;
  color: var(--fg-dim);
}

.yours-arena {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed var(--line);
  border-radius: 28px;
}

.yours-orb {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  touch-action: none;
}

.is-dragging .yours-orb {
  cursor: grabbing;
}

.yours-say {
  position: absolute;
  top: 8%;
  left: 50%;
  translate: -50% 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  scale: 0.9;
  transition:
    opacity 0.25s ease,
    scale 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
  pointer-events: none;
}

.yours-say.is-shown {
  opacity: 1;
  scale: 1;
}

.arena-hint {
  position: absolute;
  bottom: 16px;
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

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

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
}

.how-visual {
  position: sticky;
  top: 18vh;
  height: min(64vh, 520px);
  border-radius: 24px;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.how-visual[data-scene="ask"] .scene-ask,
.how-visual[data-scene="look"] .scene-look,
.how-visual[data-scene="do"] .scene-do {
  opacity: 1;
}

.scene-keys {
  display: flex;
  gap: 10px;
  font-size: 30px;
}

.scene-keys kbd {
  min-width: 2em;
  padding: 0.3em 0.6em;
  border-color: rgba(255, 255, 255, 0.6);
}

.scene-keys .wide {
  min-width: 5em;
}

.is-playing .scene-keys kbd {
  animation: press 1.8s ease infinite;
}

@keyframes press {
  0%, 60%, 100% { transform: none; border-bottom-width: 3px; }
  20%, 50% { transform: translateY(3px); border-bottom-width: 1px; }
}

.scene-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
}

.scene-wave i {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: #fff;
  animation: level 0.9s ease-in-out infinite alternate;
}

.scene-wave i:nth-child(3n) { animation-delay: -0.3s; height: 60%; }
.scene-wave i:nth-child(3n + 1) { animation-delay: -0.6s; height: 80%; }
.scene-wave i:nth-child(4n) { animation-delay: -0.15s; height: 40%; }

.scene-heard {
  min-height: 1.4em;
  font-weight: 800;
  font-size: 24px;
}

.scene-win {
  position: relative;
  width: min(420px, 100%);
  border-radius: 14px;
  background: #fff;
  color: #1c1e2a;
  overflow: hidden;
}

.scene-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #ececf2;
  font-size: 13px;
}

.scene-bar b {
  color: #6b6f86;
}

.scene-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 20px;
  min-height: 180px;
  align-content: flex-start;
}

.scene-body .ctl {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f2f7;
  font-weight: 700;
}

.scene-body .ctl.field {
  flex-basis: 62%;
  color: #9a9db3;
}

.scene-body .ctl i {
  position: absolute;
  left: -8px;
  top: -10px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--mark);
  color: #fff;
  font: 700 11px/1.5 var(--mono);
  font-style: normal;
  opacity: 0;
}

.is-playing .scene-look .ctl {
  animation: marked 0.4s ease forwards;
}

.is-playing .scene-look .ctl i {
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.is-playing .scene-look .c1, .is-playing .scene-look .c1 i { animation-delay: 0.9s; }
.is-playing .scene-look .c2, .is-playing .scene-look .c2 i { animation-delay: 1.1s; }
.is-playing .scene-look .c3, .is-playing .scene-look .c3 i { animation-delay: 1.3s; }
.is-playing .scene-look .c4, .is-playing .scene-look .c4 i { animation-delay: 1.5s; }

@keyframes marked {
  to {
    outline: 2px solid var(--mark);
  }
}

.scene-look .ctl i {
  animation-fill-mode: forwards;
}

@keyframes pop-in {
  to {
    opacity: 1;
  }
}

.is-playing .scene-look .ctl i {
  animation-name: pop-in;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 3px;
  background: var(--c3);
  box-shadow: 0 0 16px 4px color-mix(in srgb, var(--c3) 60%, transparent);
  opacity: 0;
}

.is-playing .scan {
  animation: scan 1.2s ease-in-out 0.1s;
}

@keyframes scan {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(200px); }
}

.scene-do .scene-body {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
}

.scene-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 15px;
}

.scene-bubble.them {
  align-self: flex-start;
  background: #ececf2;
}

.scene-bubble.me {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
  opacity: 0;
}

.is-playing .scene-bubble.me {
  animation: pop-in 0.3s ease 1.9s forwards;
}

.scene-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #dcdde6;
  border-radius: 20px;
  outline: 2px solid var(--mark);
  font-size: 15px;
}

.scene-field i {
  position: absolute;
  left: -8px;
  top: -10px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--mark);
  color: #fff;
  font: 700 11px/1.5 var(--mono);
  font-style: normal;
}

.scene-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

.is-playing .scene-typed {
  animation: typing 1.2s steps(13) 0.3s forwards, clear 0.1s 1.9s forwards;
}

@keyframes typing {
  to { width: 13ch; }
}

@keyframes clear {
  to { width: 0; }
}

.scene-done {
  font-weight: 800;
  font-size: 20px;
  opacity: 0;
}

.is-playing .scene-done {
  animation: pop-in 0.4s ease 2.2s forwards;
}

.how-list {
  position: relative;
  padding-left: 36px;
}

.how-line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.how-line i {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: top;
  transform: scaleY(var(--how, 0));
}

.how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  min-height: 62vh;
  padding: 6vh 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.how-steps li:last-child {
  min-height: 44vh;
}

.how-steps li.is-active {
  opacity: 1;
}

.how-num {
  display: block;
  font-weight: 900;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.how-steps h3 {
  margin-top: 18px;
  font-size: clamp(32px, 3.6vw, 52px);
}

.how-steps p {
  max-width: 480px;
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ---------- Privacy ---------- */

.privacy-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) 16px;
}

.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.flow-tabs button {
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: none;
  font-weight: 700;
  cursor: pointer;
}

.flow-tabs button[aria-selected="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--page);
}

.flow-panel {
  padding: clamp(16px, 3vw, 32px);
  border-radius: 24px;
  background: color-mix(in srgb, #000 18%, transparent);
}

.flow-map {
  display: block;
  width: 100%;
  height: auto;
}

.flow-map text {
  fill: currentColor;
  font: 700 17px var(--display);
  text-anchor: middle;
}

.flow-map text.sub {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.7;
}

.flow-map .box-label {
  text-anchor: start;
  font: 700 14px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.flow-map .box {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.node rect {
  fill: color-mix(in srgb, #fff 10%, transparent);
  stroke: currentColor;
  stroke-opacity: 0.25;
  stroke-width: 1.5;
  transition:
    fill 0.4s ease,
    stroke-opacity 0.4s ease;
}

.node {
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.node.is-on {
  opacity: 1;
}

.node.is-on rect {
  fill: color-mix(in srgb, #fff 22%, transparent);
  stroke-opacity: 0.9;
}

.node-cougny circle {
  fill: var(--c2);
  stroke: #fff;
  stroke-width: 2;
}

.node-none {
  opacity: 0.7;
}

.node-none rect {
  stroke-dasharray: 6 6;
}

.node-none text:first-of-type {
  text-decoration: line-through;
}

.flow-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-opacity: 0.12;
  stroke-dasharray: 8 10;
  transition: stroke-opacity 0.4s ease;
}

.flow-path.is-on {
  stroke-opacity: 1;
  animation: flow 1s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -18;
  }
}

.flow-map marker path {
  fill: currentColor;
}

.path-label {
  opacity: 0;
  font: 700 13px var(--mono) !important;
  transition: opacity 0.4s ease;
}

.path-label.is-on {
  opacity: 1;
}

.flow-caption {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  min-height: 3em;
}

.privacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  padding: 22px 0;
  border-top: 2px solid var(--line);
  font-size: 17px;
  color: var(--fg-dim);
}

.privacy-list b {
  display: block;
  margin-bottom: 4px;
  font-size: 21px;
  color: var(--fg);
}

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

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

.faq-search input {
  width: min(320px, 80vw);
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: none;
  color: var(--fg);
  font: 600 16px var(--display);
}

.faq-search input::placeholder {
  color: var(--fg-dim);
}

.faq-search input:focus {
  border-color: var(--fg);
}

.faq {
  border-top: 2px solid var(--fg);
}

.faq details {
  border-bottom: 2px solid var(--line);
}

.faq details.is-flash {
  animation: flash 1.6s ease;
}

@keyframes flash {
  30% {
    background: color-mix(in srgb, var(--fg) 12%, transparent);
  }
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-weight: 900;
  transition: rotate 0.3s var(--ease);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  max-width: 720px;
  padding-bottom: 26px;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-dim);
}

.faq-empty {
  padding: 26px 0;
  font-weight: 700;
}

/* ---------- final ---------- */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(60px, 8vw, 110px) 16px clamp(90px, 12vw, 170px);
  text-align: center;
}

.final-slot {
  width: min(320px, 64vw);
  aspect-ratio: 1;
}

.platform {
  font-weight: 700;
}

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

.footer {
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 40px) 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 2px solid var(--fg);
}

.footer-label {
  margin-bottom: 12px;
  font: 700 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.footer-links,
.footer-keys {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-keys li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-keys span {
  display: inline-flex;
  gap: 4px;
  min-width: 92px;
}

.footer-about {
  font-weight: 600;
}

.to-top {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 800;
  cursor: pointer;
}

.to-top:hover {
  text-decoration: underline;
}

.footer-word {
  display: flex;
  justify-content: center;
  font-weight: 900;
  font-size: 21.5vw;
  line-height: 0.8;
  letter-spacing: -0.07em;
  padding-bottom: 0.04em;
  user-select: none;
}

.footer-word span {
  display: inline-block;
  transform: translateY(calc((1 - var(--foot, 0)) * (60% + var(--i) * 14%)));
}

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .dock-note {
    display: none;
  }

  .hero-row {
    position: static;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .hero-stage {
    height: auto;
    min-height: 0;
    padding-top: 84px;
  }

  /* On narrow screens the word sits whole above the orb, barely curved. */
  .hero-slot {
    width: min(70vw, 40svh);
    margin-top: 16vw;
  }

  .giant {
    padding-top: 70px;
    font-size: 19vw;
  }

  .giant span {
    translate: 0 calc(var(--c) * var(--c) * 0.8%);
    rotate: calc(var(--c) * 1deg);
  }

  .scroll-hint {
    display: none;
  }

  .try-pill {
    grid-column: auto;
  }

  .swatches {
    justify-content: center;
  }

  .teach-grid,
  .yours,
  .how-grid,
  .privacy-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .skills-pin {
    position: static;
    height: auto;
    padding: 90px 0;
  }

  .skills-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .skill {
    flex: none;
    width: min(82vw, 340px);
    scroll-snap-align: center;
  }

  .how-visual {
    top: 80px;
    height: 46vh;
    z-index: 1;
  }

  .how-steps li {
    min-height: 60vh;
  }
}

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

  .t-list {
    display: none;
  }


  .skills-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-small {
    padding: 9px 12px;
  }
}

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

  [data-reveal],
  [data-split] .wi,
  .giant span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint::after,
  .art-volume i,
  .art-split i,
  .art-files i,
  .art-banner span,
  .art-sheet i,
  .art-undo i,
  .art-marks i,
  .scene-wave i {
    animation: none;
  }
}
