: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 {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

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

.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-audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(224, 38, 24, 0.78);
  border-radius: 0;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

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

.fuego-cart-toggle {
  position: fixed;
  right: 18px;
  bottom: 72px;
  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: 0;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-family: "Space Grotesk", 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: "Space Grotesk", 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);
}

.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: "Space Grotesk", 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: "Space Grotesk", 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: "Inter", 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: "Space Grotesk", monospace;
}

h1,
h2,
h3,
.repo-name {
  font-family: "Epilogue", 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 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: "Epilogue", sans-serif;
}

.nav a,
.button,
.repo-link,
.repo-meta,
.repo-tag,
.section-kicker,
.eyebrow,
.status-pill {
  font-family: "Space Grotesk", 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: hidden;
  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-hero-grid {
  align-items: stretch;
  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: auto minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(242, 230, 220, 0.12);
}

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

.home-manifesto-list strong {
  color: #fff;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.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: "Space Grotesk", 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: cover;
  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: "Space Grotesk", 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: "Epilogue", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Epilogue", 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: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-placeholder strong {
  color: #fff;
  font-family: "Epilogue", 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: "Epilogue", 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: "Space Grotesk", 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: cover;
  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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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);
}

.nav-mode-switch,
.commerce-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 243, 233, 0.05);
}

.nav-mode-switch a,
.mode-switch-link {
  border-radius: var(--radius-pill);
}

.nav-mode-switch a {
  padding: 8px 10px;
}

.nav-mode-switch a.is-active,
.mode-switch-link.is-active {
  background: linear-gradient(135deg, rgba(242, 109, 91, 0.28), rgba(242, 199, 110, 0.16));
  color: var(--ink);
}

.commerce-mode-section {
  padding: 18px;
}

.commerce-mode-switch {
  width: min(100%, 560px);
  margin: 0 auto;
}

.mode-switch-link {
  display: grid;
  flex: 1 1 0;
  min-height: 62px;
  padding: 12px 18px;
  color: var(--muted);
  text-align: center;
}

.mode-switch-link span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.mode-switch-link small {
  margin-top: 3px;
  color: inherit;
}

.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: cover;
  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: "Space Grotesk", 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;
  object-fit: cover;
  transition: transform 220ms ease;
}

.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: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card-overlay strong {
  font-family: "Epilogue", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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;
  }

  .nav-mode-switch,
  .commerce-mode-switch {
    width: 100%;
  }

  .nav-mode-switch {
    justify-content: center;
  }

  .mode-switch-link {
    min-height: 56px;
    padding: 11px 12px;
  }

  .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;
  }
}

/* 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: "Epilogue", 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 {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.nav-mode-switch {
  order: 0;
  gap: 12px;
  margin-left: 0;
  padding: 6px;
  border-color: rgba(255, 42, 24, 0.72);
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(224, 38, 24, 0.18), 0 12px 32px rgba(0, 0, 0, 0.34);
}

.nav-mode-switch a {
  padding: 10px 16px;
  color: rgba(242, 230, 220, 0.78);
  white-space: nowrap;
}

.nav-mode-switch a.is-active {
  background: rgba(224, 38, 24, 0.2);
  box-shadow: inset 0 0 0 1px rgba(224, 38, 24, 0.45);
  color: #fff;
}

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

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

.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;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(255, 42, 24, 0.34);
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.nav-folder-panel a {
  display: block;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(242, 230, 220, 0.08);
}

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

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

.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: "Epilogue", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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-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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Epilogue", 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: "Epilogue", 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;
}

.commerce-mode-section {
  width: 100%;
  margin-top: 0;
  padding: 0;
  border-top: 0;
  background: #050505;
}

.commerce-mode-switch {
  width: 100%;
  max-width: none;
  min-height: 58px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(5, 5, 5, 0.94);
}

.mode-switch-link {
  flex: 0 1 180px;
  min-height: 58px;
  place-content: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.mode-switch-link.is-active {
  border-color: var(--accent);
  background: rgba(224, 38, 24, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.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;
}

.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: "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
}

@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-story-section,
  .home-proof-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .nav-mode-switch {
    order: initial;
    flex: 1 1 100%;
    min-width: 0;
    gap: 6px;
    justify-content: center;
  }

  .nav-mode-switch a {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.7rem;
  }

  .nav-folder {
    flex: 1 1 calc(100% - 92px);
    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: space-between;
    width: 100%;
  }

  .nav-folder-panel {
    position: static;
    margin-top: 8px;
    width: 100%;
  }

  .hero > .hero-copy,
  .home-hero-grid {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .section-block {
    width: calc(100% - 28px);
  }

  .mode-switch-link {
    flex-basis: 50%;
  }
}

.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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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: "Epilogue", 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: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-summary dd {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", 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: "Space Grotesk", 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: "Space Grotesk", 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;
  }
}
