/*
 * Edit - the website.
 *
 * The page is a dark stage for two things: a 3D scene fixed behind everything
 * (canvas.gl) and photographs. So the chrome follows the app's own rules -
 * near-black neutrals, one accent gradient, hairline borders - and the type
 * does the shouting: Barlow Condensed, very large, for the titles; Barlow,
 * the app's typeface, for everything else.
 *
 *   1  Fonts and tokens          8  Pinned demos: develop, masks, merge
 *   2  Base                      9  Blocks: compare, loupe, remove
 *   3  Type and buttons         10  Everything grid, comparison, gallery
 *   4  Header, footer, fab      11  Call to action and FAQ
 *   5  Stage layers and intro   12  Download page and one-time codes
 *   6  Hero and manifesto       13  Small pages
 *   7  Chapters                 14  Motion, small screens
 */

/* == 1  Fonts and tokens ====================================================== */

@font-face { font-family: Barlow; font-weight: 300; font-display: swap; src: url('/fonts/barlow-latin-300.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 300; font-display: swap; src: url('/fonts/barlow-latin-ext-300.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #05060a;
  --bg-1: #0b0d12;
  --bg-2: #11141b;
  --ink: #eef0f4;
  --ink-2: #a6aebb;
  --ink-3: #6e7684;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(11, 13, 19, 0.7);
  --accent: #4f7cff;
  --accent-2: #8b6bff;
  --warm: #ffb46b;
  --ok: #34d399;
  --bad: #ff7a70;
  --grad: linear-gradient(100deg, #7ea0ff 0%, #a98bff 52%, #ffb46b 100%);
  --grad-brand: linear-gradient(135deg, #4f7cff, #8b6bff);
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --text: Barlow, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header: 68px;
  color-scheme: dark;
}

/* == 2  Base ================================================================== */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
  /* clip, not hidden: nothing may widen the page, and sticky sections must keep working. */
  overflow-x: clip;
}

/* The reset below gives images a display of their own; hidden still means hidden. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(79, 124, 255, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #8fb0ff;
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

main {
  position: relative;
  z-index: 2;
}

/* == 3  Type and buttons ====================================================== */

.eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chapter-no {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chapter-no b {
  font: 600 0.95rem var(--display);
  letter-spacing: 0.1em;
  color: #fff;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.chapter-no::after {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.chapter-title {
  margin: 22px 0 26px;
  font: 800 clamp(2.9rem, 5.5vw, 6rem) / 0.92 var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.chapter-lede {
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-2);
}

.lede {
  max-width: 40rem;
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
}

kbd {
  font: 500 0.85em var(--mono);
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.btn {
  --h: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem var(--text);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s,
    border-color 0.25s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow:
    0 8px 30px -8px rgba(92, 116, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 44px -8px rgba(110, 120, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}
.btn-sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 0.93rem;
}
.btn-lg {
  --h: 56px;
  padding: 0 30px;
  font-size: 1.08rem;
}
.btn-xl {
  --h: 72px;
  padding: 0 46px;
  font-size: 1.3rem;
}
.btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 0.8rem var(--mono);
  color: var(--ink);
}

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow:
    0 40px 120px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pin-caption {
  font-size: 0.86rem;
  color: var(--ink-3);
}
.pin-caption em {
  font-style: normal;
  opacity: 0.8;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 13px;
  height: 7px;
  border-left: 2px solid #8fb0ff;
  border-bottom: 2px solid #8fb0ff;
  transform: rotate(-45deg);
}

/* == 4  Header, footer, fab ==================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  transition:
    background 0.4s,
    border-color 0.4s,
    transform 0.5s var(--ease),
    opacity 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo-mark {
  border-radius: 8px;
  box-shadow: 0 6px 22px -6px rgba(110, 120, 255, 0.9);
}
.logo-word {
  font: 600 1.42rem var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 72px var(--gutter) 110px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.55), var(--bg) 60%);
  backdrop-filter: blur(12px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand {
  max-width: 24rem;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--ink-3);
}
.footer-nav {
  display: flex;
  gap: clamp(32px, 6vw, 88px);
  flex-wrap: wrap;
}
.footer-nav h2 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-nav a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 56px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* The floating way to the download page, always within reach. */
.fab {
  position: fixed;
  right: clamp(14px, 2.4vw, 34px);
  bottom: clamp(14px, 2.4vw, 34px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 14px 44px -10px rgba(98, 112, 255, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.5s;
}
.fab::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(140, 150, 255, 0.7);
  animation: fab-ring 3.2s var(--ease) infinite;
  pointer-events: none;
}
.fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 56px -10px rgba(120, 124, 255, 1);
}
.fab em {
  font: 500 0.78rem var(--mono);
  font-style: normal;
  opacity: 0.8;
  margin-left: 2px;
}
@keyframes fab-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.22, 1.5);
    opacity: 0;
  }
}

/* == 5  Stage layers and intro =================================================== */

.gl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(3, 4, 8, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.5), transparent 16%, transparent 84%, rgba(5, 6, 10, 0.6));
}
.grain {
  position: fixed;
  inset: -100px;
  z-index: 3;
  pointer-events: none;
  background: url('/img/grain.png');
  opacity: 0.055;
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-38px, 22px); }
  40% { transform: translate(24px, -44px); }
  60% { transform: translate(-52px, -18px); }
  80% { transform: translate(40px, 36px); }
  100% { transform: translate(0, 0); }
}

