/*
 * framebop.com
 *
 * Colours come from the Framebop icon (apps/desktop/src/components/Logo.tsx):
 * the orange gradient, the cream frame, the near-black screen and the leaf
 * highlight. The light theme is warm cream; the dark theme is the icon's
 * screen colour. Mobile first: the base rules are for small screens, the
 * media queries add columns as space grows.
 */

:root {
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
    "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round:
    ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Brand colours, taken from the icon. */
  --orange: #fd7704;
  --amber: #febb3c;
  --ember: #fe590a;
  --flame: #e21807;
  --leaf: #fecd73;
  --cream: #fbf3e4;
  --night: #212021;
  --brand-gradient: linear-gradient(
    135deg,
    #febb3c 0%,
    #fd9a1e 48%,
    #fd7704 100%
  );
  --tile-gradient: linear-gradient(160deg, #fe7916 0%, #e21807 100%);

  /* Light theme. */
  --bg: #fffaf2;
  --bg-soft: #fbf3e4;
  --surface: #ffffff;
  --surface-2: #fff4e3;
  --ink: #212021;
  --ink-2: #4a4542;
  --ink-3: #6b6460;
  --line: #efe3cf;
  --line-strong: #dccbae;
  --link: #b43f00;
  --focus: #b43f00;
  --accent-text: #b43f00;
  --pill-bg: #fff0d9;
  --pill-ink: #8a3200;
  --ok-bg: #e3f4ea;
  --ok-ink: #1d6b44;
  --warn-bg: #fff0d1;
  --warn-ink: #8a4b00;
  --muted-bg: #f1ebe2;
  --muted-ink: #5c5550;
  --halo-1: rgba(254, 187, 60, 0.42);
  --halo-2: rgba(253, 119, 4, 0.14);
  --shadow-sm: 0 1px 2px rgba(60, 30, 5, 0.06);
  --shadow:
    0 1px 2px rgba(60, 30, 5, 0.06), 0 14px 36px -16px rgba(140, 70, 10, 0.24);
  --band-bg: #212021;
  --band-surface: #2b2826;
  --band-ink: #fbf3e4;
  --band-ink-2: #d9cfbf;
  --band-line: #3d3835;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141211;
    --bg-soft: #1a1716;
    --surface: #211e1c;
    --surface-2: #26221f;
    --ink: #fbf3e4;
    --ink-2: #ddd3c3;
    --ink-3: #b3a898;
    --line: #2f2a27;
    --line-strong: #453e39;
    --link: #febb3c;
    --focus: #febb3c;
    --accent-text: #feab3a;
    --pill-bg: #3a2412;
    --pill-ink: #fecd73;
    --ok-bg: #173225;
    --ok-ink: #8fe0b4;
    --warn-bg: #3a2810;
    --warn-ink: #fecd73;
    --muted-bg: #2b2724;
    --muted-ink: #c9bfb0;
    --halo-1: rgba(253, 140, 30, 0.3);
    --halo-2: rgba(226, 24, 7, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:
      0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --band-bg: #1d1a18;
    --band-surface: #262220;
    --band-line: #3a3431;
  }
}

/* ---------- Base ---------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-round);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

p + p {
  margin-top: 0.85em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  overflow-wrap: anywhere;
}

strong {
  font-weight: 650;
  color: var(--ink);
}

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

[hidden] {
  display: none !important;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon-sm {
  width: 1em;
  height: 1em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

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

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
    backdrop-filter: saturate(1.5) blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark .bop {
  color: var(--accent-text);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .wordmark .bop {
    background: linear-gradient(135deg, #ffad2e, #ff7a1f 55%, #ff4f0e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.wordmark .studio {
  margin-left: 0.45em;
  font-size: 0.56em;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.js .lang-switch {
  display: inline-flex;
}

.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.icon-button:hover {
  border-color: var(--line-strong);
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--brand-gradient);
  color: var(--night);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 24px -10px rgba(253, 119, 4, 0.75);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 14px 28px -10px rgba(253, 119, 4, 0.85);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--ink-3);
}

.button-soon {
  color: var(--ink-3);
  border: 1.5px dashed var(--line-strong);
  cursor: default;
}

.soon-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
}

.button-dark {
  background: var(--night);
  color: var(--cream);
}

.button-dark:hover {
  transform: translateY(-1px);
}

.button-light {
  background: rgba(255, 250, 242, 0.75);
  color: var(--night);
  border-color: rgba(33, 32, 33, 0.18);
}

.button-light:hover {
  background: #fffaf2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  padding: 28px 0 40px;
  overflow: clip;
  background:
    radial-gradient(70% 55% at 85% 0%, var(--halo-1), transparent 70%),
    radial-gradient(60% 45% at 0% 10%, var(--halo-2), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 20px;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(253, 119, 4, 0.2);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 7.4vw + 0.4rem, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: clamp(1.08rem, 0.6vw + 1rem, 1.25rem);
  color: var(--ink-2);
}

.no-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.no-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-2);
}

.no-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FEBB3C'/%3E%3Cstop offset='1' stop-color='%23FD7704'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='8' cy='8' r='8' fill='url(%23g)'/%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.8' fill='none' stroke='%23212021' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.hero .cta-row {
  justify-content: center;
}

.hero .button {
  width: 100%;
}

.cta-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-3);
}

/* The icon with its floating cards. Sizes are in em so the whole picture
   scales with the font size set on .hero-art. */
.hero-art {
  position: relative;
  width: min(76vw, 280px);
  aspect-ratio: 1;
  margin-inline: auto;
  font-size: clamp(9px, 2.8vw, 12px);
}

.hero-halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(254, 187, 60, 0.55),
    rgba(253, 119, 4, 0.18) 60%,
    transparent
  );
  filter: blur(6px);
}

