:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --surface: #111111;
  --ink: #c9c9c9;
  --muted: #8a8a8a;
  --accent: #c9c9c9;
  --max: 1080px;
  --display: "Arimo", "Segoe UI Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Arimo", "Segoe UI Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --radius: 12px;
  --header: 48px;
  --hit: 48px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 180ms;
  --duration-view: 280ms;
  --shadow: 0 1px 1px rgb(0 0 0 / 0.45), 0 2px 8px rgb(0 0 0 / 0.28);
  --shadow-hover: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 14px rgb(0 0 0 / 0.32);
  --noise: url("noise.svg");
  --column-bg: rgb(0 0 0 / 0.9);
  --column-border: rgb(128 128 128 / 0.05);
  --column-border-width: 2px;
  --panel-inline: clamp(16px, 3vw, 28px);
  --column-pad: calc(clamp(20px, 4vw, 48px) - var(--panel-inline));
  --head-bg: rgb(0 0 0 / 0.55);
  --head-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
  --pill-fill: #111111;
  --pill-ring-bright: #ffffff;
  --pill-ring-idle: rgb(255 255 255 / 0.36);
  --pill-ring-hi: #c4c4c4;
  --pill-ring-mid: #7a7a7a;
  --pill-ring-lo: #2a2a2a;
  --pill-ring-dim: #101010;
  --pill-ring-hi-idle: rgb(255 255 255 / 0.18);
  --pill-ring-mid-idle: rgb(255 255 255 / 0.1);
  --pill-ring-lo-idle: rgb(255 255 255 / 0.05);
  --pill-ring-dim-idle: rgb(255 255 255 / 0.02);
  --pill-shimmer: rgb(255 255 255 / 0.16);
  --pill-face-shine: rgb(255 255 255 / 0.14);
  --pill-face-shade: rgb(0 0 0 / 0.28);
  --split-fill: #161616;
  --split-line: rgb(201 201 201 / 0.14);
  --split-hover: #222222;
  --stack-shadow: 0 -2px 8px rgb(0 0 0 / 0.22);
  --stack-dim: rgb(0 0 0 / 0.72);
  --mesh:
    radial-gradient(ellipse 74% 58% at 10% 14%, #0a0a0a 0%, transparent 64%),
    radial-gradient(ellipse 60% 74% at 92% 86%, #080808 0%, transparent 60%),
    radial-gradient(ellipse 44% 38% at 68% 30%, #060606 0%, transparent 54%),
    radial-gradient(ellipse 50% 42% at 24% 82%, #050505 0%, transparent 56%),
    radial-gradient(ellipse 34% 30% at 50% 48%, #070707 0%, transparent 52%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #eee8dc;
  --surface: #e7e1d4;
  --ink: #2a2a2a;
  --muted: #6a6a6a;
  --column-bg: rgb(238 232 220 / 0.9);
  --column-border: rgb(42 42 42 / 0.05);
  --head-bg: rgb(238 232 220 / 0.6);
  --head-shadow: 0 1px 1px rgb(42 42 42 / 0.12);
  --pill-fill: #e7e1d4;
  --pill-ring-bright: #ffffff;
  --pill-ring-idle: rgb(42 42 42 / 0.26);
  --pill-ring-hi: #d2ccc0;
  --pill-ring-mid: #8f897c;
  --pill-ring-lo: #3a372f;
  --pill-ring-dim: #1a1814;
  --pill-ring-hi-idle: rgb(42 42 42 / 0.16);
  --pill-ring-mid-idle: rgb(42 42 42 / 0.1);
  --pill-ring-lo-idle: rgb(42 42 42 / 0.05);
  --pill-ring-dim-idle: rgb(42 42 42 / 0.02);
  --pill-shimmer: rgb(255 255 255 / 0.4);
  --pill-face-shine: rgb(255 255 255 / 0.42);
  --pill-face-shade: rgb(42 42 42 / 0.12);
  --split-fill: #ddd6c7;
  --split-line: rgb(42 42 42 / 0.12);
  --split-hover: #d0c8b6;
  --shadow: 0 1px 1px rgb(0 0 0 / 0.08), 0 2px 8px rgb(0 0 0 / 0.06);
  --shadow-hover: 0 1px 2px rgb(0 0 0 / 0.1), 0 6px 14px rgb(0 0 0 / 0.08);
  --stack-shadow: 0 -2px 8px rgb(42 42 42 / 0.06);
  --stack-dim: rgb(42 42 42 / 0.16);
  --mesh:
    radial-gradient(ellipse 78% 62% at 10% 14%, #e0d8c8 0%, transparent 62%),
    radial-gradient(ellipse 64% 78% at 92% 86%, #e4dccb 0%, transparent 58%),
    radial-gradient(ellipse 46% 40% at 68% 30%, #e8e0d0 0%, transparent 52%),
    radial-gradient(ellipse 52% 44% at 24% 82%, #ddd4c2 0%, transparent 54%),
    radial-gradient(ellipse 36% 32% at 50% 48%, #e6dece 0%, transparent 50%);
}


:root {
  --accent: #c9c9c9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--muted) var(--paper);
  scrollbar-width: thin;
  scroll-padding-top: var(--header);
  /* Browser scroll anchoring fights GSAP ScrollTo / snap and drifts. */
  overflow-anchor: none;
  overflow-x: clip;
  scroll-behavior: auto;
}

/* Fallback only when GSAP does not own the scroller. */
html:not(.gsap-scroll) {
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--paper);
  background-image: var(--mesh);
}

.veil::after {
  content: "";
  position: absolute;
  inset: -25%;
  background-image: var(--noise);
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: 0.7;
}

@media (prefers-reduced-motion: no-preference) {
  .veil::after {
    animation: veil-grain 1.6s steps(4) infinite;
  }
}

@keyframes veil-grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-18px, 10px, 0); }
  50% { transform: translate3d(14px, -16px, 0); }
  75% { transform: translate3d(-8px, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.column {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  min-height: 100dvh;
  margin-inline: auto;
  padding-inline: var(--column-pad);
  background: var(--column-bg);
  border-inline: var(--column-border-width) solid var(--column-border);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: rgb(201 201 201 / 0.18);
  color: var(--ink);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  font-weight: 650;
  letter-spacing: -0.045em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.9vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  top: calc(var(--header) + 12px);
  z-index: 70;
}


/* Chrome: fixed header, brand, nav, GitHub, theme toggle, footer, stack panels. */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  /* Column hairlines are 2px per side. Subtract both so the header
     matches the column content box at every viewport, not only at --max. */
  width: calc(100% - (var(--column-border-width) * 2));
  max-width: calc(var(--max) - (var(--column-border-width) * 2));
  margin-inline: auto;
  border: 0;
  box-shadow: var(--head-shadow);
  outline: none;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header {
  padding-inline: var(--column-pad);
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background-color: var(--surface);
  background-image: var(--noise);
  background-size: 180px 180px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font: 650 0.62rem / 1 var(--mono);
  letter-spacing: 0.04em;
  object-fit: cover;
}

.brand-mark--tabler svg {
  width: 15px;
  height: 15px;
  display: block;
}

.site-leading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.site-head nav {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 12px), transparent);
}

.site-head nav::-webkit-scrollbar {
  display: none;
}

.site-head nav a {
  position: relative;
  flex: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
  border-radius: 8px;
}

.site-head nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .site-head nav a {
    transition:
      color var(--duration) var(--ease),
      background-color var(--duration) var(--ease);
  }

  .site-head nav a::after {
    transition: transform var(--duration-view) var(--ease);
  }
}

.site-head nav a:hover,
.site-head nav a:focus-visible {
  color: var(--ink);
  background: rgb(201 201 201 / 0.06);
}

.site-head nav a.is-active {
  color: var(--ink);
}

.site-head nav a.is-active::after {
  transform: scaleX(1);
}

.button.primary.repo-btn {
  min-height: 26px;
  height: 26px;
  padding: 0 8px;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1;
  border-radius: 6px;
  box-shadow: none;
}

.button.primary.repo-btn svg {
  width: 13px;
  height: 13px;
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button.primary.repo-btn:hover,
  .button.primary.repo-btn:active {
    transform: none;
    box-shadow: none;
  }
}

.icon-btn {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
}

.theme-toggle__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.theme-toggle__sun,
.theme-toggle__moon {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}

:root[data-theme="dark"] .theme-toggle__sun,
:root[data-theme="light"] .theme-toggle__moon {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  .icon-btn {
    transition:
      color var(--duration) var(--ease),
      background-color var(--duration) var(--ease),
      transform var(--duration) var(--ease);
  }

  .theme-toggle__icon {
    transition:
      opacity var(--duration) var(--ease),
      transform var(--duration) var(--ease),
      filter var(--duration) var(--ease);
  }

  .icon-btn:hover {
    color: var(--ink);
    background: rgb(201 201 201 / 0.06);
  }

  .icon-btn:active {
    transform: scale(0.96);
  }
}

.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--ink);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__sun,
  .theme-toggle__moon {
    transform: none;
    filter: none;
  }

  .icon-btn:active {
    transform: none;
  }
}

main {
  padding-top: var(--header);
}

/* Stacked panels: each section pins under the header and the next one
   slides over it. GSAP owns the scroller when available. */

main > .stack-panel {
  --stack-shade: 0;
  --stack-content: 1;
  position: sticky;
  top: var(--header);
  z-index: 1;
  align-content: start;
  height: calc(100svh - var(--header));
  max-height: calc(100svh - var(--header));
  min-height: calc(100svh - var(--header));
  overflow: clip;
  padding-inline: var(--panel-inline);
  background-color: var(--paper);
  background-image: linear-gradient(var(--column-bg), var(--column-bg));
  box-shadow: var(--stack-shadow);
}

html.js-motion main > .stack-panel:not(:first-child) {
  --stack-content: 0;
}

main > .stack-panel > * {
  opacity: var(--stack-content, 1);
}

@media (prefers-reduced-motion: reduce) {
  main > .stack-panel > * {
    opacity: 1;
  }
}

html:not(.gsap-scroll) main > .stack-panel {
  scroll-snap-align: start;
  scroll-margin-top: var(--header);
}

main > .stack-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: var(--stack-dim);
  opacity: var(--stack-shade);
}

@media (prefers-reduced-motion: reduce) {
  main > .stack-panel {
    position: relative;
    top: auto;
    box-shadow: none;
  }

  main > .stack-panel::after {
    content: none;
  }
}

/* The last panel holds the footer and pins it to the bottom edge. */

main > .stack-panel:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: 0;
  height: calc(100svh - var(--header));
  max-height: calc(100svh - var(--header));
  overflow: hidden;
}

main > .stack-panel:last-child > .site-footer {
  margin-top: auto;
  flex: none;
}

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px 22px;
  padding-inline: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@property --pill-drift {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --pill-turn {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --pill-ring-now {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255 255 255 / 0.36);
}

@property --pill-hi-now {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255 255 255 / 0.18);
}

@property --pill-mid-now {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255 255 255 / 0.1);
}