/* Inner pages: a quiet field of stars. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 55% at 78% -5%, rgba(92, 104, 255, 0.24), transparent 70%),
    radial-gradient(60% 50% at 8% 108%, rgba(255, 170, 100, 0.1), transparent 70%), var(--bg);
}
.backdrop canvas {
  width: 100%;
  height: 100%;
}

.intro {
  display: none;
}
.js .intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
}
.intro.is-gone {
  display: none;
}
.intro-iris {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #fff;
  transition:
    opacity 0.5s,
    transform 0.9s var(--ease);
}
.intro.is-opening .intro-center {
  opacity: 0;
  transform: scale(1.5);
}
.intro-mark {
  color: #c9d4ff;
  filter: drop-shadow(0 0 22px rgba(110, 130, 255, 0.9));
  animation: mark-spin 9s linear infinite;
}
@keyframes mark-spin {
  to {
    transform: rotate(360deg);
  }
}
.intro-word {
  font: 800 clamp(2.6rem, 6vw, 4.4rem) / 1 var(--display);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
}
.intro-meter {
  width: 190px;
  height: 2px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.intro-meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
.intro-status {
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Until the aperture has opened, the page chrome waits. */
.js .page-home:not(.is-ready) .site-header,
.js .page-home:not(.is-ready) .fab {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.js .page-home:not(.is-ready) .fab {
  transform: translateY(20px);
}

/* == 6  Hero and manifesto ======================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header) + 40px) var(--gutter) clamp(64px, 11vh, 130px);
}
.hero-inner {
  max-width: 64rem;
}
.hero-title {
  margin: 20px 0 30px;
  font: 800 clamp(4.4rem, 14.4vw, 16.5rem) / 0.82 var(--display);
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-title .line > span {
  display: inline-block;
}
.js .hero-title .line > span {
  transform: translateY(108%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.25s var(--ease);
}
.js .is-ready .hero-title .line > span {
  transform: none;
}
.hero-title .line:nth-child(2) > span {
  transition-delay: 0.09s;
}
.hero-title .line:nth-child(3) > span {
  transition-delay: 0.18s;
}
.hero-lede {
  max-width: 35rem;
  font-size: clamp(1.08rem, 1.42vw, 1.34rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-lede strong {
  color: #fff;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.js [data-rise] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s var(--ease) 0.45s,
    transform 1s var(--ease) 0.45s;
}
.js .is-ready [data-rise] {
  opacity: 1;
  transform: none;
}
.js .is-ready .hero-lede[data-rise] { transition-delay: 0.55s; }
.js .is-ready .hero-actions[data-rise] { transition-delay: 0.65s; }
.js .is-ready .hero-meta[data-rise] { transition-delay: 0.75s; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(64px, 11vh, 130px);
  display: grid;
  justify-items: center;
  gap: 12px;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  writing-mode: vertical-rl;
}
.scroll-cue i {
  width: 1px;
  height: 74px;
  background: linear-gradient(180deg, #fff, transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.manifesto {
  padding: 22vh var(--gutter) 16vh;
  max-width: 1500px;
  margin: 0 auto;
}
.manifesto-text {
  max-width: 21em;
  font: 500 clamp(1.9rem, 4.5vw, 4.6rem) / 1.12 var(--text);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.manifesto-text .w {
  opacity: 0.14;
  transition: opacity 0.35s linear;
}
.manifesto-text .w.on {
  opacity: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 46px);
  margin-top: 13vh;
}
.stats li {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.stats strong {
  display: block;
  font: 800 clamp(3.6rem, 7.6vw, 7.4rem) / 0.9 var(--display);
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats small {
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.14em;
}
.stats span {
  display: block;
  margin-top: 14px;
  max-width: 17rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* == 7  Chapters =================================================================== */

.chapter {
  position: relative;
}
/* A title "beat": the 3D form holds the stage while the words stay put. */
.beat {
  position: relative;
  height: 185vh;
}
.beat-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--header) var(--gutter) 0;
}
.beat-text {
  position: relative;
  width: min(100%, 43rem);
}
/* A soft pool of darkness, so the words read over whatever drifts behind. */
.beat-text::before {
  content: '';
  position: absolute;
  inset: -22% -34%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 6, 10, 0.84), rgba(5, 6, 10, 0.5) 60%, transparent);
  pointer-events: none;
}
.beat-flip .beat-pin {
  justify-content: flex-end;
}
.js .beat-text > * {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js .beat.is-in .beat-text > * {
  opacity: 1;
  transform: none;
}
.js .beat.is-in .beat-text > :nth-child(2) { transition-delay: 0.08s; }
.js .beat.is-in .beat-text > :nth-child(3) { transition-delay: 0.18s; }

/* A pinned demo: a tall track with a stage that stays in view while it plays. */
.pin {
  position: relative;
  height: 330vh;
  overflow-x: clip;
}
.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: calc(var(--header) + 10px) var(--gutter) 22px;
}