.hero-icon {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  filter: drop-shadow(0 18px 28px rgba(160, 50, 0, 0.32));
}

.float-card {
  position: absolute;
  display: grid;
  gap: 0.6em;
  padding: 0.9em 1em;
  border-radius: 1.1em;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink-2);
}

.fc-label {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-round);
}

.fc-script {
  top: 6%;
  left: 0;
  width: 10.5em;
  transform: rotate(-5deg);
}

.fc-lines {
  display: grid;
  gap: 0.45em;
}

.fc-lines span {
  height: 0.5em;
  border-radius: 1em;
  background: var(--line-strong);
}

.fc-lines span:nth-child(1) {
  width: 92%;
}
.fc-lines span:nth-child(2) {
  width: 70%;
  background: var(--amber);
}
.fc-lines span:nth-child(3) {
  width: 82%;
}

.fc-voice {
  top: 38%;
  right: 0;
  width: 9em;
  transform: rotate(4deg);
}

.fc-wave {
  display: flex;
  align-items: center;
  gap: 0.35em;
  height: 2.2em;
}

.fc-wave span {
  flex: 1;
  border-radius: 1em;
  background: var(--brand-gradient);
  height: 40%;
}

.fc-wave span:nth-child(2),
.fc-wave span:nth-child(6) {
  height: 70%;
}
.fc-wave span:nth-child(3),
.fc-wave span:nth-child(5) {
  height: 100%;
}
.fc-wave span:nth-child(4) {
  height: 55%;
}

.fc-video {
  bottom: 4%;
  left: 8%;
  width: 11.5em;
  grid-template-columns: auto 1fr;
  align-items: center;
  transform: rotate(-2deg);
}

.fc-video .fc-label {
  grid-column: 1 / -1;
  font-size: 0.9em;
  color: var(--ink-3);
}

.fc-play {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--night);
  position: relative;
}

.fc-play::after {
  content: "";
  position: absolute;
  left: 0.85em;
  top: 0.62em;
  border-style: solid;
  border-width: 0.48em 0 0.48em 0.75em;
  border-color: transparent transparent transparent var(--cream);
}

.fc-bar {
  height: 0.5em;
  border-radius: 1em;
  background: var(--line);
  overflow: hidden;
}

.fc-bar span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-gradient);
}

@media (prefers-color-scheme: dark) {
  .fc-play {
    background: var(--cream);
  }
  .fc-play::after {
    border-left-color: var(--night);
  }
}

