:root {
  --bg: #f3f3f5;
  --ink: #111113;
  --muted: #8a8a92;
  --muted-2: #b0b0b6;
  --sidebar: 236px;
  --radius: 28px;
  --bar-h: 148px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-study="spectra"] {
  --bg: #f5f4f8;
}




button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.studio-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 48px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 19, 0.05);
}

.studio-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 10px;
}

.studio-nav button {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
}

.studio-nav button:hover {
  color: var(--ink);
}

.studio-nav button.is-active {
  background: #111113;
  color: #fff;
  font-weight: 600;
}

.study {
  display: none;
  flex: 1;
}

.study.is-active {
  display: block;
}

.page {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 48px;
  min-height: calc(100vh - 120px);
}



.sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  padding-top: 4px;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.logo {
  font-family: "Pixelify Sans", ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1e;
  margin-bottom: 28px;
}

.tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
  margin-bottom: 14px;
}

.lede {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 220px;
  margin-bottom: 36px;
}

#study-spectra .lede {
  max-width: 230px;
}

#study-spectra .tagline {
  max-width: none;
  font-size: 13px;
}

.eyebrow-cn {
  font-size: 11px;
  color: var(--muted-2);
  margin: -12px 0 16px;
}

.tagline-mix {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 14px;
  font-weight: 600;
}

.cn-inline {
  font-weight: 500;
  color: #3a3a40;
}

.filters .cn {
  font-weight: 400;
  opacity: 0.55;
  margin-left: 5px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
}

#study-spectra .filters button:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 19, 0.1);
  padding: 8px 14px 8px 12px;
  color: var(--ink);
}

#study-spectra .filters button.is-active:hover {
  background: #111113;
  color: #fff;
  box-shadow: none;
}

.filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 500;
  padding: 7px 8px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

.filters button .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.filters button:hover {
  color: var(--ink);
}

.filters button.is-active {
  background: #111113;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px 8px 12px;
}

.filters button.is-active .dot {
  width: 5px;
  height: 5px;
  opacity: 1;
}

.study-count {
  margin-top: 28px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
  padding-top: 8px;
}

.stage.is-single {
  grid-template-columns: minmax(0, 560px);
}

.card {
  min-width: 0;
}

.card.is-entering {
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card[data-i="0"] { animation-delay: 0.04s; }
.card[data-i="1"] { animation-delay: 0.12s; }
.card[data-i="2"] { animation-delay: 0.18s; }
.card[data-i="3"] { animation-delay: 0.24s; }
.card[data-i="4"] { animation-delay: 0.3s; }
.card[data-i="5"] { animation-delay: 0.36s; }

.card.is-hidden {
  display: none;
}

.card-name {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6e6e76;
  margin-bottom: 12px;
}

.bar {
  position: relative;
  height: var(--bar-h);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  background: #000;
  box-shadow:
    0 18px 40px rgba(16, 16, 24, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  touch-action: none;
  user-select: none;
}

#study-solid .bar,
#study-ferro .bar {
  background: #000;
  box-shadow: 0 18px 40px rgba(16, 16, 24, 0.08);
}

.bar canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bar-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 26px;
  pointer-events: none;
}

.meta h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.meta p {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.pct {
  display: flex;
  align-items: flex-start;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.pct .num {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.pct .sym {
  font-size: 16px;
  font-weight: 500;
  margin-top: 4px;
  margin-left: 1px;
  opacity: 0.9;
}

.hint {
  position: absolute;
  right: 22%;
  bottom: 16px;
  z-index: 2;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bar.is-hover .hint,
.bar.is-drag .hint {
  opacity: 1;
  transform: none;
}

.drag-mark {
  position: absolute;
  top: 18px;
  z-index: 2;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translateX(-50%);
}

.bar.is-hover .drag-mark,
.bar.is-drag .drag-mark {
  opacity: 1;
}

.webgl-error {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 20;
}

.pill-wrap {
  position: relative;
}

.pill {
  position: relative;
  height: var(--bar-h);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 16px 40px rgba(20, 18, 40, 0.06),
    inset 0 0 0 1px rgba(17, 17, 19, 0.04);
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.pill canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pill-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 28px;
  pointer-events: none;
}

.pill-copy h2 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1c1c22;
  line-height: 1;
}

.pill-copy .price {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #9a9aa3;
  letter-spacing: 0.02em;
}

.pill-copy .paid {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill-min {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 10px rgba(17, 17, 19, 0.18);
}

.pill-min span {
  display: block;
  width: 10px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

.pill-min:hover {
  background: #2a2a30;
}

.card-name .cn {
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.studio-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 48px 28px;
  width: 100%;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.foot-links {
  letter-spacing: 0.18em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.is-entering {
    animation: none;
  }
}

@media (max-width: 980px) {
  .studio-nav,
  .studio-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 40px;
  }

  .sidebar {
    position: static;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .logo {
    font-size: 48px;
  }

  .lede {
    max-width: 280px;
  }

  .filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 4px;
  }

}

@media (max-width: 560px) {
  :root {
    --bar-h: 128px;
    --radius: 22px;
  }

  .bar-ui {
    padding: 0 18px;
  }

  .meta h2 {
    font-size: 18px;
  }

  .pct .num {
    font-size: 32px;
  }
}