.block {
  padding: 4vh var(--gutter) 20vh;
  max-width: 1380px;
  margin: 0 auto;
}

.section-head {
  max-width: 1380px;
  margin: 0 auto 7vh;
}

/* == 8  Pinned demos ================================================================== */

/* -- the app window ------------------------------------------------------------------ */
.app {
  width: min(1280px, 100%);
  height: min(100%, 780px);
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  background: #08090b;
  border: 1px solid #23272f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 50px 140px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 120px -40px rgba(90, 110, 255, 0.5);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  background: #0e1014;
  border-bottom: 1px solid #23272f;
  font-size: 13px;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.app-modes {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  background: #14171d;
  border-radius: 9px;
}
.app-modes i {
  font-style: normal;
  padding: 4px 13px;
  border-radius: 6px;
  color: #99a1ad;
}
.app-modes i.on {
  background: #232833;
  color: #eceef1;
}
.app-file {
  font: 12px var(--mono);
  color: #656d79;
}
.app-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 286px;
  min-height: 0;
}
.app-strip {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  background: #0e1014;
  border-right: 1px solid #23272f;
}
.app-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  opacity: 0.5;
}
.app-strip img.on {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.app-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  background: #0b0c0f;
}
.app-stage canvas,
.app-stage > img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}
.app-tags {
  position: absolute;
  left: 30px;
  bottom: 30px;
}
.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(8, 9, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  background: #0e1014;
  border-left: 1px solid #23272f;
  overflow: hidden;
}
.histogram {
  width: 100%;
  height: 84px;
  border-radius: 7px;
  background: #08090b;
  border: 1px solid #1b1f27;
}
.panel-title {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #656d79;
}
.sliders {
  display: grid;
  gap: clamp(7px, 1.35vh, 15px);
}
.slider {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #99a1ad;
  transition: color 0.25s;
}
.slider output {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #c9ced6;
}
.track {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: #2a2f3a;
}
.track.temp {
  background: linear-gradient(90deg, #4c8bff, #d8dbe0 50%, #ffb04a);
}
.track.tint {
  background: linear-gradient(90deg, #46c877, #d8dbe0 50%, #e05bc6);
}
.track i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #d5d9df;
  transition:
    box-shadow 0.25s,
    background 0.25s;
}
.slider.is-live {
  color: #fff;
}
.slider.is-live output {
  color: #fff;
}
.slider.is-live .track i {
  background: #fff;
  box-shadow: 0 0 0 5px rgba(79, 124, 255, 0.38);
}

/* -- masks ------------------------------------------------------------------------------ */
.masks {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: clamp(16px, 2.4vw, 34px);
  width: min(1200px, 100%);
  height: min(100%, 780px);
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(14px, 1.8vw, 24px);
}
.masks-view {
  position: relative;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0f;
}
.mask-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  --sweep: 0%;
  --tint: 0;
  --pop: 0;
}
.mask-shot.on {
  opacity: 1;
}
.mask-shot > img,
.mask-shot > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mask-pop {
  opacity: var(--pop);
}
.pop-subject {
  filter: brightness(1.24) saturate(1.3) contrast(1.08);
}
.pop-sky {
  filter: brightness(0.72) saturate(1.7) contrast(1.24) hue-rotate(-10deg);
}
.pop-subject,
.tint-subject {
  -webkit-mask: url('/img/ibex-subject.png') center / cover no-repeat;
  mask: url('/img/ibex-subject.png') center / cover no-repeat;
}
.pop-sky,
.tint-sky {
  -webkit-mask: url('/img/hillside-sky.png') center / cover no-repeat;
  mask: url('/img/hillside-sky.png') center / cover no-repeat;
}
.mask-tint {
  position: absolute;
  inset: 0;
  background: rgba(255, 52, 96, 0.6);
  opacity: var(--tint);
  clip-path: inset(0 calc(100% - var(--sweep)) 0 0);
}
.tint-sky {
  background: rgba(70, 140, 255, 0.62);
}
.mask-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sweep);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow:
    0 0 22px 5px rgba(130, 160, 255, 0.9),
    0 0 90px 22px rgba(110, 120, 255, 0.4);
  opacity: var(--scan, 0);
}
.mask-depth {
  image-rendering: auto;
}
.mask-adjust {
  display: grid;
  gap: 11px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 9, 12, 0.5);
}
.mask-adjust .panel-title {
  margin: 0 0 2px;
}
.mask-adjust .slider {
  grid-template-columns: 84px minmax(0, 1fr) 46px;
  font-size: 13px;
}
.mask-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
}
.masks-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.mask-tabs {
  display: grid;
  gap: 10px;
}
.mask-tab {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.mask-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.mask-tab b {
  font: 600 1.5rem / 1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mask-tab span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-3);
  transition: color 0.3s;
}
.mask-tab.on {
  background: rgba(98, 116, 255, 0.11);
  border-color: rgba(120, 140, 255, 0.4);
}
.mask-tab.on::before {
  transform: none;
}
.mask-tab.on span {
  color: var(--ink-2);
}
.mask-more {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.mask-more li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* -- merge ---------------------------------------------------------------------------------- */
.merge {
  position: relative;
  width: min(1240px, 100%);
  height: min(100%, 760px);
  flex: 1 1 auto;
  min-height: 0;
}
.merge-hdr {
  position: absolute;
  inset: 0 0 110px 0;
  perspective: 1500px;
}
.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54vh, 44%);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(8, 9, 11, 0.76);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.06em;
}
.merge-planet {
  position: absolute;
  left: 50%;
  top: calc(50% - 55px);
  width: min(62vh, 50%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 30px 70px rgba(60, 90, 255, 0.4));
}
.merge-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
}
.merge-step {
  position: absolute;
  inset: 0;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s,
    transform 0.5s var(--ease);
}
.merge-step b {
  color: #fff;
}
.merge-step.on {
  opacity: 1;
  transform: none;
}
.merge-chips {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  gap: 8px;
  transform: translateY(-70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.merge-chips.on {
  opacity: 1;
}
.merge-chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-3);
  background: rgba(8, 9, 12, 0.5);
}
.merge-chips .hot {
  border-color: rgba(130, 150, 255, 0.7);
  color: #fff;
  background: rgba(98, 116, 255, 0.22);
}

