@charset "UTF-8";

:root {
  --paper: #f2eee5;
  --paper-2: #e9e4da;
  --ink: #11110f;
  --muted: #69665f;
  --line: rgba(17, 17, 15, .28);
  --blue: #1749ff;
  --blue-soft: #dfe5ff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif TC", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Noto Sans TC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: color .35s ease, background .35s ease;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input[type="range"],
input[type="color"] {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.noise {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.masthead {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  z-index: 10;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: -.04em;
}

.issue {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.issue span {
  color: var(--blue);
  padding: 0 9px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 17px;
}

.text-button,
.icon-button {
  border: 0;
  background: transparent;
}

.text-button {
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 18px;
  transition: color .2s ease, background .2s ease;
}

.icon-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  min-height: 500px;
  padding: 40px 28px 42px;
  display: grid;
  grid-template-columns: 90px minmax(520px, 1.5fr) minmax(220px, .6fr) minmax(220px, .65fr);
  align-items: end;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.hero-index {
  align-self: start;
  padding-top: 16px;
  font: 10px/1 var(--mono);
  writing-mode: vertical-rl;
  letter-spacing: .12em;
}

.hero h1 {
  margin: 0;
  font: 400 clamp(78px, 9.4vw, 156px)/.72 var(--serif);
  letter-spacing: -.075em;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 400;
}

.hero-copy {
  align-self: end;
  max-width: 330px;
  padding-bottom: 9px;
}

.hero-copy p {
  margin: 0 0 30px;
  font: 13px/1.75 var(--sans);
}

.hero-copy a {
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}

.hero-orbit {
  position: relative;
  width: min(28vw, 330px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit span {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: hero-orbit 8s linear infinite;
}

.hero-orbit::after {
  transform: rotate(58deg) scaleY(.38);
  animation-direction: reverse;
  animation-duration: 6s;
}

.hero-orbit span {
  transform: rotate(-50deg) scaleY(.42);
  animation-duration: 10s;
}

.hero-orbit i {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  left: 47%;
  top: 10%;
  border-radius: 50%;
  background: var(--blue);
  animation: float-dot 3s ease-in-out infinite;
}

.hero-orbit b {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: var(--ink);
}

@keyframes hero-orbit {
  from { transform: rotate(0deg) scaleY(.35); }
  to { transform: rotate(360deg) scaleY(.35); }
}

@keyframes float-dot {
  50% { transform: translateY(16px) scale(.7); }
}

.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 306px;
  min-height: 100vh;
}

.filters,
.export-panel {
  align-self: stretch;
  position: relative;
}

.filters {
  padding: 24px 18px;
  border-right: 1px solid var(--ink);
}

.section-label,
.eyebrow {
  color: var(--muted);
  font: 9px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.filters nav {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.filters nav button {
  width: 100%;
  padding: 13px 2px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  text-align: left;
  transition: padding .2s var(--ease), color .2s ease;
}

.filters nav button b {
  font: 9px/1 var(--mono);
  opacity: .55;
}

.filters nav button::before {
  content: "→";
  display: none;
}

.filters nav button:hover {
  padding-left: 7px;
}

.filters nav button.active {
  color: var(--blue);
  font-weight: 700;
}

.filters nav button.active::before {
  display: inline;
}

.filters nav button.active span {
  margin-right: auto;
  margin-left: 7px;
}

.filter-note {
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.filter-note span,
.filter-note small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.filter-note strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--blue);
  font: italic 52px/1 var(--serif);
}

.filter-note small {
  color: var(--muted);
}

.collection {
  min-width: 0;
  padding: 0 24px 70px;
}

.collection-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--ink);
}

.search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 460px;
  gap: 10px;
}

.search span {
  font: 26px/1 var(--serif);
  transform: rotate(-15deg);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 2px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.search input::placeholder {
  color: var(--muted);
}

.view-toggle {
  display: flex;
  gap: 3px;
}

.view-toggle button {
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.view-toggle button.active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.featured {
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--ink);
}

.stage-head {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.stage-head h2 {
  margin: 6px 0 0;
  font: 400 36px/.95 var(--serif);
  letter-spacing: -.04em;
}

.stage-actions {
  display: flex;
  gap: 8px;
}

.round-button,
.play-button {
  height: 37px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.round-button {
  width: 37px;
  border-radius: 50%;
  font-size: 18px;
}

.round-button.active {
  color: var(--blue);
}

.play-button {
  min-width: 82px;
  padding: 0 13px;
}

.play-button span {
  margin-right: 6px;
}

.stage-wrap {
  aspect-ratio: 16 / 9;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.stage-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-corner {
  position: absolute;
  z-index: 3;
  padding: 7px 9px;
  color: var(--paper);
  background: var(--ink);
  font: 8px/1 var(--mono);
  letter-spacing: .08em;
}

.canvas-corner.top-left {
  top: 0;
  left: 0;
}

.canvas-corner.bottom-right {
  right: 0;
  bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: 26px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  font: 8px/1 var(--mono);
}

.timeline-track {
  height: 3px;
  background: rgba(17, 17, 15, .16);
}

.timeline-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0 13px;
  font: 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.animation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.animation-card {
  min-width: 0;
  outline: none;
  cursor: pointer;
  border-top: 1px solid transparent;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 260px 335px;
  transition: transform .26s var(--ease), border-color .2s ease;
}

.animation-card:hover,
.animation-card:focus-visible {
  transform: translateY(-4px);
}

.animation-card.selected {
  border-color: var(--blue);
}

.card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.card-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.card-visual > span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 8px;
  color: var(--paper);
  background: var(--ink);
  font: 8px/1 var(--mono);
}

.card-favorite {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 29px;
  height: 29px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s var(--ease);
}

.animation-card:hover .card-favorite,
.card-favorite.active,
.animation-card:focus-within .card-favorite {
  opacity: 1;
  transform: none;
}

.card-favorite.active {
  color: var(--blue);
}

.card-copy {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 10px 1px 8px;
  border-bottom: 1px solid var(--line);
}

.card-copy h3 {
  margin: 0 0 3px;
  font: 400 19px/1 var(--serif);
  letter-spacing: -.02em;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font: 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card-arrow {
  color: var(--blue);
  font-size: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 8px;
}

.card-tags span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.animation-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0;
}

.list-view .animation-card {
  min-height: 100px;
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 18px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.list-view .card-visual {
  aspect-ratio: 16 / 8;
}

.list-view .card-copy {
  border: 0;
}

.list-view .card-tags {
  justify-content: flex-end;
  padding: 0;
}

.empty-state {
  padding: 90px 20px;
  text-align: center;
  border: 1px solid var(--line);
}

.empty-state span {
  color: var(--blue);
  font: italic 60px/1 var(--serif);
}

.empty-state p {
  font-family: var(--serif);
  font-size: 24px;
}

.empty-state button {
  padding: 9px 13px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 10px;
}

.export-panel {
  padding: 24px 18px 60px;
  border-left: 1px solid var(--ink);
}

.export-panel::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-dot {
  color: #197a3f;
  font: 8px/1 var(--mono);
  letter-spacing: .08em;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(25, 122, 63, .12);
}

.selected-meta {
  padding: 32px 0 23px;
  border-bottom: 1px solid var(--ink);
}

.selected-meta > span {
  color: var(--blue);
  font: 9px/1 var(--mono);
}

.selected-meta h3 {
  margin: 8px 0 7px;
  font: 400 30px/1 var(--serif);
  letter-spacing: -.035em;
}

.selected-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.control-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.advanced-controls {
  border-bottom: 1px solid var(--ink);
}

.advanced-controls summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.advanced-controls summary::-webkit-details-marker {
  display: none;
}

.advanced-controls summary span {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  transition: transform .2s ease;
}

.advanced-controls[open] summary span {
  transform: rotate(45deg);
}

.advanced-controls .control-group {
  padding-left: 2px;
  padding-right: 2px;
}

.advanced-controls .compact-control {
  padding-top: 13px;
  padding-bottom: 13px;
}

.text-custom-control[hidden] {
  display: none;
}

.text-custom-control input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 14px/1 var(--serif);
}

.text-custom-control input:focus {
  border-color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.text-custom-control > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.control-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px;
}

.control-label output {
  font: 9px/1 var(--mono);
}

input[type="range"] {
  width: 100%;
  height: 2px;
  border: 0;
  outline: 0;
  appearance: none;
  background: var(--ink);
}

input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.color-control {
  display: flex;
  align-items: center;
  gap: 13px;
}

input[type="color"] {
  width: 42px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
}

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

input[type="color"]::-webkit-color-swatch {
  border: 0;
}

.swatches {
  display: flex;
  gap: 7px;
}

.swatches button {
  width: 19px;
  height: 19px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--swatch);
}

.switch-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  position: relative;
  cursor: pointer;
}

.switch-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.switch-row b {
  font-size: 10px;
}

.switch-row small {
  color: var(--muted);
  font-size: 8px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row i {
  width: 34px;
  height: 18px;
  padding: 2px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: transparent;
  transition: background .2s ease;
}

.switch-row i::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .2s var(--ease), background .2s ease;
}

.switch-row input:checked + i {
  border-color: var(--blue);
  background: var(--blue);
}

.switch-row input:checked + i::after {
  background: white;
  transform: translateX(16px);
}

.switch-row input:focus-visible + i {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.two-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.two-controls label {
  font-size: 9px;
}

.two-controls select {
  width: 100%;
  height: 33px;
  margin-top: 7px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}

.export-summary {
  margin: 18px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .18);
}

.export-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 8px;
}

.export-summary span {
  color: var(--muted);
}

.export-summary strong {
  font-family: var(--mono);
  font-weight: 400;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s var(--ease);
}

.primary-action {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.secondary-action {
  margin-top: 8px;
  color: var(--ink);
  background: transparent;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.secondary-action:hover {
  color: var(--paper);
  background: var(--ink);
}

.primary-action b,
.secondary-action b {
  font-size: 16px;
}

.privacy-note {
  margin: 12px 8px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 30px;
  padding: 30px 28px;
  color: var(--paper);
  background: var(--ink);
}

footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

footer .brand-mark {
  color: var(--ink);
  background: var(--paper);
}

footer p,
footer a {
  margin: 0;
  color: inherit;
  font: 9px/1.6 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

footer > p {
  justify-self: center;
}

footer a {
  justify-self: end;
  border-bottom: 1px solid currentColor;
}

dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 16px 16px 0 var(--blue);
}

dialog::backdrop {
  background: rgba(17, 17, 15, .72);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ink);
}

.dialog-head h2 {
  margin: 6px 0 0;
  font: 400 36px/1 var(--serif);
}

.dialog-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.code-tabs button {
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.code-tabs button.active {
  color: white;
  background: var(--blue);
}

dialog pre {
  height: 390px;
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  color: #e9e4da;
  background: #11110f;
  font: 11px/1.65 var(--mono);
  tab-size: 2;
  white-space: pre;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 24px 22px;
}

.dialog-actions .secondary-action {
  margin: 0;
}

.export-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 15, .86);
  backdrop-filter: blur(5px);
}

.export-overlay[hidden] {
  display: none;
}

.export-card {
  width: min(480px, 100%);
  padding: 35px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--blue);
  text-align: center;
}

.export-spinner {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
  animation: spinner 1.2s linear infinite;
}

.export-spinner::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 27px;
  top: -7px;
  border-radius: 50%;
  background: var(--blue);
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.export-card h2 {
  margin: 10px 0 22px;
  font: 400 32px/1 var(--serif);
}

.progress-track {
  height: 6px;
  background: rgba(17, 17, 15, .14);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width .15s ease;
}

.export-card p {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 10px;
}

.export-card button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 24px;
  padding: 12px 17px;
  color: white;
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ink-mode {
  --paper: #11110f;
  --paper-2: #1b1a17;
  --ink: #f2eee5;
  --muted: #aaa59b;
  --line: rgba(242, 238, 229, .24);
  --blue-soft: #182659;
}

.ink-mode .primary-action {
  color: white;
}

.ink-mode .card-favorite {
  background: var(--paper);
}

.ink-mode input[type="range"]::-webkit-slider-thumb {
  background: var(--paper);
}

.ink-mode .export-summary {
  background: rgba(255, 255, 255, .03);
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 165px minmax(0, 1fr) 280px;
  }

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

  .hero {
    grid-template-columns: 50px minmax(450px, 1.4fr) minmax(210px, .7fr);
  }

  .hero-orbit {
    display: none;
  }
}

@media (max-width: 980px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .issue {
    display: none;
  }

  .hero {
    min-height: 450px;
    grid-template-columns: 36px 1fr;
  }

  .hero h1 {
    font-size: clamp(72px, 15vw, 124px);
  }

  .hero-copy {
    grid-column: 2;
  }

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

  .export-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .panel-heading,
  .selected-meta,
  .primary-action,
  .secondary-action,
  .privacy-note {
    grid-column: 1 / -1;
  }

  .export-summary {
    align-self: end;
  }
}

@media (max-width: 680px) {
  .masthead {
    height: 64px;
    padding: 0 15px;
  }

  .text-button {
    display: none;
  }

  .hero {
    min-height: 475px;
    padding: 30px 15px;
    grid-template-columns: 22px 1fr;
    gap: 10px;
  }

  .hero h1 {
    font-size: clamp(60px, 20vw, 94px);
    line-height: .78;
  }

  .hero-copy {
    padding: 25px 0 0;
  }

  .workspace {
    display: block;
  }

  .filters {
    padding: 16px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    overflow: hidden;
  }

  .filters nav {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
  }

  .filters nav button {
    width: auto;
    flex: 0 0 auto;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
  }

  .filters nav button.active {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
  }

  .filters nav button.active::before,
  .filters nav button b,
  .filter-note {
    display: none;
  }

  .filters nav button.active span {
    margin: 0;
  }

  .collection {
    padding: 0 15px 48px;
  }

  .collection-toolbar {
    min-height: 62px;
  }

  .stage-head h2 {
    font-size: 29px;
  }

  .stage-wrap {
    min-height: 0;
  }

  .animation-grid {
    grid-template-columns: 1fr;
  }

  .list-view .animation-card {
    grid-template-columns: 90px 1fr;
  }

  .list-view .card-tags {
    display: none;
  }

  .export-panel {
    display: block;
    padding: 24px 15px 55px;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 35px 15px;
    padding: 28px 15px;
  }

  footer > p {
    display: none;
  }

  dialog {
    max-height: calc(100vh - 20px);
  }

  dialog pre {
    height: 48vh;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
