/* TT Dock site — dark product landing. No external dependencies. */

:root {
  --bg: #07070c;
  --bg-2: #0b0b13;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f5f5fa;
  --muted: #a9a9be;
  --dim: #75758c;
  --violet: #a35cff;
  --blue: #4f7dff;
  --grad: linear-gradient(115deg, #b76cff 0%, #7f6cff 45%, #4f8dff 100%);
  --grad-text: linear-gradient(100deg, #c08bff 0%, #8f7dff 40%, #5fa0ff 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 60px;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Inter", sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Inter", sans-serif;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity .35s ease;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
html.js-pending body { opacity: 0; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(163, 92, 255, .45); }

:focus-visible { outline: 2px solid #9d7bff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(38px, 6.6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 5vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }

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

.lead { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; color: var(--muted); margin: 18px 0 0; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex; align-items: center; gap: 10px;
}
.center .eyebrow { justify-content: center; }
.tag {
  -webkit-text-fill-color: #fff;
  color: #fff;
  background: var(--grad);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------------- Glows ---------------- */

.glow { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; }
.glow-a { width: 900px; height: 700px; left: 50%; top: -260px; transform: translateX(-75%); background: radial-gradient(closest-side, rgba(130, 70, 255, .28), transparent); }
.glow-b { width: 800px; height: 650px; left: 50%; top: -120px; transform: translateX(-10%); background: radial-gradient(closest-side, rgba(60, 120, 255, .22), transparent); }
.glow-c { width: 900px; height: 600px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(110, 80, 255, .14), transparent); }
.glow-d { width: 800px; height: 600px; right: -300px; top: 10%; background: radial-gradient(closest-side, rgba(80, 120, 255, .14), transparent); }
.glow-e { width: 800px; height: 600px; left: -320px; top: 0; background: radial-gradient(closest-side, rgba(170, 80, 255, .13), transparent); }
.glow-f { width: 1000px; height: 700px; left: 50%; top: -120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(130, 80, 255, .25), transparent); }

/* ---------------- Top bar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled, .topbar.open {
  background: rgba(9, 9, 15, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.topbar-in {
  height: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; flex-shrink: 0; }
.brand-logo { width: 28px; height: 28px; }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  font-size: 14px; color: var(--muted);
  padding: 6px 11px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); background: rgba(163, 92, 255, .16); }

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.lang button {
  border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 650; letter-spacing: .04em;
  color: var(--dim);
  padding: 4px 9px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.lang button[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .12); }

.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 21px; }
.topbar.open .burger span:first-child { top: 17.5px; transform: rotate(45deg); }
.topbar.open .burger span:last-child { top: 17.5px; transform: rotate(-45deg); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-small {
  font-size: 13.5px; padding: 7px 15px;
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-small:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 24px -6px rgba(140, 90, 255, .8); }
.btn-primary {
  font-size: 18px; padding: 16px 30px;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 44px -14px rgba(140, 90, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 56px -14px rgba(140, 90, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:active { transform: translateY(0); }
.btn-big { font-size: 19px; padding: 18px 36px; }
.btn-ghost {
  font-size: 17px; padding: 15px 24px;
  border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text);
}
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .25); }
.btn-ghost svg { width: 18px; height: 18px; }

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

.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 90px); overflow: hidden; }
.hero-in { text-align: center; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-lead { max-width: 720px; margin-top: 24px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; margin-bottom: 28px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  font-size: 14px; color: var(--muted);
  transition: border-color .2s, background .2s;
  max-width: 100%;
}
.pill:hover { border-color: rgba(163, 92, 255, .6); background: var(--panel-2); color: var(--text); }
.pill-badge { background: var(--grad); color: #fff; font-weight: 650; font-size: 12px; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.pill svg { width: 15px; height: 15px; flex-shrink: 0; }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.cta-meta { margin: 16px 0 0; font-size: 14px; color: var(--dim); }

/* Interactive demo dock on a CSS wallpaper */
.wall {
  --S: 56px; --pad: 10px;
  position: relative; z-index: 1;
  margin-top: clamp(40px, 6vw, 72px);
  height: clamp(250px, 32vw, 400px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -50px rgba(120, 80, 255, .55), 0 0 0 1px rgba(0, 0, 0, .4);
  /* the wallpaper the real screenshots were taken on, slowly drifting */
  background: #15163c url("img/wallpaper.webp") no-repeat;
  background-size: max(125%, clamp(840px, 107vw, 1340px)) auto;   /* wide enough to cover the card height and drift */
  background-position: 0% 100%;
  animation: wallShift 26s ease-in-out infinite alternate;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
@keyframes wallShift {
  from { background-position: 0% 100%; }
  to { background-position: 100% 70%; }
}
.wall-shape { display: none; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.wall-shape.s1 { width: 46%; aspect-ratio: 1; left: -12%; top: -38%; border: 1px solid rgba(255, 255, 255, .12); }
.wall-shape.s2 { width: 32%; aspect-ratio: 1; right: -6%; top: 8%; border: 1px solid rgba(255, 255, 255, .1); }
.wall-hint {
  position: absolute; left: 0; right: 0; top: 22%;
  margin: 0; text-align: center;
  font-family: var(--font-display); font-size: clamp(15px, 1.8vw, 20px); font-weight: 600;
  color: rgba(255, 255, 255, .78);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.wall-hint.gone { opacity: 0; transform: translateY(-8px); }

.dock { position: absolute; left: 0; right: 0; bottom: clamp(10px, 2vw, 18px); height: calc(var(--S) + 2 * var(--pad)); }
.dock-bg {
  position: absolute; left: 0; bottom: 0; height: 100%; width: 0;
  border-radius: calc(var(--S) * .36);
  background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 50px -18px rgba(0, 0, 0, .6);
}
.dock-item {
  position: absolute; left: 0; bottom: var(--pad);
  width: var(--S); height: var(--S);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent;
}
.dock-item:focus-visible { outline: none; }
.dock-item:focus-visible .dock-ico { outline: 2px solid #fff; outline-offset: 2px; border-radius: 22%; }
.dock-ico { width: 100%; height: 100%; display: block; position: relative; }
.dock-ico img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
  pointer-events: none; -webkit-user-drag: none;
}
.dock-ico .fallback {
  position: absolute; inset: 6%;
  border-radius: 24%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: calc(var(--S) * .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 8px rgba(0, 0, 0, .3);
}
.dock-sep { position: absolute; left: 0; bottom: calc(var(--pad) + var(--S) * .1); width: 1px; height: calc(var(--S) * .8); background: rgba(255, 255, 255, .3); }
.dock-dot {
  position: absolute; left: 0; bottom: calc(var(--pad) * .28 - 2px);
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 6px rgba(255, 255, 255, .6);
  opacity: 0; transition: opacity .35s ease;
}
.dock-dot.on { opacity: 1; }
.dock-tip {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 5px 11px; border-radius: 9px;
  background: rgba(24, 24, 34, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px; white-space: nowrap; color: #fff;
  pointer-events: none;
  opacity: 0; transform: translateX(-50%) translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.dock-tip.on { opacity: 1; transform: translateX(-50%); }

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

.feature { position: relative; padding: clamp(80px, 11vw, 150px) 0 0; }
.feature > .wrap { z-index: 1; }
.feature-head { max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); }
.feature-head.center { text-align: center; }
.feature-head .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.feature-text .lead { margin-bottom: 26px; }
.feature-text h2 { font-size: clamp(30px, 4vw, 50px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}
.split.reverse > :first-child { order: 2; }
.split-wide-media { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); margin-top: 0; }
.feature > .wrap > .split:first-child { margin-top: 0; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.points li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.points li::before {
  content: ""; position: absolute; left: 5px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(150, 100, 255, .16), 0 0 12px rgba(150, 100, 255, .5);
}
.points li b { color: var(--text); font-weight: 600; }
.points-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px 36px; margin-top: clamp(36px, 5vw, 56px); }
.points-plain li::before { box-shadow: none; width: 6px; height: 6px; top: .62em; left: 6px; }

/* ---------------- Screenshots ---------------- */

.shot { margin: 0 auto; position: relative; min-width: 0; width: 100%; }
.shot.missing, .shot.off { display: none; }
.shot-frame {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: #0f0f18;
  aspect-ratio: var(--ratio, 16 / 10);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 0, .9), 0 20px 60px -30px rgba(110, 80, 255, .25);
  transition: transform .35s ease, box-shadow .35s ease;
}
.shot-frame:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 50px 100px -40px rgba(0, 0, 0, .95), 0 24px 70px -30px rgba(130, 90, 255, .4); }
.shot-frame img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.shot-frame img.loaded { opacity: 1; }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--dim); text-align: center; }
.shot-hero .shot-frame { border-radius: calc(var(--radius) + 6px); }
.shot-tray { max-width: 980px; margin: 0 auto; }

.media-stack { display: grid; gap: 28px; min-width: 0; }
.media-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }

/* ---------------- Galleries ---------------- */

.gallery { display: grid; gap: 22px; margin: 0 auto; width: 100%; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.chip {
  border: 1px solid var(--line-2); background: var(--panel);
  color: var(--muted); cursor: pointer;
  font-size: 14px; font-weight: 550;
  padding: 8px 16px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
  transition: color .2s, background .2s, border-color .2s;
}
.chip:hover { color: var(--text); background: var(--panel-2); }
.chip[aria-selected="true"] { color: #fff; background: rgba(150, 95, 255, .2); border-color: rgba(163, 110, 255, .7); }
.chip.missing { display: none; }
.stage {
  position: relative; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius);
  background: #0f0f18;
  aspect-ratio: var(--ratio, 5 / 1);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 0, .9), 0 20px 60px -30px rgba(110, 80, 255, .25);
  border: 0; padding: 0; width: 100%; display: block;
}
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .55s ease;
}
.stage img.active.loaded { opacity: 1; }
.gallery-progress { display: flex; justify-content: center; gap: 6px; }

/* Flyout cards */
.flyouts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
  margin-top: clamp(32px, 4vw, 48px); align-items: end;
}
.flyout { margin: 0; min-width: 0; }
.flyout.missing { display: none; }
.flyout button {
  display: block; position: relative; width: 100%; padding: 0; cursor: zoom-in;
  border: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  box-shadow: 0 0 0 1px var(--line);
  aspect-ratio: 4 / 5;
  transition: box-shadow .3s ease, transform .3s ease;
}
.flyout button:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(110, 80, 255, .4); }
.flyout img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 36px); max-height: calc(100% - 36px); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .5s; }
.flyout img.loaded { opacity: 1; }
.flyout figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------------- Tech strip ---------------- */