/* == 9  Blocks: compare, loupe, remove ================================================== */

.split-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  padding: clamp(14px, 1.8vw, 24px);
}
.split-demo.flip .split-text {
  order: -1;
  padding: 10px 0 10px clamp(8px, 2vw, 30px);
}
.split-text {
  padding: 10px clamp(8px, 2vw, 30px) 10px 0;
}
.split-text h3 {
  margin-bottom: 16px;
  font: 800 clamp(2rem, 3.4vw, 3.3rem) / 0.95 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.split-text p {
  color: var(--ink-2);
}
.split-text p b {
  color: #fff;
  font-weight: 600;
}

.compare {
  --pos: 50%;
  position: relative;
  height: min(74vh, 760px);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0f;
  touch-action: pan-y;
  user-select: none;
}
.compare picture,
.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(8, 9, 11, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-label.left {
  left: 14px;
}
.compare-label.right {
  right: 14px;
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 48px;
  margin-left: -24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: ew-resize;
  touch-action: none;
}
.compare-handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}
.compare-handle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.compare-handle i::before,
.compare-handle i::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
}
.compare-handle i::before {
  left: 11px;
  transform: translateY(-50%) rotate(45deg);
}
.compare-handle i::after {
  right: 11px;
  transform: translateY(-50%) rotate(-135deg);
}

.loupe {
  --x: 58%;
  --y: 62%;
  position: relative;
  aspect-ratio: 1;
  max-height: 74vh;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0f;
  cursor: crosshair;
  touch-action: none;
}
.loupe picture,
.loupe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loupe-lens {
  position: absolute;
  inset: 0;
  clip-path: circle(23% at var(--x) var(--y));
}
.loupe::after {
  content: '';
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 70px rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.loupe-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font: 500 11.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 8px #000;
  transition: opacity 0.4s;
}
.loupe.is-used .loupe-hint {
  opacity: 0;
}

