:root {
  --bg: #10161d;
  --bg-soft: #17212a;
  --surface: rgba(21, 30, 38, 0.88);
  --surface-strong: rgba(24, 36, 46, 0.96);
  --surface-soft: rgba(239, 246, 242, 0.07);
  --ink: #f4f7f3;
  --muted: #adbbc0;
  --line: rgba(229, 239, 235, 0.13);
  --accent: #f26d5b;
  --accent-strong: #22b8a7;
  --accent-deep: #d94d45;
  --gold: #f2c76e;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 18px 42px rgba(34, 184, 167, 0.2);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --home-hero-scroll-opacity: 1;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Barlow", sans-serif;
  background:
    linear-gradient(135deg, rgba(34, 184, 167, 0.08), transparent 32%),
    linear-gradient(180deg, #0c1117 0%, var(--bg) 54%, #121a20 100%);
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: rgba(255, 50, 31, 0.24);
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 12px 16px;
  border: 1px solid rgba(255, 180, 143, 0.8);
  border-radius: 999px;
  color: #030303;
  background: #ffb48f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 160ms ease;
}

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

.fuego-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #030303;
}

.fuego-ambient video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: contrast(1.18) saturate(1.18) brightness(0.7);
  transform: scale(1.02);
}

.fuego-ambient::before,
.fuego-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
}

.fuego-ambient::before {
  background:
    radial-gradient(circle at 22% 14%, rgba(224, 38, 24, 0.34), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(255, 62, 35, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.78));
}

.fuego-ambient::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 22%, rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: multiply;
}

.fuego-cart-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(224, 38, 24, 0.78);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  touch-action: manipulation;
  font-family: "Barlow", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.fuego-cart-toggle:hover {
  color: #ffffff;
  background: rgba(224, 38, 24, 0.9);
}

.fuego-cart-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #050505;
  background: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0;
}

body,
button,
input,
a {
  -webkit-font-smoothing: antialiased;
}

button,
input,
.eyebrow,
.section-kicker,
.brand,
.nav a,
.status-pill,
.button,
.card-label,
.repo-meta,
.repo-link,
#projectCount,
#projectStatus {
  font-family: "Barlow", sans-serif;
}

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

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

.site-glow-one {
  top: -10rem;
  right: -8rem;
  background: rgba(255, 106, 43, 0.46);
}

.site-glow-two {
  left: -10rem;
  bottom: 2rem;
  background: rgba(255, 195, 98, 0.28);
}

.artbeta-page .section-intro p {
  max-width: 740px;
}

.artbeta-hero {
  min-height: min(78vh, 760px);
  background:
    linear-gradient(115deg, rgba(3, 3, 3, 0.88), rgba(3, 3, 3, 0.54)),
    radial-gradient(circle at 72% 28%, rgba(242, 109, 91, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(34, 184, 167, 0.12), rgba(217, 77, 69, 0.18));
}

.artbeta-room-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 204, 0.16);
  border-radius: var(--radius-lg);
  background: #0d0c0b;
  box-shadow: var(--shadow);
}

.artbeta-room-shell:fullscreen {
  border-radius: 0;
}

.artbeta-room-shell:fullscreen #artbetaCanvas,
.artbeta-room-shell.is-mobile-room-mode #artbetaCanvas {
  height: 100vh;
}

body.artbeta-room-open {
  overflow: hidden;
}

.artbeta-room-shell.is-mobile-room-mode {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  height: 100dvh;
  border: 0;
  border-radius: 0;
}

#artbetaCanvas {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 430px;
  cursor: grab;
  touch-action: none;
}

#artbetaCanvas:active {
  cursor: grabbing;
}

.artbeta-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(224, 38, 24, 0.22), #0d0c0b 64%);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artbeta-loading[hidden] {
  display: none;
}

.artbeta-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.artbeta-mobile-enter {
  display: none;
}

.artbeta-mobile-help,
.artbeta-touch-pad {
  display: none;
}

.artbeta-controls .button,
.artbeta-controls span {
  pointer-events: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.artbeta-touch-pad {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.artbeta-touch-pad,
.artbeta-touch-pad div {
  align-items: center;
  gap: 8px;
}

.artbeta-touch-pad button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 231, 204, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.66);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  padding: 0;
  font-family: "Barlow", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  backdrop-filter: blur(8px);
}

.artbeta-touch-pad button:active {
  color: #050505;
  background: var(--gold);
}

.artbeta-controls .button {
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.72rem;
}

.artbeta-controls span {
  border: 1px solid rgba(255, 231, 204, 0.16);
  border-radius: var(--radius-pill);
  padding: 10px 12px;
  color: rgba(244, 247, 243, 0.82);
  background: rgba(5, 5, 5, 0.72);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.artbeta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.artbeta-grid-card,
.artbeta-grid-card button {
  min-width: 0;
}

.artbeta-grid-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.artbeta-grid-card button {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.artbeta-grid-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: #111;
}

.artbeta-grid-card span,
.artbeta-grid-card small {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.artbeta-grid-card strong {
  line-height: 1.2;
}

.artbeta-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 2, 2, 0.76);
  backdrop-filter: blur(12px);
}

.artbeta-modal[hidden] {
  display: none;
}

.artbeta-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 18px;
  width: min(980px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 231, 204, 0.18);
  border-radius: var(--radius-lg);
  background: #15110f;
  box-shadow: var(--shadow);
}

.artbeta-modal-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  background: #090807;
}

.artbeta-modal-copy {
  padding: 28px 24px 24px 0;
}

.artbeta-modal-copy h2 {
  margin: 0 0 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 0.96;
}

.artbeta-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: auto;
  min-height: 38px;
  border: 1px solid rgba(255, 231, 204, 0.22);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.7);
  padding: 0 14px;
  cursor: pointer;
}

.artbeta-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.artbeta-facts div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.artbeta-facts dt {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artbeta-facts dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 720px) {
  .artbeta-hero {
    min-height: auto;
  }

  .artbeta-hero .hero-copy {
    padding-block: 18px 8px;
  }

  .artbeta-mobile-enter {
    display: inline-flex;
  }

  .artbeta-room-section {
    padding-top: 12px;
  }

  .artbeta-room-section .section-intro {
    margin-bottom: 12px;
  }

  .artbeta-room-section .section-intro h2 {
    font-size: clamp(1.7rem, 10vw, 3rem);
  }

  .artbeta-room-section .section-intro p:not(.section-kicker) {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  #artbetaCanvas {
    height: 62dvh;
    min-height: 360px;
  }

  .artbeta-controls {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }

  .artbeta-controls .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .artbeta-controls span {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.64rem;
  }

  .artbeta-desktop-help {
    display: none;
  }

  .artbeta-mobile-help {
    display: block;
  }

  .artbeta-room-shell.is-mobile-room-mode .artbeta-touch-pad,
  .artbeta-room-shell:fullscreen .artbeta-touch-pad {
    display: grid;
    justify-items: center;
  }

  .artbeta-room-shell.is-mobile-room-mode .artbeta-touch-pad div,
  .artbeta-room-shell:fullscreen .artbeta-touch-pad div {
    display: flex;
  }

  .artbeta-modal-card {
    grid-template-columns: 1fr;
  }

  .artbeta-modal-copy {
    padding: 0 18px 20px;
  }

  .artbeta-modal-card img {
    min-height: 260px;
    max-height: 52vh;
  }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.panel,
.section-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel {
  background: linear-gradient(180deg, rgba(24, 36, 46, 0.92), rgba(14, 22, 29, 0.96));
}

.section-block {
  margin-top: 22px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(21, 30, 38, 0.88), rgba(14, 22, 29, 0.94));
}

.hero {
  padding: 30px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.brand {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

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

.hero-grid,
.projects-header,
.about-grid,
.spotlight-grid,
.lottery-layout,
.tone-layout,
.dual-controls,
.tone-stat-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: 4.75rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.lede,
.section-intro p,
.info-card p,
.spotlight-card p,
.repo-card p,
.about-card p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 62ch;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.projects-nav-actions,
.projects-footer-actions {
  margin-top: 0;
}

.projects-footer-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #091113;
  box-shadow: var(--shadow-strong);
}

.button.ghost {
  background: rgba(255, 243, 233, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.compact {
  min-height: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.stat-card,
.info-card,
.spotlight-card,
.repo-card,
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.stat-card {
  padding: 18px;
}

.stat-card dt {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 195, 98, 0.22);
  background: rgba(255, 195, 98, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
}

.status-stack {
  display: grid;
  gap: 14px;
}

.info-card,
.spotlight-card,
.about-card {
  padding: 22px;
}

.accent-card {
  background:
    linear-gradient(140deg, rgba(34, 184, 167, 0.14), rgba(242, 109, 91, 0.1));
}

.section-intro {
  max-width: 70ch;
}

.spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.lottery-layout,
.tone-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.projects-header {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: end;
}

.projects-tools {
  display: grid;
  gap: 12px;
}

.search-shell input {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 243, 233, 0.08);
  color: var(--ink);
}

.search-shell input::placeholder {
  color: rgba(255, 243, 230, 0.54);
}

.project-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

#projectCount,
#projectStatus {
  margin-bottom: 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

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

.repo-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.repo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 106, 43, 0.34);
}

.repo-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.repo-name {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.repo-meta {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 243, 233, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
}

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
}

.repo-link.primary-link {
  background: linear-gradient(135deg, rgba(255, 106, 43, 0.24), rgba(255, 61, 31, 0.16));
  color: var(--ink);
}

.repo-link.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 243, 233, 0.05);
  color: var(--muted);
}

.repo-card.is-empty,
.repo-card.is-loading {
  grid-column: 1 / -1;
  text-align: center;
  justify-items: center;
  padding: 36px 24px;
}

.pages-section .repo-card {
  min-height: 100%;
}

.lottery-panel,
.tone-panel,
.lottery-highlight,
.draw-card,
.meaning-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.lottery-panel,
.tone-panel {
  padding: 22px;
}

.lottery-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 320px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 243, 233, 0.05);
}

.mode-chip {
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.mode-chip:hover,
.preset-pill:hover,
.repo-link:hover {
  transform: translateY(-1px);
}

.mode-chip.is-active,
.preset-pill.is-active,
.selected-tone {
  box-shadow: var(--shadow-strong);
}

.mode-chip.is-active {
  background: linear-gradient(135deg, rgba(255, 106, 43, 0.24), rgba(255, 61, 31, 0.2));
  color: var(--ink);
}

.lottery-highlight {
  margin-top: 18px;
  padding: 22px;
}

.lottery-panel .lottery-switch + .panel-head {
  margin-top: 18px;
}

.lottery-list {
  display: grid;
  gap: 12px;
}

.lottery-insights-layout {
  margin-top: 20px;
}

.lottery-stats-grid,
.lottery-picks-grid {
  display: grid;
  gap: 12px;
}

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

.lottery-window-control {
  margin-top: 18px;
}

.lottery-window-head {
  margin-bottom: 10px;
}

.lottery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.lottery-toggle input {
  width: 18px;
  height: 18px;
}

.draw-card {
  padding: 18px;
}

.draw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.balls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 243, 233, 0.1);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "Barlow", sans-serif;
}

.bonus-ball {
  background: linear-gradient(135deg, var(--gold), var(--accent-strong));
  color: #29150d;
}

.lottery-note,
.tone-note,
.meaning-copy {
  color: var(--muted);
  line-height: 1.7;
}

.tone-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.control-stack {
  display: grid;
  gap: 18px;
}

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

.control {
  display: grid;
  gap: 10px;
}

.control span {
  font-weight: 700;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 243, 233, 0.08);
  color: var(--ink);
  padding: 15px 16px;
}

input[type="range"] {
  height: 14px;
  margin: 0;
  appearance: none;
  background: linear-gradient(90deg, rgba(255, 106, 43, 0.25), rgba(255, 195, 98, 0.24));
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: 2px solid rgba(255, 243, 233, 0.92);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  cursor: pointer;
}

.binaural-presets,
.tone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-pill,
.load-tone-button {
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 243, 233, 0.08);
  color: var(--ink);
  padding: 11px 15px;
  cursor: pointer;
}

.meaning-card {
  padding: 22px;
}

.meaning-frequency {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visualizer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 180px;
  margin: 18px 0;
  padding: 22px 16px 16px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 106, 43, 0.18), rgba(255, 195, 98, 0.08));
  overflow: hidden;
}

.bar {
  height: 18%;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 243, 233, 0.96), rgba(255, 106, 43, 0.68));
  transform-origin: bottom;
  animation: tonePulse 2.5s ease-in-out infinite;
  animation-play-state: paused;
}

.bar:nth-child(2n) {
  animation-duration: 2.1s;
}

.bar:nth-child(3n) {
  animation-duration: 2.9s;
}

.bar:nth-child(4n) {
  animation-duration: 1.9s;
}

.visualizer.playing .bar {
  animation-play-state: running;
}

.tone-app-page {
  --bg: #f4f1e8;
  --surface: #fffaf0;
  --surface-strong: #fdf6e7;
  --surface-soft: #ede7da;
  --ink: #151714;
  --muted: #59605d;
  --line: #151714;
  --accent: #ff5c39;
  --accent-strong: #19a59b;
  --accent-deep: #2b50c8;
  --gold: #b3dc35;
  --shadow: 8px 8px 0 #151714;
  --shadow-strong: 5px 5px 0 #151714;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 23, 20, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 23, 20, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8f4ea 0%, #efe9dd 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.tone-shell {
  width: min(1380px, calc(100% - 28px));
  padding-top: 14px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 16px;
}

.tone-app-page .brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
}

.tone-app-page .nav {
  gap: 8px;
}

.tone-app-page .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 16px;
  align-items: end;
  padding: 8px 0 16px;
}

.tool-hero h1 {
  display: flex;
  align-items: center;
  max-width: none;
  min-height: 212px;
  margin: 0;
  padding: 24px;
  border: 3px solid var(--line);
  background: #151714;
  color: #fffaf0;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  font-size: 4.85rem;
  line-height: 0.94;
}

.tone-app-page .eyebrow,
.tone-app-page .section-kicker {
  color: var(--accent-deep);
  font-weight: 600;
}

.tool-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tool-status-strip div {
  min-width: 0;
  min-height: 112px;
  padding: 18px;
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.tool-status-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.tool-status-strip strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.5rem;
}

.tone-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.tone-console,
.tone-now,
.preset-section {
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tone-console,
.tone-now {
  padding: 22px;
}

.tone-side {
  display: grid;
  gap: 18px;
}

.frequency-control input[type="range"] {
  height: 18px;
}

.tone-now .visualizer {
  height: 220px;
  border: 3px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(21, 23, 20, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #dff3f0, #fff4d7);
  background-size: 22px 100%, auto;
}

.preset-section {
  margin-top: 16px;
  padding: 22px;
}

.preset-section .preset-grid {
  margin-top: 18px;
}

.tone-app-page .repo-card,
.tone-app-page .stat-card,
.tone-app-page .tone-panel,
.tone-app-page .meaning-card {
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
  box-shadow: 4px 4px 0 var(--line);
}

.tone-app-page .panel-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
}

.tone-app-page .status-pill {
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--gold);
  color: var(--ink);
}

.tone-app-page .lottery-switch {
  width: min(100%, 360px);
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--surface-soft);
}

.tone-app-page .mode-chip {
  min-height: 54px;
  border-radius: 0;
  color: var(--ink);
}

.tone-app-page .mode-chip + .mode-chip {
  border-left: 3px solid var(--line);
}

.tone-app-page .mode-chip.is-active {
  background: var(--accent);
  color: #fffaf0;
  box-shadow: none;
}

.tone-app-page .control {
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  background: #fffef8;
}

.tone-app-page select {
  border: 2px solid var(--line);
  border-radius: 0;
  background: #fffef8;
  color: var(--ink);
}

.tone-app-page input[type="range"] {
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent-strong), var(--gold), var(--accent));
}

.tone-app-page input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: #fffaf0;
}

.tone-app-page input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: #fffaf0;
}

.tone-app-page .preset-pill,
.tone-app-page .load-tone-button,
.tone-app-page .button,
.tone-app-page .repo-link {
  border: 2px solid var(--line);
  border-radius: 0;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
}

.tone-app-page .button.primary,
.tone-app-page .repo-link.primary-link {
  background: var(--accent-strong);
  color: #071312;
}

.tone-app-page .button.ghost,
.tone-app-page .repo-link.secondary-link {
  background: #fffaf0;
  color: var(--ink);
}

.tone-app-page .preset-pill.is-active,
.tone-app-page .selected-tone {
  background: #fff4d7;
  box-shadow: 5px 5px 0 var(--accent-deep);
}

.tone-app-page .repo-tag {
  border: 2px solid var(--line);
  border-radius: 0;
  background: #e5f6f3;
  color: var(--ink);
}

.tone-app-page .meaning-frequency {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: var(--accent-deep);
  color: #fffaf0;
}

