/* Orbital Velocity — Redesign
   Type + color system exposed via CSS vars so Tweaks can swap themes. */

:root {
  /* Observatory theme (default) */
  --bg: #f2ede4;
  --bg-2: #e8e1d3;
  --paper: #faf6ed;
  --ink: #111826;
  --ink-2: #2a3448;
  --muted: #5b6578;
  --rule: rgba(17, 24, 38, 0.18);
  --rule-soft: rgba(17, 24, 38, 0.08);
  --accent: #b8411a;     /* orbital rust */
  --accent-2: #2e4a7a;   /* deep star */
  --grid: rgba(17, 24, 38, 0.05);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Söhne", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

[data-theme="deepspace"] {
  --bg: #0b0d10;
  --bg-2: #14171c;
  --paper: #111418;
  --ink: #f2ede4;
  --ink-2: #d8d2c3;
  --muted: #8a8578;
  --rule: rgba(242, 237, 228, 0.2);
  --rule-soft: rgba(242, 237, 228, 0.08);
  --accent: #e89056;
  --accent-2: #7ea7d8;
  --grid: rgba(242, 237, 228, 0.05);
}

[data-theme="archive"] {
  --bg: #ece7dc;
  --bg-2: #ddd6c5;
  --paper: #f5efe0;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #555;
  --rule: rgba(0, 0, 0, 0.32);
  --rule-soft: rgba(0, 0, 0, 0.1);
  --accent: #c22a1f;
  --accent-2: #0a0a0a;
  --grid: rgba(0, 0, 0, 0.06);

  --serif: "Roslindale", "Fraunces", "Times New Roman", serif;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "kern";
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

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

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

/* ——— layout primitives ——— */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-soft { height: 1px; background: var(--rule-soft); width: 100%; }

/* ——— header / nav ——— */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 48px;
  gap: 32px;
}
@media (max-width: 720px) { .masthead-inner { padding: 14px 20px; gap: 16px; } }

.masthead-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 20px;
  align-items: center;
}
.masthead-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.brand {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
}
.brand .mark {
  width: 28px; height: 28px;
  position: relative;
  flex: none;
}
.brand .mark svg { width: 100%; height: 100%; }

.nav {
  display: flex; gap: 24px;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .masthead-inner { grid-template-columns: 1fr auto auto; }
  .masthead-meta { display: none; }
  .nav { gap: 14px; font-size: 10.5px; }
}
@media (max-width: 600px) {
  .nav a:not(.nav-menu-btn) { display: none; }
  /* leave room for fixed bottom nav so footer content isn't covered */
  body { padding-bottom: 68px; }
}

/* ——— mobile bottom nav ——— */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 720px) {
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: var(--paper, #fff);
    border-top: 1px solid var(--rule);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  }
  .mbn-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-family: var(--mono);
    cursor: pointer;
    transition: color 0.15s ease;
  }
  .mbn-btn:hover { color: var(--ink); }
  .mbn-btn.active { color: var(--accent); }
  .mbn-icon { font-size: 16px; line-height: 1; }
  .mbn-label { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }
}

/* ——— hero ——— */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: end;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-kicker .tick {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

h1.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}
.hero-stats .cell {
  padding: 24px 0 16px 0;
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.hero-stats .cell:first-child { border-left: none; padding-left: 0; }
.hero-stats .num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-stats .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 10px;
}

/* orbit diagram in hero */
.orbit-vis {
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
  position: relative;
}
.orbit-vis svg { width: 100%; height: 100%; overflow: visible; }

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ——— section scaffolding ——— */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: baseline;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

/* services list */
.services {
  display: grid;
  grid-template-columns: 1fr;
}
.service-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr auto;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  cursor: pointer;
  transition: background 0.25s ease, padding 0.25s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-row:hover {
  background: var(--bg-2);
  padding-left: 16px;
  padding-right: 16px;
}
.service-row .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 6px;
}
.service-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.service-row p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.service-row .plus {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
  padding-top: 4px;
}
.service-row:hover .plus { color: var(--accent); transform: rotate(45deg); }

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: auto 1fr auto;
    gap: 16px 20px;
  }
  .service-row p { grid-column: 1 / -1; }
}

/* ——— featured / footer cta ——— */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer .bigmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— podcast strip on home ——— */
.podcast-strip {
  padding: 80px 0;
  position: relative;
}
.podcast-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .podcast-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
.podcast-art {
  aspect-ratio: 1/1;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--bg);
}