@property --pill-lo-now {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255 255 255 / 0.05);
}

@property --pill-dim-now {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255 255 255 / 0.02);
}

.made-by {
  --pill-ring-now: var(--pill-ring-idle);
  --pill-hi-now: var(--pill-ring-hi-idle);
  --pill-mid-now: var(--pill-ring-mid-idle);
  --pill-lo-now: var(--pill-ring-lo-idle);
  --pill-dim-now: var(--pill-ring-dim-idle);
  --pill-shine-now: transparent;
  --pill-shade-now: transparent;
  --pill-inset: none;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.made-by__ring {
  --pill-drift: 0deg;
  --pill-turn: 0deg;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(
    from calc(var(--pill-drift) + var(--pill-turn)),
    var(--pill-ring-now) 0deg,
    var(--pill-hi-now) 28deg,
    var(--pill-mid-now) 56deg,
    var(--pill-lo-now) 72deg,
    var(--pill-dim-now) 90deg,
    var(--pill-lo-now) 108deg,
    var(--pill-mid-now) 124deg,
    var(--pill-hi-now) 152deg,
    var(--pill-ring-now) 180deg,
    var(--pill-hi-now) 208deg,
    var(--pill-mid-now) 236deg,
    var(--pill-lo-now) 252deg,
    var(--pill-dim-now) 270deg,
    var(--pill-lo-now) 288deg,
    var(--pill-mid-now) 304deg,
    var(--pill-hi-now) 332deg,
    var(--pill-ring-now) 360deg
  );
}

@media (prefers-reduced-motion: no-preference) {
  .made-by__ring {
    animation: pill-drift 42s linear infinite;
  }
}

.made-by__face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 5px 16px 5px 6px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, var(--pill-shine-now), transparent 40%, var(--pill-shade-now)),
    var(--pill-fill);
  box-shadow: var(--pill-inset);
}