/* The pipeline strip under the hero. */
.pipeline {
  display: flex;
  gap: 6px;
  margin-top: 36px;
  padding: 4px var(--gutter) 10px;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--gutter),
    #000 calc(100% - 28px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--gutter),
    #000 calc(100% - 28px),
    transparent
  );
}

.pipeline::-webkit-scrollbar {
  display: none;
}

.pipeline li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
}

.pipeline li:not(:last-child)::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 6px 0 4px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}

.pipeline li.pipe-end {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: var(--night);
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw + 0.9rem, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 750;
}

.section-lede {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.small {
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 16px 16px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step h3 {
  margin-top: 4px;
  font-size: 1.4rem;
}

.step p:not(.step-num) {
  margin-top: 8px;
  color: var(--ink-2);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--night);
  font-family: var(--font-round);
  font-weight: 800;
}

.step-art {
  position: relative;
  height: 128px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.art-script .paper {
  display: grid;
  gap: 9px;
  width: 58%;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.art-script .paper span {
  height: 7px;
  border-radius: 9px;
  background: var(--line-strong);
}

.art-script .paper span:nth-child(2) {
  width: 80%;
}
.art-script .paper span:nth-child(3) {
  width: 90%;
  background: var(--amber);
}
.art-script .paper span:nth-child(4) {
  width: 55%;
}

.art-chip {
  position: absolute;
  right: 12%;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .art-chip {
    background: var(--cream);
    color: var(--night);
  }
}

.art-scenes {
  grid-auto-flow: column;
  gap: 10px;
}

.art-scenes .frame {
  position: relative;
  width: 72px;
  height: 52px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe2ae, #ffd08a);
  border: 2px solid transparent;
}

.art-scenes .frame.is-active {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 10px 18px -10px rgba(253, 119, 4, 0.9);
}

.art-scenes .sun {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
}

.art-scenes .hill {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -55%;
  height: 90%;
  border-radius: 50%;
  background: var(--ember);
}

.art-scenes .frame:nth-child(2) .hill {
  background: var(--flame);
}

.art-scenes .frame:nth-child(3) .hill {
  left: 30%;
  background: #c8410a;
}

.art-scenes b {
  position: absolute;
  left: 6px;
  top: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--night);
}

.art-video {
  align-content: center;
  gap: 10px;
}

.art-video .screen {
  display: grid;
  place-items: center;
  width: 128px;
  height: 72px;
  border-radius: 10px;
  background: var(--tile-gradient);
  box-shadow: var(--shadow);
}

.art-video .play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  position: relative;
}

.art-video .play::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--night);
}

.art-video .progress {
  width: 128px;
  height: 6px;
  border-radius: 9px;
  background: var(--line-strong);
  overflow: hidden;
}

.art-video .progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
  transform-origin: left;
  transform: scaleX(0.7);
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 16px;
}

.card > p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: var(--night);
  box-shadow: 0 8px 18px -10px rgba(253, 119, 4, 0.9);
  flex: none;
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.card-icon-quiet {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: none;
}

.card .card-tag {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-chips span {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.workshop {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
}

.workshop-title {
  font-size: 1.1rem;
  color: var(--ink-2);
}

.workshop-list {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.workshop-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.workshop-list h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 750;
}

.workshop-list p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 1rem;
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.pill-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.pill-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.pill-muted {
  background: var(--muted-bg);
  color: var(--muted-ink);
}

/* ---------- Videos: cards, gallery, dialog (see gallery.js) ---------- */

.v-grid {
  display: grid;
  gap: 20px;
}

.v-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.v-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.v-card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.v-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(
      70% 90% at 80% 10%,
      rgba(254, 187, 60, 0.55),
      transparent 60%
    ),
    radial-gradient(
      60% 80% at 10% 100%,
      rgba(226, 24, 7, 0.55),
      transparent 65%
    ),
    var(--night);
}

.v-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.v-card:hover .v-thumb img {
  transform: scale(1.03);
}

.v-thumb .glass-play {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.v-thumb .glass-play .icon {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.v-card:hover .glass-play,
.v-card:focus-within .glass-play {
  opacity: 1;
}

@media (hover: none) {
  .v-thumb .glass-play {
    opacity: 1;
  }
}

.v-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.v-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: var(--night);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.v-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 18px;
}

.v-title {
  font-size: 1.1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.v-link {
  color: inherit;
  text-decoration: none;
}

.v-link:focus-visible {
  outline: none;
}

/* The whole card opens the video. */
.v-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.v-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.v-maker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--ink-2);
}

.v-maker a {
  position: relative;
  z-index: 1;
  color: inherit;
}

.v-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--night);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.v-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.showcase-more {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 28px;
  text-align: center;
}