.tech { padding: clamp(90px, 12vw, 160px) 0 0; }
.tech-title { text-align: center; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 36px; }
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stat b {
  font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------------- Download ---------------- */

.download { position: relative; padding: clamp(100px, 13vw, 170px) 0 clamp(70px, 9vw, 110px); overflow: hidden; }
.download > .wrap { z-index: 1; }
.dl-card {
  text-align: center; max-width: 860px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 140px -60px rgba(120, 80, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; align-items: center;
}
.dl-logo { width: 84px; height: 84px; margin-bottom: 26px; filter: drop-shadow(0 18px 30px rgba(120, 80, 255, .5)); }
.dl-card .lead { margin-bottom: 34px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.dl-box { padding: 26px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.dl-box h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dl-box h3 svg { width: 20px; height: 20px; color: #ffcf6b; flex-shrink: 0; }
.dl-box p { margin: 0; color: var(--muted); font-size: 15.5px; }
.dl-box .points li { font-size: 15.5px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 2px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 700;
}
.steps b { font-weight: 600; font-size: 15.5px; }
.steps span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.dl-note { background: rgba(255, 200, 90, .045); border-color: rgba(255, 200, 90, .18); }
code, .mono { font-family: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: .92em; background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; color: var(--text); }

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

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--dim); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.footer-brand .brand-logo { width: 22px; height: 22px; }
.footer-legal { margin: 0; flex: 1 1 320px; }
.footer-top { color: var(--muted); }
.footer-top:hover { color: var(--text); }
.noscript { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  background: rgba(4, 4, 8, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: lbIn .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2); }
.lb-figure figcaption { color: var(--muted); font-size: 15px; text-align: center; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .07);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn[disabled] { visibility: hidden; }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; font-size: 28px; z-index: 1; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: rgba(24, 24, 34, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
  font-size: 15px; color: var(--text);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #bca6ff; font-weight: 600; margin-left: 4px; white-space: nowrap; }
.toast a:hover { color: #fff; }

/* ---------------- Reveal ---------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .nav a { padding: 6px 8px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--bar-h);
    flex-direction: column; gap: 2px; margin: 0;
    padding: 10px var(--gutter) 18px;
    background: rgba(9, 9, 15, .94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .topbar.open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a { font-size: 16px; padding: 11px 12px; border-radius: 12px; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: 1fr; }
  .flyouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .split, .split-wide-media { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-actions .btn-small { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .btn-primary, .btn-ghost { width: 100%; }
  .btn-big { width: 100%; padding: 17px 20px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  .flyouts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; gap: 14px; scrollbar-width: none; }
  .flyouts::-webkit-scrollbar { display: none; }
  .flyout { flex: 0 0 72%; scroll-snap-align: center; }
  .shot-frame, .stage { border-radius: var(--radius-sm); }
  .wall { border-radius: 20px; }
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 64px 10px 16px; }
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lb-figure img { max-height: calc(100dvh - 180px); }
}

@media (max-width: 400px) {
  .tech-grid { gap: 10px; }
  .stat { padding: 20px 16px; }
  .pill { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .wall { animation: none; }
}