.made-by__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.made-by__name {
  color: var(--ink);
  margin-inline-start: -5px;
  font-style: italic;
  font-weight: 520;
}

.made-by__face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 32%,
    var(--pill-shimmer) 50%,
    transparent 68%
  );
  transform: translateX(-120%);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .made-by {
    transition:
      color var(--duration) var(--ease),
      --pill-ring-now 420ms var(--ease),
      --pill-hi-now 420ms var(--ease),
      --pill-mid-now 420ms var(--ease),
      --pill-lo-now 420ms var(--ease),
      --pill-dim-now 420ms var(--ease);
  }

  .made-by__ring {
    transition: --pill-turn 560ms var(--ease);
  }

  .made-by:focus-visible .made-by__face::after {
    opacity: 1;
    animation: pill-shimmer 1.7s var(--ease) 1;
  }

  .made-by:focus-visible .made-by__ring {
    --pill-turn: 360deg;
    transition-duration: 800ms;
  }
}

.made-by:focus-visible {
  --pill-ring-now: var(--pill-ring-bright);
  --pill-hi-now: var(--pill-ring-hi);
  --pill-mid-now: var(--pill-ring-mid);
  --pill-lo-now: var(--pill-ring-lo);
  --pill-dim-now: var(--pill-ring-dim);
  --pill-shine-now: var(--pill-face-shine);
  --pill-shade-now: var(--pill-face-shade);
  --pill-inset: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 -1px 0 rgb(0 0 0 / 0.35);
  color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .made-by:hover {
    --pill-ring-now: var(--pill-ring-bright);
    --pill-hi-now: var(--pill-ring-hi);
    --pill-mid-now: var(--pill-ring-mid);
    --pill-lo-now: var(--pill-ring-lo);
    --pill-dim-now: var(--pill-ring-dim);
    --pill-shine-now: var(--pill-face-shine);
    --pill-shade-now: var(--pill-face-shade);
    --pill-inset: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 -1px 0 rgb(0 0 0 / 0.35);
    color: var(--ink);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .made-by:hover .made-by__face::after {
    opacity: 1;
    animation: pill-shimmer 1.7s var(--ease) 1;
  }

  .made-by:hover .made-by__ring {
    --pill-turn: 360deg;
    transition-duration: 800ms;
  }
}

@keyframes pill-drift {
  to {
    --pill-drift: 360deg;
  }
}

@keyframes pill-shimmer {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.footer-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--split-fill);
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-sponsor svg {
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .footer-sponsor {
    transition:
      background-color var(--duration) var(--ease),
      color var(--duration) var(--ease);
  }
}

@media (hover: hover) and (pointer: fine) {
  .footer-sponsor:hover {
    background: var(--split-hover);
    color: var(--ink);
  }
}

.footer-sponsor:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .site-header {
    gap: 16px;
  }

  main > .stack-panel:last-child {
    padding-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 14px 16px;
  }
}