/* ——— team grid ——— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; gap: 48px; } }

.person {
  display: grid;
  gap: 24px;
}
.person-portrait {
  aspect-ratio: 4/5;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  max-width: 320px;
  width: 100%;
}
.person-portrait img {
  image-rendering: auto;
}
.person-portrait.has-photo::after { display: none; }
.person-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 12px,
    var(--rule-soft) 12px 13px
  );
  pointer-events: none;
  opacity: 0.6;
}
.person-portrait .placeholder-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.person-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.person-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  margin-bottom: 20px;
}
.person-bio {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.person-bio p + p { margin-top: 16px; }
.person-bio a { color: var(--accent-2); border-bottom: 1px solid currentColor; }
.person-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.person-meta .k { color: var(--ink); }

/* ——— experience / logos grid ——— */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 900px) { .logos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .logos-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-cell {
  aspect-ratio: 1.3/1;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 36px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  position: relative;
  transition: background 0.2s ease;
}
.logo-cell .logo-mark img {
  max-width: 140px !important;
  max-height: 100px !important;
}
.logo-cell:hover { background: var(--bg-2); }
.logo-cell .logo-mark {
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
}
.logo-cell .logo-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* project table */
.projects-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-family: var(--serif);
}
.projects-table th, .projects-table td {
  text-align: left;
  padding: 18px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.projects-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.projects-table td.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  width: 48px;
}
.projects-table td.name {
  font-size: 18px;
  letter-spacing: -0.01em;
  width: 34%;
}
.projects-table td.desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.projects-table td.value {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--accent);
}
.projects-table tr {
  transition: background 0.15s ease;
}
.projects-table tbody tr:hover { background: var(--bg-2); }

@media (max-width: 720px) {
  .projects-table td.num, .projects-table th:first-child { display: none; }
  .projects-table td.desc, .projects-table th:nth-child(3) { display: none; }
}

/* ——— contact page ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.form-card {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field select {
  font-family: var(--serif);
  font-size: 17px;
  padding: 12px 0;
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field select option {
  background: var(--bg);
  color: var(--ink);
}
.field input, .field textarea {
  font-family: var(--serif);
  font-size: 17px;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field.row2 { grid-template-columns: 1fr; } }
.field .err {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 14px;
}

.percy-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 28px;
  display: grid;
  gap: 20px;
}
.percy-frame {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #d4b494, #8b6f52);
  position: relative;
  overflow: hidden;
}
.percy-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.percy-caption .role {
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.percy-caption p + p { margin-top: 8px; }

/* ——— news ——— */
.news-list {
  display: grid;
  gap: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  cursor: pointer;
  transition: background 0.2s ease, padding 0.2s ease;
}
.news-item:hover {
  background: var(--bg-2);
  padding-left: 16px;
  padding-right: 16px;
}
.news-item:last-child { border-bottom: 1px solid var(--rule); }
.news-item .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.news-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.news-item .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  justify-self: end;
}
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .news-item .tag { justify-self: start; }
}

/* ——— podcast page ——— */
.episode-row {
  display: grid;
  grid-template-columns: 48px 72px 1fr auto auto;
  gap: 24px;
  padding: 20px 16px;
  border-top: 1px solid var(--rule);
  align-items: center;
  transition: background 0.15s ease;
  cursor: pointer;
}
.episode-row:last-child { border-bottom: 1px solid var(--rule); }
.episode-row:hover { background: var(--bg-2); }
.episode-row.playing { background: var(--bg-2); }
.episode-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.episode-art {
  width: 72px; height: 72px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  position: relative;
}
.episode-title {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.episode-guest {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.episode-duration {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.episode-play {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  transition: all 0.18s ease;
}
.episode-row:hover .episode-play { border-color: var(--accent); background: var(--accent); color: #fff; }
.episode-row.playing .episode-play { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (max-width: 720px) {
  .episode-row { grid-template-columns: 56px 1fr 44px; gap: 14px; padding: 16px 8px; }
  .episode-num, .episode-duration { display: none; }
}

/* podcast now playing */
.now-playing {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .now-playing { grid-template-columns: 1fr; gap: 32px; } }

.now-art {
  aspect-ratio: 1/1;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.player-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  transition: background 0.15s ease;
}
.player-btn:hover { background: var(--accent); }
.player-progress {
  height: 3px;
  background: var(--rule);
  position: relative;
  border-radius: 2px;
}
.player-progress .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s linear;
}
.player-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  min-width: 90px;
  text-align: right;
}

/* ——— tweaks panel ——— */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 20px;
  width: 280px;
  font-family: var(--mono);
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.tweak-theme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.tweak-theme {
  padding: 12px 8px;
  border: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  transition: all 0.15s ease;
}
.tweak-theme:hover { border-color: var(--accent); }
.tweak-theme.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweak-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tweak-row select {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 6px 8px;
}

/* ——— animated elements ——— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 20px; }
.marquee-track .star { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / 6)); }
}

/* ——— page router helpers ——— */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* big page titles */
.page-head {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.page-head .eyebrow { margin-bottom: 24px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-head .intro {
  max-width: 54ch;
  margin-top: 32px;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* utility */
.hide { display: none !important; }