.remove {
  padding: clamp(12px, 1.6vw, 20px);
}
.remove-view {
  position: relative;
  aspect-ratio: 2000 / 611;
  border-radius: 12px;
  overflow: hidden;
  background: #170503;
}
.remove-inner {
  position: absolute;
  inset: 0;
}
.remove-inner picture,
.remove-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.remove-after {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.remove.is-filled .remove-after {
  opacity: 1;
}
.remove-strokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.9s;
}
.remove.is-filled .remove-strokes {
  opacity: 0;
}
.remove-strokes path {
  fill: none;
  stroke: rgba(92, 132, 255, 0.62);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.remove-brush {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.remove.is-painting .remove-brush {
  opacity: 1;
}
.remove-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 16px 6px 4px;
}
.remove-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}
.remove-tools i {
  font-style: normal;
  padding: 4px 11px;
  border-radius: 7px;
  color: var(--ink-3);
}
.remove-tools i.on {
  background: rgba(98, 116, 255, 0.3);
  color: #fff;
}
.remove-tools span {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: var(--line-2);
}
.remove-bar p {
  flex: 1 1 320px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.remove-bar p b {
  color: #fff;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px);
  margin-top: 44px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.trio li {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.trio b {
  display: block;
  margin-bottom: 6px;
  font: 600 1.45rem / 1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

/* == 10  Everything grid, comparison, gallery ================================================ */

.everything {
  padding: 18vh var(--gutter) 16vh;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.2);
  overflow: hidden;
  transition:
    border-color 0.4s,
    transform 0.5s var(--ease);
}
.cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, -40%), rgba(120, 140, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.cell:hover {
  border-color: rgba(140, 156, 255, 0.36);
  transform: translateY(-4px);
}
.cell:hover::after {
  opacity: 1;
}
.cell-wide {
  grid-column: span 2;
}
.cell h3 {
  margin: 20px 0 8px;
  font: 800 clamp(1.7rem, 2.2vw, 2.25rem) / 1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.cell p {
  color: var(--ink-2);
  font-size: 0.98rem;
  max-width: 34rem;
}
.cell-art {
  position: relative;
  height: 168px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.art-library {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 16px;
  align-items: center;
}
.thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0.45;
  transition:
    opacity 0.5s,
    transform 0.5s var(--ease);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb i {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
}
.thumb.t0,
.thumb.t2,
.thumb.t3,
.thumb.t6 {
  opacity: 1;
  transform: translateY(-5px);
  outline: 1.5px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}
.thumb.t0 i,
.thumb.t2 i,
.thumb.t3 i,
.thumb.t6 i {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.thumb.t5 i {
  background: var(--bad);
}

.art-people {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}
.art-people i {
  font-style: normal;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.art-people i:nth-child(1) { background: rgba(255, 150, 120, 0.2); color: #ffd3c6; border-color: rgba(255, 150, 120, 0.45); }
.art-people i:nth-child(3) { background: rgba(110, 160, 255, 0.2); color: #cfe0ff; border-color: rgba(110, 160, 255, 0.45); }
.art-people i:nth-child(4) { background: rgba(255, 90, 130, 0.2); color: #ffc9d8; border-color: rgba(255, 90, 130, 0.45); }

.art-wheels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.art-wheels i {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(20, 22, 30, 0.96) 0 22%, transparent 70%),
    conic-gradient(from 90deg, #ff5e5e, #ffd35e, #6dff7b, #5ee6ff, #6a7bff, #e85eff, #ff5e5e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.art-wheels i::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  left: 56%;
  top: 30%;
}
.art-wheels i:nth-child(2)::after { left: 38%; top: 48%; }
.art-wheels i:nth-child(3)::after { left: 60%; top: 60%; }

.art-lens {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 100%,
    rgba(255, 255, 255, 0.02);
}
.art-lens i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(150, 170, 255, 0.55);
}
.art-lens i:nth-child(1) { width: 132px; height: 132px; background: radial-gradient(circle at 35% 30%, rgba(140, 160, 255, 0.35), rgba(10, 12, 20, 0.9) 65%); }
.art-lens i:nth-child(2) { width: 92px; height: 92px; border-color: rgba(255, 255, 255, 0.25); }
.art-lens i:nth-child(3) { width: 46px; height: 46px; background: radial-gradient(circle at 40% 35%, #b9a4ff, #2b2f6d 70%); }

.art-land {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.art-land i {
  background: url('/img/pillars-640.webp') center / 400% 100%;
}
.art-land i:nth-child(1) { background-position: 0% 50%; filter: saturate(0.5) contrast(0.8); }
.art-land i:nth-child(2) { background-position: 33.3% 50%; filter: contrast(1.3) saturate(1.1); }
.art-land i:nth-child(3) { background-position: 66.6% 50%; filter: saturate(1.5) brightness(0.92); }
.art-land i:nth-child(4) { background-position: 100% 50%; filter: brightness(1.14) saturate(1.2) blur(0.6px); }

.art-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}
.slide {
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.7s var(--ease);
}
.slide img {
  width: 300%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.slide.s1 img { transform: translateX(-33.333%); }
.slide.s2 img { transform: translateX(-66.666%); }
.cell:hover .slide.s0 { transform: translateX(10px); }
.cell:hover .slide.s2 { transform: translateX(-10px); }

.art-history {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 0 22px;
}
.art-history i {
  height: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.art-history i:nth-child(1) { width: 62%; }
.art-history i:nth-child(2) { width: 84%; }
.art-history i:nth-child(3) { width: 48%; background: var(--grad-brand); }
.art-history i:nth-child(4) { width: 70%; opacity: 0.4; }

.art-lines {
  display: grid;
  place-items: center;
}
.art-lines i {
  width: 96px;
  height: 118px;
  border: 2px solid rgba(160, 176, 255, 0.85);
  border-radius: 3px;
  background:
    linear-gradient(rgba(160, 176, 255, 0.4) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, rgba(160, 176, 255, 0.4) 1px, transparent 1px) 0 0 / 24px 100%;
  transform: perspective(300px) rotateX(24deg) rotateZ(-5deg);
  transition: transform 0.9s var(--ease);
}
.cell:hover .art-lines i {
  transform: none;
}

.art-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.art-lang b {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  font: 800 2rem var(--display);
  color: var(--ink-2);
}
.art-lang b:first-child {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.versus {
  padding: clamp(10px, 2vw, 28px);
  overflow-x: auto;
}
.versus table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
}
.versus th,
.versus td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 400;
  vertical-align: middle;
}
.versus thead th {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--line-2);
}
.versus tbody th {
  color: var(--ink);
  font-weight: 500;
  width: 30%;
}
.versus .us {
  background: linear-gradient(180deg, rgba(98, 116, 255, 0.18), rgba(98, 116, 255, 0.1));
  border-left: 1px solid rgba(130, 150, 255, 0.35);
  border-right: 1px solid rgba(130, 150, 255, 0.35);
  color: #fff;
}
.versus thead .us {
  border-top: 1px solid rgba(130, 150, 255, 0.35);
  border-radius: 14px 14px 0 0;
}
.versus thead .us span {
  font: 800 1.9rem var(--display);
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.versus tbody tr:last-child .us {
  border-bottom: 1px solid rgba(130, 150, 255, 0.35);
  border-radius: 0 0 14px 14px;
}
.versus tbody tr:last-child th,
.versus tbody tr:last-child td:not(.us) {
  border-bottom: 0;
}
.versus-note {
  margin-top: 16px;
  padding: 0 6px;
  font-size: 0.84rem;
  color: var(--ink-3);
}
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 18px;
  padding: 24px clamp(20px, 3vw, 34px);
  border: 1px solid rgba(130, 150, 255, 0.36);
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(98, 116, 255, 0.2), rgba(98, 116, 255, 0.05));
  backdrop-filter: blur(16px);
}
.inline-cta p {
  flex: 1 1 320px;
  font-size: 1.08rem;
  color: var(--ink-2);
}
.inline-cta b {
  display: block;
  font: 800 clamp(1.6rem, 2.4vw, 2.3rem) / 1.05 var(--display);
  text-transform: uppercase;
  color: #fff;
}

.gallery {
  position: relative;
  height: 420vh;
}
.gallery-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4vh;
  padding-top: var(--header);
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.82) 16%, rgba(5, 6, 10, 0.82) 84%, transparent);
}
.gallery-head {
  padding: 0 var(--gutter);
}
.gallery-head .chapter-title {
  margin: 14px 0 0;
  font-size: clamp(2.3rem, 4.6vw, 4.6rem);
}
.gallery-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.shot {
  position: relative;
  flex: none;
  height: min(56vh, 620px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9);
}
.shot img {
  height: 100%;
  width: auto;
  max-width: none;
}
.shot.tall { aspect-ratio: 4 / 5; }
.shot.wide { aspect-ratio: 6574 / 4118; }
.shot.square { aspect-ratio: 1; }
.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 500 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px #000;
}
.gallery-credit {
  padding: 0 var(--gutter);
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* == 11  Call to action and FAQ =============================================================== */

.cta {
  position: relative;
  padding: 26vh var(--gutter) 12vh;
  text-align: center;
}
.cta-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  min-height: 78vh;
  align-content: center;
}
.cta-title {
  font: 800 clamp(4.6rem, 15vw, 17rem) / 0.82 var(--display);
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.cta-lede {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  color: #d5dae3;
  text-shadow: 0 2px 22px #05060a, 0 0 8px #05060a;
}
.cta-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
  padding: 16px 22px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(14px);
  text-align: left;
  text-decoration: none;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    background 0.35s;
}
.platform:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 156, 255, 0.7);
  background: rgba(98, 116, 255, 0.14);
}
.platform svg {
  color: #b9c6ff;
}
.platform b {
  display: block;
  font-weight: 600;
}
.platform small {
  color: var(--ink-3);
  font-size: 0.84rem;
}
.platform.is-detected {
  border-color: rgba(140, 156, 255, 0.7);
  box-shadow: 0 0 60px -18px rgba(110, 124, 255, 0.9);
}
.platform.is-soon {
  opacity: 0.55;
}

.faq {
  max-width: 880px;
  margin: 4vh auto 0;
  padding: 6px clamp(18px, 3vw, 34px);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.2);
}
.faq details + details {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 22px 44px 22px 2px;
  font-size: 1.14rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq p {
  padding: 0 44px 24px 2px;
  color: var(--ink-2);
}

/* == 12  Download page and one-time codes ====================================================== */

.dl,
.doc,
.message {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header) + clamp(48px, 9vh, 110px)) var(--gutter) 60px;
}
.dl-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 44px;
}
.dl-title {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  font: 800 clamp(4rem, 11vw, 10.5rem) / 0.84 var(--display);
  text-transform: uppercase;
}
.dl-version {
  margin-top: 0.5em;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 clamp(0.9rem, 1.3vw, 1.1rem) var(--mono);
  letter-spacing: 0;
  text-transform: none;
  color: #cdd6ff;
  background: rgba(98, 116, 255, 0.14);
}
.dl-meta {
  font-size: 0.95rem;
  color: var(--ink-3);
}
.dl-meta a {
  color: #a9bcff;
}

.dl-lock {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding: 18px 22px;
  border: 1px solid rgba(130, 150, 255, 0.36);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(98, 116, 255, 0.16), rgba(98, 116, 255, 0.05));
  backdrop-filter: blur(14px);
}
.dl-lock.plain {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.dl-lock svg {
  flex: none;
  margin-top: 3px;
  color: #a9bcff;
}
.dl-lock strong {
  display: block;
}
.dl-lock span {
  color: var(--ink-2);
}
.dl-notice {
  margin-top: 8px;
  color: var(--ink-2);
}
.dl-notice a {
  color: #a9bcff;
}
.dl-notice p + p {
  margin-top: 6px;
}

.dl-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.2);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s;
}
.dl-card:hover {
  transform: translateY(-5px);
  border-color: rgba(140, 156, 255, 0.4);
}
.dl-card.is-detected {
  border-color: rgba(140, 156, 255, 0.7);
  background: linear-gradient(170deg, rgba(98, 116, 255, 0.2), rgba(11, 13, 19, 0.72) 55%);
  box-shadow: 0 30px 100px -30px rgba(100, 116, 255, 0.85);
}
.dl-card.is-empty {
  opacity: 0.72;
}
.dl-badge {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad-brand);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dl-card-icon {
  color: #b9c6ff;
  margin-bottom: 10px;
}
.dl-card h2 {
  font: 800 2.9rem / 1 var(--display);
  text-transform: uppercase;
}
.dl-card-sub {
  color: var(--ink-2);
  font-size: 0.95rem;
  min-height: 1.6em;
}
.dl-button {
  width: 100%;
  margin-top: 14px;
}
.dl-others {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  font-size: 0.93rem;
}
.dl-others li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
}
.dl-others a {
  color: #a9bcff;
  text-decoration: none;
}
.dl-others a:hover {
  text-decoration: underline;
}
.dl-others.wide {
  max-width: 560px;
}
.dl-hash {
  width: 100%;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--ink-3);
}
.dl-hash summary {
  cursor: pointer;
}
.dl-hash code {
  display: block;
  margin-top: 8px;
  font: 11.5px/1.5 var(--mono);
  overflow-wrap: anywhere;
  color: var(--ink-2);
}