.count-pill {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 0.8rem;
}

.count-pill:empty {
  display: none;
}

.showcase-note {
  margin-top: 24px;
  color: var(--ink-3);
}

/* The invitation shown while there are no videos yet. */
.showcase-empty {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1.5px dashed var(--line-strong);
}

.empty-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(
      70% 90% at 80% 10%,
      rgba(254, 187, 60, 0.55),
      transparent 60%
    ),
    radial-gradient(
      60% 80% at 10% 100%,
      rgba(226, 24, 7, 0.55),
      transparent 65%
    ),
    var(--night);
  box-shadow: var(--shadow);
}

.empty-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 30px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.empty-bar span {
  position: absolute;
  left: 14px;
  right: 40%;
  top: 13px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
}

.empty-copy h3 {
  margin-top: 12px;
  font-size: 1.4rem;
}

.empty-copy p {
  margin-top: 8px;
  color: var(--ink-2);
}

.empty-copy .button {
  margin-top: 20px;
}

/* ---------- Video player (see player.js) ---------- */

.player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  --focus: #febb3c;
}

.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player.is-enhanced video {
  cursor: pointer;
}

.player-big,
.glass-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(28, 28, 30, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-big {
  cursor: pointer;
  transition:
    transform 200ms ease,
    opacity 200ms ease,
    visibility 200ms;
}

.player-big:hover {
  transform: scale(1.06);
  background: rgba(28, 28, 30, 0.62);
}

.player-big .icon,
.glass-play .icon {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.player.is-playing .player-big {
  opacity: 0;
  visibility: hidden;
}

.player-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 250ms ease,
    visibility 250ms,
    transform 250ms ease;
}

.player.is-started.show-bar .player-bar,
.player.is-started:not(.is-playing) .player-bar {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.player:not(.is-enhanced) .player-big,
.player:not(.is-enhanced) .player-bar {
  display: none;
}

.player.is-playing:not(.show-bar) video {
  cursor: none;
}

.player-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.player-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.player-button .icon {
  width: 20px;
  height: 20px;
}

.player-button[aria-pressed="true"][data-player-captions] {
  color: var(--amber);
}

.player .icon-pause,
.player .icon-volume-off,
.player .icon-collapse,
.player.is-playing [data-player-toggle] .icon-play,
.player.is-muted .icon-volume,
.player.is-fullscreen .icon-expand {
  display: none;
}

.player.is-playing [data-player-toggle] .icon-pause,
.player.is-muted .icon-volume-off,
.player.is-fullscreen .icon-collapse {
  display: block;
}

.player-time {
  flex: none;
  min-width: 36px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.player-seek {
  --fill: 0%;
  flex: 1;
  min-width: 32px;
  height: 24px;
  margin: 0 4px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.player-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #fff var(--fill),
    rgba(255, 255, 255, 0.3) var(--fill)
  );
}

.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: scale(0);
  transition: transform 150ms ease;
}

.player-seek:hover::-webkit-slider-thumb,
.player-seek:focus-visible::-webkit-slider-thumb {
  transform: scale(1);
}

.player-seek::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.player-seek::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: #fff;
}

.player-seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.player:fullscreen {
  width: 100%;
  height: 100%;
}

.player:-webkit-full-screen {
  width: 100%;
  height: 100%;
}

.player:fullscreen .player-bar {
  left: 50%;
  right: auto;
  bottom: 24px;
  width: min(720px, calc(100% - 32px));
  translate: -50% 0;
}