@media (forced-colors: active) {
  .button,
  .surface,
  .brand-mark,
  .icon-btn {
    outline: 1px solid CanvasText;
  }
}


/* Shared type primitives: kicker, lede, section head, source line. */

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

.kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font: 600 0.72rem / 1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
}

.section-head {
  min-width: 0;
}

.section-head .lede {
  margin-top: 12px;
}

.section-source {
  margin-top: 16px;
  color: var(--muted);
  font: 0.72rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
}

.section-source a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgb(201 201 201 / 0.28);
}


/* Shared surface: the only card treatment in the kit. */

.surface {
  background-color: var(--surface);
  background-image: var(--noise);
  background-size: 180px 180px;
  background-repeat: repeat;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: no-preference) {
  .surface {
    transition:
      transform var(--duration) var(--ease),
      box-shadow var(--duration) var(--ease);
  }
}


/* Shared button. */

.button {
  min-height: var(--hit);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  background-image: var(--noise);
  background-size: 180px 180px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition:
      transform var(--duration) var(--ease),
      box-shadow var(--duration) var(--ease),
      background-color var(--duration) var(--ease);
  }

  .button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
  }

  .button:active {
    transform: scale(0.96);
  }
}

.button.primary {
  background-color: var(--ink);
  background-image: none;
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button:active {
    transform: none;
  }
}


/* Shared command slab: one real command plus a copy button.
   Used by the install and skill sections. */

.command-slab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-top: 1px solid rgb(201 201 201 / 0.22);
  border-bottom: 1px solid rgb(201 201 201 / 0.22);
}

.command-slab code {
  display: block;
  overflow-x: auto;
  color: var(--ink);
  font: 0.95rem / 1.5 var(--mono);
  white-space: pre;
}