.tone-app-page .bar {
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 0;
  background: var(--accent);
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .tool-hero,
  .tone-workspace,
  .projects-header,
  .spotlight-grid,
  .about-grid,
  .project-grid,
  .lottery-layout,
  .lottery-stats-grid,
  .tone-layout,
  .dual-controls {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 12px;
  }

  .hero,
  .section-block {
    padding: 22px;
  }

  .topbar,
  .project-summary {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    gap: 10px 14px;
  }

  .app-header {
    align-items: start;
    flex-direction: column;
  }

  .tool-status-strip,
  .tone-stat-grid {
    grid-template-columns: 1fr;
  }

  .tone-console,
  .tone-now,
  .preset-section {
    padding: 18px;
  }

  .tool-hero h1 {
    min-height: auto;
    padding: 18px;
    font-size: 3.15rem;
  }

  .tone-app-page .nav a,
  .tone-app-page .brand {
    box-shadow: 2px 2px 0 var(--line);
  }

  .tool-status-strip div {
    min-height: auto;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@keyframes tonePulse {
  0%,
  100% {
    transform: scaleY(0.32);
    opacity: 0.58;
  }

  40% {
    transform: scaleY(0.98);
    opacity: 1;
  }

  70% {
    transform: scaleY(0.6);
    opacity: 0.82;
  }
}

/* Obsidian Pulse cohesive refresh */
:root {
  --bg: #0a0a0a;
  --bg-soft: #131313;
  --surface: rgba(32, 31, 31, 0.68);
  --surface-strong: rgba(42, 42, 42, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --ink: #f6f1ee;
  --muted: #d9c2b7;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ffb68c;
  --accent-strong: #e08f5e;
  --accent-deep: #8f4d22;
  --gold: #ffb68c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --shadow-strong: 0 0 48px rgba(224, 143, 94, 0.18);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-pill: 999px;
}

body,
.tone-app-page {
  --bg: #0a0a0a;
  --bg-soft: #131313;
  --surface: rgba(32, 31, 31, 0.68);
  --surface-strong: rgba(42, 42, 42, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --ink: #f6f1ee;
  --muted: #d9c2b7;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ffb68c;
  --accent-strong: #e08f5e;
  --accent-deep: #8f4d22;
  --gold: #ffb68c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --shadow-strong: 0 0 48px rgba(224, 143, 94, 0.18);
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 182, 140, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(224, 143, 94, 0.08), transparent 24rem),
    linear-gradient(180deg, #0a0a0a 0%, #131313 55%, #0a0a0a 100%);
}

button,
input,
.eyebrow,
.section-kicker,
.brand,
.nav a,
.status-pill,
.button,
.card-label,
.repo-meta,
.repo-link,
#projectCount,
#projectStatus {
  font-family: "Barlow", monospace;
}

h1,
h2,
h3,
.repo-name {
  font-family: "Barlow Condensed", system-ui, sans-serif;
}

h1 {
  max-width: 13ch;
  font-size: 4.1rem;
  line-height: 1.04;
}

h2 {
  font-size: 2.2rem;
  line-height: 1.12;
}

.page-shell,
.tone-shell {
  width: min(1240px, calc(100% - 32px));
  padding: 88px 0 64px;
}

.site-glow {
  display: none;
}

.panel,
.section-block,
.hero-panel,
.lottery-panel,
.tone-console,
.tone-now,
.preset-section,
.stat-card,
.info-card,
.spotlight-card,
.repo-card,
.about-card,
.lottery-highlight,
.draw-card,
.meaning-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel,
.section-block {
  background: var(--surface);
}

.hero {
  padding: 32px;
}

.topbar,
.app-header {
  position: relative;
  inset: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: auto;
  padding: 0 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  backdrop-filter: blur(20px);
}

.brand {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.nav {
  gap: 24px;
}

.nav a {
  color: var(--muted);
  letter-spacing: 0.02em;
}

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

.eyebrow,
.section-kicker,
.card-label,
.repo-meta {
  color: var(--accent);
  letter-spacing: 0.09em;
}

.lede,
.section-intro p,
.info-card p,
.spotlight-card p,
.repo-card p,
.about-card p,
.lottery-note,
.tone-note,
.meaning-copy {
  color: var(--muted);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: stretch;
}

.hero-panel,
.tone-now,
.tone-console {
  padding: 28px;
}

.media-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.media-card img,
.module-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
  opacity: 0.78;
}

.media-card::after,
.module-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 10, 0.84));
  pointer-events: none;
}

.media-card-copy {
  position: absolute;
  inset: auto 24px 24px;
  z-index: 1;
}

.module-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.system-visual,
.module-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 182, 140, 0.2), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.module-visual {
  position: relative;
  width: 100%;
  height: 100%;
}

.system-visual::before,
.module-visual::before,
.system-visual::after,
.module-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(12px);
}

.hub-visual::before {
  inset: 26px auto auto 28px;
  width: 46%;
  height: 38%;
  border-radius: 14px;
}

.hub-visual::after {
  right: 28px;
  bottom: 28px;
  width: 42%;
  height: 46%;
  border-radius: 14px;
}

.hub-visual span {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(224, 143, 94, 0.9);
  box-shadow: 0 0 36px rgba(224, 143, 94, 0.2);
}

.hub-visual span:nth-child(1) {
  left: 12%;
  bottom: 24%;
}

.hub-visual span:nth-child(2) {
  left: 24%;
  bottom: 36%;
}

.hub-visual span:nth-child(3) {
  right: 22%;
  top: 18%;
}

.hub-visual span:nth-child(4) {
  right: 12%;
  top: 32%;
}

.projects-visual::before {
  inset: 24px 28px auto;
  height: 42px;
  border-radius: 12px;
}

.projects-visual::after {
  inset: auto 28px 26px;
  height: 58%;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 182, 140, 0.18) 0 24%, transparent 24% 28%, rgba(255, 255, 255, 0.06) 28% 52%, transparent 52% 56%, rgba(255, 255, 255, 0.06) 56% 80%, transparent 80%);
}

.projects-visual span {
  position: absolute;
  top: 38px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.projects-visual span:nth-child(1) { left: 48px; }
.projects-visual span:nth-child(2) { left: 68px; opacity: 0.55; }
.projects-visual span:nth-child(3) { left: 88px; opacity: 0.35; }

.tone-visual {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 182, 140, 0.16), transparent 28%),
    #0e0e0e;
}

.tone-visual::before,
.tone-visual::after {
  display: none;
}

.tone-visual span,
.tone-visual i {
  display: block;
}

.tone-visual {
  --bar: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.tone-visual:empty {
  background:
    linear-gradient(90deg, transparent 0 6%, var(--bar) 6% 9%, transparent 9% 15%, var(--bar) 15% 18%, transparent 18% 27%, var(--bar) 27% 30%, transparent 30% 40%, var(--bar) 40% 43%, transparent 43% 55%, var(--bar) 55% 58%, transparent 58% 66%, var(--bar) 66% 69%, transparent 69% 78%, var(--bar) 78% 81%, transparent 81%),
    #0e0e0e;
  background-size: 100% 72%, auto;
  background-position: center bottom, center;
  background-repeat: no-repeat;
}

.lottery-visual {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 182, 140, 0.22), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.lottery-visual::before {
  inset: 26px 28px auto;
  height: 54px;
  border-radius: 14px;
}

.lottery-visual::after {
  inset: auto 28px 30px;
  height: 96px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 8% 50%, var(--accent) 0 16px, transparent 17px),
    radial-gradient(circle at 28% 50%, rgba(255, 255, 255, 0.9) 0 16px, transparent 17px),
    radial-gradient(circle at 48% 50%, rgba(255, 255, 255, 0.9) 0 16px, transparent 17px),
    radial-gradient(circle at 68% 50%, rgba(255, 255, 255, 0.9) 0 16px, transparent 17px),
    radial-gradient(circle at 88% 50%, var(--accent-strong) 0 16px, transparent 17px);
}

.lottery-visual span {
  position: absolute;
  top: 44px;
  left: 52px;
  width: 34%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.lottery-visual span:nth-child(2) {
  top: 62px;
  width: 24%;
  opacity: 0.42;
}

.lottery-visual span:nth-child(n+3) {
  display: none;
}

.future-visual::before {
  inset: 32px;
  border-radius: 16px;
  border-style: dashed;
  background: transparent;
}

.future-visual::after {
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 182, 140, 0.36);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 28px no-repeat;
  transform: translate(-50%, -50%);
}

.button,
.repo-link,
.mode-chip,
.preset-pill,
.load-tone-button {
  border-radius: var(--radius-md);
}

.button.primary,
.repo-link.primary-link {
  background: var(--accent-strong);
  color: #2a1705;
  box-shadow: var(--shadow-strong);
}

.button.ghost,
.repo-link.secondary-link {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.status-pill,
.repo-tag {
  border: 1px solid rgba(255, 182, 140, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(255, 182, 140, 0.1);
  color: var(--accent);
}

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

.repo-card {
  padding: 0;
  overflow: hidden;
}

.repo-card-content {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.repo-card:hover {
  border-color: rgba(255, 182, 140, 0.36);
  box-shadow: var(--shadow-strong);
}

.lottery-switch {
  width: min(100%, 420px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.mode-chip {
  color: var(--muted);
}

.mode-chip.is-active,
.preset-pill.is-active,
.selected-tone {
  background: rgba(224, 143, 94, 0.92);
  color: #2a1705;
  box-shadow: var(--shadow-strong);
}

select,
input[type="range"] {
  color: var(--ink);
}

select,
.search-shell input,
.control {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

input[type="range"] {
  height: 5px;
  background: #353534;
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 182, 140, 0.52);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  background: var(--accent);
}

.ball {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.bonus-ball {
  background: var(--accent-strong);
  color: #2a1705;
}

.visualizer,
.tone-now .visualizer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0e0e0e;
}

.bar,
.tone-app-page .bar {
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.tone-app-page .brand,
.tone-app-page .nav a,
.tone-app-page .control,
.tone-app-page .preset-pill,
.tone-app-page .load-tone-button,
.tone-app-page .button,
.tone-app-page .repo-link,
.tone-app-page .repo-tag,
.tone-app-page .status-pill,
.tone-app-page .lottery-switch,
.tone-app-page .mode-chip,
.tone-app-page select,
.tone-app-page input[type="range"] {
  box-shadow: none;
  border-radius: var(--radius-md);
}

.tone-app-page .tone-console,
.tone-app-page .tone-now,
.tone-app-page .preset-section,
.tone-app-page .tool-status-strip div,
.tone-app-page .repo-card {
  background: var(--surface);
  color: var(--ink);
}

.tone-app-page .control,
.tone-app-page select,
.tone-app-page .preset-pill,
.tone-app-page .load-tone-button,
.tone-app-page .button.ghost,
.tone-app-page .repo-link.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.tone-app-page .button.primary,
.tone-app-page .repo-link.primary-link,
.tone-app-page .mode-chip.is-active,
.tone-app-page .preset-pill.is-active {
  background: var(--accent-strong);
  color: #2a1705;
}

.tone-app-page input[type="range"] {
  border: 0;
  background: #353534;
}

.tone-app-page .tone-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 420px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.34);
}

.tone-app-page .tone-mode-switch .mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tone-app-page .tone-mode-switch .mode-chip + .mode-chip {
  border-left: 1px solid transparent;
}

.tone-app-page .tone-mode-switch .mode-chip.is-active {
  border-color: rgba(255, 176, 130, 0.72);
  background: linear-gradient(135deg, rgba(255, 59, 32, 0.3), rgba(255, 176, 130, 0.16));
  color: var(--ink);
}

.tone-app-page .tone-mode-switch .mode-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 243, 233, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 233, 0.28);
}

.tone-app-page .tone-mode-switch .mode-chip.is-active .mode-light {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 106, 43, 0.9), 0 0 24px rgba(255, 176, 130, 0.28);
}

.tone-app-page .tone-value-input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.tone-app-page .tone-value-input:disabled {
  opacity: 0.42;
}

.tone-export-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 106, 43, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

.tone-export-panel h3 {
  margin: 0;
}

.tone-export-panel .control {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 720px) {
  .tone-export-panel {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
    align-items: end;
  }

  .tone-export-panel #toneExportStatus {
    grid-column: 1 / -1;
  }
}

.tone-app-page input[type="range"]::-webkit-slider-thumb,
.tone-app-page input[type="range"]::-moz-range-thumb {
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.tone-app-page .meaning-frequency {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.tone-app-page .brand {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.tone-app-page .nav a {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.tone-app-page .tool-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 22px;
}

.tone-app-page .tool-hero h1 {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 4.1rem;
}

.tool-status-strip {
  gap: 14px;
}

.tool-status-strip div {
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: blur(20px);
}

.tone-workspace {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.preset-section {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .hero-grid,
  .tone-workspace,
  .lottery-layout,
  .dual-controls {
    grid-template-columns: 1fr;
  }

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

  .media-card {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .tone-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 88px;
  }

  .topbar,
  .app-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 0 0 18px;
  }

  .nav {
    gap: 12px;
  }

  h1,
  .tone-app-page .tool-hero h1 {
    font-size: 3rem;
  }

  .hero,
  .section-block,
  .tone-console,
  .tone-now,
  .preset-section {
    padding: 20px;
  }

  .project-grid,
  .tool-status-strip {
    grid-template-columns: 1fr;
  }

  .media-card {
    min-height: 320px;
  }

  .media-card-copy {
    inset: auto 18px 18px;
  }

  .module-image {
    height: 180px;
  }
}






.cleancut-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(242, 109, 91, 0.82), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(34, 184, 167, 0.72), transparent 32%),
    linear-gradient(135deg, rgba(244, 247, 243, 0.94), rgba(217, 77, 69, 0.86) 58%, #131313);
}

.cleancut-visual::before {
  content: "";
  position: absolute;
  inset: 24%;
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
  background: #10161d;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}

.cleancut-visual::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 19%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-strong);
  box-shadow: 0 0 22px rgba(34, 184, 167, 0.65);
}

.cleancut-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.cleancut-form label {
  color: var(--muted);
  font-weight: 700;
}

.cleancut-input-row {
  display: grid;
  gap: 10px;
}

.cleancut-input-row input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  background: var(--surface-soft);
  color: var(--ink);
}

.cleancut-error {
  min-height: 1.2em;
  color: var(--accent);
  font-weight: 700;
}

.cleancut-player-shell {
  display: grid;
  gap: 18px;
}

.cleancut-player {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #090909;
  box-shadow: var(--shadow);
}

.cleancut-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cleancut-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.cleancut-panels {
  margin-top: 0;
}

.cleancut-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cleancut-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  color: var(--muted);
  text-transform: capitalize;
}

.cleancut-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cleancut-list li {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.cleancut-list button {
  width: fit-content;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

@media (min-width: 720px) {
  .cleancut-input-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cleancut-toggle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Fuego Franny IA refresh */
h1,
h2,
h3,
.brand {
  font-family: "Barlow Condensed", sans-serif;
}

.nav a,
.button,
.repo-link,
.repo-meta,
.repo-tag,
.section-kicker,
.eyebrow,
.status-pill {
  font-family: "Barlow", sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(242, 109, 91, 0.13), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(34, 184, 167, 0.12), transparent 24rem),
    linear-gradient(180deg, #0b1015 0%, var(--bg) 54%, #101820 100%);
}

.brand::after {
  content: " Tools";
  color: var(--muted);
  font-weight: 600;
}

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

.featured-tool-card {
  background:
    linear-gradient(180deg, rgba(34, 184, 167, 0.11), rgba(242, 109, 91, 0.07)),
    var(--surface-soft);
}

.repo-card p {
  min-height: 3.3em;
}

.pages-section .project-grid .repo-card {
  align-content: start;
}

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

  .repo-card p {
    min-height: auto;
  }
}


/* Home page differentiation */
.home-principles {
  margin-top: 22px;
}

.home-principles .spotlight-card {
  min-height: 100%;
}

.home-route-section {
  display: grid;
  gap: 18px;
}

.home-route-actions {
  margin-top: 0;
}


/* Home polish refresh */
.brand::after {
  content: none;
}

.home-page .brand {
  color: var(--gold);
}

.home-hero {
  position: relative;
  overflow: visible;
  margin-bottom: 40px;
  background: #050505;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.94) 34%, rgba(3, 3, 3, 0.36) 64%, rgba(3, 3, 3, 0.82) 100%),
    radial-gradient(circle at 76% 30%, rgba(224, 38, 24, 0.38), transparent 12rem),
    linear-gradient(105deg, transparent 0 48%, rgba(242, 230, 220, 0.78) 48% 52%, transparent 52%),
    linear-gradient(10deg, transparent 0 46%, rgba(224, 38, 24, 0.9) 46% 55%, transparent 55%),
    linear-gradient(120deg, rgba(242, 199, 110, 0.08), transparent 36%),
    linear-gradient(300deg, rgba(34, 184, 167, 0.12), transparent 38%),
    #050505;
  opacity: var(--home-hero-scroll-opacity);
  pointer-events: none;
  transition: opacity 80ms linear;
}

.home-hero > * {
  position: relative;
}

.home-hero h1 {
  max-width: 11ch;
}

.home-page .hero .cta-row {
  display: none !important;
}

.home-current-section,
.home-inside-section,
.home-archive-section,
.home-offer-section {
  position: relative;
  z-index: 2;
}

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

.home-current-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(8, 8, 8, 0.9));
  overflow: hidden;
}

.home-current-image {
  position: relative;
  display: block;
  aspect-ratio: 1.08;
  overflow: hidden;
}