@media (prefers-reduced-motion: reduce) {
  .player-big,
  .player-bar,
  .player-seek::-webkit-slider-thumb {
    transition: none;
  }
}

.video-made {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.video-made-label {
  margin-right: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
}

.chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-2);
}

/* The video dialog: player on top, details below. */
.v-dialog {
  width: min(1000px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}

.v-dialog::backdrop {
  background: rgba(12, 10, 9, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

html:has(.v-dialog[open]) {
  overflow: hidden;
}

.v-dialog-media {
  aspect-ratio: 16 / 9;
  max-height: 68vh;
  margin-inline: auto;
  background: #000;
}

.v-dialog-info {
  display: grid;
  gap: 12px;
  padding: 18px 20px 24px;
}

.v-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.v-dialog-head h2 {
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.8rem);
}

.v-dialog-desc {
  color: var(--ink-2);
}

.v-dialog-actions {
  margin-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .v-dialog[open] {
    animation: dialog-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .v-dialog[open]::backdrop {
    animation: fade-in 260ms ease;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* The /videos page. */
.gallery-hero {
  padding: 40px 0 8px;
  background:
    radial-gradient(70% 80% at 85% 0%, var(--halo-1), transparent 70%),
    radial-gradient(60% 60% at 0% 10%, var(--halo-2), transparent 70%);
}

.gallery-hero h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.gallery-hero .section-lede {
  max-width: 40rem;
}

.gallery-section {
  padding-top: 32px;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.search-field {
  position: relative;
  grid-column: 1 / -1;
}

.search-field .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
  pointer-events: none;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.search-field input {
  padding: 0 18px 0 46px;
}

.search-field input::placeholder {
  color: var(--ink-3);
}

.search-field input:focus-visible,
.select-field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.select-field {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
}

.select-field select {
  padding: 0 38px 0 16px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23948a7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.tag-row {
  display: flex;
  gap: 8px;
  margin: 16px calc(var(--gutter) * -1) 0;
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tag-row::-webkit-scrollbar {
  display: none;
}

.tag-filter {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}

.tag-filter:hover {
  border-color: var(--ink-3);
}

.tag-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.gallery-count {
  margin: 18px 0 14px;
  font-size: 0.92rem;
  color: var(--ink-3);
}

.gallery-none {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 0;
  text-align: center;
  color: var(--ink-2);
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (min-width: 560px) {
  .v-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  .showcase-empty {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    padding: 24px;
  }

  .gallery-toolbar {
    grid-template-columns: 1fr 210px 190px;
  }

  .search-field {
    grid-column: auto;
  }

  .tag-row {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
  }

  .v-dialog-info {
    padding: 22px 28px 28px;
  }
}

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

  .gallery-hero {
    padding: 64px 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-card,
  .v-thumb img,
  .v-thumb .glass-play {
    transition: none;
  }
}

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

.band {
  position: relative;
  background:
    radial-gradient(
      60% 70% at 100% 0%,
      rgba(253, 119, 4, 0.22),
      transparent 70%
    ),
    radial-gradient(
      50% 60% at 0% 100%,
      rgba(226, 24, 7, 0.16),
      transparent 70%
    ),
    var(--band-bg);
  color: var(--band-ink);
  --focus: #febb3c;
  --link: #febb3c;
}

.band .eyebrow {
  color: var(--amber);
}

.band .section-lede,
.band p {
  color: var(--band-ink-2);
}

.privacy-grid {
  display: grid;
  gap: 14px;
}

.privacy-grid li {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--band-surface);
  border: 1px solid var(--band-line);
}

.privacy-grid h3 {
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--band-ink);
}

.privacy-grid p {
  margin-top: 6px;
  font-size: 1rem;
}

.band-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(254, 187, 60, 0.14);
  color: var(--amber);
}

.band-icon .icon {
  width: 22px;
  height: 22px;
}

.band-note {
  margin-top: 24px;
  max-width: 48rem;
  font-size: 0.95rem;
}

/* ---------- Status ---------- */

.status-grid {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.platforms li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.platforms li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.platform-name {
  font-weight: 700;
}

.platform-note {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--ink-3);
}

.checklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

/* ---------- Open source ---------- */

.open-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.open-grid h2 + p {
  margin-top: 14px;
}

.open-grid > div > p {
  color: var(--ink-2);
  max-width: 36rem;
}

.engines li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.engines li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.licence {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
}

.licence-note {
  color: var(--warn-ink);
}

.engines + .small {
  margin-top: 12px;
}

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

.faq-wrap {
  max-width: 820px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  font-family: var(--font-round);
  font-size: 1.1rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--accent-text);
  transition: transform 180ms ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--ink-2);
}

/* ---------- Closing ---------- */

.closing {
  padding-top: 8px;
}

.closing-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 40px 20px;
  border-radius: 28px;
  background:
    radial-gradient(
      80% 90% at 0% 0%,
      rgba(255, 236, 190, 0.7),
      transparent 60%
    ),
    var(--brand-gradient);
  color: var(--night);
  overflow: hidden;
  --focus: #212021;
}

.closing-icon {
  width: 88px;
  height: 88px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 12px 18px rgba(140, 40, 0, 0.35));
}

.closing-card h2 {
  margin-top: 20px;
  max-width: 34rem;
  font-size: clamp(1.6rem, 3vw + 0.9rem, 2.5rem);
}

.closing-card .cta-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--ink-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

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

.footer-legal {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.88rem;
}

.footer-legal a {
  color: inherit;
}

/* ---------- Motion ---------- */

/* The icon's eyes look around and blink and the leaf sways, as in the app.
   Lengths are in the icon's 1024-unit space. */
@keyframes logo-look {
  0%,
  18% {
    transform: translateX(0);
  }
  28%,
  46% {
    transform: translateX(-20px);
  }
  56%,
  74% {
    transform: translateX(20px);
  }
  84%,
  100% {
    transform: translateX(0);
  }
}

@keyframes logo-blink {
  0%,
  44%,
  50%,
  100% {
    transform: scaleY(1);
  }
  47% {
    transform: scaleY(0.12);
  }
}

@keyframes logo-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-icon .logo-eyes {
    animation: logo-look 4.8s ease-in-out infinite;
  }

  .hero-icon .logo-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: logo-blink 4.8s ease-in-out infinite;
  }

  .hero-icon .logo-sprout {
    transform-box: fill-box;
    transform-origin: 10% 80%;
    animation: logo-sway 3.2s ease-in-out infinite;
  }

  .float-card {
    animation: float 6s ease-in-out infinite;
  }

  .fc-voice {
    animation-delay: -2s;
  }

  .fc-video {
    animation-delay: -4s;
  }

  /* Reveal on scroll; only when the script is running (see main.js). */
  .motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 600ms ease,
      transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .faq summary::after {
    transition: none;
  }
}

