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

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
.hero-name {
  font-family: var(--font-sans);
}

::selection {
  background: var(--selection);
  color: var(--text);
}

a {
  color: var(--brand);
}

.wrap {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--surface);
  border-color: var(--text-muted);
  transform: translateY(-1px);
  outline: none;
}

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

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: color-mix(in srgb, var(--brand) 86%, white);
  border-color: transparent;
}

.theme-switch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.theme-switch button {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  cursor: pointer;
  background: var(--swatch);
  padding: 0;
}

.theme-switch button[aria-pressed="true"] {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.theme-switch button[data-theme-option="tokyo-night"] { --swatch: #1a1b26; background: linear-gradient(135deg, #1a1b26 45%, #9ece6a 45%); }
.theme-switch button[data-theme-option="osaka-jade"] { --swatch: #111c18; background: linear-gradient(135deg, #111c18 45%, #509475 45%); }
.theme-switch button[data-theme-option="solitude"] { --swatch: #101315; background: linear-gradient(135deg, #101315 45%, #9aa3a8 45%); }
.theme-switch button[data-theme-option="catppuccin-latte"] { --swatch: #eff1f5; background: linear-gradient(135deg, #eff1f5 45%, #1e66f5 45%); }

/* Home */

.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
}

.page-home .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  gap: clamp(1.75rem, 5vw, 3rem);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero-tagline + .handles {
  margin-top: 1.1rem;
}

.hero-name {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 580;
  font-size: clamp(3.4rem, 12vw, 6.6rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: var(--text);
}

.hero-tagline {
  max-width: 40rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.handles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.7rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.handles a {
  color: var(--text-secondary);
  text-decoration: none;
}

.handles a:hover,
.handles a:focus-visible {
  color: var(--brand);
}

.handles a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.handles-sep {
  color: var(--text-muted);
  opacity: 0.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Plan */

.page-plan {
  padding-bottom: 72px;
}

.plan-hero {
  background: var(--bg-deep);
  color: var(--text);
  padding: 28px 20px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-hero .kicker {
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
}

.plan-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.plan-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.home-link {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--brand);
}

nav.toc {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav.toc .wrap {
  display: flex;
  gap: 8px;
  padding: 10px 0;
}

nav.toc a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

nav.toc a:hover,
nav.toc a:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}

.page-plan section {
  padding: 28px 0 8px;
}

.page-plan h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-plan h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: var(--brand);
}

.page-plan p {
  margin: 0 0 12px;
}

.muted {
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 8px;
}

.card {
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

.card.alt {
  background: var(--surface);
}

.card.mid {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
}

.card.soft {
  background: var(--brand);
  color: var(--brand-ink);
}

.card .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.card .big {
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 2px;
  letter-spacing: -0.03em;
}

.card .sub {
  font-size: 13px;
  opacity: 0.9;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 14px;
}

.banner {
  background: var(--brand-soft);
  border-left: 5px solid var(--brand);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-weight: 600;
}

.banner.off {
  background: color-mix(in srgb, var(--warn) 16%, var(--surface));
  border-left-color: var(--warn);
}

ul.clean {
  margin: 0;
  padding: 0 0 0 18px;
}

ul.clean li {
  margin: 0 0 6px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}

th,
td {
  text-align: left;
  padding: 8px 9px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.03em;
}

tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
}

td.day {
  font-weight: 700;
  white-space: nowrap;
}

.note {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  margin-top: 3px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--brand-ink);
}

.tag.c {
  background: var(--border);
  color: var(--text);
}

.tag.b {
  background: var(--warn);
  color: var(--brand-ink);
}

.tag.a {
  background: var(--danger);
  color: #14080a;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-plan footer,
.page-projects footer,
.page-voiceover footer {
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

/* Projects */

.page-projects {
  padding: 28px 0 88px;
}

.page-projects .intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.page-projects .intro h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 12px;
}

.page-projects .intro p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.55;
  margin: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px 16px;
  background:
    linear-gradient(160deg, var(--surface-2) 0%, var(--bg-deep) 100%);
  color: color-mix(in srgb, var(--brand) 55%, var(--text-muted));
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.project-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.project-card-body h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-card-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.project-card-body .meta {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a.project-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease-out, transform 150ms ease-out;
}

a.project-card:hover,
a.project-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-1px);
  outline: none;
}

a.project-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.vo-preview {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 3px;
  padding: 20px 16px 14px;
}

.vo-preview span {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1px;
  background: color-mix(in srgb, var(--brand) 70%, var(--accent));
  transform-origin: bottom center;
  animation: vo-preview-bar 1.8s ease-in-out infinite;
}

.vo-preview span:nth-child(6n+1) { height: 30%; animation-delay: 0s; }
.vo-preview span:nth-child(6n+2) { height: 58%; animation-delay: 0.12s; }
.vo-preview span:nth-child(6n+3) { height: 82%; animation-delay: 0.24s; }
.vo-preview span:nth-child(6n+4) { height: 46%; animation-delay: 0.08s; }
.vo-preview span:nth-child(6n+5) { height: 70%; animation-delay: 0.2s; }
.vo-preview span:nth-child(6n)   { height: 38%; animation-delay: 0.32s; }

@keyframes vo-preview-bar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Voice over */

.page-voiceover {
  padding: 28px 0 120px;
}

.page-voiceover .kicker {
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
}

.vo-award {
  margin-bottom: 1rem;
}

.vo-award h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 4px 0 8px;
  text-wrap: balance;
}

.vo-award p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.vo-award a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 150ms ease-out;
}

.vo-award a:hover,
.vo-award a:focus-visible {
  text-decoration-color: var(--brand);
}

.viz-stage {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: min(36vh, 380px);
  max-height: 380px;
  min-height: 220px;
  box-shadow: var(--shadow);
}

.viz-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.viz-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem 0.65rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-deep) 88%, transparent), transparent);
  color: var(--text);
  opacity: 0.72;
  transition: opacity 150ms ease-out;
}

