:root {
  --color-bg: #070707;
  --color-bg-soft: #101010;
  --color-surface: #171717;
  --color-surface-lift: #22201a;
  --color-text: #fffaf0;
  --color-muted: #c6beb0;
  --color-border: #393329;
  --color-accent: #f2c23d;
  --color-accent-dark: #9b7417;
  --color-danger: #9f372f;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: 1400px;
  --space-section: clamp(1.75rem, 4vw, 3.25rem);
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(214, 173, 50, 0.13), transparent 28rem),
    linear-gradient(135deg, rgba(210, 110, 25, 0.055), transparent 35%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
  scroll-margin-top: 120px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-section {
  padding-block: clamp(0.8rem, 2.5vw, 1.4rem);
}

.ad-slot {
  display: grid;
  min-height: 5.5rem;
  place-items: center;
  border: 1px dashed rgba(242, 194, 61, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 194, 61, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 7, 7, 0.42);
  color: rgba(255, 250, 240, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-slot-horizontal {
  min-height: clamp(4.5rem, 10vw, 6.25rem);
}

.ad-slot-grid {
  grid-column: 1 / -1;
  min-height: clamp(4.5rem, 9vw, 5.75rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 7, 0.88);
  border-bottom: 1px solid rgba(214, 173, 50, 0.22);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-wrap {
  min-height: 4rem;
  padding-block: 0.55rem;
  justify-content: center;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
}

.site-nav a,
.site-footer a {
  color: var(--color-muted);
  font-size: 0.95rem;
  transition: color 160ms ease, background-color 160ms ease;
}

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

.featured-section {
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
}

.hero-copy {
  max-width: 48rem;
  justify-self: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 6vw, 3.5rem);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.hero-text,
.section-heading p,
.gear-panel p,
.signup-panel p,
.clip-card p {
  color: var(--color-muted);
}

.hero-text {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: var(--color-accent);
  color: #17120a;
}

.button-primary:hover {
  background: #e6bd43;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 173, 50, 0.35);
}

.button-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button-card {
  width: 100%;
  margin-top: 0.9rem;
  background: rgba(242, 194, 61, 0.08);
  border-color: rgba(242, 194, 61, 0.28);
  color: var(--color-accent);
}

.button-card:hover {
  background: rgba(242, 194, 61, 0.14);
  border-color: rgba(242, 194, 61, 0.62);
}

.hero-banner {
  padding-block: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem);
}

.hero-banner-inner {
  position: relative;
  display: flex;
  min-height: clamp(16rem, 34vw, 31rem);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.brand-banner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.1), rgba(7, 7, 7, 0.72)),
    radial-gradient(circle at center, transparent 36%, rgba(7, 7, 7, 0.52));
  pointer-events: none;
}

.hero-banner-copy {
  position: absolute;
  inset-inline: 1rem;
  bottom: clamp(1rem, 4vw, 2.5rem);
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-banner-copy p {
  max-width: 18ch;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(2.1rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.88);
  overflow-wrap: anywhere;
}

.featured-video,
.clip-card,
.gear-panel,
.signup-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hero-media {
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: linear-gradient(145deg, rgba(214, 173, 50, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.featured-video {
  position: relative;
  width: min(100%, 19.125rem);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.featured-video iframe,
.featured-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-video video {
  background: #050505;
  object-fit: contain;
}

.local-video-frame {
  display: grid;
}

.local-video-frame video,
.local-video-frame .video-fallback {
  grid-area: 1 / 1;
}

.video-fallback {
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  place-content: center;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(244, 196, 48, 0.12), rgba(255, 255, 255, 0.035)),
    #080808;
  color: var(--color-text);
  text-align: center;
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback strong {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.15;
}

.video-fallback span {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  justify-content: center;
}

.clip-card {
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.clip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 173, 50, 0.65);
  background: var(--color-surface-lift);
}

.clip-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d0d0d;
}

.card-body {
  padding: 1rem;
}

.card-body p {
  margin-bottom: 0;
}

.gear-panel,
.signup-panel {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: linear-gradient(135deg, rgba(214, 173, 50, 0.1), rgba(255, 255, 255, 0.035));
}

.gear-panel .button {
  align-self: center;
  justify-self: start;
}

.signup-form {
  display: grid;
  gap: 0.75rem;
}

.signup-form input {
  min-height: 2.9rem;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.72rem 0.9rem;
  background: #0d0d0d;
  color: var(--color-text);
  font: inherit;
}

.site-footer {
  padding-block: 2rem;
  background: #050505;
  border-top: 1px solid rgba(214, 173, 50, 0.22);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.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: 680px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    padding-block: 1rem;
  }

  .nav-wrap,
  .site-nav {
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
  }

  .site-nav a {
    padding: 0.25rem 0.45rem;
    background: rgba(255, 255, 255, 0.055);
    border-radius: var(--radius);
  }

  .featured-section {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.375rem);
  }

  .hero-copy,
  .hero-text {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-banner-inner {
    min-height: clamp(14rem, 62vw, 22rem);
  }

  .featured-video {
    width: min(100%, 16.875rem);
  }

  .hero-actions .button,
  .signup-form .button {
    width: 100%;
  }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1fr);
    align-items: center;
  }

  .gear-panel,
  .signup-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .signup-form {
    grid-template-columns: minmax(16rem, 1fr) auto;
  }
}

/* MVP homepage polish */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 2rem, rgba(235, 119, 20, 0.18), transparent 20rem),
    radial-gradient(circle at 8% 12rem, rgba(242, 194, 61, 0.1), transparent 22rem),
    linear-gradient(180deg, #090909 0%, #050505 100%);
}