.home-image-tile .ff-img-wrap,
.home-current-image .ff-img-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.home-archive-card .ff-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-current-image img,
.home-archive-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 260ms ease, filter 260ms ease;
}

.home-current-image span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 42, 24, 0.42);
  background: rgba(5, 5, 5, 0.74);
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-current-card > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.home-current-card h3,
.home-pillar-grid h3,
.home-offer-panel h2 {
  margin: 0;
}

.home-current-card p,
.home-pillar-grid p,
.home-offer-panel p {
  margin: 0;
  color: var(--muted);
}

.home-current-card:hover img,
.home-archive-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.home-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 6, 6, 0.62);
}

.home-pillar-grid article {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.home-pillar-grid article:last-child {
  border-right: 0;
}

.home-pillar-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-archive-card {
  position: relative;
  display: grid;
  min-height: 340px;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.home-archive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.86));
  z-index: 1;
}

.home-archive-card img {
  position: absolute;
  inset: 0;
}

.home-archive-card span,
.home-archive-card strong,
.home-archive-card small {
  position: relative;
  z-index: 2;
}

.home-archive-card span {
  margin-bottom: 8px;
  color: var(--red);
  font-family: "Barlow", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-archive-card strong {
  color: var(--ink);
  font-size: 1.12rem;
  text-transform: uppercase;
}

.home-archive-card small {
  margin-top: 5px;
  color: var(--muted);
}

.home-offer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 42, 24, 0.34);
  background:
    linear-gradient(90deg, rgba(224, 38, 24, 0.16), rgba(5, 5, 5, 0.9)),
    rgba(8, 8, 8, 0.9);
}

.home-offer-panel > div {
  max-width: 780px;
}

.home-page .repo-link.primary-link {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--ink);
  background: rgba(3, 3, 3, 0.58);
  box-shadow: none;
}

.home-hero-grid {
  align-items: stretch;
}

.home-hero .hero-copy > .eyebrow,
.home-hero .hero-copy > h1,
.home-hero .hero-copy > .lede,
.home-orbit-card {
  opacity: var(--home-hero-scroll-opacity);
  transition: opacity 80ms linear;
}

.home-orbit-card {
  min-height: 100%;
}

.home-story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 34px;
  align-items: start;
  min-height: 64vh;
  padding-top: 72px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.92));
}

.home-story-copy h2 {
  max-width: 12ch;
}

.home-story-copy p {
  max-width: 58ch;
  color: rgba(242, 230, 220, 0.76);
  font-size: 1.04rem;
  line-height: 1.8;
}

.home-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-manifesto-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-manifesto-list li {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
  padding: 20px 0 22px;
  border-bottom: 1px solid rgba(242, 230, 220, 0.12);
}

.home-manifesto-list span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-manifesto-list strong {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-manifesto-list p {
  grid-column: 2;
  max-width: 48ch;
  margin: -2px 0 0;
  color: rgba(242, 230, 220, 0.68);
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: rgba(242, 230, 220, 0.12);
}

.home-proof-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 28px;
  background: rgba(5, 5, 5, 0.88);
}

.home-proof-item span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-proof-item h3 {
  margin-top: 36px;
  color: #fff;
  font-size: 1.5rem;
}

.home-proof-item p {
  margin: 0 0 24px;
  color: rgba(242, 230, 220, 0.72);
  line-height: 1.7;
}

.home-proof-item .repo-link {
  margin-top: auto;
}

.home-image-collage {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 0.78fr;
  grid-template-rows: 160px 130px 110px;
  gap: 10px;
  min-height: 430px;
  padding: 12px;
  border: 1px solid rgba(255, 42, 24, 0.34);
  overflow: hidden;
  background: rgba(5, 5, 5, 0.72);
}

.home-image-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 230, 220, 0.14);
  background: #070707;
}

.home-image-tile:nth-child(1) {
  grid-row: span 2;
}

.home-image-tile:nth-child(4) {
  grid-column: span 2;
}

.home-image-tile:nth-child(5) {
  grid-row: span 2;
}

.home-image-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.86) contrast(1.08) brightness(0.86);
  transition: transform 220ms ease, filter 220ms ease;
}

.home-image-tile:hover img {
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.12) brightness(0.98);
}

.home-image-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-family: "Barlow", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-image-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.home-orbit-visual {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(242, 109, 91, 0.18), transparent 42%),
    linear-gradient(225deg, rgba(34, 184, 167, 0.2), transparent 45%),
    #101820;
}

.home-orbit-visual::before,
.home-orbit-visual::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(244, 247, 243, 0.18);
  border-radius: 999px;
}

.home-orbit-visual::after {
  inset: 34%;
  border-color: rgba(242, 199, 110, 0.32);
}

.home-orbit-visual span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 30px rgba(242, 199, 110, 0.45);
}

.home-orbit-visual span:nth-child(1) { top: 22%; left: 22%; }
.home-orbit-visual span:nth-child(2) { top: 30%; right: 18%; background: var(--accent-strong); }
.home-orbit-visual span:nth-child(3) { bottom: 23%; left: 32%; background: var(--accent); }
.home-orbit-visual span:nth-child(4) { right: 28%; bottom: 18%; }

.home-tools-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 20px;
  align-items: stretch;
}

.home-tools-copy p:last-child {
  max-width: 58ch;
  color: var(--muted);
}

.home-tools-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(242, 199, 110, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(242, 199, 110, 0.16), rgba(34, 184, 167, 0.1)),
    var(--surface-soft);
  box-shadow: var(--shadow-strong);
}

.home-tools-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.home-tools-card small {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-card-mark {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 11px;
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.home-lane-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(239, 246, 242, 0.055);
}

.home-lane-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
}

.home-lane-card p {
  color: var(--muted);
}

.home-polish-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.home-polish-strip div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 24px;
  background: rgba(239, 246, 242, 0.055);
}

.home-polish-strip strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
}

.home-polish-strip span {
  color: var(--muted);
}

.about-hero {
  min-height: auto;
}

.about-hero-grid,
.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.about-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
}

.about-portrait-card,
.about-placeholder,
.about-lane-card,
.about-proof-grid article,
.about-project-grid article,
.login-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.about-portrait-card {
  min-height: 520px;
  padding: 18px;
}

.about-placeholder {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 280px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(224, 38, 24, 0.18), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 70% 25%, rgba(242, 230, 220, 0.14), transparent 12rem),
    #070707;
}

.about-portrait-placeholder {
  height: 100%;
}

.about-placeholder span,
.about-lane-card span,
.about-project-grid span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-placeholder strong {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.about-placeholder small,
.about-copy-grid p,
.about-focus-section p,
.about-process-section p,
.about-closing p,
.about-best-fit,
.about-lane-card p,
.about-proof-grid p,
.about-project-grid p {
  color: rgba(242, 230, 220, 0.74);
  line-height: 1.75;
}

.about-story-section,
.about-focus-section,
.about-closing {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 34px;
  align-items: start;
}

.about-copy-grid {
  display: grid;
  gap: 18px;
}

.about-copy-grid p,
.about-process-section p,
.about-focus-section p,
.about-closing p {
  margin: 0;
  font-size: 1.02rem;
}

.about-media-grid,
.about-card-grid,
.about-proof-grid,
.about-project-grid {
  display: grid;
  gap: 1px;
  padding: 0;
  background: rgba(242, 230, 220, 0.12);
}

.about-media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-proof-grid,
.about-project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.about-lane-card,
.about-proof-grid article,
.about-project-grid article {
  min-height: 240px;
  padding: 24px;
  background: rgba(5, 5, 5, 0.88);
}

.about-lane-card h3,
.about-proof-grid strong,
.about-project-grid h3 {
  display: block;
  margin: 30px 0 12px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.about-focus-section,
.about-process-section,
.about-closing {
  background:
    linear-gradient(135deg, rgba(224, 38, 24, 0.12), rgba(255, 255, 255, 0.028)),
    rgba(5, 5, 5, 0.82);
}

.about-best-fit {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-best-fit li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 230, 220, 0.12);
}

.login-hero {
  min-height: 100vh;
}

.login-panel {
  padding: 20px;
}

.oauth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.login-secret-row {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
}

@media (max-width: 820px) {
  .home-tools-callout,
  .home-lane-grid,
  .home-polish-strip,
  .about-media-grid,
  .about-card-grid,
  .about-proof-grid,
  .about-project-grid,
  .about-story-section,
  .about-focus-section,
  .about-closing,
  .about-hero-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .about-hero-grid,
  .login-layout {
    width: calc(100% - 32px);
    padding: 52px 0;
  }

  .about-portrait-card {
    min-height: 360px;
  }

  .login-secret-row,
  .oauth-row {
    grid-template-columns: 1fr;
  }

  .home-orbit-visual {
    min-height: 220px;
  }

  .home-image-collage {
    grid-template-rows: repeat(3, 120px);
    min-height: 380px;
  }
}

.hub-grid,
.lab-layout,
.admin-workflow {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(239, 246, 242, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 199, 110, 0.4);
  background: rgba(239, 246, 242, 0.08);
}

.hub-card span,
.admin-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #10161d;
  background: var(--gold);
  font-family: "Barlow", sans-serif;
  font-weight: 700;
}

.hub-card p,
.admin-step p,
.price-line {
  color: var(--muted);
  line-height: 1.6;
}

.fuego-card {
  overflow: hidden;
}

.fuego-thumb,
.artwork-main-image {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
}

.fuego-thumb {
  height: 220px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.artwork-main-image {
  min-height: 440px;
  max-height: 620px;
}

.tag-row,
.filter-row,
.admin-tabs,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row {
  margin: 18px 0 4px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
}

.filter-row,
.admin-tabs {
  margin-bottom: 22px;
}

.filter-row .mode-chip,
.admin-tabs .mode-chip {
  cursor: pointer;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px dashed rgba(242, 199, 110, 0.42);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: rgba(242, 199, 110, 0.045);
}

.upload-zone input {
  display: none;
}

.upload-zone span,
.upload-zone strong {
  display: block;
  color: var(--ink);
  font-family: "Barlow", sans-serif;
}

.request-notes {
  width: 100%;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(12, 17, 23, 0.48);
  resize: vertical;
}

.admin-shell,
.admin-step,
.admin-draft {
  border-radius: var(--radius-md);
}

.admin-workflow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-step,
.admin-draft {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(239, 246, 242, 0.055);
}

.admin-drafts-intro {
  margin-top: 30px;
}

.admin-draft-list {
  display: grid;
  gap: 14px;
}

.admin-warning {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(242, 109, 91, 0.5);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(242, 109, 91, 0.11);
  font-family: "Barlow", sans-serif;
}

.admin-private[hidden] {
  display: none !important;
}

[data-admin-only][hidden] {
  display: none !important;
}

.admin-session-active .admin-warning {
  border-color: rgba(34, 184, 167, 0.42);
  background: rgba(34, 184, 167, 0.1);
}

.admin-next-step {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(34, 184, 167, 0.42);
  border-radius: var(--radius-md);
  background: rgba(34, 184, 167, 0.1);
}

.admin-session-active .admin-next-step {
  display: flex;
}

.admin-next-step div {
  display: grid;
  gap: 6px;
}

.admin-next-step strong {
  font-size: 1.1rem;
}

.admin-next-step span {
  color: var(--muted);
  line-height: 1.5;
}

.admin-session-active #adminSessionTitle {
  color: var(--accent-strong);
}

.admin-shell:not(.is-unlocked) .admin-form {
  opacity: 0.72;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.admin-booking {
  box-shadow: none;
}

.admin-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 16px;
  margin-bottom: 16px;
}

.integration-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(239, 246, 242, 0.055);
}

.integration-card p,
.integration-note {
  color: var(--muted);
  line-height: 1.6;
}

.integration-card .button {
  margin-top: 12px;
}

.store-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-secret-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

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

.form-wide {
  grid-column: 1 / -1;
}

.admin-form {
  box-shadow: none;
}

.control input:not([type="range"]),
.control textarea,
.admin-secret-row input,
.control select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(12, 17, 23, 0.48);
}

.control textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.admin-draft {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.admin-draft img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.publish-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "Barlow", sans-serif;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: rgba(12, 17, 23, 0.28);
}

code {
  color: var(--gold);
}

.featured-artwork {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 22px;
}

.featured-art-image,
.artwork-modal-image {
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 195, 98, 0.18);
}

.featured-art-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(242, 109, 91, 0.12), rgba(34, 184, 167, 0.07));
}

.artwork-product-count {
  width: fit-content;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 195, 98, 0.2);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-size: 0.82rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.store-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.store-category-chip span,
.store-category-chip small {
  pointer-events: none;
}

.store-category-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 243, 233, 0.16);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
}

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

.gallery-card,
.store-product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 243, 233, 0.045);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gallery-card:hover,
.store-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 199, 110, 0.32);
  box-shadow: var(--shadow-strong);
}

.gallery-card-button,
.store-product-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.gallery-card-button img,
.store-product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  transition: transform 220ms ease;
}

.gallery-card-button img {
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
}

.store-product-image img {
  object-fit: cover;
}

.gallery-card:hover img,
.store-product-card:hover img {
  transform: scale(1.025);
}

.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 10, 0.88));
}

.gallery-card-overlay span,
.gallery-product-links span,
.store-product-image span {
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card-overlay strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.16rem;
}

.gallery-card-meta,
.store-product-copy {
  padding: 18px;
}

.gallery-card-meta p,
.store-product-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-product-links span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.store-product-image span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 195, 98, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(5, 8, 10, 0.68);
}

.price-line {
  color: var(--gold) !important;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
}

.store-product-card.is-bookable {
  border-color: rgba(242, 109, 91, 0.34);
}

.store-product-card.is-digital {
  border-color: rgba(242, 199, 110, 0.34);
}

.availability-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(242, 109, 91, 0.28);
  background: rgba(224, 38, 24, 0.08);
}

.product-availability-panel {
  margin: 18px 0 6px;
  padding: 14px;
  border-color: rgba(255, 42, 24, 0.42);
  background:
    linear-gradient(135deg, rgba(224, 38, 24, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(5, 5, 5, 0.44);
}

.digital-delivery-panel {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(242, 199, 110, 0.28);
  background: linear-gradient(135deg, rgba(242, 199, 110, 0.1), rgba(224, 38, 24, 0.07));
}

.digital-delivery-panel.is-detail {
  margin: 18px 0 6px;
}

.digital-delivery-panel span {
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.digital-delivery-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.availability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.availability-head span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability-head button,
.availability-slot,
.booking-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.46);
  cursor: pointer;
  font-family: "Barlow", sans-serif;
}

.availability-head button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.availability-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.availability-slot {
  min-height: 34px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.75rem;
}

.availability-slot:hover,
.availability-slot.is-active {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(224, 38, 24, 0.26);
}

.availability-placeholder,
.availability-slots small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  color: #080808;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-calendar-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mini-tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
}

.artwork-modal[hidden] {
  display: none;
}

.artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.artwork-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 10, 0.78);
  backdrop-filter: blur(10px);
}

.artwork-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: 22px;
  width: min(100%, 980px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(24, 36, 46, 0.98), rgba(12, 17, 23, 0.98));
  box-shadow: var(--shadow);
}

.artwork-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(5, 8, 10, 0.72);
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
}

.attached-products {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.attached-product {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 243, 233, 0.05);
}