.dl-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.dl-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(11, 13, 19, 0.55);
  backdrop-filter: blur(16px);
}
.dl-panel h2 {
  margin: 12px 0 16px;
  font: 800 2rem / 1 var(--display);
  text-transform: uppercase;
}
.dl-panel .soft {
  color: var(--ink-3);
}
.dl-steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.dl-steps strong {
  color: #fff;
}
.dl-reqs {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.dl-reqs li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}
.dl-reqs span {
  color: var(--ink-3);
}

.prose {
  color: var(--ink-2);
}
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
  margin: 1.5em 0 0.5em;
  color: #fff;
  font: 600 1.25rem var(--text);
}
.prose p,
.prose ul {
  margin: 0 0 0.9em;
}
.prose ul {
  padding-left: 20px;
  list-style: disc;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose a {
  color: #a9bcff;
}
.prose code {
  font: 0.9em var(--mono);
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}
.prose strong {
  color: #fff;
}

.dl-previous {
  margin-top: 56px;
}
.dl-previous h2 {
  margin: 12px 0 18px;
  font: 800 2.6rem / 1 var(--display);
  text-transform: uppercase;
}
.dl-archive {
  border-top: 1px solid var(--line);
}
.dl-archive > li {
  border-bottom: 1px solid var(--line);
}
.dl-archive summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: baseline;
  padding: 16px 2px;
  cursor: pointer;
}
.dl-archive-version {
  font-weight: 600;
  min-width: 110px;
}
.dl-archive-date,
.dl-archive-platforms {
  color: var(--ink-3);
  font-size: 0.93rem;
}
.dl-archive-body {
  padding: 0 2px 20px;
}