.container {
  width: min(100% - 1.5rem, var(--container));
}

.section {
  padding-block: var(--space-section);
  scroll-margin-top: 72px;
}

.site-header {
  background: rgba(5, 5, 5, 0.92);
}

.nav-wrap {
  min-height: 3.25rem;
  justify-content: space-between;
  padding-block: 0.35rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: max-content;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 18px rgba(242, 194, 61, 0.22);
}

.brand-link img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 20px rgba(242, 194, 61, 0.28);
}

.site-nav,
.site-footer nav {
  gap: 0.45rem;
}

.site-nav a,
.site-footer a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-footer a:hover {
  background: rgba(242, 194, 61, 0.1);
  border-color: rgba(242, 194, 61, 0.25);
}

.hero-banner {
  padding-block: 0.65rem 0;
}

.hero-banner-inner {
  min-height: 0;
  aspect-ratio: 3 / 1;
  border-color: rgba(242, 194, 61, 0.26);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.42), 0 0 30px rgba(235, 119, 20, 0.08);
}

.brand-banner {
  min-height: 0;
}

.hero-banner-inner::after {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.18)),
    radial-gradient(circle at 50% 58%, transparent 48%, rgba(5, 5, 5, 0.24));
}

.featured-section {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.hero-copy {
  justify-self: stretch;
  max-width: 43rem;
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--color-accent);
}

h1 {
  max-width: 13ch;
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1rem;
}

.hero-text {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 1.25rem;
}

.button {
  min-height: 2.65rem;
  padding: 0.62rem 0.92rem;
}

.button:focus-visible,
.signup-form input:focus-visible {
  outline: 3px solid rgba(242, 194, 61, 0.38);
  outline-offset: 2px;
}

.hero-media {
  justify-self: center;
  width: min(100%, 24rem);
  padding: 0.75rem;
  background:
    linear-gradient(145deg, rgba(242, 194, 61, 0.16), rgba(255, 255, 255, 0.035)),
    #101010;
}

.featured-video {
  width: min(100%, 17rem);
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1rem;
}

.shorts-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 20rem));
  justify-content: center;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.15rem;
}

.clip-card,
.product-card,
.content-panel {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), var(--color-surface);
  box-shadow: var(--shadow-card);
}

.clip-card {
  display: flex;
  flex-direction: column;
}

.clip-card:hover,
.product-card:hover,
.content-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 194, 61, 0.68);
  background-color: var(--color-surface-lift);
}

.short-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #050505;
}

.short-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.85rem;
}

