:root {
  color-scheme: dark;
  --background: #080a0d;
  --background-raised: #0d1015;
  --panel: #11151b;
  --panel-bright: #171c23;
  --line: #252b34;
  --line-bright: #343c48;
  --text: #f2f5f7;
  --muted: #9aa4b1;
  --subtle: #707a87;
  --accent: #dfe7ed;
  --accent-strong: #ffffff;
  --focus: #8fd8ff;
  --success: #71e6a7;
  --danger: #ff9b9b;
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --shadow: 0 28px 80px rgb(0 0 0 / 0.36);
  --shell: 1180px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% -10%, rgb(121 143 160 / 0.14), transparent 35rem),
    radial-gradient(circle at -10% 20%, rgb(76 91 107 / 0.1), transparent 30rem), var(--background);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(255 255 255 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection {
  color: #080a0d;
  background: #dce6ec;
}

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

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="range"],
input[type="color"] {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
figure,
fieldset {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  font-weight: 720;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 680;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

code,
pre,
.eyebrow,
.lab-kicker,
.technical-label,
.pipeline-number,
.example-caption code,
.renderer-status {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

code {
  font-size: 0.88em;
}

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.85rem;
  color: #080a0d;
  background: var(--focus);
  border-radius: 6px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  background: rgb(8 10 13 / 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 auto;
  border-radius: 6px;
}

.brand img {
  width: 196px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 610;
}

.site-nav a {
  text-decoration: none;
}

.site-nav .nav-github {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  color: var(--text);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}

.site-nav .nav-github:hover {
  border-color: #586371;
  background: rgb(255 255 255 / 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.hero-copy {
  position: sticky;
  top: 2rem;
  padding-top: clamp(1rem, 4vw, 4.25rem);
}

.eyebrow,
.lab-kicker {
  margin-bottom: 1rem;
  color: #aeb8c3;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(113 230 167 / 0.11);
}

.hero-lede {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  color: #090b0e;
  border-color: #eef2f5;
  background: linear-gradient(135deg, #ffffff, #c8d0d7);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 0.8),
    0 8px 24px rgb(0 0 0 / 0.22);
}

.button-primary:hover {
  color: #090b0e;
  background: #ffffff;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-bright);
  background: rgb(255 255 255 / 0.035);
}

.button-secondary:hover {
  border-color: #596370;
  background: rgb(255 255 255 / 0.07);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 34rem;
  margin: 3.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.project-facts div {
  min-width: 0;
  padding-right: 1rem;
}

.project-facts dt {
  margin-bottom: 0.35rem;
  overflow: hidden;
  color: var(--subtle);
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-facts dd {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
}

.lab {
  position: relative;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.045), transparent 24%), var(--background-raised);
  box-shadow: var(--shadow);
}

.lab::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 1px rgb(255 255 255 / 0.055);
}

.lab > * {
  position: relative;
  z-index: 1;
}

.lab-toolbar {
  display: flex;
  min-height: 56px;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.35rem 0.35rem 1rem;
}

.lab-toolbar h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.lab-kicker {
  margin-bottom: 0.35rem;
  color: var(--subtle);
  font-size: 0.65rem;
}

.renderer-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.renderer-status .status-dot {
  width: 6px;
  height: 6px;
  background: #f6c76b;
  box-shadow: 0 0 0 4px rgb(246 199 107 / 0.1);
}

.renderer-status.is-ready .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(113 230 167 / 0.1);
}

.renderer-status.is-error {
  color: var(--danger);
}

.renderer-status.is-error .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgb(255 155 155 / 0.1);
}

.preview-well {
  display: grid;
  min-height: 370px;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid #272d35;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgb(255 255 255 / 0.07), transparent 42%),
    linear-gradient(135deg, #0c0f13, #090b0e);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.025),
    inset 0 24px 70px rgb(0 0 0 / 0.22);
}

.metal-preview {
  --demo-color: #f4f7fa;
  --demo-size: 500px;
  --demo-highlight-opacity: 0.2;
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, var(--demo-size));
  aspect-ratio: 5 / 3;
  place-items: center;
  overflow: hidden;
  color: #0a0b0d;
  background-color: var(--demo-color);
  box-shadow:
    0 28px 44px rgb(0 0 0 / 0.42),
    0 4px 12px rgb(0 0 0 / 0.28);
  transition:
    width 220ms ease,
    border-radius 220ms ease,
    background-color 180ms ease;
}

.metal-preview::before,
.metal-preview::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
}

.metal-preview::before {
  background: var(--demo-color);
  mix-blend-mode: color;
  opacity: 0.18;
}

.metal-preview::after {
  background: linear-gradient(
    var(--metallicss-angle, 315deg),
    transparent 5%,
    rgb(255 255 255 / 0.08) 31%,
    rgb(255 255 255 / 0.7) 48%,
    rgb(255 255 255 / 0.08) 61%,
    transparent 82%
  );
  mix-blend-mode: soft-light;
  opacity: var(--demo-highlight-opacity, 0.2);
}

.metallicss > canvas.metal {
  pointer-events: none;
}

.preview-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 1.25rem;
  text-align: center;
}

.preview-content strong {
  margin-block: 0.2rem 0.35rem;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 1;
}

.preview-content > span:last-child {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: 620;
  opacity: 0.7;
}

.preview-overline {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  opacity: 0.58;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: #0d1116;
}

.controls legend {
  float: left;
  width: 100%;
  margin-bottom: 0.85rem;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.controls legend + * {
  clear: both;
}

.control + .control {
  margin-top: 0.85rem;
}

.control-label,
.control-select,
.control-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.control label,
.control output {
  font-size: 0.72rem;
}

.control label {
  color: #c4ccd4;
  font-weight: 610;
}

.control output {
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.controls select {
  width: min(58%, 9rem);
  height: 34px;
  padding: 0 2rem 0 0.65rem;
  color: var(--text);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background-color: #151a20;
  font-size: 0.75rem;
  cursor: pointer;
}

.color-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.controls input[type="color"] {
  width: 34px;
  height: 34px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: #151a20;
  cursor: pointer;
}

.controls input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 1px;
}

.controls input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

.controls input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}

.controls input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0.2rem 0 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.controls input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: #343b44;
}