.command-slab--tight {
  padding: 10px 0;
  border: 0;
}

.command-slab--terminal {
  padding: 16px 18px;
  border: 1px solid rgb(201 201 201 / 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-slab--inline {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--hit);
  max-width: min(100%, 36rem);
  flex: 1 1 18rem;
  padding: 0 6px 0 16px;
  gap: 8px;
  border: 1px solid rgb(201 201 201 / 0.14);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-slab--inline code {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

.command-slab--inline code::-webkit-scrollbar {
  height: 6px;
}

.command-slab--inline code::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--muted);
}

.command-prompt {
  color: var(--accent);
  font-weight: 600;
  user-select: none;
}

.install-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}


/* Hero: centered identity mast, then the product object. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 48px;
  align-content: start;
  justify-items: center;
  height: 100%;
  min-height: 0;
  text-align: center;
  padding: 48px 0 32px;
}

.hero:has(.hero-examples),
.hero:not(:has(.hero-stage)) {
  grid-template-rows: auto;
  align-content: start;
}

.hero:has(.hero-examples) {
  grid-template-rows: auto auto;
}

.hero:has(.artifact),
.hero:has(.depth-carousel),
.hero:has(.screens-media) {
  grid-template-rows: auto minmax(0, 1fr);
}

.hero:has(.screens-media) {
  padding: 32px 0 20px;
  gap: 28px;
}

.hero:has(.screens-media) .hero-copy .lede {
  margin-top: 14px;
}

.hero:has(.screens-media) .actions {
  margin-top: 22px;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand {
  --hero-brand-size: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 100%;
  margin: 0 0 16px;
}

@media (min-width: 841px) {
  .hero-brand {
    margin-bottom: clamp(28px, 5.5vh, 64px);
  }

  .hero:has(.hero-stage) .hero-brand {
    margin-bottom: clamp(36px, 6.5vh, 72px);
  }
}

.hero-icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: none;
  width: var(--hero-brand-size);
  height: var(--hero-brand-size);
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.hero-icon--mark,
.hero-icon--tabler,
.hero-icon--file {
  background-color: var(--surface);
  background-image: var(--noise);
  background-size: 180px 180px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.hero-icon--shaded {
  background-image: none;
}

.hero-icon__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.hero-icon--file img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-icon--mark {
  font: 650 0.72rem / 1 var(--mono);
  letter-spacing: 0.04em;
}

.hero-icon--tabler svg {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.hero-name {
  margin: 0;
  color: var(--ink);
  font-size: var(--hero-brand-size);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-align: start;
  text-wrap: balance;
}

.hero-copy h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  white-space: nowrap;
}

.hero-accent {
  color: var(--accent);
}

.hero-copy .lede {
  margin-top: 22px;
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  width: 100%;
}

.hero-copy-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 620 0.84rem / 1 var(--text);
  cursor: pointer;
}

.hero-copy-btn:hover,
.hero-copy-btn:focus-visible {
  background: rgb(201 201 201 / 0.08);
}

.hero-copy-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hero-stage {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-stage > * {
  width: 100%;
  min-height: 0;
}

.hero .artifact,
.hero .screens-media,
.hero .depth-carousel {
  width: 100%;
  max-width: 52rem;
  min-height: 0;
  margin-inline: auto;
}

.hero .screens-media {
  justify-content: center;
  padding: 0;
}

.hero .screens-media .depth-carousel {
  max-height: 100%;
}

.hero .screens-thumbs {
  display: none;
}

.hero .artifact {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero .artifact img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.artifact {
  margin: 0;
  padding: 12px;
}

.artifact img {
  width: 100%;
  border-radius: 8px;
}

.artifact figcaption {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 4px 2px;
  color: var(--muted);
  font: 0.75rem / 1.3 var(--mono);
}

.hero-examples {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 32px;
  width: 100%;
  max-width: 40rem;
  height: auto;
  margin: 0 auto;
  padding: 8px 0 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.hero-examples::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.hero-examples::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--muted);
}

.hero-examples li {
  min-width: 0;
  min-height: 0;
}

.hero-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 14px 0 18px;
  border-top: 1px solid rgb(201 201 201 / 0.16);
  color: inherit;
  text-align: start;
  text-decoration: none;
}

.hero-example img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 6px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-example-name {
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero-example-body {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-example {
    transition: color var(--duration) var(--ease);
  }

  .hero-copy-btn {
    transition: background-color var(--duration) var(--ease);
  }
}

a.hero-example:hover .hero-example-name,
a.hero-example:focus-visible .hero-example-name {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.hero-example:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 840px) {
  .hero {
    padding: 32px 0 22px;
    gap: 32px;
  }

  .hero-brand {
    --hero-brand-size: 1.75rem;
    gap: 0.55rem;
    margin-bottom: 16px;
  }

  .hero-icon {
    border-radius: 8px;
  }

  .hero-icon--mark {
    font-size: 0.62rem;
  }

  .hero-icon--tabler svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .hero:has(.screens-media) {
    padding: 24px 0 16px;
    gap: 20px;
  }

  .hero-copy .lede {
    margin-top: 16px;
  }

  .hero .actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .hero .actions .button,
  .hero .command-slab--inline {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .hero-examples {
    gap: 0 20px;
  }
}

@media (forced-colors: active) {
  .hero-icon--mark,
  .hero-icon--tabler,
  .hero-icon--file,
  .hero-copy-btn,
  .hero-example {
    outline: 1px solid CanvasText;
  }

  .hero-icon__shade {
    display: none;
  }
}


/* Facts: one ruled ledger, not cards. */

.facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-content: start;
  padding: 28px 0 24px;
}

.facts-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid rgb(201 201 201 / 0.2);
  border-bottom: 1px solid rgb(201 201 201 / 0.2);
}

.facts-ledger li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 18px 16px 16px 0;
  border-right: 1px solid rgb(201 201 201 / 0.12);
}

.facts-ledger li:last-child {
  border-right: 0;
}

.facts-ledger strong {
  font: 650 clamp(2.2rem, 4.6vw, 3.6rem) / 1 var(--mono);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.facts-ledger span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 840px) {
  .facts-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .facts-ledger li:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
    padding-left: 16px;
  }
}

@media (max-width: 520px) {
  .facts-ledger {
    grid-template-columns: 1fr;
  }

  .facts-ledger li,
  .facts-ledger li:nth-child(2n) {
    border-right: 0;
    padding-left: 0;
  }
}


/* Skill: agent card with trigger chip, command slab, and host tabs. */

.skill {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 24px;
  min-height: 0;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
}

.skill-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.skill-trigger__label {
  color: var(--muted);
  font: 600 0.72rem / 1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-trigger__chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font: 600 0.78rem / 1 var(--mono);
}

.skill-hosts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgb(201 201 201 / 0.12);
  padding-top: 14px;
}

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

.skill-hosts__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-hosts__tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font: 600 0.75rem / 1 var(--mono);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .skill-hosts__tabs label {
    transition:
      color var(--duration) var(--ease),
      background-color var(--duration) var(--ease);
  }
}