.attached-product span {
  color: var(--gold);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hub-grid,
  .lab-layout,
  .admin-workflow,
  .featured-artwork,
  .artwork-modal-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-draft {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .integration-grid,
  .admin-access-grid,
  .booking-grid,
  .store-status-row {
    grid-template-columns: 1fr;
  }

  .store-status-row {
    display: grid;
  }

  .admin-secret-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-next-step {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hub-grid,
  .lab-layout,
  .admin-workflow,
  .featured-artwork,
  .gallery-grid,
  .store-product-grid,
  .artwork-modal-panel {
    grid-template-columns: 1fr;
  }

  .featured-art-image,
  .artwork-modal-image {
    min-height: 280px;
  }

  .artwork-main-image {
    min-height: 260px;
  }

  .admin-draft {
    grid-template-columns: 1fr;
  }

  .admin-draft img {
    width: 100%;
    height: 180px;
  }
}

/* Tone Generator: use the same public Miami Fuego shell and component language. */
.tone-app-page {
  color: var(--fuego-cream);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 50, 31, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(246, 239, 232, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #020202, #070504 46%, #030303);
  background-size: auto, 86px 86px, auto;
}

.tone-app-page .tone-shell {
  width: 100%;
  max-width: 100%;
  padding: 0 0 72px;
}

.tone-app-page .topbar {
  position: relative;
  z-index: 40;
  display: flex;
  min-height: 76px;
  margin: 0;
  padding: 0 34px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--fuego-line);
  background: rgba(3, 3, 3, 0.78);
  backdrop-filter: blur(18px);
}

.tone-app-page .brand {
  position: relative;
  display: inline-block;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--fuego-cream);
  background: transparent;
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.tone-app-page .nav {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.tone-app-page .nav a,
.tone-app-page .nav-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 4px;
  align-items: center;
  border: 0;
  color: var(--fuego-cream);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tone-app-page .nav a:hover {
  color: var(--fuego-red);
}

.tone-app-page .nav-link-cart {
  padding-inline: 14px;
  border: 1px solid var(--fuego-line);
  background: rgba(3, 3, 3, 0.56);
}

.tone-app-page .tone-hero {
  min-height: 520px;
  padding: 0;
  border-color: var(--fuego-line);
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.94) 34%, rgba(3, 3, 3, 0.36) 64%, rgba(3, 3, 3, 0.82) 100%),
    radial-gradient(circle at 76% 30%, rgba(224, 38, 24, 0.38), transparent 12rem),
    linear-gradient(105deg, transparent 0 48%, rgba(242, 230, 220, 0.78) 48% 52%, transparent 52%),
    linear-gradient(10deg, transparent 0 46%, rgba(224, 38, 24, 0.9) 46% 55%, transparent 55%),
    #050505;
}

.tone-app-page .tone-hero-copy {
  width: min(720px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding: 66px 0 62px;
}

.tone-app-page .tone-hero h1 {
  max-width: 10.5ch;
  margin: 0;
  color: var(--fuego-cream);
  font-size: 6.8rem;
  line-height: 0.86;
  text-shadow: 0 6px 0 rgba(255, 255, 255, 0.055), 0 24px 58px rgba(0, 0, 0, 0.48);
}

.tone-app-page .tone-hero .lede {
  max-width: 46rem;
  margin-top: 16px;
  color: var(--fuego-dim);
  font-size: 1.15rem;
}

.tone-app-page .tool-status-strip {
  width: min(620px, 100%);
  margin-top: 30px;
  border-color: var(--fuego-line);
  border-radius: var(--fuego-card-radius);
}

.tone-app-page .tool-status-strip div {
  background: rgba(3, 3, 3, 0.82);
}

.tone-app-page .tone-workspace {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
  margin: 42px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.tone-app-page .tone-console,
.tone-app-page .tone-now {
  border-color: var(--fuego-card-border);
  border-radius: var(--fuego-card-radius);
  background: var(--fuego-card-bg);
  box-shadow: inset 0 1px 0 rgba(246, 239, 232, 0.08);
}

.tone-app-page .tone-console .status-pill,
.tone-app-page .tone-now .status-pill {
  border-color: rgba(255, 50, 31, 0.5);
  color: var(--fuego-cream);
  background: rgba(255, 50, 31, 0.14);
}

.tone-app-page .control,
.tone-app-page .tone-advanced,
.tone-app-page .tone-export-panel {
  border-color: var(--fuego-line);
  background: rgba(3, 3, 3, 0.46);
}

.tone-app-page .button.primary,
.tone-app-page .mode-chip.is-active,
.tone-app-page .preset-pill.is-active {
  border-color: rgba(255, 50, 31, 0.76);
  color: #fff;
  background: linear-gradient(135deg, #ff351f, #c91e14);
}

.tone-app-page .tone-mode-switch .mode-chip.is-active {
  color: #fff;
  background: rgba(255, 50, 31, 0.2);
}

.tone-app-page .tone-mode-switch .mode-chip.is-active .mode-light {
  background: var(--fuego-red);
  box-shadow: 0 0 12px rgba(255, 50, 31, 0.86);
}

.tone-app-page .meaning-frequency,
.tone-app-page .section-kicker,
.tone-app-page .eyebrow {
  color: var(--fuego-ember);
}

@media (max-width: 900px) {
  .tone-app-page .topbar {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 22px max(18px, env(safe-area-inset-left));
    align-items: center;
  }

  .tone-app-page .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .tone-app-page .nav > .nav-link:not(.nav-link-cart) {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    padding: 0 8px;
    justify-content: center;
    border: 1px solid var(--fuego-line);
    background: rgba(3, 3, 3, 0.54);
    font-size: 0.72rem;
  }

  .tone-app-page .nav > .nav-link[href="/about/"],
  .tone-app-page .nav > .nav-link-cart {
    display: none !important;
  }

  .tone-app-page .nav-folder,
  .tone-app-page .account-chip {
    grid-column: span 2;
    width: 100%;
  }

  .tone-app-page .nav-folder summary,
  .tone-app-page .account-chip {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 640px) {
  .tone-app-page .tone-shell {
    padding: 0 0 110px;
  }

  .tone-app-page .topbar {
    gap: 16px;
    padding: 18px max(18px, env(safe-area-inset-left));
  }

  .tone-app-page .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tone-app-page .nav-folder,
  .tone-app-page .account-chip {
    grid-column: span 1;
  }

  .tone-app-page .tone-hero {
    min-height: auto;
  }

  .tone-app-page .tone-hero-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding: 48px 0;
  }

  .tone-app-page .tone-hero h1 {
    max-width: 8.4ch;
    font-size: 4.15rem;
    line-height: 0.88;
  }

  .tone-app-page .tone-hero .lede {
    max-width: 22rem;
    font-size: 1.04rem;
  }

  .tone-app-page .tone-workspace {
    width: calc(100% - 28px);
    margin-top: 32px;
  }
}

/* Tone Generator: focused product UI and mobile transport */
.tone-app-page {
  --tone-panel: rgba(18, 18, 18, 0.94);
  --tone-panel-soft: rgba(255, 255, 255, 0.045);
  --tone-border: rgba(246, 239, 232, 0.14);
  --tone-muted: rgba(246, 239, 232, 0.62);
  color: var(--fuego-cream, #f6efe8);
  background: #070707;
}

.tone-app-page .tone-shell {
  width: min(1180px, calc(100% - 32px));
  padding-bottom: 48px;
}

.tone-app-page .tool-hero {
  gap: 18px;
  padding-block: 26px 22px;
}

.tone-app-page .tool-hero > div:first-child {
  max-width: 720px;
}

.tone-app-page .tool-hero h1 {
  margin-top: 4px;
  font: 800 4rem/0.92 var(--font-display, "Barlow Condensed", sans-serif);
  letter-spacing: 0;
  text-transform: uppercase;
}

.tone-app-page .tool-hero .lede {
  max-width: 58ch;
  margin-top: 12px;
  color: var(--tone-muted);
}

.tone-app-page .tool-status-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--tone-border);
  border-radius: 8px;
  background: var(--tone-border);
}

.tone-app-page .tool-status-strip div {
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #101010;
  backdrop-filter: none;
}

.tone-app-page .tool-status-strip span {
  margin-bottom: 4px;
  color: var(--tone-muted);
}

.tone-app-page .tool-status-strip strong {
  color: var(--fuego-cream, #f6efe8);
  font-size: 1.15rem;
}

.tone-app-page .tone-workspace {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.tone-app-page .tone-console,
.tone-app-page .tone-now {
  padding: 22px;
  border: 1px solid var(--tone-border);
  border-radius: 8px;
  background: var(--tone-panel);
  box-shadow: none;
}

.tone-app-page .panel-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tone-border);
}

.tone-app-page .control-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tone-app-page .control {
  display: grid;
  grid-template-columns: minmax(100px, 0.32fr) minmax(140px, 1fr) 84px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--tone-border);
  border-radius: 6px;
  background: var(--tone-panel-soft);
}

.tone-app-page .control > span {
  color: var(--fuego-cream, #f6efe8);
  font-size: 0.84rem;
  font-weight: 700;
}

.tone-app-page .dual-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tone-app-page .tone-value-input {
  min-width: 0;
  text-align: center;
}

.tone-app-page .binaural-presets {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.tone-app-page .binaural-presets > * {
  flex: 0 0 auto;
}

.tone-app-page .tone-advanced,
.tone-app-page .tone-export-panel {
  border: 1px solid var(--tone-border);
  border-radius: 6px;
  background: var(--tone-panel-soft);
}

.tone-app-page .tone-advanced > summary,
.tone-app-page .tone-export-panel > summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.tone-app-page .tone-advanced > summary::-webkit-details-marker,
.tone-app-page .tone-export-panel > summary::-webkit-details-marker {
  display: none;
}

.tone-app-page .tone-advanced > summary::after,
.tone-app-page .tone-export-panel > summary::after {
  color: var(--fuego-ember, #ffb48f);
  content: "+";
  font-size: 1.2rem;
}

.tone-app-page .tone-advanced[open] > summary::after,
.tone-app-page .tone-export-panel[open] > summary::after {
  content: "-";
}

.tone-app-page .tone-advanced summary span,
.tone-app-page .tone-export-panel summary strong {
  display: block;
  color: var(--fuego-cream, #f6efe8);
  font-size: 0.9rem;
}

.tone-app-page .tone-advanced summary small,
.tone-app-page .tone-export-panel summary small {
  color: var(--tone-muted);
  font-size: 0.76rem;
}

.tone-app-page .tone-advanced .dual-controls,
.tone-app-page .tone-export-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.tone-app-page .tone-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  margin-top: 18px;
}

.tone-app-page .tone-actions .button {
  min-height: 50px;
}

.tone-app-page .tone-export-panel {
  display: block;
  margin-top: 14px;
  padding: 0;
}

.tone-app-page .tone-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--tone-border);
}

.tone-app-page .tone-export-head h3,
.tone-app-page .tone-export-head p {
  margin: 0;
}

.tone-app-page .tone-export-format {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 176, 130, 0.44);
  border-radius: 999px;
  color: var(--fuego-ember, #ffb48f);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tone-app-page .tone-export-panel .tone-export-body {
  padding: 14px 16px 16px;
}

.tone-app-page #downloadToneLoopButton {
  width: 100%;
  min-height: 50px;
}

.tone-app-page .tone-export-panel .control {
  grid-template-columns: 1fr 100px;
  padding: 12px;
}

.tone-app-page .tone-now {
  position: sticky;
  top: 18px;
}

.tone-app-page .tone-now .visualizer {
  height: 170px;
  margin-block: 20px 14px;
  border: 1px solid var(--tone-border);
  border-radius: 6px;
}

.tone-app-page .meaning-frequency {
  margin-block: 18px 8px;
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 2rem;
  font-weight: 800;
}

.tone-app-page .meaning-copy,
.tone-app-page .tone-note {
  color: var(--tone-muted);
}

@media (max-width: 980px) {
  .tone-app-page .tone-workspace {
    grid-template-columns: 1fr;
  }

  .tone-app-page .tone-now {
    position: static;
  }
}

@media (max-width: 640px) {
  .tone-app-page .tone-shell {
    width: 100%;
    padding: 78px 12px 110px;
  }

  .tone-app-page .tool-hero {
    gap: 14px;
    padding-block: 16px 14px;
  }

  .tone-app-page .tool-hero h1 {
    font-size: 2.85rem;
  }

  .tone-app-page .tool-hero .lede {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .tone-app-page .tool-status-strip div {
    min-width: 0;
    padding: 11px 10px;
  }

  .tone-app-page .tool-status-strip span {
    font-size: 0.64rem;
  }

  .tone-app-page .tool-status-strip strong {
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tone-app-page .tone-console,
  .tone-app-page .tone-now {
    padding: 16px;
  }

  .tone-app-page .tone-console .panel-head h2,
  .tone-app-page .tone-now .panel-head h2 {
    font-size: 1.8rem;
  }

  .tone-app-page .tone-mode-switch {
    width: 100%;
  }

  .tone-app-page .control {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
    padding: 13px;
  }

  .tone-app-page .control > span {
    grid-column: 1 / -1;
  }

  .tone-app-page .control input[type="range"] {
    width: 100%;
  }

  .tone-app-page .tone-advanced .control,
  .tone-app-page .tone-export-panel .control {
    grid-template-columns: 1fr;
  }

  .tone-app-page .tone-actions {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tone-border);
    background: rgba(7, 7, 7, 0.94);
    backdrop-filter: blur(18px);
  }

  .tone-app-page .tone-actions .button {
    min-width: 0;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .tone-app-page #resetButton,
  .tone-app-page #wakeLockButton {
    width: 48px;
    overflow: hidden;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  .tone-app-page #resetButton::before {
    color: var(--fuego-cream, #f6efe8);
    content: "Reset";
    font-size: 0.66rem;
  }

  .tone-app-page #wakeLockButton::before {
    color: var(--fuego-cream, #f6efe8);
    content: "Awake";
    font-size: 0.62rem;
  }

  .tone-app-page .tone-now {
    order: -1;
  }

  .tone-app-page .fuego-cart-toggle {
    display: none;
  }

  .tone-app-page .tone-now .visualizer {
    height: 118px;
  }

  .tone-app-page .meaning-copy {
    font-size: 0.9rem;
  }
}

/* Digital Vault: private file delivery separated from Square commerce. */
.digital-hero {
  background:
    linear-gradient(105deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.62)),
    radial-gradient(circle at 78% 28%, transparent 0 6rem, rgba(255, 50, 31, 0.68) 6.1rem 7rem, transparent 7.1rem),
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(246, 239, 232, 0.04) 84px 85px),
    #050505;
}

.digital-hero .hero-copy {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
  margin-inline: auto;
  padding-block: clamp(64px, 10vw, 128px);
}

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

.digital-proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.digital-proof-line span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 180, 143, 0.2);
  border-radius: var(--fuego-control-radius);
  color: var(--fuego-dim);
  background: rgba(3, 3, 3, 0.58);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
}

.store-digital-link {
  color: var(--fuego-cream);
  text-decoration: none;
}

.store-digital-link:hover {
  border-color: rgba(255, 180, 143, 0.52);
  color: #fff;
  background: rgba(255, 50, 31, 0.12);
}

.digital-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.digital-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fuego-card-border);
  border-radius: var(--fuego-card-radius);
  background: var(--fuego-card-bg);
  box-shadow: inset 0 1px 0 rgba(246, 239, 232, 0.08);
}

.digital-product-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--fuego-media-bg);
}

.digital-product-media .ff-img-wrap,
.digital-product-media img {
  width: 100%;
  height: 100%;
}

.digital-product-media img {
  object-fit: contain;
}

.digital-product-media > span {
  color: var(--fuego-red);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
}

.digital-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: var(--fuego-card-pad);
}

.digital-product-copy h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.96;
}

.digital-product-copy > p {
  margin: 0;
  color: var(--fuego-dim);
}

.digital-product-facts {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-block: 13px;
  border-block: 1px solid rgba(246, 239, 232, 0.1);
}

.digital-product-facts strong {
  color: var(--fuego-cream);
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.digital-product-facts span,
.digital-card-status {
  color: var(--fuego-dim);
  font-size: 0.88rem;
}

.digital-card-status {
  min-height: 1.4em;
}

.digital-card-status a {
  color: var(--fuego-ember);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.digital-empty-state {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 180, 143, 0.18);
  border-radius: var(--fuego-card-radius);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 50, 31, 0.16), transparent 18rem),
    rgba(3, 3, 3, 0.72);
}

.digital-empty-state h2 {
  margin: 0 0 12px;
}

.digital-empty-state p:not(.section-kicker) {
  max-width: 58ch;
  color: var(--fuego-dim);
}

.digital-product-redirect .digital-delivery-panel {
  border-color: rgba(255, 180, 143, 0.26);
}

@media (max-width: 640px) {
  .digital-hero .hero-copy {
    padding-block: 48px;
  }

  .digital-proof-line {
    display: grid;
  }

  .digital-proof-line span {
    font-size: 0.875rem;
  }

  .digital-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Miami Fuego visual direction: dark gallery/store, red fire accents, raw brush energy. */
:root {
  --bg: #030303;
  --bg-soft: #0a0a0a;
  --surface: rgba(8, 8, 8, 0.92);
  --surface-strong: rgba(12, 12, 12, 0.98);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --ink: #f5f2ec;
  --muted: #a8a29a;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ff2a18;
  --accent-strong: #e02618;
  --accent-deep: #9e160e;
  --gold: #ff2a18;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.58);
  --shadow-strong: 0 24px 72px rgba(255, 42, 24, 0.2);
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
}

body {
  background:
    radial-gradient(circle at 80% 12%, rgba(224, 38, 24, 0.18), transparent 26rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #030303 0%, #070707 58%, #030303 100%);
  background-size: auto, 80px 80px, auto;
}

.page-shell {
  width: 100%;
  max-width: 100%;
  padding: 0 0 44px;
}

.topbar {
  min-height: 86px;
  margin: 0;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.86);
}

.brand {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.brand::before {
  content: "♕";
  position: absolute;
  top: -26px;
  left: 16px;
  color: var(--accent);
  font-size: 1.1rem;
  transform: rotate(8deg);
}

.nav {
  align-items: center;
  gap: 14px;
}

.nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active,
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.nav-link.is-active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
}

.nav-link-cart {
  padding-inline: 14px;
  border: 1px solid rgba(242, 230, 220, 0.18);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.62);
}

.nav-folder {
  position: relative;
  order: 1;
}

.nav-folder summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(242, 230, 220, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.82);
  cursor: pointer;
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-folder summary:hover {
  border-color: rgba(255, 42, 24, 0.68);
  color: #fff;
  background: rgba(224, 38, 24, 0.14);
}

.nav-folder summary::-webkit-details-marker {
  display: none;
}

.nav-folder summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.nav-folder[open] summary::after {
  content: "-";
}

.nav-folder-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(255, 42, 24, 0.34);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.nav-folder-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(242, 230, 220, 0.78);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-folder-panel a:last-child {
  border-bottom: 0;
}

.nav-folder-panel a:hover,
.nav-folder-panel a.is-active {
  color: #fff;
  background: rgba(224, 38, 24, 0.18);
}