.card-body .button-card {
  margin-top: auto;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  min-height: 10rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.product-image {
  display: grid;
  min-height: 9rem;
  margin: -0.85rem -0.85rem 0.85rem;
  place-items: center;
  overflow: hidden;
  background: #101010;
  border-bottom: 1px solid rgba(242, 194, 61, 0.18);
}

.product-image img {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: contain;
  padding: 0.65rem;
  background: #f7f7f2;
}

.product-tag {
  display: inline-flex;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(242, 194, 61, 0.32);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--color-accent);
  background: rgba(242, 194, 61, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card p {
  margin-bottom: 0.9rem;
  color: var(--color-muted);
}

.product-card .button-card {
  margin-top: auto;
}

.button-disabled {
  cursor: default;
  opacity: 0.68;
  pointer-events: none;
}

.gear-category {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.gear-category:first-of-type {
  margin-top: 0;
}

.gear-category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.gear-category-header h2 {
  margin-bottom: 0;
}

.gear-category-header p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--color-muted);
}

.gear-page-intro {
  max-width: 58rem;
}

.gear-page-intro h1 {
  max-width: 18ch;
}

.gear-hub .gear-category {
  border-top: 1px solid rgba(242, 194, 61, 0.18);
  padding-top: clamp(1.2rem, 3vw, 2rem);
}

.gear-hub .gear-category:first-child {
  border-top: 0;
  padding-top: 0;
}

.gear-grid-rich {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
}

.chaos-favorites {
  border-color: rgba(242, 194, 61, 0.32);
}

.gear-note {
  margin: 1.15rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.gear-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.page-intro {
  max-width: 46rem;
}

.clip-layout {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.clip-player-wrap {
  justify-self: center;
}

.clip-copy {
  max-width: 42rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.content-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.35rem);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.content-panel p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.link-card {
  min-height: 11rem;
}

.signup-panel {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1rem, 3vw, 1.6rem);
  border-color: rgba(242, 194, 61, 0.34);
}

.signup-form {
  align-self: start;
}

.signup-form input {
  border-color: rgba(242, 194, 61, 0.25);
}

.signup-form input[aria-invalid="true"] {
  border-color: #d85a4f;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.form-message.is-error {
  color: #ffb5ad;
}

.form-message.is-success {
  color: #ffe39a;
}

.site-footer {
  padding-block: 1.25rem;
}

@media (max-width: 680px) {
  .nav-wrap,
  .footer-wrap {
    align-items: stretch;
    gap: 0.65rem;
    padding-block: 0.55rem;
  }

  .brand-link {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav a {
    padding: 0.34rem 0.55rem;
    background: rgba(255, 255, 255, 0.045);
  }

  .hero-banner-inner {
    aspect-ratio: 3 / 1.35;
  }

  .hero-copy,
  .hero-text {
    text-align: left;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .signup-form .button {
    width: 100%;
  }

  .gear-category-header {
    display: block;
  }

  .featured-video {
    width: min(100%, 15.5rem);
  }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(19rem, 0.75fr);
  }

  .hero-copy {
    justify-self: start;
  }

  .hero-media {
    justify-self: end;
  }

  .signup-panel {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
  }

  .clip-layout {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr);
  }
}

/* Chaos Desk V2 */
:root {
  --color-bg: #060606;
  --color-bg-soft: #0d0d0d;
  --color-surface: #151515;
  --color-surface-lift: #1d1b17;
  --color-text: #f7f3e8;
  --color-muted: #b9b2a3;
  --color-border: #373225;
  --color-accent: #f4c430;
  --color-orange: #e8741a;
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.44);
  --radius: 6px;
  --container: 1180px;
  --space-section: clamp(1.6rem, 3.5vw, 3rem);
}

body {
  background:
    radial-gradient(circle at 82% 4rem, rgba(232, 116, 26, 0.12), transparent 21rem),
    linear-gradient(180deg, #090909 0%, #050505 100%);
  color: var(--color-text);
}

.site-header {
  background: rgba(6, 6, 6, 0.94);
  border-bottom: 1px solid rgba(244, 196, 48, 0.24);
}

.nav-wrap {
  min-height: 3rem;
}

.brand-link span {
  letter-spacing: 0;
}

.site-nav a,
.site-footer a {
  border-radius: 4px;
}

.now-filing {
  border-top: 1px solid rgba(244, 196, 48, 0.15);
  border-bottom: 1px solid rgba(244, 196, 48, 0.22);
  background: #0a0a0a;
  color: #ffe07a;
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
}

.now-filing .container {
  padding-block: 0.28rem;
}

.now-filing span {
  color: var(--color-muted);
}

.hero-banner {
  display: none;
}

.desk-hero {
  padding-block: clamp(1rem, 2.5vw, 1.8rem);
}

.desk-hero .hero-grid {
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.desk-copy {
  display: grid;
  align-content: center;
  min-height: 100%;
  border: 1px solid rgba(244, 196, 48, 0.22);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.08), transparent 42%),
    #101010;
}

.desk-title {
  max-width: 16ch;
  margin-bottom: 0.45rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  letter-spacing: 0;
}

.filed-by,
.rick-verdict,
.field-note,
.affiliate-disclosure {
  color: var(--color-muted);
}

.filed-by {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-media {
  border-radius: var(--radius);
  border-color: rgba(244, 196, 48, 0.28);
  background: #101010;
}

.featured-video {
  border-radius: 4px;
}

.section-heading {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.filter-button {
  min-height: 2.2rem;
  border: 1px solid rgba(244, 196, 48, 0.24);
  border-radius: 4px;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.filter-button.is-active,
.filter-button:hover {
  background: var(--color-accent);
  color: #17120a;
}

.chaos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  align-items: stretch;
  gap: 0.9rem;
}

.chaos-file-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.chaos-file-card:hover {
  border-color: rgba(244, 196, 48, 0.68);
  background-color: var(--color-surface-lift);
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(244, 196, 48, 0.16);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.18;
  text-transform: uppercase;
}

.featured-title-label {
  flex: 1 1 auto;
  line-height: 1.18;
}

.file-label .category-pill {
  flex: 0 0 auto;
}

.category-pill,
.product-tag {
  display: inline-flex;
  border: 1px solid rgba(244, 196, 48, 0.32);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(244, 196, 48, 0.08);
  color: #ffe07a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.thumb-link {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  overflow: hidden;
  background: #050505;
}

.thumb-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(244, 196, 48, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--color-accent);
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
}

.card-body {
  gap: 0.45rem;
  min-height: 13.25rem;
  padding: 0.82rem;
}

.rick-verdict {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  border-left: 2px solid rgba(244, 196, 48, 0.65);
  padding-left: 0.6rem;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.case-page {
  padding-top: clamp(1rem, 2.5vw, 1.8rem);
}

.case-layout {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.case-copy {
  border: 1px solid rgba(244, 196, 48, 0.22);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #101010;
}

.case-copy h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.02;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.field-note {
  margin-bottom: 0;
}

.affiliate-disclosure {
  margin: 0 0 1rem;
  border: 1px solid rgba(244, 196, 48, 0.24);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  background: rgba(244, 196, 48, 0.06);
  font-size: 0.9rem;
}

.gear-section .section-heading p {
  max-width: 42rem;
}

.product-card {
  border-radius: var(--radius);
}

.content-panel,
.signup-panel {
  border-radius: var(--radius);
  background: #121212;
}

.button {
  border-radius: 4px;
}

.button-card {
  margin-top: auto;
}

.site-footer {
  background: #050505;
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .now-filing .container {
    width: 100%;
    padding-inline: 0.75rem;
  }

  .section-heading-row {
    display: block;
  }

}

@media (min-width: 860px) {
  .desk-hero .hero-grid,
  .case-layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  }

  .case-layout {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  }
}

/* Rick Danner Chaos Desk homepage refresh */
.home-page {
  overflow-x: hidden;
}

.home-page .site-header {
  position: sticky;
  top: 0;
}

.home-page .nav-wrap {
  gap: 0.75rem;
}

.home-page .nav-random {
  border-color: rgba(244, 196, 48, 0.72);
  background: transparent;
  color: var(--color-accent);
}

.home-page .nav-random:hover {
  background: var(--color-accent);
  color: #15110a;
}

.home-page .now-filing .container {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chaos-desk-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.1rem);
  align-items: stretch;
}

.rick-desk-panel,
.featured-case-panel {
  overflow: hidden;
  border: 1px solid rgba(244, 196, 48, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(244, 196, 48, 0.07), rgba(255, 255, 255, 0.015) 42%),
    #101010;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rick-desk-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 0.62fr) minmax(0, 1fr);
  min-height: clamp(29rem, 58vw, 38rem);
}

.rick-desk-panel::before {
  content: "";
  position: absolute;
  inset: auto 8% -22% 18%;
  height: 42%;
  background: radial-gradient(circle, rgba(232, 116, 26, 0.2), transparent 66%);
  pointer-events: none;
}

.rick-portrait-wrap {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 58%),
    radial-gradient(circle at 42% 82%, rgba(244, 196, 48, 0.16), transparent 42%),
    #0a0a0a;
}

.rick-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 1px solid rgba(244, 196, 48, 0.2);
  pointer-events: none;
}