.skill-hosts:has(#skill-host-0:focus-visible) label[for="skill-host-0"],
.skill-hosts:has(#skill-host-1:focus-visible) label[for="skill-host-1"],
.skill-hosts:has(#skill-host-2:focus-visible) label[for="skill-host-2"],
.skill-hosts:has(#skill-host-3:focus-visible) label[for="skill-host-3"] {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skill-hosts:has(#skill-host-0:checked) label[for="skill-host-0"],
.skill-hosts:has(#skill-host-1:checked) label[for="skill-host-1"],
.skill-hosts:has(#skill-host-2:checked) label[for="skill-host-2"],
.skill-hosts:has(#skill-host-3:checked) label[for="skill-host-3"] {
  color: var(--ink);
  background: var(--paper);
}

.skill-hosts__path {
  display: none;
  margin: 0;
  color: var(--muted);
  font: 0.82rem / 1.5 var(--mono);
}

.skill-hosts:has(#skill-host-0:checked) .skill-hosts__path[data-host="0"],
.skill-hosts:has(#skill-host-1:checked) .skill-hosts__path[data-host="1"],
.skill-hosts:has(#skill-host-2:checked) .skill-hosts__path[data-host="2"],
.skill-hosts:has(#skill-host-3:checked) .skill-hosts__path[data-host="3"] {
  display: block;
}


/* Install: the command is the object, framed as a terminal slab. */

.install {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 24px;
  min-height: 0;
}

.install-switch {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.install-tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font: 600 0.78rem / 1 var(--mono);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .install-tabs label {
    transition:
      color var(--duration) var(--ease),
      background-color var(--duration) var(--ease);
  }
}

.install-switch:has(#install-cmd-0:focus-visible) label[for="install-cmd-0"],
.install-switch:has(#install-cmd-1:focus-visible) label[for="install-cmd-1"],
.install-switch:has(#install-cmd-2:focus-visible) label[for="install-cmd-2"],
.install-switch:has(#install-cmd-3:focus-visible) label[for="install-cmd-3"] {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.install-switch:has(#install-cmd-0:checked) label[for="install-cmd-0"],
.install-switch:has(#install-cmd-1:checked) label[for="install-cmd-1"],
.install-switch:has(#install-cmd-2:checked) label[for="install-cmd-2"],
.install-switch:has(#install-cmd-3:checked) label[for="install-cmd-3"] {
  color: var(--ink);
  background: var(--surface);
}

.install-panel {
  display: none;
}

.install-switch:has(#install-cmd-0:checked) .install-panel[data-cmd="0"],
.install-switch:has(#install-cmd-1:checked) .install-panel[data-cmd="1"],
.install-switch:has(#install-cmd-2:checked) .install-panel[data-cmd="2"],
.install-switch:has(#install-cmd-3:checked) .install-panel[data-cmd="3"] {
  display: grid;
}


/* Commands: dense key table with keycap volume. */

.commands {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 24px;
  min-height: 0;
}

.commands-filter {
  width: min(320px, 100%);
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(201 201 201 / 0.22);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 0.9rem / 1.3 var(--text);
}

.commands-filter::placeholder {
  color: var(--muted);
}

.key-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.key-table th,
.key-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgb(201 201 201 / 0.12);
  text-align: start;
  vertical-align: top;
}

.key-table thead th {
  color: var(--muted);
  font: 600 0.7rem / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.keycaps {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.key-table kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid rgb(201 201 201 / 0.28);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow:
    0 1px 0 rgb(0 0 0 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
  color: var(--ink);
  font: 600 0.78rem / 1.2 var(--mono);
}

.key-sep {
  padding: 0 1px;
  color: var(--muted);
  font: 0.78rem / 1 var(--mono);
}

@media (max-width: 840px) {
  .key-table {
    display: block;
    overflow-x: auto;
  }
}

main > .stack-panel.commands {
  overflow: auto;
}


/* Proof: evidence as a file tree, one row per file. */

.proof {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 24px;
  min-height: 0;
}

.proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(201 201 201 / 0.16);
}

.proof-list a,
.proof-list div {
  display: grid;
  grid-template-columns: 2rem minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgb(201 201 201 / 0.12);
  text-decoration: none;
}

.proof-tree {
  color: var(--muted);
  font: 0.85rem / 1.4 var(--mono);
  user-select: none;
}

.proof-list strong {
  font: 600 0.9rem / 1.4 var(--mono);
}

.proof-proves {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: no-preference) {
  .proof-list a {
    transition: color var(--duration) var(--ease);
  }

  .proof-list a:hover strong {
    color: var(--accent);
  }
}

@media (max-width: 640px) {
  .proof-list a,
  .proof-list div {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .proof-proves {
    grid-column: 2;
  }
}

main > .stack-panel.proof {
  overflow: auto;
}


/* Notes: numbered cautions with an accent rule. */

.notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 24px;
  min-height: 0;
}

.notes-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.notes-stack li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 12px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent);
}

.notes-stack__n {
  color: var(--accent);
  font: 600 0.78rem / 1.6 var(--mono);
}

.notes-stack p {
  margin-top: 4px;
  color: var(--muted);
}


/* Links: big directory rows with an external glyph. */

.links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 24px;
  min-height: 0;
}

.links-dir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(201 201 201 / 0.16);
}

.links-dir a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(201 201 201 / 0.12);
  text-decoration: none;
}

.links-dir strong {
  font-size: 1.08rem;
}

.links-dir a > span:not(.links-dir__icon) {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: end;
}

.links-dir__icon {
  color: var(--muted);
  display: inline-flex;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .links-dir a {
    transition: color var(--duration) var(--ease);
  }

  .links-dir__icon {
    transition:
      color var(--duration) var(--ease),
      transform var(--duration) var(--ease);
  }

  .links-dir a:hover strong {
    color: var(--ink);
  }

  .links-dir a:hover .links-dir__icon {
    color: var(--accent);
    transform: translate(2px, -2px);
  }
}

@media (max-width: 840px) {
  .links-dir a {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .links-dir a > span:not(.links-dir__icon) {
    grid-column: 1;
    text-align: start;
  }

  .links-dir__icon {
    grid-column: 2;
    grid-row: 1;
  }
}

main > .stack-panel.links {
  overflow: auto;
}


/* Closing: one big statement and one real action. */

.closing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 0;
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 40px 0 28px;
  border-top: 1px solid rgb(201 201 201 / 0.22);
}

.closing__text {
  margin: 0;
  max-width: 22ch;
  color: var(--ink);
  font: 650 clamp(1.7rem, 3.4vw, 2.7rem) / 1.15 var(--display);
  letter-spacing: -0.02em;
}

.closing__cta {
  flex: none;
}

@media (max-width: 840px) {
  .closing__inner {
    padding: 32px 0 24px;
  }
}


/* Scroll-to-top button */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(201 201 201 / 0.18);
  border-radius: 999px;
  background: rgb(10 10 10 / 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .to-top {
    transition:
      opacity var(--duration-view) var(--ease),
      transform var(--duration-view) var(--ease),
      background-color var(--duration) var(--ease),
      border-color var(--duration) var(--ease);
  }
}

.to-top:hover {
  background: rgb(28 28 28 / 0.85);
  border-color: rgb(201 201 201 / 0.4);
}

.to-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Image lightbox opened from the carousel */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  pointer-events: none;
}

.lightbox.is-open,
.lightbox.is-closing {
  display: block;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
}

.lightbox__stage {
  display: contents;
}

.lightbox__frame {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0b0d12;
  box-shadow:
    0 40px 90px -20px rgb(0 0 0 / 0.7),
    0 10px 28px -12px rgb(0 0 0 / 0.55);
}

.lightbox__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox__caption {
  position: fixed;
  z-index: 2;
  margin: 0;
  color: rgb(201 201 201 / 0.85);
  font: 0.78rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
  pointer-events: none;
}

.lightbox__counter {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgb(201 201 201 / 0.8);
  font: 0.75rem / 1 var(--mono);
  letter-spacing: 0.08em;
  opacity: 0;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: rgb(255 255 255 / 0.7);
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  color: #fff;
}

.lightbox__close {
  top: max(16px, env(safe-area-inset-top));
  right: 20px;
  opacity: 0;
}

.lightbox__close:active,
.lightbox__nav:active {
  transform: scale(0.92);
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 56px;
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.92);
}

.lightbox__nav--prev {
  left: max(12px, env(safe-area-inset-left));
}

.lightbox__nav--prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.lightbox__nav--next {
  right: max(12px, env(safe-area-inset-right));
}

.lightbox__nav--next:hover {
  transform: translateY(-50%) translateX(3px);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.5);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox__caption {
    text-align: center;
  }
}

/* Theme wipe: old screen clips away downward, new theme sits underneath. */

@keyframes wipe-out-down {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(100% 0 0 0);
  }
}

::view-transition-old(root) {
  z-index: 1;
  mix-blend-mode: normal;
  animation: 0.85s cubic-bezier(0.25, 1, 0.3, 1) wipe-out-down both;
}

::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

.theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}

.theme-wipe__shot {
  position: relative;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Pre-hide until GSAP owns the nodes. No transform here: a CSS offset
   would become the gsap.from() end state and leave items shifted. */
@media (prefers-reduced-motion: no-preference) {
  html.js-motion:not(.is-motion-ready) .hero .hero-brand,
  html.js-motion:not(.is-motion-ready) .hero h1,
  html.js-motion:not(.is-motion-ready) .hero .lede,
  html.js-motion:not(.is-motion-ready) .hero .actions .button,
  html.js-motion:not(.is-motion-ready) .hero .hero-command,
  html.js-motion:not(.is-motion-ready) .hero .hero-stage,
  html.js-motion:not(.is-motion-ready) .split > div:first-child,
  html.js-motion:not(.is-motion-ready) .install-hint,
  html.js-motion:not(.is-motion-ready) .closing__inner,
  html.js-motion:not(.is-motion-ready) .screens-copy,
  html.js-motion:not(.is-motion-ready) .screens-media,
  html.js-motion:not(.is-motion-ready) .screens-caption,
  html.js-motion:not(.is-motion-ready) .screens-thumbs,
  html.js-motion:not(.is-motion-ready) .screens-image {
    opacity: 0;
    visibility: hidden;
  }
}

/* CSS transform transitions fight GSAP's inline transforms. */
.is-entering {
  transition: none !important;
  will-change: transform, opacity;
}