/* ---------- Larger screens ---------- */

@media (min-width: 560px) {
  :root {
    --gutter: 24px;
  }

  .hero .button {
    width: auto;
  }

  .cards,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  .workshop-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .closing-card {
    padding: 56px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
    max-width: 40rem;
  }

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

@media (min-width: 880px) {
  .nav {
    display: flex;
    gap: 4px;
    margin-right: 8px;
  }

  .nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--surface-2);
  }

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

  .status-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
  }

  .open-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }

  .section {
    padding: 96px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }

  .hero {
    padding: 56px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }

  .hero-art {
    order: 2;
    width: min(100%, 470px);
    font-size: 14px;
  }

  .hero-copy {
    text-align: left;
  }

  .lede {
    margin-left: 0;
  }

  .no-list,
  .hero .cta-row {
    justify-content: flex-start;
  }

  .pipeline {
    justify-content: center;
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

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

  .privacy-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .closing-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    column-gap: 36px;
    padding: 56px;
  }

  .closing-icon {
    grid-row: span 2;
    width: 140px;
    height: 140px;
  }

  .closing-card h2 {
    margin-top: 0;
  }

  .closing-card .cta-row {
    justify-content: flex-start;
  }
}

@media (forced-colors: active) {
  .button,
  .icon-button,
  .lang-switch button[aria-pressed="true"] {
    border: 1px solid ButtonText;
  }
}