.rick-portrait {
  position: relative;
  z-index: 1;
  width: min(118%, 25rem);
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.7));
}

.rick-desk-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2.4vw, 1.55rem);
}

.rick-desk-copy .desk-title {
  max-width: 15ch;
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
}

.rick-role {
  display: grid;
  gap: 0.15rem;
  margin: 0.75rem 0;
  border-left: 3px solid var(--color-accent);
  padding-left: 0.7rem;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.rick-role strong {
  color: var(--color-text);
}

.rick-bio {
  margin-bottom: 0.8rem;
  color: var(--color-muted);
  font-size: clamp(0.86rem, 1.4vw, 0.95rem);
  line-height: 1.48;
}

.desk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.desk-badges span {
  border: 1px solid rgba(244, 196, 48, 0.28);
  border-radius: 4px;
  padding: 0.34rem 0.48rem;
  background: rgba(244, 196, 48, 0.075);
  color: #ffe07a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rick-note {
  margin: 1rem 0 0;
  border: 1px solid rgba(244, 196, 48, 0.42);
  border-left-width: 5px;
  border-radius: 3px;
  padding: 0.72rem 0.78rem;
  background:
    linear-gradient(100deg, rgba(244, 196, 48, 0.2), rgba(244, 196, 48, 0.08)),
    #1a1710;
  color: var(--color-text);
  transform: rotate(-0.5deg);
}

.rick-note p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.34;
}