.viz-stage:hover .viz-hud,
.viz-stage:focus-within .viz-hud,
.viz-stage.is-fullscreen .viz-hud {
  opacity: 1;
}

.viz-icon {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  touch-action: manipulation;
}

.viz-icon:hover,
.viz-icon:focus-visible {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  outline: none;
}

.viz-icon:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.viz-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.viz-icon .icon-pause,
.viz-icon.is-playing .icon-play,
.viz-icon .icon-exit-fs,
.viz-icon.is-fullscreen .icon-enter-fs {
  display: none;
}

.viz-icon.is-playing .icon-pause,
.viz-icon.is-fullscreen .icon-exit-fs {
  display: block;
}

.viz-meter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.viz-meter input[type="range"] {
  flex: 1;
  min-width: 0;
  appearance: none;
  height: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--border) 70%, transparent);
  outline: none;
  cursor: pointer;
}

.viz-meter input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  border: 0;
}

.viz-meter input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  border: 0;
}

.viz-modes {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.viz-modes button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  touch-action: manipulation;
}

.viz-modes button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.viz-modes button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.viz-palettes {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.viz-palettes button {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  padding: 0;
  cursor: pointer;
  background: var(--swatch);
}

.viz-palettes button[aria-pressed="true"] {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.viz-palettes button[data-palette="theme"] {
  background: linear-gradient(135deg, var(--bg) 45%, var(--brand) 45%);
}

.viz-palettes button[data-palette="spectrum"] {
  background: conic-gradient(#7aa2f7, #bb9af7, #f7768e, #ff9e64, #9ece6a, #7aa2f7);
}

.viz-palettes button[data-palette="heat"] {
  background: linear-gradient(135deg, #2a0c12 40%, #f7768e 40%);
}

.viz-palettes button[data-palette="ice"] {
  background: linear-gradient(135deg, #0c1c30 40%, #7aa2f7 40%);
}

.viz-stage:fullscreen,
.viz-stage:-webkit-full-screen {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vo-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20.5rem) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.vo-menu,
.vo-copy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  height: 100%;
}

.vo-copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vo-copy-body {
  flex: 1 1 auto;
}

.vo-menu h2,
.vo-copy h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.vo-menu h3 {
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vo-menu h3:first-child {
  margin-top: 4px;
}

.vo-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vo-menu li + li {
  margin-top: 4px;
}

.vo-menu button {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.32rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
}

.vo-menu button:hover,
.vo-menu button:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.vo-menu button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.vo-menu button[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--text);
}

.vo-num {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-width: 1.4rem;
}

.vo-copy .kicker {
  margin-bottom: 8px;
}

.vo-copy .vo-cat-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 2rem;
  text-wrap: pretty;
}

.vo-copy h2 {
  margin: 0 0 8px;
}

.vo-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.vo-copy a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease-out;
}

.vo-copy a:hover,
.vo-copy a:focus-visible {
  text-decoration-color: var(--brand);
}

.vo-copy-placeholder {
  color: var(--text-muted);
}

.vo-keys {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.vo-keys h3 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vo-keys ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin: 0;
  padding: 0;
}

.vo-keys li {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.vo-keys kbd {
  display: inline-block;
  min-width: 1.15rem;
  padding: 0.08rem 0.32rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

#vo-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .vo-layout {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 480px;
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .plan-hero {
    padding: 22px 16px 18px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .card .big {
    font-size: 22px;
  }

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

  .theme-switch {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .viz-stage {
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: none;
    min-height: 200px;
  }

  .viz-hud {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "play modes palettes fs"
      "seek seek seek seek";
    align-items: center;
    opacity: 1;
    gap: 0.4rem 0.45rem;
  }

  #play-btn { grid-area: play; }
  .viz-modes { grid-area: modes; }
  .viz-palettes { grid-area: palettes; justify-self: end; }
  #fs-btn { grid-area: fs; }
  .viz-meter {
    grid-area: seek;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .vo-preview span,
  a.project-card {
    animation: none;
    transition: none;
  }
}

@media print {
  nav.toc,
  .theme-switch {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
    padding: 0;
  }

  .panel,
  .card {
    box-shadow: none;
  }
}