.nav-folder-panel a.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 42, 24, 0.48);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px 0 9px;
  border: 1px solid rgba(242, 230, 220, 0.18);
  background: rgba(5, 5, 5, 0.82);
  color: var(--ink);
  white-space: nowrap;
}

.account-chip.is-authenticated {
  border-color: rgba(255, 42, 24, 0.55);
  background: rgba(224, 38, 24, 0.16);
  color: #fff;
}

.account-avatar {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 42, 24, 0.36);
  border-radius: 999px;
  background: #050505;
  font-size: 1rem;
  line-height: 1;
}

.panel,
.section-block {
  border-width: 1px 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero {
  position: relative;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.94) 34%, rgba(3, 3, 3, 0.36) 64%, rgba(3, 3, 3, 0.82) 100%),
    radial-gradient(circle at 76% 30%, rgba(224, 38, 24, 0.38), transparent 12rem),
    linear-gradient(105deg, transparent 0 48%, rgba(242, 230, 220, 0.78) 48% 52%, transparent 52%),
    linear-gradient(10deg, transparent 0 46%, rgba(224, 38, 24, 0.9) 46% 55%, transparent 55%),
    #050505;
}

.home-hero.hero {
  background: #050505;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 86px 0 0 42%;
  background:
    radial-gradient(circle at 74% 20%, transparent 0 5rem, rgba(224, 38, 24, 0.72) 5.15rem 6.05rem, transparent 6.2rem),
    linear-gradient(92deg, transparent 0 22%, rgba(242, 230, 220, 0.78) 22% 27%, transparent 27%),
    linear-gradient(0deg, transparent 0 44%, rgba(224, 38, 24, 0.88) 44% 58%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, 0.04) 58px 59px),
    #090909;
  opacity: 0.92;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%, 8% 70%);
}

.home-hero.hero::after {
  opacity: calc(0.92 * var(--home-hero-scroll-opacity));
  transition: opacity 80ms linear;
}

.profile-hero.hero::after {
  opacity: 0.78;
}

.home-hero-grid,
.hero > .hero-copy {
  position: relative;
  z-index: 1;
}

.hero > .hero-copy {
  width: min(720px, calc(100% - 48px));
  padding: 72px 0 70px;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.profile-panel {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 70px;
  padding: 34px 0 0;
  background: transparent;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.55fr);
  gap: 18px;
}

.profile-card {
  border: 1px solid rgba(242, 230, 220, 0.14);
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.94), rgba(224, 38, 24, 0.08));
  padding: 28px;
}

.profile-card-main {
  grid-row: span 2;
}

.profile-card h2,
.profile-card h3 {
  max-width: none;
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.profile-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.profile-card h3 {
  font-size: 1.25rem;
}

.profile-card p {
  color: var(--muted);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0 16px;
}

.profile-avatar {
  display: inline-grid;
  width: clamp(62px, 9vw, 86px);
  height: clamp(62px, 9vw, 86px);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 42, 24, 0.55);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), transparent 34%), rgba(224, 38, 24, 0.12);
  box-shadow: 0 0 34px rgba(224, 38, 24, 0.18);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.profile-status {
  display: grid;
  gap: 6px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(255, 42, 24, 0.28);
  background: rgba(5, 5, 5, 0.56);
}

.profile-status span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-status strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 14px;
}

.profile-logout-button {
  width: 100%;
}

.profile-commerce-card {
  grid-column: 1 / -1;
}

.profile-address {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: var(--muted);
}

.profile-session-list,
.profile-item-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.profile-session-card,
.profile-item-row {
  border: 1px solid rgba(242, 230, 220, 0.12);
  background: rgba(5, 5, 5, 0.26);
}

.profile-session-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.profile-session-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.profile-session-head h3 {
  overflow-wrap: anywhere;
}

.profile-session-head > span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 42, 24, 0.28);
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-mini-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-mini-facts div {
  padding: 12px;
  border: 1px solid rgba(242, 230, 220, 0.1);
}

.profile-mini-facts dt {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-mini-facts dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.profile-square-line-list {
  display: grid;
  gap: 8px;
}

.profile-square-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 230, 220, 0.1);
  background: rgba(5, 5, 5, 0.22);
}

.profile-square-line strong {
  overflow-wrap: anywhere;
}

.profile-square-line span {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  white-space: nowrap;
}

.profile-item-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.profile-item-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #050505;
}

.profile-item-row div {
  display: grid;
  gap: 5px;
}

.profile-item-row span,
.profile-item-row em,
.profile-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-item-row em {
  color: var(--accent);
  font-style: normal;
}

.profile-item-row b {
  color: var(--gold);
  font-family: "Barlow", sans-serif;
}

.profile-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.profile-settings-form label {
  display: grid;
  gap: 8px;
}

.profile-settings-form span {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-settings-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(242, 199, 110, 0.2);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.5);
  font-family: "Barlow", sans-serif;
}

.profile-history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.profile-history-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(242, 230, 220, 0.12);
  background: rgba(5, 5, 5, 0.26);
}

.profile-history-row span,
.profile-history-row em {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-history-row strong {
  color: var(--ink);
}

.profile-history-row em {
  justify-self: end;
  font-style: normal;
}

.home-hero-grid {
  width: min(1200px, calc(100% - 48px));
  min-height: 430px;
  margin: 0 auto;
  padding: 74px 0 60px;
}

.home-orbit-card {
  align-self: stretch;
  border-color: rgba(255, 42, 24, 0.28);
  background: linear-gradient(145deg, rgba(224, 38, 24, 0.14), rgba(255, 255, 255, 0.035));
}

.eyebrow,
.section-kicker,
.repo-meta {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  max-width: 9.5ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4rem, 9vw, 7.6rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.08);
}

h2 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.lede {
  max-width: 34rem;
  color: #d5cec6;
  font-size: 1.08rem;
}

.button,
.repo-link {
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.primary,
.repo-link.primary-link {
  background: linear-gradient(135deg, #ff2a18, #d71810);
  color: #fff;
  box-shadow: 0 18px 44px rgba(224, 38, 24, 0.28);
}

.button.ghost,
.repo-link.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 3, 3, 0.58);
  color: var(--ink);
}

button.repo-link {
  cursor: pointer;
}

button.repo-link:disabled,
button.repo-link[aria-busy="true"] {
  cursor: wait;
  opacity: 0.62;
}

.section-block {
  width: min(1200px, calc(100% - 48px));
  margin: 34px auto 0;
  padding: 0;
  background: transparent;
}

.featured-artwork,
.gallery-grid,
.store-product-grid,
.hub-grid,
.project-grid {
  gap: 22px;
}

.featured-art-copy,
.repo-card,
.gallery-card,
.store-product-card,
.hub-card,
.attached-product,
.stat-card,
.info-card,
.spotlight-card,
.about-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.featured-art-image,
.gallery-card-button img,
.store-product-image img,
.fuego-thumb,
.artwork-main-image,
.artwork-modal-image {
  filter: saturate(0.92) contrast(1.08);
}

.gallery-card-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 78%);
}

.gallery-card-overlay strong,
.store-product-copy h3,
.repo-name {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.store-product-card {
  position: relative;
}

.store-product-copy {
  min-height: 248px;
}

.store-product-image span,
.new-badge {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(5, 5, 5, 0.75);
}

.price-line {
  color: var(--ink) !important;
  font-size: 0.95rem;
}

.mini-tag,
.gallery-product-links span,
.status-pill,
.repo-tag {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
}

.store-status-row {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  justify-content: space-between;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.filter-row .mode-chip {
  min-width: 132px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-transform: uppercase;
}

.filter-row .mode-chip.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.artwork-modal-panel {
  border-color: rgba(255, 42, 24, 0.42);
  background: #070707;
}

.artwork-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.artwork-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(242, 230, 220, 0.12);
  background: rgba(242, 230, 220, 0.1);
}

.artwork-detail-grid div {
  min-height: 104px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(5, 5, 5, 0.92), rgba(224, 38, 24, 0.06));
}

.artwork-detail-grid dt,
.artwork-offer-form span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.artwork-detail-grid dd {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.artwork-offer-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 42, 24, 0.28);
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.94), rgba(224, 38, 24, 0.09));
}

.artwork-offer-form label {
  display: grid;
  gap: 8px;
}

.artwork-offer-form input,
.artwork-offer-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(242, 199, 110, 0.2);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.58);
  font-family: "Barlow", sans-serif;
}

.artwork-offer-form textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.artwork-offer-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hub-card {
  padding: 26px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 42, 24, 0.44);
}

.hub-card span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.1em;
}

/* Cleanup pass: keep the brand sharp while removing the heavy toolbar leftovers. */
:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid #ffb48f;
  outline-offset: 4px;
}

button,
.button,
 .repo-link,
 .nav-folder summary,
 .account-chip,
 .fuego-cart-toggle,
 .mode-chip,
.availability-slot,
.variation-chip {
  border-radius: 999px;
}

.topbar {
  position: relative;
  z-index: 40;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-folder summary,
.account-chip {
  min-width: 0;
  justify-content: center;
}

.nav-folder-panel {
  transform-origin: top right;
}

.nav-folder-panel a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.button,
.repo-link {
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.button.primary,
.repo-link.primary-link {
  background: linear-gradient(135deg, #ff351f, #c91e14);
}

.fuego-cart-toggle {
  right: max(14px, env(safe-area-inset-right));
}

.fuego-cart-toggle {
  bottom: calc(18px + env(safe-area-inset-bottom));
}

.home-hero .cta-row {
  margin-top: 28px;
}

.home-current-card,
.home-pillar-grid article,
.home-offer-panel,
.repo-card,
.store-product-card,
.gallery-card {
  overflow: hidden;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 28px 24px;
  }

  .hero::after {
    inset: 86px 0 0 28%;
    opacity: 0.38;
  }

  .hero-grid,
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero.hero {
    min-height: auto;
  }

  .home-orbit-card {
    display: none;
  }

  .home-story-section,
  .home-proof-grid,
  .home-current-grid,
  .home-pillar-grid,
  .home-archive-grid,
  .profile-layout,
  .artwork-detail-grid,
  .artwork-offer-form {
    grid-template-columns: 1fr;
  }

  .home-pillar-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-pillar-grid article:last-child {
    border-bottom: 0;
  }

  .home-offer-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .profile-card-main {
    grid-row: auto;
  }

  .custom-maker-grid {
    grid-template-columns: 1fr;
  }

  .custom-preview-panel {
    grid-template-rows: auto minmax(420px, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    width: 100%;
    gap: 14px;
    min-width: 0;
    justify-content: flex-start;
  }

  .topbar {
    gap: 18px;
  }

  .brand {
    margin-left: 2px;
  }

  .nav-link {
    min-height: 36px;
    font-size: 0.72rem;
  }

  .nav-link-cart,
  .nav-folder summary,
  .account-chip {
    min-height: 38px;
  }

  .nav-folder {
    flex: 0 1 auto;
    min-width: 0;
  }

  .account-chip {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 40px;
    padding-right: 11px;
    font-size: 0.7rem;
  }

  .account-avatar {
    width: 26px;
    height: 26px;
  }

  .profile-panel {
    width: calc(100% - 28px);
    margin-bottom: 46px;
  }

  .profile-card {
    padding: 22px;
  }

  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-action-grid {
    grid-template-columns: 1fr;
  }

  .checkout-save-grid,
  .profile-mini-facts,
  .profile-item-row,
  .profile-settings-form,
  .profile-history-row {
    grid-template-columns: 1fr;
  }

  .profile-history-row em {
    justify-self: start;
  }

  .custom-preview-label,
  .custom-login-required {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-preview-label em {
    justify-self: start;
  }

  .custom-maker {
    width: calc(100% - 28px);
  }

  .custom-option-grid,
  .custom-art-grid {
    grid-template-columns: 1fr;
  }

  .custom-preview-stage {
    min-height: 420px;
  }

  .profile-item-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .nav-folder {
    min-width: 0;
  }

  .nav-folder summary {
    justify-content: center;
    width: auto;
  }

  .nav-folder-panel {
    position: absolute;
    grid-template-columns: 1fr;
    margin-top: 8px;
    width: min(280px, calc(100vw - 28px));
    min-width: 0;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .button,
  .cta-row .repo-link {
    flex: 1 1 180px;
  }

  .fuego-cart-toggle {
    right: 12px;
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.68rem;
  }

  .fuego-cart-toggle {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .home-manifesto-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-manifesto-list p {
    grid-column: auto;
    font-size: 0.9rem;
  }

  .hero > .hero-copy,
  .home-hero-grid {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .home-hero-grid {
    min-height: 0;
  }

  .home-hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.05rem);
    line-height: 0.9;
  }

  .home-hero .lede {
    font-size: 1rem;
    line-height: 1.55;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .section-block {
    width: calc(100% - 28px);
  }

}

.product-detail-loading {
  padding: 48px;
}

.product-detail-hero {
  min-height: auto;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(224, 38, 24, 0.2), transparent 24rem),
    #050505;
}

.product-detail-hero::after {
  display: none;
}

.product-detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 34px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 54px;
}

.product-media-stack,
.product-buy-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.product-media-stack {
  padding: 18px;
}

.product-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #080808;
}

.product-thumb-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-thumb {
  padding: 0;
  border: 1px solid var(--line);
  background: #070707;
  cursor: pointer;
}

.product-thumb.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.product-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-buy-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
}

.product-buy-panel h1 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.product-detail-price {
  font-size: 1.8rem;
}

.product-option-block {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-option-block > span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-variation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variation-chip {
  min-height: 40px;
  min-width: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
  color: var(--ink);
  cursor: pointer;
  font-family: "Barlow", sans-serif;
}

.variation-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.product-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto) minmax(120px, auto);
  gap: 12px;
}

.product-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-facts dt {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-facts dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.product-description-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.product-description-grid p {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.035);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: min(100%, 460px);
  padding: 18px;
  overflow: auto;
  border-left: 1px solid rgba(224, 38, 24, 0.42);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(14, 14, 14, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(224, 38, 24, 0.18), transparent 20rem);
  box-shadow: -28px 0 68px rgba(0, 0, 0, 0.52);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-surface {
  display: grid;
  gap: 18px;
}

.cart-surface-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cart-surface h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.cart-close,
.cart-line-remove,
.cart-line-controls button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-family: "Barlow", sans-serif;
}

.cart-close,
.cart-line-remove {
  min-height: 36px;
  padding: 8px 11px;
}

.cart-line-list {
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.cart-line-image img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  background: #080808;
}

.cart-line-title {
  display: block;
  margin-bottom: 6px;
  font-family: "Barlow", sans-serif;
  font-weight: 800;
}

.cart-line-copy p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-line-copy strong {
  color: var(--gold);
  font-family: "Barlow", sans-serif;
}

.cart-line-controls {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  border: 1px solid var(--line);
}

.cart-line-controls button {
  width: 34px;
  height: 34px;
  border: 0;
}

.cart-line-controls span {
  text-align: center;
  font-family: "Barlow", sans-serif;
}

.cart-line-remove {
  grid-column: 3;
  justify-self: end;
  color: var(--muted);
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(224, 38, 24, 0.26);
  background: rgba(224, 38, 24, 0.08);
}

.cart-email-field {
  display: grid;
  gap: 8px;
}

.cart-email-field span {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-email-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(242, 199, 110, 0.28);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.42);
  font-family: "Barlow", sans-serif;
}

.checkout-save-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(242, 230, 220, 0.12);
  background: rgba(5, 5, 5, 0.24);
}

.checkout-save-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-save-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-save-grid input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(242, 199, 110, 0.2);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.5);
  font-family: "Barlow", sans-serif;
}

.checkout-save-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.custom-maker {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 70px;
  padding: 34px 0 0;
  background: transparent;
}

.custom-maker-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: stretch;
}

.custom-control-panel,
.custom-preview-panel,
.custom-summary-panel {
  border: 1px solid rgba(242, 230, 220, 0.14);
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(224, 38, 24, 0.08));
  padding: 18px;
}

.custom-control-panel,
.custom-summary-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.custom-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.custom-option,
.custom-toolbar button {
  min-height: 42px;
  border: 1px solid rgba(242, 230, 220, 0.14);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.64);
  cursor: pointer;
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px;
  text-align: left;
}

.custom-option:not(:has(img)) {
  grid-template-columns: 1fr;
  text-align: center;
}

.custom-option img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid rgba(242, 230, 220, 0.1);
  background: #f2eee7;
}

.custom-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-option.is-active,
.custom-art-option.is-active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(224, 38, 24, 0.18);
}

.custom-product-source,
.custom-preview-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
}

.custom-field,
.custom-range {
  display: grid;
  gap: 8px;
}

.custom-field span,
.custom-range span {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.custom-field select,
.custom-range input {
  min-height: 42px;
}

.custom-field select {
  width: 100%;
  padding: 0 11px;
  border: 1px solid rgba(242, 199, 110, 0.2);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.64);
  font-family: "Barlow", sans-serif;
}

.custom-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.custom-art-option {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(242, 230, 220, 0.12);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.38);
  cursor: pointer;
  text-align: left;
}

.custom-art-option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #050505;
}

.custom-art-option span {
  min-height: 2.4em;
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.custom-upload-zone {
  min-height: 110px;
}

.custom-preview-panel {
  display: grid;
  grid-template-rows: auto auto minmax(480px, 1fr) auto;
  gap: 14px;
}

.custom-preview-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 42, 24, 0.28);
  background: rgba(5, 5, 5, 0.62);
}