.controls input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: #343b44;
}

.controls input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #aeb9c3;
}

.controls input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -6px;
  border: 2px solid #f2f5f7;
  border-radius: 50%;
  appearance: none;
  background: #67727e;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.5);
}

.controls input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #f2f5f7;
  border-radius: 50%;
  background: #67727e;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.5);
}

.controls input[type="range"]:focus-visible {
  outline-offset: 1px;
}

.control-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 0.65rem;
  padding: 0.75rem;
  background: #0d1116;
}

.control-actions .button {
  width: 100%;
  min-height: 40px;
  font-size: 0.76rem;
}

.snippet-card {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #090c10;
}

.snippet-header,
.install-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--subtle);
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 650;
}

.text-button {
  margin: -0.35rem -0.45rem -0.35rem 0;
  padding: 0.4rem 0.5rem;
  color: #dce4ea;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 680;
}

.text-button:hover {
  background: rgb(255 255 255 / 0.07);
}

pre {
  margin: 0;
  overflow: auto;
  color: #c8d1da;
  font-size: 0.72rem;
  line-height: 1.65;
  tab-size: 2;
}

.snippet-card pre {
  max-height: 230px;
  padding: 1rem;
}

.copy-status {
  min-height: 1.15rem;
  margin: 0.45rem 0 0;
  padding-inline: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.copy-status.is-error {
  color: var(--danger);
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
}

.section-heading {
  max-width: 47rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading-wide {
  max-width: 60rem;
}

.section-heading h2 {
  max-width: 16ch;
}

.section-heading p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.example {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: #0c0f13;
}

.example-stage {
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 30%, rgb(255 255 255 / 0.055), transparent 44%), #0a0d11;
}

.example-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.example-caption h3 {
  margin: 0;
  font-size: 0.88rem;
}

.example-caption code {
  color: var(--subtle);
  font-size: 0.66rem;
}

.example-button-wrap {
  filter: drop-shadow(0 18px 18px rgb(0 0 0 / 0.34));
}

.metal-action {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  min-width: 190px;
  min-height: 58px;
  place-items: center;
  padding: 0.8rem 1.5rem;
  overflow: hidden;
  color: #0a0c0e;
  border: 0;
  background: #d9dfe4;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.demo-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #c8d0d7;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 620;
}

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

.switch-track {
  position: relative;
  isolation: isolate;
  display: block;
  width: 76px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #7a838c;
}

.switch-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f7f8;
  box-shadow: 0 3px 9px rgb(0 0 0 / 0.38);
  transition: transform 180ms ease;
}

.demo-switch input:checked + .switch-track .switch-knob {
  transform: translateX(34px);
}