.rick-note cite {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.featured-case-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0.75rem;
}

.panel-kicker {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.15rem 0 0.6rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.featured-case-panel .featured-video {
  justify-self: center;
  width: min(100%, 18rem);
  align-self: center;
  border-color: rgba(244, 196, 48, 0.34);
}

.featured-take {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(244, 196, 48, 0.18);
  padding-top: 0.75rem;
}

.featured-take h2 {
  margin-bottom: 0.25rem;
  color: var(--color-accent);
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.featured-take p {
  margin-bottom: 0.7rem;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.42;
}

.featured-take .button,
.section-heading-row .button[href="/clips/featured-chaos.html"] {
  text-align: center;
  line-height: 1.18;
}

.home-page .section-muted {
  background: rgba(255, 255, 255, 0.018);
}

.home-page .chaos-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.home-page .chaos-file-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 36%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 28px),
    #131313;
}

.home-page .file-label {
  background: rgba(0, 0, 0, 0.2);
}

.home-page .thumb-link {
  aspect-ratio: 16 / 10;
}

.home-page .chaos-file-card h3 {
  min-height: 2.25rem;
}

.home-page .play-badge {
  width: auto;
  height: auto;
  min-width: 3.1rem;
  min-height: 2.15rem;
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  border: 1px solid rgba(244, 196, 48, 0.32);
  border-radius: 4px;
  padding: 0.22rem 0.42rem;
  background: rgba(244, 196, 48, 0.09);
  color: #ffe07a;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hosted-note {
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.local-file-thumb {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(244, 196, 48, 0.16), rgba(255, 255, 255, 0.035)),
    #080808;
}

.local-file-thumb span {
  max-width: 11ch;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
}