.custom-preview-label span,
.custom-preview-label em {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.custom-preview-label strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-preview-label em {
  justify-self: end;
  color: var(--accent);
  font-style: normal;
}

.custom-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-toolbar button {
  padding: 0 12px;
}

.custom-preview-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 42, 24, 0.26);
  background:
    radial-gradient(circle at 50% 14%, rgba(224, 38, 24, 0.14), transparent 18rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #080808;
  background-size: auto, 72px 72px, 72px 72px, auto, auto;
}

.custom-product-object {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58%, 430px);
  height: min(78%, 560px);
  transform: translate(-50%, -50%);
  background: var(--product-color, #050505);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.custom-product-photo {
  display: grid;
  place-items: center;
  width: min(78%, 620px);
  height: min(84%, 600px);
  background: transparent;
  box-shadow: none;
}

.custom-product-photo::before {
  content: "";
  position: absolute;
  inset: 10% 14% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5), transparent 68%);
  filter: blur(18px);
  transform: translateY(18%);
}

.custom-product-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.03) drop-shadow(0 34px 54px rgba(0, 0, 0, 0.48));
}

.custom-product-shirt {
  clip-path: polygon(32% 6%, 41% 0, 59% 0, 68% 6%, 82% 16%, 96% 42%, 84% 52%, 72% 33%, 70% 94%, 30% 94%, 28% 33%, 16% 52%, 4% 42%, 18% 16%);
}

.custom-product-shirt span {
  position: absolute;
  top: 4%;
  left: 39%;
  width: 22%;
  height: 8%;
  border-bottom: 10px solid rgba(242, 230, 220, 0.16);
  border-radius: 0 0 999px 999px;
}

.custom-product-shirt.is-hoodie::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34%;
  width: 32%;
  height: 18%;
  border: 12px solid rgba(242, 230, 220, 0.1);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.custom-product-flat {
  width: min(52%, 420px);
  height: min(82%, 620px);
  border: 10px solid rgba(242, 230, 220, 0.12);
}

.custom-product-sticker {
  width: min(52%, 420px);
  height: min(52%, 420px);
  border-radius: 999px;
  border: 10px solid rgba(242, 230, 220, 0.16);
}

.custom-product-phone {
  width: min(26%, 220px);
  height: min(82%, 620px);
  border-radius: 42px;
  border: 8px solid rgba(242, 230, 220, 0.16);
}

.custom-product-phone::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 16%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.7);
}

.custom-product-mug {
  width: min(54%, 420px);
  height: min(42%, 330px);
  border-radius: 44% 34% 40% 42%;
}

.custom-product-mug span {
  position: absolute;
  right: -22%;
  top: 28%;
  width: 34%;
  height: 38%;
  border: 22px solid var(--product-color, #f2e6dc);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.custom-product-hat {
  width: min(62%, 480px);
  height: min(28%, 220px);
  border-radius: 999px 999px 26px 26px;
}

.custom-product-hat span {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -18%;
  height: 32%;
  border-radius: 0 0 999px 999px;
  background: color-mix(in srgb, var(--product-color, #050505) 74%, #f2e6dc);
}

.custom-product-tote {
  width: min(50%, 400px);
  height: min(66%, 500px);
  border-radius: 0 0 18px 18px;
}

.custom-product-tote span {
  position: absolute;
  left: 28%;
  top: -14%;
  width: 44%;
  height: 20%;
  border: 12px solid var(--product-color, #f2e6dc);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.custom-print-area {
  position: absolute;
  border: 1px dashed rgba(242, 230, 220, 0.64);
  background: rgba(5, 5, 5, 0.08);
  z-index: 2;
}

.custom-print-area span {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 1px solid rgba(242, 230, 220, 0.18);
  color: rgba(242, 230, 220, 0.72);
  background: rgba(5, 5, 5, 0.72);
  font-family: "Barlow", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.custom-art-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.custom-submit-form,
.custom-design-json,
.custom-request-output {
  display: grid;
  gap: 10px;
}

.custom-submit-form {
  padding: 14px;
  border: 1px solid rgba(255, 42, 24, 0.24);
  background: rgba(224, 38, 24, 0.08);
}

.custom-submit-form label {
  display: grid;
  gap: 7px;
}

.custom-submit-form span {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.custom-submit-form input,
.custom-submit-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(242, 199, 110, 0.2);
  color: var(--ink);
  background: rgba(5, 5, 5, 0.54);
  font-family: "Barlow", sans-serif;
}

.custom-submit-form textarea {
  min-height: 92px;
  padding-top: 11px;
  resize: vertical;
}

.custom-design-json pre,
.custom-request-output pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(242, 230, 220, 0.12);
  color: #d5cec6;
  background: rgba(5, 5, 5, 0.42);
  font-size: 0.72rem;
  line-height: 1.45;
}

.custom-login-required {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 42, 24, 0.28);
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.92), rgba(224, 38, 24, 0.1));
}

.custom-login-required h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

.custom-login-required p {
  max-width: 58ch;
  color: var(--muted);
}

.cart-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary dt {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-summary dd {
  margin: 0;
  color: var(--ink);
  font-family: "Barlow", sans-serif;
}

.cart-checkout-status,
.cart-empty p {
  color: var(--muted);
  line-height: 1.6;
}

.cart-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.cart-page-section {
  padding: 24px;
}

.cart-page-section .cart-line {
  grid-template-columns: 110px minmax(0, 1fr) auto auto;
}

.cart-page-section .cart-line-image img {
  width: 110px;
  height: 110px;
}

.cart-page-section .cart-line-remove {
  grid-column: auto;
}

.cart-hero h1 {
  max-width: 13ch;
}

.checkout-validation-section {
  min-height: 280px;
}

.checkout-result {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.checkout-result.is-success {
  border-color: rgba(34, 184, 167, 0.48);
  background: rgba(34, 184, 167, 0.1);
}

.checkout-result.is-warning {
  border-color: rgba(242, 199, 110, 0.44);
  background: rgba(242, 199, 110, 0.08);
}

.checkout-result h2 {
  max-width: 12ch;
}

.checkout-result p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-validation-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.checkout-validation-facts div,
.checkout-line-list article {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.22);
}

.checkout-validation-facts dt,
.checkout-line-list span {
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-validation-facts dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-family: "Barlow", sans-serif;
}

.checkout-line-list {
  display: grid;
  gap: 10px;
}

.checkout-line-list article {
  display: grid;
  gap: 6px;
}

.checkout-digital-delivery {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(242, 199, 110, 0.3);
  background: linear-gradient(135deg, rgba(242, 199, 110, 0.1), rgba(224, 38, 24, 0.08));
}

.checkout-digital-delivery h3,
.checkout-digital-delivery p {
  margin: 0;
}

.checkout-digital-delivery p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-detail-layout {
    width: calc(100% - 28px);
  }

  .product-thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-action-row,
  .product-description-grid {
    grid-template-columns: 1fr;
  }

  .cart-line,
  .cart-page-section .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line-image img,
  .cart-page-section .cart-line-image img {
    width: 72px;
    height: 72px;
  }

  .cart-line-controls,
  .cart-line-remove {
    grid-column: 2;
    justify-self: start;
  }

  .checkout-validation-facts {
    grid-template-columns: 1fr;
  }
}

/* Frontend-design pass: Fuego gallery wall, product confidence, calmer mobile rhythm. */
:root {
  --fuego-black: #030303;
  --fuego-panel: rgba(8, 8, 8, 0.88);
  --fuego-panel-strong: rgba(12, 10, 9, 0.96);
  --fuego-cream: #f6efe8;
  --fuego-dim: #b9aea6;
  --fuego-smoke: #615852;
  --fuego-red: #ff321f;
  --fuego-red-deep: #a9160d;
  --fuego-ember: #ffb48f;
  --fuego-line: rgba(246, 239, 232, 0.14);
}

body {
  color: var(--fuego-cream);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 50, 31, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(246, 239, 232, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #020202, #070504 46%, #030303);
  background-size: auto, 86px 86px, auto;
}

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

.topbar {
  min-height: 76px;
  border-color: rgba(246, 239, 232, 0.12);
  background: rgba(3, 3, 3, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--fuego-cream);
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.44);
}

.brand::before {
  color: var(--fuego-red);
}

.nav-folder summary,
.account-chip {
  border-color: rgba(246, 239, 232, 0.18);
  background: rgba(3, 3, 3, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 50, 31, 0.08);
}

.nav-folder summary:hover,
.account-chip:hover {
  border-color: rgba(255, 50, 31, 0.68);
  background: rgba(255, 50, 31, 0.13);
}

.nav-folder-panel {
  border-color: rgba(255, 50, 31, 0.34);
  background: rgba(4, 4, 4, 0.97);
}

.hero {
  min-height: auto;
  border-color: rgba(246, 239, 232, 0.12);
}

.hero::after {
  opacity: 0.72;
}

.home-hero {
  margin-bottom: 54px;
  overflow: hidden;
}

.home-hero::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.99) 0%, rgba(3, 3, 3, 0.94) 38%, rgba(3, 3, 3, 0.22) 70%, rgba(3, 3, 3, 0.9) 100%),
    radial-gradient(circle at 77% 22%, transparent 0 5.8rem, rgba(255, 50, 31, 0.58) 5.95rem 6.72rem, transparent 6.9rem),
    linear-gradient(96deg, transparent 0 46%, rgba(246, 239, 232, 0.56) 46% 49%, transparent 49%),
    linear-gradient(8deg, transparent 0 46%, rgba(255, 50, 31, 0.78) 46% 54%, transparent 54%),
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(246, 239, 232, 0.035) 84px 85px),
    #050505;
}

.home-hero-grid {
  min-height: clamp(520px, 64vh, 720px);
  align-items: end;
  padding: clamp(74px, 10vw, 132px) 0 clamp(52px, 7vw, 92px);
}

.home-hero .hero-copy {
  align-self: end;
}

.eyebrow,
.section-kicker,
.repo-meta,
.card-label {
  color: var(--fuego-ember);
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  color: var(--fuego-cream);
  font-size: clamp(4.2rem, 10.4vw, 9.4rem);
  line-height: 0.84;
  text-shadow: 0 6px 0 rgba(255, 255, 255, 0.055), 0 24px 58px rgba(0, 0, 0, 0.48);
}

h2 {
  color: var(--fuego-cream);
  font-size: clamp(2.15rem, 4.4vw, 4.65rem);
  line-height: 0.94;
}

h3 {
  color: var(--fuego-cream);
}

.lede,
.section-intro p,
.home-current-card p,
.home-pillar-grid p,
.home-offer-panel p,
.repo-card p,
.about-card p,
.info-card p {
  color: var(--fuego-dim);
}

.home-hero .lede {
  max-width: 46rem;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.button,
.repo-link {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.button.primary,
.repo-link.primary-link {
  border: 1px solid rgba(255, 50, 31, 0.75);
  background: linear-gradient(135deg, #ff3a22, #c8170d);
  color: #fff;
  box-shadow: 0 18px 42px rgba(255, 50, 31, 0.22);
}

.button.ghost,
.repo-link.secondary-link {
  border-color: rgba(246, 239, 232, 0.24);
  background: rgba(3, 3, 3, 0.52);
  color: var(--fuego-cream);
}

.button:hover,
.repo-link:hover {
  transform: translateY(-2px);
}

.section-block {
  margin-top: 42px;
}

.section-intro {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-intro h2,
.section-intro p {
  margin: 0;
}

.home-current-grid {
  gap: 20px;
}

.home-current-card,
.home-archive-card,
.repo-card,
.store-product-card,
.gallery-card,
.about-card,
.info-card,
.spotlight-card {
  border-color: rgba(246, 239, 232, 0.13);
  background: linear-gradient(180deg, rgba(246, 239, 232, 0.045), rgba(3, 3, 3, 0.72));
  box-shadow: inset 0 1px 0 rgba(246, 239, 232, 0.08);
}

.home-current-card {
  border-radius: 18px;
}

.home-current-image {
  aspect-ratio: 1.15;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 180, 143, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 50, 31, 0.18), rgba(3, 3, 3, 0.92));
}

.home-image-tile {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 50, 31, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(246, 239, 232, 0.05), rgba(3, 3, 3, 0.94));
}

.home-current-card > div {
  padding: 20px;
}

.home-current-card h3,
.home-archive-card h3,
.store-product-copy h3,
.gallery-card-overlay strong {
  letter-spacing: 0;
}

.home-current-image span,
.new-badge,
.status-pill,
.mini-tag,
.repo-tag {
  border-radius: 999px;
  color: var(--fuego-ember);
}

.home-pillar-grid {
  border-radius: 22px;
  border-color: rgba(246, 239, 232, 0.13);
  background: rgba(3, 3, 3, 0.46);
}

.home-pillar-grid article {
  position: relative;
  min-height: 235px;
  padding: 28px;
}

.home-pillar-grid article::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fuego-red), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-pillar-grid article:hover::after {
  opacity: 1;
}

.home-pillar-grid span {
  color: var(--fuego-ember);
}

.home-archive-grid {
  gap: 18px;
}

.home-archive-card {
  min-height: 360px;
  border-radius: 18px;
}

.home-archive-card::after {
  background: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.88) 82%);
}

.home-offer-panel {
  border-radius: 24px;
  border: 1px solid rgba(255, 50, 31, 0.3);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 180, 143, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 50, 31, 0.13), rgba(3, 3, 3, 0.84));
}