.demo-switch input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.metal-card {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(100%, 310px);
  aspect-ratio: 1.55 / 1;
  flex-direction: column;
  justify-content: end;
  padding: 1.5rem;
  overflow: hidden;
  color: #15110a;
  box-shadow: 0 24px 32px rgb(0 0 0 / 0.38);
}

.metal-card > * {
  position: relative;
  z-index: 1;
}

.metal-card .card-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  opacity: 0.55;
}

.metal-card strong {
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.metal-card small {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  opacity: 0.65;
}

.spinner-orbit {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
}

.spinner-orbit::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 2px solid transparent;
  border-top-color: #d7dee3;
  border-right-color: #59636d;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
  mask-image: linear-gradient(black, transparent 72%);
}

.spinner-core {
  position: relative;
  isolation: isolate;
  width: 68px;
  height: 68px;
  overflow: hidden;
  background: #b56c4f;
  box-shadow: 0 14px 24px rgb(0 0 0 / 0.36);
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.technical-section {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.018), transparent 24%), #0a0d11;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--line);
  gap: 1px;
  overflow: hidden;
}

.pipeline li {
  min-height: 240px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #0d1116;
}

.pipeline-number {
  display: block;
  margin-bottom: 3rem;
  color: #66717c;
  font-size: 0.7rem;
}

.pipeline h3 {
  font-size: 1.4rem;
}

.pipeline p,
.technical-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.technical-grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgb(255 255 255 / 0.018);
}

.technical-label {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--subtle);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.technical-grid h3 {
  font-size: 1.1rem;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: #090c10;
}

.install-card-wide {
  grid-column: 1 / -1;
}

.install-card-header code {
  color: #707a85;
}

.install-card pre {
  min-height: 112px;
  padding: 1.4rem;
  color: #d1dae2;
  font-size: 0.78rem;
}

.install-card-wide pre {
  min-height: 156px;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--line);
}

.project-links a {
  display: grid;
  min-height: 126px;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem;
  background: #0d1116;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.project-links a:hover {
  background: #141920;
}

.project-links span:first-child {
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-links strong {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 630;
}

.closing-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 50%, rgb(178 194 207 / 0.1), transparent 35rem), #0c0f13;
}

.closing-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.closing-inner h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.site-footer {
  padding-block: 2rem;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  background: #07090c;
  font-size: 0.7rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-inner img {
  width: 150px;
  height: auto;
  opacity: 0.72;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner a {
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
  }

  .hero-copy {
    position: static;
    padding-top: 0;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .hero-lede {
    max-width: 46rem;
  }

  .project-facts {
    max-width: 40rem;
  }
}

@media (max-width: 780px) {
  .site-nav > a:not(.nav-github) {
    display: none;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .controls fieldset + fieldset {
    border-top: 1px solid var(--line);
  }

  .examples-grid,
  .install-grid,
  .project-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .install-card-wide {
    grid-column: auto;
  }

  .pipeline,
  .technical-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline-number {
    margin-bottom: 1.5rem;
  }

  .pipeline li {
    min-height: 0;
  }

  .closing-inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1rem;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 2rem), var(--shell));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 158px;
  }

  .site-nav .nav-github {
    min-height: 34px;
    padding-inline: 0.7rem;
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-actions .button,
  .closing-actions .button {
    width: 100%;
  }

  .project-facts {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .project-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
  }

  .project-facts dt {
    margin: 0;
  }

  .lab {
    margin-inline: -0.35rem;
    border-radius: 20px;
  }

  .lab-toolbar {
    display: block;
  }

  .renderer-status {
    margin-top: 0.75rem;
  }

  .preview-well {
    min-height: 270px;
    padding: 1rem;
  }

  .preview-content strong {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .control-actions {
    grid-template-columns: 1fr;
  }

  .snippet-card pre {
    font-size: 0.66rem;
  }

  .example-stage {
    min-height: 230px;
    padding: 1.25rem;
  }

  .example-caption {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .install-card pre {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .status-dot {
    background: ButtonText;
    box-shadow: none;
  }

  .metal-preview::before,
  .metal-preview::after,
  body::before {
    display: none;
  }

  .metallicss > canvas[data-metallicss-canvas] {
    display: none !important;
  }

  .button,
  .example,
  .lab,
  .pipeline,
  .technical-grid article,
  .install-card,
  .project-links {
    border-color: CanvasText;
  }
}
