/*
 * lckdn.app. The colours, radii and the 4 point grid are the app's own design tokens
 * (Lckdn/Design/Tokens.swift), and the pushed out blocks follow the brand mark's light:
 * faces off white, walls orange to the right and darker underneath.
 *
 * The page is built to be scrolled. Each tall section holds a pinned stage, and site.js writes how
 * far through it the page is (--p, plus a few named ranges) for the styles here to act on. With
 * scripting off, or Reduce Motion on, <html> keeps the class "static" and everything below lays
 * out as a plain page.
 */

:root {
  --base: #0f1115;
  --raised: #171a20;
  --elevated: #1e222a;
  --control: #2a2f39;
  --text: #f2f3f5;
  --text-2: #b5bac1;
  --muted: #8a919c;
  --accent: #ff6a3d;
  --accent-pressed: #e85a2f;
  --shade: #b34a2b;
  --deep-shade: #7a2f18;
  --on-accent: #1a0b05;
  --in: #3fb950;
  --maybe: #e3b341;
  --out: #f85149;
  --amber: #ffb65c;
  --deep-red: #b01c14;
  --sep: rgba(255, 255, 255, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --margin: clamp(20px, 4vw, 64px);
  --nav: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --snap: cubic-bezier(0.3, 1.5, 0.4, 1);
  --vh: 1vh;
}

@supports (height: 1svh) {
  :root { --vh: 1svh; }
}

* { box-sizing: border-box; }

html {
  background: var(--base);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { margin: 0; overflow-x: clip; line-height: 1.5; }

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: min(100% - 2 * var(--margin), 1280px); margin-inline: auto; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--text); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow__tag { padding: 6px 8px; background: var(--accent); color: var(--on-accent); letter-spacing: 0.06em; }

.display {
  font-size: clamp(40px, 7.2vw, 112px); line-height: 0.94; font-weight: 800; letter-spacing: -0.045em;
  text-wrap: balance;
}
.lede { max-width: 34em; font-size: clamp(17px, 1.5vw, 21px); color: var(--text-2); }

/*
 * Text pushed out like the mark: a stack of hard shadows down and to the right, in the mark's own
 * 44 to 60 slope, orange near the face and darker further back.
 */
.x {
  --xd: 1;
  color: var(--text);
  text-shadow:
    calc(var(--xd) * 0.0044em) calc(var(--xd) * 0.006em) 0 var(--accent),
    calc(var(--xd) * 0.0088em) calc(var(--xd) * 0.012em) 0 var(--accent),
    calc(var(--xd) * 0.0132em) calc(var(--xd) * 0.018em) 0 var(--accent),
    calc(var(--xd) * 0.0176em) calc(var(--xd) * 0.024em) 0 var(--accent),
    calc(var(--xd) * 0.022em) calc(var(--xd) * 0.03em) 0 var(--accent),
    calc(var(--xd) * 0.0264em) calc(var(--xd) * 0.036em) 0 var(--accent),
    calc(var(--xd) * 0.0308em) calc(var(--xd) * 0.042em) 0 var(--accent-pressed),
    calc(var(--xd) * 0.0352em) calc(var(--xd) * 0.048em) 0 var(--accent-pressed),
    calc(var(--xd) * 0.0396em) calc(var(--xd) * 0.054em) 0 var(--accent-pressed),
    calc(var(--xd) * 0.044em) calc(var(--xd) * 0.06em) 0 var(--shade),
    calc(var(--xd) * 0.0484em) calc(var(--xd) * 0.066em) 0 var(--shade),
    calc(var(--xd) * 0.0528em) calc(var(--xd) * 0.072em) 0 var(--shade),
    calc(var(--xd) * 0.0572em) calc(var(--xd) * 0.078em) 0 var(--shade);
}

/* A line that rises through its own mask. */
.line { display: block; overflow: hidden; padding: 0.06em 0.1em 0.12em 0.02em; margin: -0.06em -0.1em -0.12em -0.02em; }
.line > span { display: inline-block; transform: translateY(calc((1 - var(--rise, 1)) * 112%)); }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.is-in .w > span, .static .w > span { transform: none; }

[data-reveal] {
  clip-path: inset(0 100% 0 0); transform: translateX(-16px);
  transition: clip-path 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in, .static [data-reveal] { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- The block: a face with two walls ---------- */

.block {
  --px: 7px; --py: 9.55px; --out: 1;
  --face: var(--text); --ink: var(--on-accent); --wall-r: var(--accent); --wall-d: var(--shade);
  position: relative; display: inline-flex; align-items: center; gap: 0.5em;
  margin: 0 var(--px) var(--py) 0; padding: 0.8em 1.15em;
  background: var(--face); color: var(--ink);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transform: translate(calc((1 - var(--out)) * var(--px)), calc((1 - var(--out)) * var(--py)));
  transition: transform 0.28s var(--snap), background-color 0.2s;
}
.block::before, .block::after { content: ""; position: absolute; transform-origin: 0 0; transition: width 0.28s var(--snap), height 0.28s var(--snap); }
/* The wall that faces right: the right edge swept along the push. */
.block::before { left: 100%; top: 0; height: 100%; width: calc(var(--px) * var(--out)); background: var(--wall-r); transform: skewY(53.746deg); }
/* The wall that faces down. */
.block::after { top: 100%; left: 0; width: 100%; height: calc(var(--py) * var(--out)); background: var(--wall-d); transform: skewX(36.254deg); }
.block--accent { --face: var(--accent); --wall-r: var(--shade); --wall-d: var(--deep-shade); }
.block--quiet { --face: var(--control); --ink: var(--text); --wall-r: #1b1e25; --wall-d: #111318; }
a.block:hover { --out: 1.5; }
a.block:active, .block.is-pressed { --out: 0.12; }

.soon { font: 600 13px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 10px; background: var(--control); font: 600 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }

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

.phone {
  --w: 280px;
  position: relative; width: var(--w); flex: none; padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(140deg, #4a4f5a 0%, #1b1d22 18%, #0a0b0d 55%, #23262d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 60px 120px -30px rgba(0, 0, 0, 0.75), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}
.phone__screen { position: relative; aspect-ratio: 1206 / 2622; overflow: hidden; border-radius: calc(var(--w) * 0.142); background: #000; }
.phone__island {
  position: absolute; left: 50%; top: calc(var(--w) * 0.062); width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.085);
  border-radius: 99px; background: #000; transform: translateX(-50%);
}
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
[data-at].shot { visibility: hidden; }
[data-at].shot.is-under { visibility: visible; z-index: 1; }
[data-at].shot.is-on { visibility: visible; z-index: 2; animation: wipe-up 0.7s var(--ease) both; }
.static [data-at].shot:first-child { visibility: visible; }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--margin);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.nav.is-solid { background: rgba(15, 17, 21, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__mark { width: 30px; height: 31px; }
.nav__word { width: 86px; height: 27px; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.nav__links a { position: relative; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav__links a:hover, .nav__links a.is-here { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: scaleX(1); }
.nav__soon { padding: 9px 12px; background: var(--text); color: var(--on-accent); font: 700 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }

/* The lock meter under the bar: one cell per step of the page, the last one locking it. */
.cells { position: fixed; left: 0; right: 0; top: var(--nav); z-index: 49; display: flex; gap: 2px; height: 3px; padding: 0 var(--margin); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cells.is-solid { opacity: 1; }
.cells i { flex: 1; background: rgba(255, 255, 255, 0.09); transition: background-color 0.25s, transform 0.25s var(--snap); transform-origin: 50% 0; }
.cells i.is-on { background: var(--accent); transform: scaleY(1.7); }
.cells.is-locked i { background: var(--text); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__soon { margin-left: auto; }
}

/* ---------- Pinned stages ---------- */

[data-scene] { position: relative; }
.pin { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; }

.opening { height: calc(var(--vh) * 780); }
.panels { height: calc(var(--vh) * 520); }
.duo { height: calc(var(--vh) * 600); }
.discord { height: calc(var(--vh) * 600); }
.get { height: calc(var(--vh) * 240); }

/* ---------- Opening: hero ---------- */

.hero {
  position: absolute; inset: 0; z-index: 2; background: var(--base);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 4vw;
  padding: calc(var(--nav) + 2vh) var(--margin) 6vh;
}
.hero__grid, .stage__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--sep) 1px, transparent 1px), linear-gradient(90deg, var(--sep) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%);
}
.hero__copy { position: relative; display: grid; gap: clamp(18px, 3vh, 32px); justify-items: start; }
.hero__title {
  font-size: clamp(54px, 9.4vw, 168px); line-height: 0.88; font-weight: 800; letter-spacing: -0.055em;
}
/* On the way out the two lines slide apart, as the brackets do. */
.hero__title .line:nth-child(1) { transform: translateX(calc(var(--hero, 0) * -22vw)); }
.hero__title .line:nth-child(2) { transform: translateX(calc(var(--hero, 0) * 22vw)); }
.hero__copy > .eyebrow, .hero__lede, .hero__cta { opacity: calc(1 - var(--hero, 0) * 2.4); transform: translateY(calc(var(--hero, 0) * -40px)); }
.hero__title { opacity: calc(1.25 - var(--hero, 0) * 1.6); }
/* The first paint: the lines rise and the rest follows, once the page has loaded. */
.hero .line > span { transition: transform 1.1s var(--ease); }
.hero .line:nth-child(2) > span { transition-delay: 0.09s; }
html:not(.static):not(.is-ready) .hero .line > span { transform: translateY(112%); }
html:not(.static) .hero__copy > :not(.hero__title) { transition: opacity 0.35s; }
html:not(.static):not(.is-ready) .hero__copy > :not(.hero__title) { opacity: 0; }
.hero__lede { max-width: 30em; font-size: clamp(17px, 1.45vw, 22px); color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.hero__cta .block { font-size: clamp(15px, 1.2vw, 18px); }
.hero__markslot { justify-self: center; width: min(34vw, calc(var(--vh) * 52)); aspect-ratio: 644 / 660; }
/* The mark drawn once, for the plain page; with motion on, the travelling one stands here. */
.hero__plainmark { display: none; width: 100%; height: 100%; }
.hero__scroll {
  position: absolute; left: var(--margin); bottom: 3.5vh; display: flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  opacity: calc(1 - var(--hero, 0) * 4);
}
.hero__scroll i { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); animation: bob 1.6s var(--ease) infinite alternate; }
@keyframes bob { to { transform: translateY(8px) rotate(45deg); } }

/* The mark and the brackets that travel through the opening are one canvas over both layers. */
.hud { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 2vh; padding-top: calc(var(--nav) + 3vh); }
  .hero__markslot { order: -1; width: min(46vw, calc(var(--vh) * 26)); }
  .hero__copy { align-self: start; }
  .hero__title { font-size: clamp(50px, 15.5vw, 96px); }
}

/* ---------- Opening: the stage behind the diamond ---------- */

.stage {
  position: absolute; inset: 0; z-index: 1; background: #0a0c0f;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--nav) + 2vh) var(--margin) 4vh;
}
.stage__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 108%, rgba(255, 106, 61, 0.42), transparent 70%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(255, 182, 92, 0.1), transparent 70%);
  opacity: calc(0.5 + var(--locked, 0) * 0.5);
}
.stage__grid { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 75%); }

/* The count behind the phone, as large as the stage. */
.readout {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: min(46vw, calc(var(--vh) * 78)); font-weight: 800; letter-spacing: -0.07em; line-height: 1;
  font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 243, 245, 0.09);
  transform: scale(calc(1.12 - var(--portal, 0) * 0.12));
}
.readout span { grid-area: 1 / 1; opacity: 0; transform: translateY(8%); transition: opacity 0.4s, transform 0.6s var(--ease); }
.readout span.is-on { opacity: 1; transform: none; }
.readout span.is-past { transform: translateY(-8%); }
.is-locked .readout { -webkit-text-stroke-color: rgba(255, 106, 61, 0.38); }

.stage__phone {
  position: relative; grid-column: 2;
  transform: translateY(calc((1 - var(--portal, 0)) * 16vh)) scale(calc(0.82 + var(--portal, 0) * 0.18 - var(--clamp, 0) * 0.02));
}
.stage__phone .phone { --w: clamp(190px, calc(var(--vh) * 32.5), 370px); }

.captions { position: relative; grid-column: 1; justify-self: end; width: min(100%, 460px); height: 60vh; opacity: var(--portal, 0); }
.caption { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; opacity: 0; transform: translateY(48px); transition: opacity 0.45s, transform 0.7s var(--ease); pointer-events: none; }
.caption.is-on { opacity: 1; transform: none; }
.caption.is-past { transform: translateY(-48px); }
.caption__n { font: 600 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.caption__t { font-size: clamp(38px, 4.6vw, 76px); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; }
.caption__p { max-width: 26em; font-size: clamp(16px, 1.2vw, 19px); color: var(--text-2); }

.lock { position: relative; grid-column: 3; display: grid; gap: 22px; justify-items: start; width: min(100%, 360px); opacity: var(--portal, 0); transform: translateX(calc((1 - var(--portal, 0)) * 60px)); }
.lock__label { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.answers { display: flex; flex-wrap: wrap; gap: 10px; }
.answers .block { font-size: 17px; --out: 0; opacity: 0; transition: transform 0.28s var(--snap), background-color 0.2s, opacity 0.3s; }
.gte-2 .answers .block { --out: 1; opacity: 1; }
.gte-2 .answers .block:nth-child(2) { transition-delay: 0.08s; }
.gte-2 .answers .block:nth-child(3) { transition-delay: 0.16s; }
.is-locked .answers .block--in { --out: 0.12; --face: var(--in); --ink: #04210b; --wall-r: #2a8a39; --wall-d: #1c6127; }
.is-locked .answers .block--quiet { opacity: 0.4; }

.meter { display: grid; gap: 8px; padding: 16px; background: var(--raised); min-width: 250px; }
.meter__pips { display: flex; gap: 6px; }
.meter__pips i { width: 44px; height: 10px; background: var(--control); transition: background-color 0.3s, transform 0.35s var(--snap); }
.meter__pips i.is-on { background: var(--text); transform: translateY(-2px); }
.is-locked .meter__pips i { background: var(--in); }
.meter__count { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.meter__state { position: relative; height: 1.5em; font: 600 13px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meter__state span { position: absolute; left: 0; top: 0; transition: opacity 0.3s, transform 0.4s var(--ease); }
.meter__locked { color: var(--in); opacity: 0; transform: translateY(100%); }
.is-locked .meter__open { opacity: 0; transform: translateY(-100%); }
.is-locked .meter__locked { opacity: 1; transform: none; }

/* The ready ripple, as in the app: hard squares leaving the phone. */
.ripple { position: absolute; inset: 0; pointer-events: none; }
.ripple i { position: absolute; inset: -2%; border: 2px solid var(--accent); opacity: 0; }
.is-locked .ripple i { animation: ripple 1.1s var(--ease) both; }
.is-locked .ripple i:nth-child(2) { animation-delay: 0.12s; }
.is-locked .ripple i:nth-child(3) { animation-delay: 0.24s; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; justify-items: center; gap: 2vh; padding-top: calc(var(--nav) + 1vh); padding-bottom: 0; }
  .captions { grid-column: 1; grid-row: 1; justify-self: stretch; width: 100%; height: calc(var(--vh) * 27); }
  .caption { gap: 8px; align-content: start; }
  .caption__t { font-size: clamp(30px, 9vw, 44px); }
  .caption__p { font-size: 15px; }
  .stage__phone { grid-column: 1; grid-row: 2; }
  .stage__phone .phone { --w: min(62vw, calc(var(--vh) * 30)); }
  .lock { position: absolute; grid-column: auto; left: var(--margin); right: var(--margin); bottom: 14px; z-index: 4; width: auto; gap: 0; }
  .lock__label, .answers { display: none; }
  .meter { width: 100%; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 12px; background: rgba(23, 26, 32, 0.94); }
  .meter__pips i { width: 28px; }
  .meter__count { font-size: 15px; }
  .meter__state { grid-column: 1 / -1; }
  .readout { display: none; }
}

/* ---------- Panels ---------- */

.panels { background: var(--base); }
.panels__head { position: absolute; left: var(--margin); right: var(--margin); top: calc(var(--nav) + 2.5vh); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.panels__progress { flex: 0 1 240px; height: 2px; background: var(--control); }
.panels__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.track { display: flex; height: 100%; width: max-content; will-change: transform; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); }
.slab {
  position: relative; flex: none; width: min(88vw, 1320px); height: 100%; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: 3vw;
  padding: calc(var(--nav) + 9vh) clamp(24px, 5vw, 88px) 7vh;
  background: var(--raised);
}
.slab:nth-child(even) { background: #12151a; }
.slab:first-child { margin-left: 6vw; }
.slab:last-child { margin-right: 6vw; }
/* Each slab is a block seen from the front: its right wall shows between it and the next. */
.slab::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(var(--accent), var(--shade)); z-index: 2; }
.slab__copy { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; transform: translateX(calc(var(--o, 0) * 6vw)); }
.slab__n { font: 600 14px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.slab__t { font-size: clamp(44px, 6.4vw, 104px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; }
.slab__p { max-width: min(27em, 100%); font-size: clamp(16px, 1.3vw, 20px); color: var(--text-2); }
.slab__shots { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; }
.slab__shots .phone { --w: clamp(180px, calc(var(--vh) * 29), 320px); grid-area: 1 / 1; }
.phone--back { transform: translate(calc(-44% + var(--o, 0) * 9vw), -5%) rotate(calc(-7deg + var(--o, 0) * 5deg)) scale(0.9); filter: brightness(0.62); }
.phone--front { transform: translate(calc(26% + var(--o, 0) * -5vw), 5%) rotate(calc(4deg + var(--o, 0) * -5deg)); }
.slab__ghost {
  position: absolute; left: 0; bottom: -0.16em; z-index: 0; white-space: nowrap; pointer-events: none;
  font-size: min(34vw, calc(var(--vh) * 52)); font-weight: 800; letter-spacing: -0.06em; line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 243, 245, 0.07);
  transform: translateX(calc(var(--o, 0) * 34vw));
}

@media (max-width: 860px) {
  .slab { width: 90vw; grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding: calc(var(--nav) + 8vh) 22px 0; gap: 2vh; }
  .slab__copy { gap: 12px; }
  .slab__p { font-size: 15px; }
  .slab .tags { display: none; }
  .slab__shots { align-items: start; }
  .slab__shots .phone { --w: min(46vw, calc(var(--vh) * 24)); }
  .panels__progress { flex-basis: 90px; }
}

/* ---------- iPhone Duo ---------- */

.duo { background: #0a0c0f; }
.duo .pin { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; padding: calc(var(--nav) + 2vh) var(--margin) 4vh; gap: 3vw; }
.duo__copy, .discord__copy { position: relative; z-index: 2; display: grid; gap: 28px; align-content: center; }
.beats { position: relative; height: clamp(250px, 40vh, 380px); }
.beat { position: absolute; inset: 0; display: grid; align-content: start; gap: 18px; opacity: 0; transform: translateY(48px); transition: opacity 0.45s, transform 0.7s var(--ease); pointer-events: none; }
.beat.is-on { opacity: 1; transform: none; }
.beat.is-past { transform: translateY(-48px); }
.beat__t { font-size: clamp(38px, 5vw, 84px); line-height: 0.93; font-weight: 800; letter-spacing: -0.05em; }
.beat__p { max-width: 25em; font-size: clamp(16px, 1.25vw, 19px); color: var(--text-2); }
.postures { display: flex; flex-wrap: wrap; gap: 6px; }
.postures li { padding: 8px 10px; background: var(--raised); font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: background-color 0.3s, color 0.3s; }
.postures li.is-on { background: var(--accent); color: var(--on-accent); }

.duo__stage {
  --hw: min(calc(var(--vh) * 30), 24vw);
  --hh: calc(var(--hw) * 1.407);
  position: relative; height: 100%; perspective: 2000px; perspective-origin: 50% 42%;
}
.duo__floor { position: absolute; left: 50%; top: 50%; width: 120%; height: 60%; transform: translate(-50%, -8%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 106, 61, 0.22), transparent 70%); pointer-events: none; }

.half { padding: calc(var(--hw) * 0.035); background: linear-gradient(140deg, #3d424c, #111316 40%, #0a0b0d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.half__screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.half__img { position: absolute; max-width: none; top: 0; }
.half__img--l { left: 0; width: 200%; height: 100%; }
.half__img--r { left: -100%; width: 200%; height: 100%; }
.half__img--t { left: 0; width: 100%; height: 200%; }
.half__img--b { left: 0; top: -100%; width: 100%; height: 200%; }
.half__img[data-at] { opacity: 0; transition: opacity 0.5s; }
.half__img[data-at].is-on { opacity: 1; }
.cover__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* The book is drawn at its hinge: the base is the right half, the leaf swings over to the left. */
.book {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateZ(calc(var(--turn, 0) * -90deg)) rotateX(calc((1 - var(--open, 0)) * 8deg + var(--tilt-x, 0deg))) rotateY(calc((1 - var(--open, 0)) * -24deg + var(--tilt-y, 0deg)));
  opacity: calc(1 - var(--turn-mix, 0));
}
.book__base, .book__leaf { position: absolute; top: calc(var(--hh) / -2); left: calc((1 - var(--open, 0)) * var(--hw) * -0.5); width: var(--hw); height: var(--hh); }
.book__base { border-radius: 0 calc(var(--hw) * 0.1) calc(var(--hw) * 0.1) 0; padding-left: 0; }
.book__base .half__screen { border-radius: 0 calc(var(--hw) * 0.07) calc(var(--hw) * 0.07) 0; }
.book__leaf { transform-style: preserve-3d; transform-origin: 0 50%; transform: translateZ(1px) rotateY(calc(var(--open, 0) * -180deg)); }
.leaf__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.leaf__face--cover { border-radius: calc(var(--hw) * 0.1); }
.leaf__face--cover .half__screen { border-radius: calc(var(--hw) * 0.07); }
.leaf__face--cover .phone__island { top: calc(var(--hw) * 0.075); width: calc(var(--hw) * 0.27); height: calc(var(--hw) * 0.075); }
.leaf__face--inner { transform: rotateY(180deg); border-radius: calc(var(--hw) * 0.1) 0 0 calc(var(--hw) * 0.1); padding-right: 0; }
.leaf__face--inner .half__screen { border-radius: calc(var(--hw) * 0.07) 0 0 calc(var(--hw) * 0.07); }
.book__crease { position: absolute; top: calc(var(--hh) / -2 + var(--hw) * 0.035); left: -1px; width: 2px; height: calc(var(--hh) - var(--hw) * 0.07); background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.08)); opacity: var(--open, 0); transform: translateZ(2px); }

/* Upright: the same phone turned a quarter, the hinge running across. */
.tent {
  position: absolute; left: 50%; top: 50%; width: var(--hh); height: calc(var(--hw) * 2); margin: calc(var(--hw) * -1) 0 0 calc(var(--hh) / -2);
  transform-style: preserve-3d;
  transform: translateY(calc(var(--fold, 0) * var(--hw) * 0.1)) rotateZ(calc((1 - var(--turn, 0)) * 90deg + var(--fold, 0) * -14deg)) rotateX(calc(var(--fold, 0) * 60deg));
  opacity: var(--turn-mix, 0);
}
.tent .half { position: absolute; left: 0; width: 100%; height: 50%; }
.tent__top { top: 0; border-radius: calc(var(--hw) * 0.1) calc(var(--hw) * 0.1) 0 0; padding-bottom: 0; transform-origin: 50% 100%; transform: rotateX(calc(var(--fold, 0) * -74deg)); }
.tent__top .half__screen { border-radius: calc(var(--hw) * 0.07) calc(var(--hw) * 0.07) 0 0; }
.tent__bottom { top: 50%; border-radius: 0 0 calc(var(--hw) * 0.1) calc(var(--hw) * 0.1); padding-top: 0; }
.tent__bottom .half__screen { border-radius: 0 0 calc(var(--hw) * 0.07) calc(var(--hw) * 0.07); }

@media (max-width: 860px) {
  .duo .pin, .discord .pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 1vh; padding-top: calc(var(--nav) + 2vh); }
  .duo__copy, .discord__copy { gap: 14px; }
  .beats { height: calc(var(--vh) * 22); }
  .beat { gap: 8px; }
  .beat__t { font-size: clamp(30px, 9vw, 44px); }
  .beat__p { font-size: 15px; }
  .postures { display: none; }
  .duo__stage { --hw: min(calc(var(--vh) * 23), 42vw); }
}

/* ---------- Fits ---------- */

.fits { position: relative; padding: 14vh 0 16vh; background: var(--base); overflow: hidden; }
.marquee { overflow: hidden; margin-bottom: 10vh; transform: rotate(-2deg) scale(1.04); }
.marquee__row { display: flex; align-items: center; gap: 0.5em; width: max-content; font-size: clamp(56px, 11vw, 190px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; text-transform: uppercase; white-space: nowrap; animation: slide 36s linear infinite; }
.marquee__row span { color: transparent; -webkit-text-stroke: 1.5px rgba(242, 243, 245, 0.28); }
.marquee__row span:nth-of-type(5n + 2) { color: var(--text); -webkit-text-stroke: 0; }
.marquee__row i { width: 0.34em; height: 0.34em; background: var(--accent); transform: rotate(45deg); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.fits__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.fits__lead { display: grid; gap: 24px; position: sticky; top: calc(var(--nav) + 6vh); }
.specs { display: grid; gap: 3px; }
.spec { position: relative; display: grid; gap: 6px; padding: 22px 24px; background: var(--raised); }
.spec b { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.spec span { color: var(--text-2); max-width: 30em; }
.spec--soon { background: transparent; outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }
.spec--soon b { color: var(--accent); }
.spec--soon { padding-left: 104px; min-height: 132px; align-content: center; }
/* A phone still on the drawing board: outline only, with its centre lines. */
.blueprint { position: absolute; left: 30px; top: 50%; width: 46px; height: 92px; margin-top: -46px; border: 1.5px dashed var(--accent); border-radius: 9px; background: linear-gradient(var(--accent), var(--accent)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) 0 50% / 100% 1px no-repeat; opacity: 0.85; }
.blueprint::before, .blueprint::after { content: ""; position: absolute; left: -12px; right: -12px; height: 1px; background: var(--accent); opacity: 0.5; }
.blueprint::before { top: -8px; }
.blueprint::after { bottom: -8px; }
.spec--soon em { position: absolute; right: 16px; top: 16px; padding: 6px 8px; background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .fits__body { grid-template-columns: 1fr; gap: 5vh; }
  .fits__lead { position: static; }
}

/* ---------- Discord ---------- */

.discord { background: #0a0c0f; }
.discord .pin { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; padding: calc(var(--nav) + 2vh) var(--margin) 4vh; gap: 3vw; }
.discord__stage { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) auto; align-items: center; gap: clamp(20px, 3vw, 56px); }
.discord__phone { position: relative; transform: translateY(calc((0.5 - var(--p, 0)) * 8vh)) rotate(3deg); }
.discord__phone .phone { --w: clamp(150px, calc(var(--vh) * 26), 270px); }

.chat {
  position: relative; display: grid; grid-template-rows: auto 1fr; height: min(calc(var(--vh) * 74), 700px); overflow: hidden;
  background: #2b2d31; color: #dbdee1; font-size: 14.5px; line-height: 1.4;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(calc((var(--p, 0) - 0.5) * 6vh)) rotate(-1.5deg);
}
.chat__bar { display: flex; align-items: baseline; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.3); font-weight: 700; color: #f2f3f5; }
.chat__bar b { color: #80848e; font-size: 20px; line-height: 1; }
.chat__bar span { margin-left: auto; font-size: 12px; font-weight: 500; color: #949ba4; }
.chat__log { display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 0 16px; overflow: hidden; }
.msg { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.6s var(--ease), opacity 0.4s; }
.msg.is-on { grid-template-rows: 1fr; opacity: 1; }
.msg > * { min-height: 0; overflow: hidden; }
.msg { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 0 16px; }
.msg.is-on { padding-top: 14px; }
.msg__av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.msg__av--bot { display: grid; place-items: center; background: linear-gradient(135deg, var(--amber), var(--accent) 50%, var(--deep-red)); }
.msg__av--bot canvas { width: 24px; height: 25px; }
.msg.is-on .msg__av { height: 40px; }
.msg__who { font-weight: 600; color: #f2f3f5; }
.msg__who em { margin: 0 4px; padding: 1px 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; vertical-align: 1px; }
.msg__who time { font-size: 11.5px; font-weight: 400; color: #949ba4; }
.at { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; font-weight: 500; }
.embed { display: grid; margin-top: 6px; max-width: 440px; border-radius: 4px; overflow: hidden; background: #232428; border-left: 4px solid #9c8cff; transition: border-color 0.4s; }
.gte-3 .embed { border-left-color: #3fa97c; }
.embed__main { display: grid; gap: 5px; padding: 12px 14px 10px; }
.embed__title { font-weight: 700; font-size: 16px; color: #00a8fc; }
.embed__line span:not(.at) { color: #949ba4; }
.embed__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.embed__fields div { display: grid; gap: 3px; justify-items: start; align-content: start; font-size: 13.5px; }
.embed__fields b, .embed__status b { font-size: 13px; color: #f2f3f5; }
.at--new { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.3s; }
.gte-3 .at--new { max-height: 2em; opacity: 1; }
.embed__status { display: grid; gap: 2px; margin-top: 6px; font-size: 13.5px; }
.status--locked { display: none; color: #57d38c; font-weight: 600; }
.gte-3 .status--open { display: none; }
.gte-3 .status--locked { display: inline; }
.embed__foot { margin-top: 4px; font-size: 12px; color: #949ba4; }
.embed__art { width: 100%; height: auto; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { padding: 7px 16px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 600; transition: transform 0.15s, filter 0.15s; }
.btn--in { background: #248046; }
.btn--maybe { background: #5865f2; }
.gte-3 .btn--in { animation: press 0.5s var(--ease) both; }
@keyframes press { 30% { transform: scale(0.9); filter: brightness(1.4); } 100% { transform: none; filter: none; } }

.cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; opacity: 0; transition: transform 0.8s var(--ease), opacity 0.3s; clip-path: polygon(0 0, 0 100%, 28% 76%, 48% 100%, 64% 92%, 46% 68%, 78% 64%); background: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); transform: translate(var(--cx, 70%), var(--cy, 90%)); }

/* What crosses between Discord and the phone: three blocks, one after another. */
.link { position: absolute; left: 0; right: 0; top: 50%; height: 0; z-index: 4; pointer-events: none; }
.link i { position: absolute; left: var(--from, 50%); top: -7px; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); opacity: 0; }
.gte-3 .link i { animation: cross 0.9s var(--ease) both; }
.gte-3 .link i:nth-child(2) { animation-delay: 0.1s; }
.gte-3 .link i:nth-child(3) { animation-delay: 0.2s; }
@keyframes cross { 0% { left: var(--from, 50%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: var(--to, 80%); opacity: 0; } }

@media (max-width: 860px) {
  .discord__stage { grid-template-columns: 1fr; }
  .discord__phone { display: none; }
  .chat { height: calc(var(--vh) * 58); font-size: 13px; transform: none; }
  .embed__art { display: none; }
  .link { display: none; }
}

/* ---------- Steam ---------- */

.steam { position: relative; padding: 16vh 0; background: var(--base); overflow: hidden; }
.steam .wrap { position: relative; }
.steam__body { display: grid; gap: 26px; justify-items: start; }
.steam__shelf { --o: calc(var(--v, 0.5) - 0.5); position: absolute; right: max(calc(var(--margin) + 4vw), calc((100vw - 1280px) / 2 + 4vw)); top: 50%; display: grid; place-items: center; transform: translateY(calc(-50% + (0.5 - var(--v, 0.5)) * 12vh)); z-index: 1; }
.steam__shelf .phone { grid-area: 1 / 1; }
.steam__body { max-width: min(100% - 2 * var(--margin), 700px); margin-left: max(var(--margin), calc((100vw - 1280px) / 2)); margin-right: auto; position: relative; z-index: 2; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: 100%; margin-top: 10px; }
.facts li { display: grid; gap: 4px; padding: 18px 20px; background: var(--raised); }
.facts b { font-size: 18px; letter-spacing: -0.02em; }
.facts span { font-size: 15px; color: var(--text-2); }
.steam .phone { --w: clamp(170px, 19vw, 290px); }
.steam__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  .steam__shelf { position: relative; right: auto; top: auto; transform: none; display: grid; justify-content: center; margin-bottom: 8vh; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- The close ---------- */

.get { background: #0a0c0f; }
.get .pin { display: grid; place-items: center; }
.get .pin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 106, 61, 0.5), transparent 70%), radial-gradient(ellipse 40% 40% at 50% 46%, rgba(255, 182, 92, 0.12), transparent 70%); opacity: var(--p, 0); }
.get__mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.get__copy { position: relative; display: grid; gap: 34px; justify-items: center; text-align: center; padding: 0 var(--margin); margin-top: calc(var(--vh) * 38); }
.get__title { font-size: clamp(44px, 8vw, 132px); line-height: 0.9; font-weight: 800; letter-spacing: -0.055em; }
.get__title .line > span { transform: translateY(calc((1 - var(--rise, 0)) * 112%)); }
.get__cta { display: grid; gap: 18px; justify-items: center; opacity: var(--rise, 0); transform: translateY(calc((1 - var(--rise, 0)) * 30px)); }
.get__cta .block { font-size: clamp(16px, 1.4vw, 20px); }

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

.foot { position: relative; padding: 10vh 0 5vh; background: var(--base); overflow: hidden; }
.foot__word { width: min(100% - 2 * var(--margin), 1280px); margin: 0 auto 7vh; aspect-ratio: 37.9 / 13.4; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--sep); font-size: 15px; color: var(--text-2); }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__row a { text-decoration: none; }
.foot__row a:hover { color: var(--text); }
.foot__fine { margin-top: 24px; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: none; }

/* ---------- Plain layout: no scripting, or Reduce Motion ---------- */

.static { scroll-behavior: auto; }
.static [data-scene] { height: auto; }
.static .pin { position: relative; height: auto; overflow: visible; }
.static .hud, .static .cells, .static .ripple, .static .cursor, .static .link, .static .readout, .static .hero__scroll { display: none; }
.static .opening .pin { display: flex; flex-direction: column; }
.static .hero { position: relative; order: -1; min-height: calc(var(--vh) * 92); }
.static .hero__plainmark { display: block; }
.static .stage { position: relative; padding-block: 12vh; align-items: start; }
.static .captions, .static .beats { height: auto; display: grid; gap: 48px; opacity: 1; }
.static .caption, .static .beat { position: relative; opacity: 1; transform: none; }
.static .stage__phone, .static .lock, .static .discord__phone, .static .chat { transform: none; opacity: 1; }
.static .answers .block { --out: 1; opacity: 1; }
.static .track { flex-direction: column; width: auto; transform: none; gap: 3px; }
.static .slab { width: auto; height: auto; min-height: 70vh; margin: 0; }
.static .panels__head { position: relative; top: auto; left: auto; right: auto; padding: 12vh var(--margin) 4vh; }
.static .duo .pin, .static .discord .pin { padding-block: 12vh; align-items: start; }
.static .duo__stage { height: calc(var(--hh) + 80px); --open: 1; }
.static .tent { display: none; }
.static .msg { grid-template-rows: 1fr; opacity: 1; padding-top: 14px; }
.static .chat { height: auto; }
.static .at--new { max-height: 2em; opacity: 1; }
.static .get .pin { min-height: 80vh; }
.static .get__copy { margin-top: 0; }
.static .get__title .line > span, .static .line > span { transform: none; }
.static .get__cta { opacity: 1; transform: none; }
.static .get__mark { display: none; }
.static .marquee__row, .static .hero__scroll i { animation: none; }
.static [data-at].shot.is-on { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Text pages: privacy, support, not found ---------- */

.page { padding: calc(var(--nav) + 9vh) 0 12vh; }
.page__head { display: grid; gap: 20px; margin-bottom: 7vh; }
.page__title { font-size: clamp(44px, 7vw, 104px); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; }
.page__meta { font: 600 13px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.page__cols { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 6vw; align-items: start; }
.toc { position: sticky; top: calc(var(--nav) + 24px); display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 7px 10px; color: var(--text-2); text-decoration: none; border-left: 2px solid var(--control); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.prose { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.4em; padding-top: 0.4em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; color: var(--text); scroll-margin-top: calc(var(--nav) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.prose ul { list-style: none; display: grid; gap: 0.55em; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sep); }
.prose th { color: var(--text); font-weight: 650; background: var(--raised); }
.callout { padding: 20px 22px; background: var(--raised); border-left: 4px solid var(--accent); color: var(--text); }
.callout > * + * { margin-top: 0.6em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3px; }
.card { display: grid; gap: 8px; padding: 22px; background: var(--raised); align-content: start; }
.card b { font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.table-scroll { overflow-x: auto; }

@media (max-width: 900px) {
  .page__cols { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 5vh; }
}

.nav--page { position: sticky; top: 0; }
.nav--page + .page { padding-top: 9vh; }
.foot--page { padding-top: 0; }
.page__head .lede a, .page__head .lede { color: var(--text-2); }
.page__head .lede a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Narrow screens, for the rules that are set after their first mention ---------- */

@media (max-width: 860px) {
  .discord .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 1vh; padding-top: calc(var(--nav) + 2vh); padding-bottom: 2vh; }
  .discord__stage { height: auto; align-self: stretch; align-items: start; }
  .slab { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { font-size: 11.5px; gap: 8px; }
}

/* ?snap, for screenshots: every state at once (see site.js). */
.snap *, .snap *::before, .snap *::after { transition: none !important; animation-duration: 0.001s !important; animation-delay: 0s !important; }