.filter-row {
  gap: 8px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.filter-row .mode-chip {
  min-width: max-content;
  border-radius: 999px;
  border: 1px solid rgba(246, 239, 232, 0.12);
  background: rgba(3, 3, 3, 0.48);
}

.filter-row .mode-chip.is-active {
  border-color: rgba(255, 50, 31, 0.8);
  background: rgba(255, 50, 31, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 50, 31, 0.2);
}

.fuego-cart-toggle {
  border-color: rgba(255, 50, 31, 0.72);
  background: rgba(3, 3, 3, 0.76);
}

@media (max-width: 900px) {
  .home-hero-grid {
    min-height: auto;
    padding-top: 72px;
  }

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

@media (max-width: 640px) {
  .topbar {
    padding: 22px 18px;
  }

  .home-hero {
    margin-bottom: 34px;
  }

  .home-hero-grid {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(3, 3, 3, 0.72), rgba(3, 3, 3, 0.92)),
      linear-gradient(96deg, transparent 0 38%, rgba(246, 239, 232, 0.42) 38% 42%, transparent 42%),
      linear-gradient(8deg, transparent 0 43%, rgba(255, 50, 31, 0.7) 43% 55%, transparent 55%),
      repeating-linear-gradient(90deg, transparent 0 62px, rgba(246, 239, 232, 0.035) 62px 63px),
      #050505;
  }

  .home-hero h1,
  h1 {
    max-width: 8.4ch;
    font-size: 4.15rem;
    line-height: 0.88;
  }

  .home-hero .lede {
    max-width: 22rem;
    font-size: 1.04rem;
  }

  .section-intro {
    max-width: 100%;
  }

  .section-intro h2,
  .home-offer-panel h2 {
    max-width: 100%;
    font-size: 2.45rem;
    line-height: 0.96;
  }

  .home-current-section .section-intro h2 {
    max-width: 9ch;
  }

  .section-block {
    width: calc(100% - 28px);
    margin-top: 32px;
  }

  .home-current-grid,
  .home-archive-grid,
  .home-pillar-grid {
    grid-template-columns: 1fr;
  }

  .home-pillar-grid {
    border-radius: 18px;
  }

  .home-pillar-grid article {
    min-height: 0;
    padding: 24px;
  }

  .home-pillar-grid span {
    margin-bottom: 18px;
  }

  .home-archive-card {
    min-height: 300px;
  }

  .fuego-cart-toggle {
    right: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 430px) {
  .home-hero h1,
  h1 {
    font-size: 3.45rem;
  }

  .section-intro h2,
  .home-offer-panel h2 {
    font-size: 2.05rem;
  }
}

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

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

  .fuego-ambient video {
    opacity: 0.24;
    transform: none;
  }

  .button:hover,
  .repo-link:hover,
  .hub-card:hover,
  .home-current-card:hover img,
  .home-archive-card:hover img {
    transform: none;
  }
}

@media (max-width: 720px) {
  .artbeta-page.page-shell {
    gap: 14px;
  }

  .artbeta-page .artbeta-hero.hero {
    min-height: auto;
    padding: 14px;
  }

  .artbeta-page .artbeta-hero .topbar {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 0;
    margin-bottom: 14px;
    padding: 12px;
  }

  .artbeta-page .artbeta-hero .brand {
    margin: 0;
    font-size: 1rem;
  }

  .artbeta-page .artbeta-hero .nav {
    width: auto;
    flex: 0 0 auto;
  }

  .artbeta-page .artbeta-hero .hero-copy {
    min-height: 0;
    padding: 10px 0 0;
  }

  .artbeta-page .artbeta-hero h1 {
    max-width: 11ch;
    margin-bottom: 10px;
    font-size: clamp(2rem, 11vw, 3.25rem);
  }

  .artbeta-page .artbeta-hero .lede {
    max-width: 24rem;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .artbeta-page .artbeta-hero .cta-row {
    margin-top: 14px;
  }

  .artbeta-page .artbeta-hero .cta-row a {
    display: none;
  }

  .artbeta-page .artbeta-mobile-enter {
    display: inline-flex;
    width: 100%;
  }

  .artbeta-page .artbeta-room-section.section-block {
    margin-top: 0;
  }

  .artbeta-page .artbeta-room-section .section-intro {
    margin-bottom: 10px;
  }

  .artbeta-page .artbeta-room-section .section-intro h2 {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }

  .artbeta-page .artbeta-room-section .section-intro p:not(.section-kicker) {
    margin-bottom: 0;
  }
}

/* Pass 2: homepage clarity. Keep the front door calm and obvious. */
.home-doorway-section,
.home-current-section,
.home-archive-section,
.home-close-section {
  position: relative;
}

.home-doorway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-doorway-card,
.home-close-card {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 180, 143, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(6, 5, 5, 0.78);
  color: var(--ink);
  text-decoration: none;
}

.home-doorway-card::after,
.home-close-card::after {
  position: absolute;
  top: -20%;
  right: -22%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 42, 24, 0.3);
  border-radius: 50%;
  content: "";
  opacity: 0.42;
}

.home-doorway-card span {
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-doorway-card h3,
.home-close-card h2 {
  position: relative;
  z-index: 1;
  margin: auto 0 16px;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.home-doorway-card p,
.home-close-card p {
  position: relative;
  z-index: 1;
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-doorway-card:hover,
.home-close-card:hover {
  border-color: rgba(255, 42, 24, 0.56);
  background:
    linear-gradient(145deg, rgba(255, 42, 24, 0.16), transparent 46%),
    rgba(8, 6, 5, 0.9);
}

.home-section-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.home-close-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-close-card .button {
  align-self: flex-start;
  margin-top: 28px;
}

.home-page .home-current-section .section-intro,
.home-page .home-archive-section .section-intro {
  max-width: 760px;
}

@media (max-width: 900px) {
  .home-doorway-grid,
  .home-close-grid {
    grid-template-columns: 1fr;
  }

  .home-doorway-card,
  .home-close-card {
    min-height: 230px;
  }
}

/* Pass 3: design system consolidation.
   Keep the backend/data wiring alone; make the public UI use one calmer Fuego language. */
:root {
  --fuego-page-width: 1180px;
  --fuego-page-gutter: 24px;
  --fuego-card-radius: 18px;
  --fuego-control-radius: 999px;
  --fuego-card-border: rgba(246, 239, 232, 0.14);
  --fuego-card-bg: linear-gradient(180deg, rgba(246, 239, 232, 0.05), rgba(3, 3, 3, 0.74));
  --fuego-card-bg-strong: linear-gradient(180deg, rgba(255, 50, 31, 0.08), rgba(3, 3, 3, 0.86));
  --fuego-focus: 0 0 0 3px rgba(255, 180, 143, 0.34);
}

body {
  line-height: 1.55;
}

.section-block,
.home-hero-grid {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
}

.hero-grid {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
  margin-inline: auto;
}

h1,
h2,
h3,
.gallery-card-overlay strong,
.store-product-copy h3,
.repo-name {
  letter-spacing: 0;
}

h1 {
  max-width: 10.5ch;
  font-size: 6.8rem;
  line-height: 0.86;
}

h2 {
  font-size: 3.25rem;
  line-height: 0.96;
}

h3 {
  line-height: 1.12;
}

.eyebrow,
.section-kicker,
.repo-meta,
.card-label,
.home-doorway-card span,
.profile-settings-form span,
.profile-history-row span,
.profile-history-row em {
  letter-spacing: 0.1em;
}

.button,
.repo-link,
.mode-chip,
.store-category-chip,
.nav a,
.nav-folder summary,
.account-chip,
input,
select,
textarea {
  border-radius: var(--fuego-control-radius);
}

input,
select,
textarea {
  min-height: 46px;
  border: 1px solid rgba(246, 239, 232, 0.16);
  color: var(--fuego-cream);
  background: rgba(3, 3, 3, 0.62);
}

textarea {
  border-radius: 16px;
}

.button,
.repo-link {
  min-height: 44px;
  padding: 11px 18px;
}

.button:focus-visible,
.repo-link:focus-visible,
.nav a:focus-visible,
.nav-folder summary:focus-visible,
.account-chip:focus-visible,
.mode-chip:focus-visible,
.store-category-chip:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--fuego-focus);
}

.repo-card,
.gallery-card,
.store-product-card,
.home-current-card,
.home-archive-card,
.home-doorway-card,
.home-close-card,
.about-card,
.info-card,
.spotlight-card,
.stat-card,
.hub-card,
.attached-product {
  border: 1px solid var(--fuego-card-border);
  border-radius: var(--fuego-card-radius);
  background: var(--fuego-card-bg);
  box-shadow: inset 0 1px 0 rgba(246, 239, 232, 0.08);
}

.repo-card:hover,
.gallery-card:hover,
.store-product-card:hover,
.home-current-card:hover,
.home-archive-card:hover,
.home-doorway-card:hover,
.home-close-card:hover {
  border-color: rgba(255, 180, 143, 0.34);
  background: var(--fuego-card-bg-strong);
}

.home-doorway-card,
.home-close-card {
  min-height: 250px;
}

.home-doorway-card h3,
.home-close-card h2 {
  color: var(--fuego-cream);
  letter-spacing: 0;
}

.home-doorway-card p,
.home-close-card p {
  color: var(--fuego-dim);
}

.home-proof-line,
.store-hero-proof,
.store-toolbar,
.store-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-proof-line,
.store-hero-proof {
  margin-top: 24px;
}

.home-proof-line span,
.store-hero-proof span,
.store-card-topline span,
.store-delivery-line {
  border: 1px solid rgba(255, 180, 143, 0.18);
  border-radius: var(--fuego-control-radius);
  background: rgba(3, 3, 3, 0.46);
  color: var(--fuego-dim);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-proof-line span,
.store-hero-proof span {
  padding: 8px 12px;
}

.store-toolbar {
  justify-content: space-between;
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 180, 143, 0.14);
  border-radius: 18px;
  background: rgba(3, 3, 3, 0.42);
}

.store-count,
.store-note {
  margin: 0;
  color: var(--fuego-dim);
}

.store-count {
  color: var(--fuego-cream);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
}

.store-note {
  font-size: 0.92rem;
}

.store-card-topline {
  justify-content: space-between;
  gap: 8px;
}

.store-card-topline .repo-meta {
  margin: 0;
}

.store-card-topline span {
  padding: 5px 9px;
  color: var(--accent);
  font-size: 0.7rem;
  white-space: nowrap;
}

.store-delivery-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 7px 10px;
}

.store-product-card {
  display: flex;
  flex-direction: column;
}

.store-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.store-product-copy .tag-row {
  margin-top: auto;
  padding-top: 8px;
}

.store-product-copy .repo-links {
  margin-top: 12px;
}

.store-empty-state {
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 180, 143, 0.18);
  border-radius: var(--fuego-card-radius);
  background:
    radial-gradient(circle at top right, rgba(255, 50, 31, 0.16), transparent 34%),
    rgba(3, 3, 3, 0.72);
}

.store-empty-state h2 {
  margin: 0 0 12px;
}

.store-empty-state p:not(.section-kicker) {
  max-width: 52rem;
  color: var(--fuego-dim);
}

.home-image-tile,
.home-current-image,
.home-archive-card,
.gallery-card-button,
.featured-art-image,
.artwork-modal-image,
.fuego-thumb,
.artwork-main-image {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 50, 31, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(246, 239, 232, 0.06), rgba(3, 3, 3, 0.94));
}

.home-image-tile img,
.home-current-image img,
.home-archive-card img,
.gallery-card-button img,
.featured-art-image,
.artwork-modal-image,
.fuego-thumb,
.artwork-main-image {
  object-position: center;
}

.store-product-image img {
  object-position: center;
}

.topbar {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
  margin-inline: auto;
  border-radius: 0 0 var(--fuego-card-radius) var(--fuego-card-radius);
}

@media (max-width: 900px) {
  :root {
    --fuego-page-gutter: 16px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: 3.65rem;
    line-height: 0.9;
  }

  h2 {
    font-size: 2.15rem;
    line-height: 1;
  }

  .home-hero-grid {
    min-height: 0;
    padding-block: 54px 44px;
  }

  .section-block {
    margin-top: 30px;
  }

  .home-doorway-card,
  .home-close-card {
    min-height: 210px;
    border-radius: 16px;
  }

  .button,
  .repo-link {
    min-height: 42px;
    padding-inline: 16px;
  }

  .home-proof-line,
  .store-hero-proof {
    gap: 8px;
  }

  .home-proof-line span,
  .store-hero-proof span {
    font-size: 0.72rem;
  }

  .store-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .topbar {
    width: 100%;
    border-radius: 0;
  }

  .home-proof-line span,
  .store-hero-proof span {
    width: 100%;
  }

  .store-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Pass 3 type overrides: remove older viewport-scaled display rules from the public surface. */
.brand {
  letter-spacing: 0;
}

.home-hero .lede,
.lede {
  font-size: 1.08rem;
}

.artbeta-modal-copy h2,
.artbeta-room-section .section-intro h2,
.about-hero h1,
.about-placeholder strong,
.profile-card h2,
.product-buy-panel h1,
.cart-surface h2,
.custom-login-required h3,
.home-offer-panel h2,
.section-intro h2,
.home-doorway-card h3,
.home-close-card h2,
.artbeta-page .artbeta-hero h1,
.artbeta-page .artbeta-room-section .section-intro h2 {
  letter-spacing: 0;
}

.artbeta-modal-copy h2,
.artbeta-room-section .section-intro h2,
.custom-login-required h3,
.home-doorway-card h3,
.home-close-card h2,
.artbeta-page .artbeta-room-section .section-intro h2 {
  font-size: 2.25rem;
}

.about-hero h1,
.product-buy-panel h1 {
  font-size: 5.4rem;
}

.about-placeholder strong,
.profile-card h2,
.cart-surface h2,
.home-offer-panel h2,
.section-intro h2 {
  font-size: 3rem;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  font-size: 2.55rem;
}

@media (max-width: 900px) {
  .home-hero .lede,
  .lede {
    font-size: 1rem;
  }

  .about-hero h1,
  .product-buy-panel h1 {
    font-size: 3.35rem;
  }

  .about-placeholder strong,
  .profile-card h2,
  .cart-surface h2,
  .home-offer-panel h2,
  .section-intro h2 {
    font-size: 2.15rem;
  }

  .artbeta-modal-copy h2,
  .artbeta-room-section .section-intro h2,
  .custom-login-required h3,
  .home-doorway-card h3,
  .home-close-card h2,
  .artbeta-page .artbeta-room-section .section-intro h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 520px) {
  .about-hero h1,
  .product-buy-panel h1 {
    font-size: 3rem;
  }

  .about-placeholder strong,
  .profile-card h2,
  .cart-surface h2,
  .home-offer-panel h2,
  .section-intro h2 {
    font-size: 1.9rem;
  }
}

/* Pass 4: gallery cleanup. Make /art/ feel like a collector room, not a mixed store page. */
.artbeta-page {
  padding-bottom: 64px;
}

.artbeta-hero {
  min-height: 560px;
}

.artbeta-page .artbeta-hero .hero-copy {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
  margin-inline: auto;
  padding-block: 84px 72px;
}

.artbeta-page .artbeta-hero h1 {
  max-width: 10ch;
  font-size: 5.8rem;
}

.artbeta-page .artbeta-hero .lede {
  max-width: 40rem;
}

.artbeta-proof-strip {
  display: grid;
  grid-template-columns: 0.75fr 1.4fr 1fr;
  gap: 1px;
  max-width: 860px;
  margin-top: 30px;
  border: 1px solid rgba(255, 180, 143, 0.22);
  background: rgba(255, 180, 143, 0.14);
}

.artbeta-proof-strip span {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 14px 16px;
  color: var(--fuego-dim);
  background: rgba(3, 3, 3, 0.74);
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.artbeta-proof-strip strong {
  color: var(--fuego-ember);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.85rem;
  line-height: 1;
}

.artbeta-room-section .section-intro,
.artbeta-page .section-block > .section-intro {
  max-width: 840px;
}

.artbeta-room-shell {
  border-radius: var(--fuego-card-radius);
  border-color: rgba(255, 180, 143, 0.2);
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 50, 31, 0.18), transparent 32%),
    #0d0c0b;
}

.artbeta-controls {
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.artbeta-controls span {
  border-color: rgba(246, 239, 232, 0.14);
  color: var(--fuego-dim);
  -webkit-user-select: none;
  user-select: none;
}

.artbeta-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.artbeta-grid-card {
  border-radius: var(--fuego-card-radius);
  border-color: rgba(246, 239, 232, 0.13);
  background: var(--fuego-card-bg);
}

.artbeta-grid-card button {
  gap: 10px;
  padding: 12px;
}

.artbeta-grid-card img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 50, 31, 0.12), transparent 32%),
    rgba(3, 3, 3, 0.78);
}

.artbeta-grid-card strong {
  color: var(--fuego-cream);
  text-transform: uppercase;
  letter-spacing: 0;
}

.artbeta-grid-card small {
  color: var(--fuego-dim);
  line-height: 1.35;
}

.artbeta-modal-card {
  border-color: rgba(255, 180, 143, 0.22);
  border-radius: var(--fuego-card-radius);
  background: rgba(3, 3, 3, 0.96);
}

.artbeta-modal-card img {
  object-fit: contain;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 50, 31, 0.12), transparent 30%),
    #070504;
}

.artbeta-modal-copy {
  display: grid;
  align-content: center;
}

.artbeta-modal-note {
  max-width: 44ch;
  margin: 0 0 20px;
  color: var(--fuego-dim);
  line-height: 1.65;
}

.artbeta-modal-actions {
  margin-top: 22px;
}

.baecreate-hero {
  background:
    linear-gradient(115deg, rgba(3, 3, 3, 0.88), rgba(3, 3, 3, 0.48)),
    radial-gradient(circle at 72% 28%, rgba(242, 199, 110, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(242, 109, 91, 0.16), rgba(34, 184, 167, 0.12));
}

.baecreate-hero::after {
  display: none;
}

.baecreate-locked .baecreate-locked-content,
.baecreate-unlocked .baecreate-passcode {
  display: none;
}

.baecreate-passcode-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.baecreate-passcode-form input {
  flex: 1 1 240px;
  min-height: 48px;
  border: 1px solid rgba(255, 231, 204, 0.2);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: rgba(255, 243, 233, 0.08);
  padding: 0 18px;
}

.baecreate-passcode-form input::placeholder {
  color: rgba(255, 243, 230, 0.5);
}

.baecreate-passcode-error {
  margin: 14px 0 0;
  color: #ffb48f;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
}

@media (max-width: 900px) {
  .artbeta-page .artbeta-hero h1 {
    font-size: 3.35rem;
  }

  .artbeta-proof-strip {
    grid-template-columns: 1fr;
  }

  .artbeta-proof-strip span {
    min-height: 58px;
  }

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

@media (max-width: 720px) {
  .artbeta-page .artbeta-hero.hero {
    padding: 0;
  }

  .artbeta-page .artbeta-hero .hero-copy {
    padding-block: 34px 30px;
  }

  .artbeta-page .artbeta-hero .cta-row a {
    display: inline-flex;
  }

  .artbeta-page .artbeta-hero .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .artbeta-page .artbeta-mobile-enter {
    width: 100%;
  }

  .artbeta-room-shell {
    border-radius: 14px;
  }

  #artbetaCanvas {
    min-height: 390px;
  }
}

@media (max-width: 520px) {
  .artbeta-page .artbeta-hero h1 {
    font-size: 3rem;
  }

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

/* Artwork detail pages: keep the static hero art from covering the header. */
.artwork-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 50, 31, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(8, 6, 5, 0.96), rgba(3, 3, 3, 0.88));
}

.artwork-hero::after {
  display: none;
}

.artwork-hero .topbar,
.artwork-hero .hero-grid {
  position: relative;
  z-index: 2;
}

.artwork-hero .topbar {
  background: rgba(3, 3, 3, 0.9);
  border: 1px solid rgba(246, 239, 232, 0.12);
  border-top: 0;
}

.artwork-hero .hero-grid {
  padding-bottom: 10px;
}

@media (max-width: 720px) {
  .artwork-hero .topbar {
    width: 100%;
    border-radius: 0;
  }
}

/* Shared brand shell: a poster-led type system and a mobile navigation built for touch. */
:root {
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-ui: "Barlow", system-ui, sans-serif;
  --text-display: clamp(4rem, 8vw, 6rem);
  --text-section: clamp(2.35rem, 4.8vw, 3.75rem);
  --text-card-title: 1.5rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  font-kerning: normal;
  font-optical-sizing: auto;
  line-height: 1.62;
  letter-spacing: 0.01em;
}

button,
input,
select,
textarea,
.button,
.repo-link,
.nav,
.account-chip,
.eyebrow,
.section-kicker,
.repo-meta,
.card-label,
.status-pill {
  font-family: var(--font-ui);
}

h1,
h2,
h3,
.brand,
.store-product-copy h3,
.repo-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  font-size: var(--text-display);
  line-height: 0.88;
  letter-spacing: -0.025em;
}