.dl-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px);
  margin-top: 64px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.dl-promise > div {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.dl-promise h3 {
  margin-bottom: 6px;
  font: 600 1.45rem / 1.05 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.dl-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 44px;
  border: 1px dashed var(--line-2);
  border-radius: 22px;
}
.dl-empty h2 {
  font: 800 2.4rem / 1 var(--display);
  text-transform: uppercase;
}
.dl-empty p {
  color: var(--ink-2);
}

/* -- the code dialog -------------------------------------------------------------------------- */
.unlock {
  width: min(500px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(140, 156, 255, 0.4);
  border-radius: 24px;
  background: #0b0d14;
  color: var(--ink);
  box-shadow:
    0 50px 140px -20px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(100, 116, 255, 0.75);
  overflow: hidden;
}
/* Shown in the page (no JavaScript): an ordinary block above the downloads. */
.unlock[open]:not(:modal) {
  position: relative;
  margin: 0 auto 26px;
}
.unlock::backdrop {
  background: rgba(3, 4, 8, 0.74);
  backdrop-filter: blur(10px);
}
.unlock:modal {
  animation: unlock-in 0.45s var(--ease);
}
@keyframes unlock-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
}
.unlock-form,
.unlock-done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 38px clamp(22px, 5vw, 40px) 30px;
  text-align: center;
}
.unlock-done[hidden],
.unlock-form[hidden] {
  display: none;
}
.unlock-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
  cursor: pointer;
}
.unlock-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.unlock-close[hidden] {
  display: none;
}
.unlock-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: var(--grad-brand);
  box-shadow: 0 16px 44px -10px rgba(100, 116, 255, 0.95);
}
.unlock-icon.ok {
  background: linear-gradient(135deg, #1fb981, #34d399);
  box-shadow: 0 16px 44px -10px rgba(52, 211, 153, 0.9);
}
.unlock h2 {
  font: 800 2.3rem / 1 var(--display);
  text-transform: uppercase;
}
.unlock-for {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.unlock-for strong {
  color: #fff;
  font-weight: 600;
}
.unlock-field {
  width: 100%;
  margin-top: 8px;
}
.unlock-input {
  width: 100%;
  padding: 17px 10px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: #06070b;
  color: #fff;
  font: 600 clamp(1.02rem, 4.4vw, 1.36rem) var(--mono);
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.unlock-input::placeholder {
  color: #3d4350;
  letter-spacing: 0.07em;
}
.unlock-input:focus {
  outline: none;
  border-color: #7d95ff;
  box-shadow: 0 0 0 5px rgba(98, 116, 255, 0.25);
}
.unlock-form.is-wrong .unlock-input {
  border-color: var(--bad);
  box-shadow: 0 0 0 5px rgba(255, 122, 112, 0.18);
  animation: shake 0.42s;
}
@keyframes shake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.unlock-error {
  color: var(--bad);
  font-size: 0.95rem;
}
.unlock-error[hidden] {
  display: none;
}
.unlock-submit {
  width: 100%;
  margin-top: 6px;
}
.unlock-submit.is-busy {
  pointer-events: none;
  opacity: 0.75;
}
.unlock-submit.is-busy span::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.unlock-small {
  max-width: 24rem;
  font-size: 0.86rem;
  color: var(--ink-3);
}
.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* == 13  Small pages ============================================================================ */

.doc h1,
.message h1 {
  margin: 18px 0 22px;
  font: 800 clamp(3rem, 8vw, 7rem) / 0.88 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.doc .prose {
  max-width: 46rem;
  margin-top: 44px;
  font-size: 1.04rem;
}
.message {
  min-height: 82vh;
  display: grid;
  align-content: center;
  justify-items: start;
}
.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* == 14  Motion, small screens =================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .bento [data-reveal]:nth-child(3n + 2) { transition-delay: 0.08s; }
.js .bento [data-reveal]:nth-child(3n) { transition-delay: 0.16s; }
.js .stats [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js .stats [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.js .stats [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .app-body {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .app-strip {
    display: none;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .dl-platforms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }
  .hero {
    align-items: flex-end;
  }
  .scroll-cue {
    display: none;
  }
  /* Words below, the 3D form above them. */
  .beat-pin,
  .beat-flip .beat-pin {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 9vh;
  }
  .beat-text::before {
    inset: -30% -20% -40%;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.86) 34%);
  }
  .app {
    height: auto;
    max-height: 100%;
  }
  .app-modes i:not(.on),
  .app-file {
    display: none;
  }
  .app-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .app-stage {
    padding: 10px;
    aspect-ratio: 1;
  }
  .app-panel {
    border-left: 0;
    border-top: 1px solid #23272f;
    padding: 10px 12px;
  }
  .histogram,
  .panel-title {
    display: none;
  }
  .sliders {
    grid-template-columns: 1fr 1fr;
    gap: 7px 16px;
  }
  .slider {
    grid-template-columns: 62px minmax(0, 1fr) 34px;
    gap: 7px;
    font-size: 11.5px;
  }
  .masks {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
  }
  .mask-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .mask-tab {
    padding: 10px 8px 10px 12px;
  }
  .mask-tab b {
    font-size: 1.05rem;
  }
  .mask-tab span,
  .mask-more,
  .mask-adjust .panel-title,
  .masks-side .pin-caption {
    display: none;
  }
  .mask-adjust {
    padding: 10px 12px;
    gap: 7px;
  }
  .split-demo,
  .split-demo.flip {
    grid-template-columns: 1fr;
  }
  .split-demo.flip .split-text {
    order: 0;
    padding: 6px 8px 14px;
  }
  .split-text {
    padding: 6px 8px 14px;
  }
  .compare {
    height: 62vh;
  }
  .frame {
    width: min(64vw, 40vh);
  }
  .merge-planet {
    width: min(86vw, 46vh);
  }
  .merge-chips {
    display: none;
  }
  .merge-hdr {
    bottom: 140px;
  }
  .merge-text {
    height: 130px;
  }
  /* The eclipse is very wide: on a phone, show the sun and the clouds being removed to its right. */
  .remove-view {
    aspect-ratio: 16 / 10;
  }
  .remove-inner {
    inset: 0 auto 0 0;
    height: 100%;
    aspect-ratio: 2000 / 611;
    transform: translateX(-42%);
  }
  .remove-tools {
    display: none;
  }
  .trio,
  .dl-promise {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .cell-wide {
    grid-column: auto;
  }
  .art-library {
    grid-template-columns: repeat(4, 1fr);
    height: auto;
  }
  .shot {
    height: 46vh;
  }
  .platform {
    min-width: 0;
    flex: 1 1 100%;
  }
  .fab {
    height: 50px;
    padding: 0 20px 0 16px;
  }
  .fab em {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .dl-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain,
  .fab::before {
    display: none;
  }
}