.panic-drawer-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.panic-drawer-grid .product-card {
  background:
    linear-gradient(180deg, rgba(244, 196, 48, 0.055), rgba(255, 255, 255, 0.012)),
    #121212;
}

.chaos-report-panel h2 {
  max-width: 24ch;
}

@media (min-width: 980px) {
  .chaos-desk-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.58fr);
  }
}

@media (max-width: 820px) {
  .home-page .nav-wrap {
    min-height: 0;
  }

  .home-page .brand-link span {
    display: none;
  }

  .home-page .site-nav {
    gap: 0.35rem;
  }

  .home-page .site-nav a,
  .home-page .site-footer a,
  .home-page .filter-button {
    font-size: 0.78rem;
  }

  .rick-desk-panel {
    grid-template-columns: minmax(8.5rem, 0.58fr) minmax(0, 1fr);
    min-height: auto;
  }

  .rick-bio {
    display: none;
  }
}

@media (max-width: 620px) {
  .home-page .site-header {
    position: sticky;
  }

  .home-page .nav-wrap,
  .home-page .footer-wrap {
    flex-direction: row;
    align-items: center;
    padding-block: 0.4rem;
  }

  .home-page .site-nav {
    justify-content: flex-end;
  }

  .home-page .site-nav a {
    padding: 0.28rem 0.38rem;
    background: transparent;
  }

  .home-page .nav-random {
    padding-inline: 0.45rem;
  }

  .rick-desk-panel {
    grid-template-columns: 1fr;
  }

  .rick-portrait-wrap {
    min-height: 15rem;
    max-height: 17rem;
  }

  .rick-portrait-wrap::after {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 196, 48, 0.2);
  }

  .rick-portrait {
    width: min(82%, 18rem);
  }

  .rick-desk-copy {
    padding: 1rem;
  }

  .rick-bio {
    display: block;
  }

  .desk-badges span {
    flex: 1 1 8rem;
    text-align: center;
  }

  .home-page .section-heading-row .button {
    margin-top: 0.65rem;
    width: 100%;
  }

  .featured-case-panel .featured-video {
    width: min(100%, 15.75rem);
  }

  .panic-drawer-grid {
    grid-template-columns: 1fr;
  }
}

/* Rick hero panel layout fix: contained two-column card, no overlap */
.rick-desk-panel {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  min-height: 0;
  padding: clamp(0.9rem, 2vw, 1.25rem);
}

.rick-desk-panel::before {
  display: none;
}

.rick-identity-column,
.rick-desk-copy {
  min-width: 0;
}

.rick-identity-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rick-portrait-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: none;
  padding: 0.75rem;
  border: 1px solid rgba(244, 196, 48, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 82%, rgba(244, 196, 48, 0.12), transparent 44%),
    #0a0a0a;
}

.rick-portrait-wrap::after {
  display: none;
}

.rick-portrait {
  position: static;
  z-index: auto;
  display: block;
  width: min(100%, 18rem);
  max-width: 18rem;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

.rick-role {
  margin: 0;
  border-left: 3px solid var(--color-accent);
  padding-left: 0.7rem;
}

.rick-role strong {
  font-size: 1rem;
}

.rick-role span {
  color: var(--color-muted);
}

.rick-bio {
  display: block;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
}

.rick-note {
  margin: 0;
  padding: 0.62rem 0.68rem;
  transform: none;
}

.rick-note p {
  font-size: 0.86rem;
  line-height: 1.32;
}

.rick-desk-copy {
  justify-content: center;
  padding: clamp(0.5rem, 1.6vw, 1rem);
}

.rick-desk-copy .hero-actions {
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .rick-desk-panel {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  }

  .rick-portrait {
    width: min(100%, 16.25rem);
    max-width: 16.25rem;
  }

  .rick-bio {
    display: block;
  }
}

@media (max-width: 620px) {
  .rick-desk-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rick-identity-column {
    order: 1;
  }

  .rick-desk-copy {
    order: 2;
    padding: 0;
  }

  .rick-portrait-wrap {
    min-height: 0;
    max-height: none;
  }

  .rick-portrait {
    width: min(100%, 17rem);
    max-width: 17rem;
  }
}