h2,
.section-intro h2 {
  font-size: var(--text-section);
  line-height: 0.94;
  letter-spacing: -0.015em;
}

h3,
.home-doorway-card h3,
.store-product-copy h3,
.repo-name {
  font-size: var(--text-card-title);
  line-height: 1;
  letter-spacing: 0;
}

p,
.lede {
  text-wrap: pretty;
}

.lede,
.section-intro > p:not(.section-kicker),
.hero-copy > p:not(.eyebrow) {
  max-width: 62ch;
}

.eyebrow,
.section-kicker,
.repo-meta,
.card-label {
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand {
  font-size: 1.72rem;
  line-height: 0.78;
  letter-spacing: 0.01em;
}

.nav a,
.nav-link,
.nav-folder summary,
.account-chip {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.075em;
}

.nav-more-about {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --text-display: 4.35rem;
    --text-section: 2.7rem;
    --text-card-title: 1.4rem;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px max(18px, env(safe-area-inset-left));
    backdrop-filter: none;
  }

  .brand {
    width: fit-content;
    margin: 0;
    font-size: 1.58rem;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .nav > .nav-link:not(.nav-link-cart) {
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 0 8px;
    border: 1px solid rgba(246, 239, 232, 0.12);
    border-radius: 999px;
    background: rgba(3, 3, 3, 0.54);
    font-size: 0.72rem;
    text-decoration: none;
  }

  .nav > .nav-link:not(.nav-link-cart).is-active {
    border-color: rgba(255, 50, 31, 0.64);
    color: #fff;
    background: rgba(255, 50, 31, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 50, 31, 0.16);
  }

  .nav > a[href="/about/"],
  .nav > .nav-link-cart {
    display: none;
  }

  .nav-folder,
  .account-chip {
    grid-column: span 2;
    width: 100%;
  }

  .nav-folder summary,
  .account-chip {
    width: 100%;
    min-height: 46px;
  }

  .nav-more-about {
    display: flex;
  }

  .nav-folder-panel {
    position: fixed;
    top: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    width: auto;
    min-width: 0;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .nav-folder-panel a {
    min-height: 48px;
  }

  .artbeta-page .artbeta-hero .topbar {
    display: grid;
    align-items: center;
    min-height: 0;
    margin-bottom: 0;
    padding: 22px max(18px, env(safe-area-inset-left));
  }

  .artbeta-page .artbeta-hero .brand {
    margin: 0;
    font-size: 1.58rem;
  }

  .artbeta-page .artbeta-hero .nav {
    width: 100%;
  }
}

@media (max-width: 520px) {
  :root {
    --text-display: 3.55rem;
    --text-section: 2.3rem;
    --text-card-title: 1.3rem;
  }

  .topbar {
    gap: 16px;
    padding-block: 18px;
  }

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

  .nav-folder,
  .account-chip {
    grid-column: span 1;
  }

  .home-hero .lede,
  .lede {
    font-size: 1rem;
    line-height: 1.58;
  }
}

@media (pointer: coarse) {
  .nav a,
  .nav-folder summary,
  .account-chip,
  .button,
  .repo-link {
    min-height: 46px;
  }
}

/* Shared commerce/gallery cards: stable media, restrained metadata, clear actions. */
:root {
  --fuego-card-pad: 20px;
  --fuego-card-gap: 12px;
  --fuego-media-bg:
    radial-gradient(circle at 24% 18%, rgba(255, 50, 31, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(246, 239, 232, 0.055), rgba(3, 3, 3, 0.94));
}

.store-product-card,
.home-current-card,
.artbeta-grid-card,
.gallery-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--fuego-card-radius);
}

.store-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.store-product-image {
  aspect-ratio: 1;
  background: var(--fuego-media-bg);
}

.store-product-image .ff-img-wrap,
.store-product-image img,
.home-current-image .ff-img-wrap,
.home-current-image img,
.artbeta-grid-card .ff-img-wrap,
.artbeta-grid-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.store-product-image img,
.home-current-image img,
.artbeta-grid-card img,
.gallery-card-button img {
  object-fit: contain;
  object-position: center;
}

.store-product-image > span {
  top: 12px;
  left: 12px;
  right: auto;
  padding: 6px 10px;
  border-color: rgba(255, 180, 143, 0.34);
  color: var(--fuego-ember);
  background: rgba(3, 3, 3, 0.82);
  font-size: 0.75rem;
  font-weight: 700;
}

.store-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--fuego-card-gap);
  min-height: 0;
  padding: var(--fuego-card-pad);
}

.store-card-topline {
  align-items: baseline;
  gap: 10px;
}

.store-card-topline .repo-meta {
  color: var(--fuego-ember);
  font-size: 0.8rem;
}

.store-card-topline > span {
  margin-left: auto;
  padding: 0;
  border: 0;
  color: var(--fuego-dim);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
}

.store-product-copy h3 {
  min-height: 2em;
  margin: 0;
  font-size: 1.65rem;
  line-height: 1;
}

.store-product-copy h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-product-copy h3 a:hover {
  color: var(--fuego-ember);
}

.store-card-context {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0;
  overflow: hidden;
  color: var(--fuego-dim) !important;
  font-size: 0.9rem;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-card-purchase-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.store-product-copy .price-line {
  margin: 0;
  color: var(--fuego-cream) !important;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.store-product-copy .store-delivery-line {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(246, 239, 232, 0.1);
  border-radius: 0;
  color: var(--fuego-dim);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.store-product-copy .store-delivery-line::before {
  width: 6px;
  height: 6px;
  margin-right: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--fuego-red);
  content: "";
}

.store-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: auto !important;
  padding-top: 4px;
}

.store-card-actions .repo-link {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.store-card-actions .primary-link {
  color: #fff;
  background: linear-gradient(135deg, #ff351f, #c91e14);
  box-shadow: 0 12px 28px rgba(255, 50, 31, 0.14);
}

.store-card-actions .secondary-link {
  color: var(--fuego-cream);
  background: rgba(3, 3, 3, 0.58);
}

.store-card-actions .buy-button.is-success {
  border-color: rgba(255, 180, 143, 0.68);
  color: #050505;
  background: var(--fuego-ember);
}

.store-card-actions .buy-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.home-current-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-current-image {
  aspect-ratio: 1;
  background: var(--fuego-media-bg);
}

.home-current-card .home-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: var(--fuego-card-pad);
}

.home-current-card h3 {
  min-height: 2em;
  font-size: 1.55rem;
  line-height: 1;
}

.home-current-card h3 a:hover {
  color: var(--fuego-ember);
}

.home-card-meta {
  display: -webkit-box;
  min-height: 2.9em;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-card-action,
.home-archive-card em,
.artbeta-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(246, 239, 232, 0.12);
  color: var(--fuego-cream);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-card-action:hover,
.home-archive-card:hover em,
.artbeta-grid-card button:hover .artbeta-card-action {
  color: var(--fuego-ember);
}

.home-archive-card em {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 16px;
}

.home-archive-card em b,
.artbeta-card-action b {
  font-size: 1rem;
  font-weight: 400;
}

.artbeta-grid-card button {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  gap: 0;
  padding: 0;
  color: var(--fuego-cream);
  text-align: left;
}

.artbeta-grid-card .ff-img-wrap,
.artbeta-grid-card img {
  aspect-ratio: 4 / 5;
  background: var(--fuego-media-bg);
}

.artbeta-card-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 176px;
  padding: 16px;
}

.artbeta-card-copy > span:first-child {
  color: var(--fuego-ember);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.artbeta-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fuego-cream);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.artbeta-card-copy small {
  color: var(--fuego-dim);
  font-size: 0.9rem;
}

.artbeta-card-action {
  width: 100%;
  margin-top: auto;
}

@media (hover: hover) and (pointer: fine) {
  .store-product-card:hover,
  .home-current-card:hover,
  .home-archive-card:hover,
  .artbeta-grid-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 180, 143, 0.34);
  }

  .store-product-card:hover img,
  .home-current-card:hover img,
  .home-archive-card:hover img,
  .artbeta-grid-card:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 640px) {
  :root {
    --fuego-card-pad: 18px;
  }

  .store-card-topline .repo-meta,
  .store-card-topline > span,
  .store-product-copy .store-delivery-line,
  .store-card-actions .repo-link,
  .home-card-action,
  .home-archive-card em,
  .artbeta-card-copy > span:first-child,
  .artbeta-card-action {
    font-size: 0.875rem;
  }

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

  .store-product-copy h3,
  .home-current-card h3 {
    min-height: 0;
  }
}

/* Final tone-page alignment. Keep this after legacy tool styles. */
.tone-app-page {
  color: var(--fuego-cream);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 50, 31, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(246, 239, 232, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #020202, #070504 46%, #030303);
  background-size: auto, 86px 86px, auto;
}

.tone-app-page .tone-shell {
  width: 100%;
  max-width: 100%;
  padding: 0 0 72px;
}

.tone-app-page .topbar {
  position: relative;
  z-index: 40;
  display: flex;
  min-height: 76px;
  margin: 0;
  padding: 0 34px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--fuego-line);
  background: rgba(3, 3, 3, 0.78);
  backdrop-filter: blur(18px);
}

.tone-app-page .brand {
  position: relative;
  display: inline-block;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--fuego-cream);
  background: transparent;
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.tone-app-page .nav {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.tone-app-page .nav a,
.tone-app-page .nav-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 4px;
  align-items: center;
  border: 0;
  color: var(--fuego-cream);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tone-app-page .nav a:hover {
  color: var(--fuego-red);
}

.tone-app-page .nav-link-cart {
  padding-inline: 14px;
  border: 1px solid var(--fuego-line);
  background: rgba(3, 3, 3, 0.56);
}

.tone-app-page .tone-hero {
  min-height: 520px;
  padding: 0;
  border-color: var(--fuego-line);
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.94) 34%, rgba(3, 3, 3, 0.36) 64%, rgba(3, 3, 3, 0.82) 100%),
    radial-gradient(circle at 76% 30%, rgba(224, 38, 24, 0.38), transparent 12rem),
    linear-gradient(105deg, transparent 0 48%, rgba(242, 230, 220, 0.78) 48% 52%, transparent 52%),
    linear-gradient(10deg, transparent 0 46%, rgba(224, 38, 24, 0.9) 46% 55%, transparent 55%),
    #050505;
}

.tone-app-page .tone-hero-copy {
  width: min(720px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding: 66px 0 62px;
}

.tone-app-page .tone-hero h1 {
  max-width: 10.5ch;
  margin: 0;
  color: var(--fuego-cream);
  font-size: 6.8rem;
  line-height: 0.86;
  text-shadow: 0 6px 0 rgba(255, 255, 255, 0.055), 0 24px 58px rgba(0, 0, 0, 0.48);
}

.tone-app-page .tone-hero .lede {
  max-width: 46rem;
  margin-top: 16px;
  color: var(--fuego-dim);
  font-size: 1.15rem;
}

.tone-app-page .tool-status-strip {
  width: min(620px, 100%);
  margin-top: 30px;
  border-color: var(--fuego-line);
  border-radius: var(--fuego-card-radius);
}

.tone-app-page .tool-status-strip div {
  background: rgba(3, 3, 3, 0.82);
}

.tone-app-page .tone-workspace {
  width: min(var(--fuego-page-width), calc(100% - (var(--fuego-page-gutter) * 2)));
  margin: 42px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.tone-app-page .tone-console,
.tone-app-page .tone-now {
  border-color: var(--fuego-card-border);
  border-radius: var(--fuego-card-radius);
  background: var(--fuego-card-bg);
  box-shadow: inset 0 1px 0 rgba(246, 239, 232, 0.08);
}

.tone-app-page .tone-console .status-pill,
.tone-app-page .tone-now .status-pill {
  border-color: rgba(255, 50, 31, 0.5);
  color: var(--fuego-cream);
  background: rgba(255, 50, 31, 0.14);
}

.tone-app-page .control,
.tone-app-page .tone-advanced,
.tone-app-page .tone-export-panel {
  border-color: var(--fuego-line);
  background: rgba(3, 3, 3, 0.46);
}

.tone-app-page .button.primary,
.tone-app-page .mode-chip.is-active,
.tone-app-page .preset-pill.is-active {
  border-color: rgba(255, 50, 31, 0.76);
  color: #fff;
  background: linear-gradient(135deg, #ff351f, #c91e14);
}

.tone-app-page .tone-mode-switch .mode-chip.is-active {
  color: #fff;
  background: rgba(255, 50, 31, 0.2);
}

.tone-app-page .tone-mode-switch .mode-chip.is-active .mode-light {
  background: var(--fuego-red);
  box-shadow: 0 0 12px rgba(255, 50, 31, 0.86);
}

.tone-app-page .meaning-frequency,
.tone-app-page .section-kicker,
.tone-app-page .eyebrow {
  color: var(--fuego-ember);
}

@media (max-width: 900px) {
  .tone-app-page .topbar {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 22px max(18px, env(safe-area-inset-left));
    align-items: center;
  }

  .tone-app-page .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .tone-app-page .nav > .nav-link:not(.nav-link-cart) {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    padding: 0 8px;
    justify-content: center;
    border: 1px solid var(--fuego-line);
    background: rgba(3, 3, 3, 0.54);
    font-size: 0.72rem;
  }

  .tone-app-page .nav > a[href="/about/"],
  .tone-app-page .nav > .nav-link-cart {
    display: none;
  }

  .tone-app-page .nav-folder,
  .tone-app-page .account-chip {
    grid-column: span 2;
    width: 100%;
  }

  .tone-app-page .nav-folder summary,
  .tone-app-page .account-chip {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 640px) {
  .tone-app-page .tone-shell {
    padding: 0 0 110px;
  }

  .tone-app-page .topbar {
    gap: 16px;
    padding: 18px max(18px, env(safe-area-inset-left));
  }

  .tone-app-page .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tone-app-page .nav-folder,
  .tone-app-page .account-chip {
    grid-column: span 1;
  }

  .tone-app-page .tone-hero {
    min-height: auto;
  }

  .tone-app-page .tone-hero-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding: 48px 0;
  }

  .tone-app-page .tone-hero h1 {
    max-width: 8.4ch;
    font-size: 4.15rem;
    line-height: 0.88;
  }

  .tone-app-page .tone-hero .lede {
    max-width: 22rem;
    font-size: 1.04rem;
  }

  .tone-app-page .tone-workspace {
    width: calc(100% - 28px);
    margin-top: 32px;
  }
}

/* September commerce pass: compact navigation, clear product choices, quiet empty cart. */
@media (max-width: 900px) {
  .topbar,
  .tone-app-page .topbar,
  .artbeta-page .artbeta-hero .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 12px max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
  }

  .brand,
  .tone-app-page .brand,
  .artbeta-page .artbeta-hero .brand {
    margin: 0;
    font-size: 1.38rem;
  }

  .nav,
  .tone-app-page .nav,
  .artbeta-page .artbeta-hero .nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav > a[href="/"],
  .tone-app-page .nav > a[href="/"],
  .artbeta-page .artbeta-hero .nav > a[href="/"] {
    display: none;
  }

  .nav > .nav-link:not(.nav-link-cart),
  .tone-app-page .nav > .nav-link:not(.nav-link-cart) {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.7rem;
  }

  .nav-folder,
  .account-chip,
  .tone-app-page .nav-folder,
  .tone-app-page .account-chip {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-folder summary,
  .account-chip,
  .tone-app-page .nav-folder summary,
  .tone-app-page .account-chip {
    width: auto;
    min-height: 42px;
    padding-inline: 13px;
    white-space: nowrap;
  }

  .tone-app-page .nav > .nav-link[href="/about/"],
  .tone-app-page .nav > .nav-link-cart {
    display: none;
  }
}

.product-thumb {
  border-radius: 8px;
}

.product-thumb:focus-visible,
.variation-chip:focus-visible {
  outline: 3px solid rgba(255, 180, 143, 0.7);
  outline-offset: 3px;
}

.product-thumb[aria-pressed="true"],
.variation-chip[aria-pressed="true"] {
  border-color: var(--fuego-red, var(--accent));
  box-shadow: inset 0 0 0 1px var(--fuego-red, var(--accent));
}

.cart-surface.is-empty {
  max-width: 760px;
  margin-inline: auto;
}

.cart-surface.is-empty .cart-empty {
  min-height: 260px;
  align-content: center;
  padding: clamp(28px, 6vw, 58px);
  border-color: rgba(255, 50, 31, 0.28);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 50, 31, 0.13), transparent 15rem),
    rgba(255, 255, 255, 0.035);
}

details.checkout-save-panel {
  display: block;
}

.checkout-save-panel summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}

.checkout-save-panel[open] > :not(summary) {
  margin-top: 14px;
}

.checkout-save-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 0.88rem;
}

[data-product-checkout-status]:empty {
  display: none;
}

@media (max-width: 900px) {
  .cart-line-controls {
    grid-template-columns: 44px 34px 44px;
  }

  .cart-line-controls button,
  .cart-close,
  .cart-line-remove,
  .variation-chip {
    min-height: 44px;
    min-width: 44px;
  }

  .cart-line-controls button {
    width: 44px;
    height: 44px;
  }

  .cart-email-field input,
  .checkout-save-grid input {
    font-size: 16px;
  }
}
