/*
Theme Name: The Deepesh Show Noir
Theme URI: https://www.thedeepeshshow.com/
Author: The Deepesh Show
Description: Premium noir documentary storytelling theme for The Deepesh Show.
Version: 1.0.0
License: Proprietary
Text Domain: thedeepeshshow-noir
*/

:root {
  --bg: #010203;
  --panel: #05080a;
  --panel-2: #080d10;
  --ink: #f4f7f7;
  --muted: #9aa7ac;
  --soft: #d3d9da;
  --line: rgba(126, 158, 169, 0.28);
  --blue: #1b75d9;
  --blue-soft: #69b7e5;
  --danger: #9a2c2c;
  --max: 1428px;
  --header: 98px;
  --display-font: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono-font: "SF Mono", "Cascadia Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

html::before {
  content: "OPENING CASE FILE";
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(33, 96, 141, 0.16), transparent 32%),
    #010203;
  color: rgba(236, 244, 246, 0.78);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  transition: opacity 480ms ease, visibility 480ms ease;
}

html.is-loaded::before {
  opacity: 0;
  visibility: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 72% 14%, rgba(26, 101, 151, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(1, 6, 9, 0.96) 42%, #010203 100%),
    #010203;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 30;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 29;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, transparent 0 40%, rgba(0, 0, 0, 0.38) 75%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.42));
}

body.menu-open {
  overflow: hidden;
}

body.case-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header);
  border-bottom: 1px solid rgba(149, 177, 188, 0.12);
  background:
    linear-gradient(180deg, rgba(1, 2, 3, 0.94), rgba(1, 2, 3, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 80px);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 112px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 286px;
  height: 64px;
  flex: 0 0 286px;
  padding: 0;
  color: var(--ink);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 18px rgba(35, 114, 211, 0.16));
}

.brand-dot {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.main-nav a {
  position: relative;
  padding: 34px 0 30px;
  color: rgba(245, 248, 249, 0.76);
  font-family: var(--mono-font);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(245, 248, 249, 0.82);
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  color: var(--soft);
  font-size: 0.78rem;
}

.socials a:hover {
  border-color: rgba(72, 138, 230, 0.5);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(126, 158, 169, 0.4);
  background: rgba(3, 7, 10, 0.7);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  --mx: 70%;
  --my: 36%;
  min-height: 690px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: start;
  padding: 158px 0 70px;
  background:
    linear-gradient(90deg, rgba(0, 2, 4, 0.96) 0%, rgba(0, 2, 4, 0.82) 31%, rgba(0, 3, 6, 0.14) 56%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(1, 2, 3, 0.18) 52%, #010203 100%),
    url("assets/images/hero-reference-noir.jpg") center top / cover no-repeat,
    #010203;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(103, 179, 235, 0.18), transparent 20%),
    linear-gradient(120deg, transparent 0 42%, rgba(77, 151, 209, 0.16) 53%, transparent 69%),
    linear-gradient(0deg, #020406 0%, transparent 22%);
  opacity: 0.84;
  animation: heroPulse 6.8s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 7% -10% auto 14%;
  height: 58%;
  background:
    linear-gradient(115deg, transparent, rgba(107, 181, 228, 0.12) 36%, transparent 68%),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 28px);
  filter: blur(14px);
  transform: skewX(-10deg);
  animation: smokeShift 13s ease-in-out infinite alternate;
}

.hero .hero-inner::after {
  content: "";
  position: absolute;
  inset: -120px -20vw -80px -20vw;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(96, 169, 219, 0.16), transparent 22%);
  mix-blend-mode: screen;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mist {
  position: absolute;
  width: 52vw;
  height: 32vw;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(40px);
  background: radial-gradient(circle, rgba(115, 178, 214, 0.54), rgba(17, 55, 76, 0.12) 52%, transparent 72%);
  animation: driftMist 18s ease-in-out infinite alternate;
}

.mist-one {
  top: 10%;
  left: 16%;
}

.mist-two {
  right: 6%;
  bottom: 4%;
  animation-delay: -6s;
}

.scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(89, 171, 225, 0.12), transparent);
  transform: skewX(-18deg);
  animation: scanSweep 8.5s ease-in-out infinite;
}

@keyframes driftMist {
  from {
    transform: translate3d(-26px, 10px, 0) scale(1);
  }
  to {
    transform: translate3d(44px, -18px, 0) scale(1.08);
  }
}

@keyframes scanSweep {
  0%, 48% {
    left: -22%;
    opacity: 0;
  }
  58% {
    opacity: 0.55;
  }
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes smokeShift {
  from {
    transform: translate3d(-18px, 0, 0) skewX(-10deg);
    opacity: 0.54;
  }
  to {
    transform: translate3d(24px, 12px, 0) skewX(-6deg);
    opacity: 0.86;
  }
}

@keyframes heroPulse {
  from {
    opacity: 0.64;
  }
  to {
    opacity: 0.92;
  }
}

.hero-inner,
.section-inner {
  position: relative;
  width: min(var(--max), calc(100% - 112px));
  margin: 0 auto;
}

.hero-content {
  width: min(620px, 100%);
  padding-top: 18px;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: rgba(244, 247, 247, 0.78);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

h1,
h2,
h3,
.section-title {
  font-family: var(--display-font);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 660px;
  font-size: clamp(4.4rem, 6.9vw, 7.7rem);
  line-height: 0.88;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(0, 0, 0, 0.72);
}

.hero h1 span {
  display: block;
}

.accent-line {
  width: 40px;
  height: 2px;
  margin: 22px 0 16px;
  background: var(--blue);
}

.hero-copy {
  max-width: 380px;
  margin: 0 0 34px;
  color: rgba(226, 232, 234, 0.74);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.38;
}

.button-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(137, 162, 171, 0.36);
  padding: 0 28px;
  background: rgba(2, 5, 7, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.hero .btn {
  min-width: 230px;
}

.btn:hover,
.case-card:hover .btn,
.story-card:hover .btn {
  transform: translateY(-1px);
  border-color: rgba(76, 145, 239, 0.9);
  box-shadow: 0 0 22px rgba(31, 108, 184, 0.18);
}

.btn-primary {
  border-color: rgba(39, 119, 228, 0.92);
  background: linear-gradient(180deg, #2169c9, #0e3f82);
}

.hero-dossier {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(660px, 100%);
  margin-top: 34px;
  font-family: var(--mono-font);
  font-size: 0.68rem;
  color: rgba(221, 232, 238, 0.58);
}

.hero-dossier span {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(102, 154, 182, 0.28);
  border-bottom: 1px solid rgba(102, 154, 182, 0.1);
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.archive-panel {
  position: relative;
  width: min(var(--max), calc(100% - 112px));
  margin: -32px auto 0;
  padding: 38px 60px 28px;
  border: 1px solid rgba(126, 158, 169, 0.23);
  background:
    linear-gradient(180deg, rgba(5, 8, 10, 0.96), rgba(1, 3, 4, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 48px);
  box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.42), inset 0 0 42px rgba(34, 106, 174, 0.05);
}

.section-head {
  display: grid;
  grid-template-columns: 370px minmax(240px, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.section-kicker {
  width: 40px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--blue);
}

.section-title {
  font-size: clamp(2.65rem, 4.4vw, 4.7rem);
  line-height: 1;
}

.section-copy {
  max-width: 330px;
  margin: 0;
  color: rgba(214, 221, 223, 0.78);
  line-height: 1.45;
}

.view-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--blue);
  color: rgba(245, 248, 249, 0.86);
}

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

.case-card {
  --thumb: none;
  position: relative;
  min-height: 276px;
  overflow: hidden;
  border: 1px solid rgba(160, 178, 184, 0.38);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.34) 36%, rgba(0, 0, 0, 0.98) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12) 100%),
    var(--thumb) center top / 100% auto no-repeat,
    #05090c;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background-size 320ms ease;
}

.case-card:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(90, 159, 211, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 42px rgba(25, 107, 175, 0.12);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(32, 119, 195, 0.09), transparent 46%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 54px);
  opacity: 0.62;
  mix-blend-mode: screen;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.38;
  transform: translate(4px, -4px);
}

.case-card:hover::before {
  animation: cardScan 900ms ease;
}

@keyframes cardScan {
  from {
    background-position: 0 -80px, 0 -80px;
  }
  to {
    background-position: 0 140px, 0 140px;
  }
}

.case-body {
  position: relative;
  z-index: 1;
  min-height: 276px;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 18px;
  justify-content: flex-end;
}

.case-label,
.meta,
.field-label {
  font-family: "SF Mono", "Cascadia Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: rgba(223, 229, 230, 0.72);
}

.case-number {
  margin: 6px 0 12px;
  font-family: "SF Mono", "Cascadia Mono", Menlo, monospace;
  color: var(--blue-soft);
  font-size: 0.82rem;
}

.case-card h3 {
  width: min(290px, 90%);
  font-family: var(--display-font);
  font-size: clamp(1.72rem, 2.1vw, 2.32rem);
  font-weight: 700;
  line-height: 0.94;
  color: var(--ink);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.case-card p {
  width: min(265px, 86%);
  margin: 14px 0 18px;
  color: rgba(225, 230, 231, 0.74);
  line-height: 1.25;
}

.case-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: rgba(5, 9, 12, 0.94);
  transform: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card::before,
.feature-card::after {
  display: none;
}

.feature-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 158, 169, 0.24);
  background:
    var(--feature-thumb) center center / cover no-repeat,
    #05090c;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.86);
}

.feature-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 4, 7, 0.02), rgba(1, 4, 7, 0.28)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px);
  opacity: 0.72;
}

.feature-card .case-body {
  min-height: 230px;
  padding: 20px 22px 22px;
  justify-content: flex-start;
}

.feature-card .case-number {
  margin-bottom: 16px;
}

.feature-card h3 {
  width: 100%;
  font-size: clamp(1.35rem, 1.7vw, 1.92rem);
  line-height: 1;
}

.feature-card .case-foot {
  margin-top: auto;
  justify-content: flex-start;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) auto;
  align-items: center;
  gap: 34px;
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(126, 158, 169, 0.18);
  background:
    linear-gradient(90deg, rgba(8, 13, 16, 0.82), rgba(2, 4, 6, 0.68)),
    rgba(3, 6, 9, 0.66);
}

.sponsor-mark {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.mark-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(39, 119, 228, 0.76);
  color: var(--blue-soft);
}

.sponsor-strip strong {
  display: block;
  max-width: 520px;
  font-family: var(--display-font);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

.sponsor-strip p {
  margin: 0;
  color: rgba(218, 224, 226, 0.76);
  line-height: 1.45;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.case-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.case-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 22%, rgba(25, 105, 178, 0.18), transparent 28%),
    rgba(0, 2, 4, 0.86);
  backdrop-filter: blur(18px);
}

.case-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  max-height: min(820px, calc(100svh - 68px));
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(340px, 0.75fr);
  border: 1px solid rgba(145, 174, 185, 0.34);
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 12, 16, 0.98), rgba(1, 3, 5, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 72px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.72), inset 0 0 60px rgba(33, 114, 190, 0.06);
  transform: translateY(16px) scale(0.985);
  transition: transform 320ms ease;
}

.case-modal.is-open .case-shell {
  transform: translateY(0) scale(1);
}

.case-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(6px, -6px);
}

.case-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-height: 38px;
  border: 1px solid rgba(126, 158, 169, 0.36);
  border-radius: 3px;
  background: rgba(1, 3, 5, 0.72);
  color: rgba(245, 248, 249, 0.88);
  padding: 0 14px;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}

.case-close:hover,
.case-close:focus-visible {
  border-color: rgba(76, 145, 239, 0.9);
  outline: 0;
  box-shadow: 0 0 22px rgba(31, 108, 184, 0.22);
}

.case-video {
  min-height: 460px;
  display: grid;
  align-items: center;
  padding: 52px;
  background:
    radial-gradient(circle at 50% 50%, rgba(35, 111, 184, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7)),
    #020508;
}

.case-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(153, 179, 188, 0.34);
  border-radius: 4px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
}

.case-notes {
  min-height: 0;
  max-height: inherit;
  overflow: auto;
  padding: 56px 42px 44px;
  border-left: 1px solid rgba(126, 158, 169, 0.18);
  background:
    linear-gradient(180deg, rgba(5, 9, 12, 0.84), rgba(1, 3, 5, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 42px);
}

.case-notes .eyebrow {
  margin-bottom: 18px;
}

.case-notes h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2.25rem, 3vw, 3.65rem);
  line-height: 0.92;
}

.case-meta {
  margin: 20px 0 28px;
  color: var(--blue-soft);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.case-notes h3 {
  margin: 0 0 12px;
  color: rgba(244, 247, 247, 0.82);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.case-description {
  margin: 0 0 28px;
  color: rgba(223, 229, 230, 0.78);
  font-size: 0.98rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.band {
  padding: 110px 0;
}

.band-tight {
  padding: 70px 0;
}

.surface {
  border-top: 1px solid rgba(126, 158, 169, 0.16);
  border-bottom: 1px solid rgba(126, 158, 169, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 15, 19, 0.66), rgba(2, 4, 6, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 40px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 56px;
  align-items: center;
}

.lead {
  margin: 16px 0 0;
  color: rgba(223, 229, 230, 0.76);
  font-size: 1.15rem;
  line-height: 1.55;
}

.portrait-frame {
  overflow: hidden;
  border: 1px solid rgba(126, 158, 169, 0.22);
  border-radius: 6px;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1) contrast(1.15);
}

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

.story-card {
  overflow: hidden;
  border: 1px solid rgba(126, 158, 169, 0.25);
  border-radius: 6px;
  background: rgba(7, 11, 14, 0.78);
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-content {
  padding: 22px;
}

.story-content h3 {
  margin-top: 10px;
  font-size: 1.65rem;
  line-height: 1.02;
}

.story-content p {
  color: var(--muted);
  line-height: 1.45;
}

.page-hero {
  min-height: 56svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header) + 70px) 0 76px;
  background:
    radial-gradient(circle at 64% 40%, rgba(54, 127, 177, 0.2), transparent 26%),
    linear-gradient(90deg, rgba(1, 2, 3, 1), rgba(2, 4, 6, 0.92), rgba(7, 20, 31, 0.44)),
    url("assets/images/hero-reference-noir.jpg") center top / cover no-repeat,
    #010203;
}

.page-hero h1 {
  max-width: 800px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.search {
  min-width: min(100%, 360px);
  min-height: 44px;
  border: 1px solid rgba(126, 158, 169, 0.34);
  border-radius: 4px;
  background: rgba(4, 8, 11, 0.82);
  color: var(--ink);
  padding: 0 14px;
}

.chip {
  min-height: 38px;
  border: 1px solid rgba(126, 158, 169, 0.34);
  border-radius: 4px;
  background: rgba(5, 10, 14, 0.66);
  color: var(--soft);
  padding: 0 14px;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  border-color: rgba(39, 119, 228, 0.82);
  color: var(--ink);
}

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

.short-card {
  --short-thumb: none;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(126, 158, 169, 0.24);
  border-radius: 6px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 11, 14, 0.05) 0%, rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.96) 100%),
    var(--short-thumb) center center / cover no-repeat,
    #0a1014;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.short-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(37, 122, 203, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px);
  opacity: 0.44;
}

.short-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 159, 211, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 42px rgba(25, 107, 175, 0.12);
}

.short-card h3 {
  position: relative;
  z-index: 1;
  max-width: 92%;
  font-size: clamp(1.55rem, 2vw, 2.08rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.short-card .meta {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.short-watch-page {
  min-height: 100svh;
  padding: calc(var(--header) + 54px) 0 72px;
  background:
    radial-gradient(circle at 34% 38%, rgba(37, 113, 181, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(1, 3, 5, 0.6), #010203 72%),
    url("assets/images/hero-reference-noir.jpg") center top / cover no-repeat,
    #010203;
}

.short-watch-layout {
  width: min(var(--max), calc(100% - 112px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.short-player-shell {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(126, 158, 169, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 11, 15, 0.84), rgba(1, 3, 5, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 52px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58), inset 0 0 50px rgba(33, 114, 190, 0.06);
}

.short-player {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: min(76svh, 720px);
  margin: 0 auto;
  border: 1px solid rgba(153, 179, 188, 0.34);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

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

.short-notes h1 {
  max-width: 860px;
  font-size: clamp(3.1rem, 5.8vw, 6.6rem);
  line-height: 0.88;
}

.short-notes .lead {
  max-width: 760px;
  white-space: pre-wrap;
}

.short-actions {
  margin-top: 30px;
}

.feature-watch-page {
  min-height: 100svh;
  padding: calc(var(--header) + 54px) 0 72px;
  background:
    radial-gradient(circle at 66% 28%, rgba(37, 113, 181, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(1, 3, 5, 0.5), #010203 74%),
    url("assets/images/hero-reference-noir.jpg") center top / cover no-repeat,
    #010203;
}

.feature-watch-layout {
  width: min(var(--max), calc(100% - 112px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: 46px;
  align-items: start;
}

.feature-player-shell {
  padding: 18px;
  border: 1px solid rgba(126, 158, 169, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 11, 15, 0.84), rgba(1, 3, 5, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 52px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58), inset 0 0 50px rgba(33, 114, 190, 0.06);
}

.feature-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid rgba(153, 179, 188, 0.34);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

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

.feature-notes {
  padding-top: 12px;
}

.feature-notes h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 4.8vw, 5.6rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.feature-notes h3 {
  margin: 34px 0 14px;
  font-family: var(--mono);
  color: var(--blue);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-notes .case-description {
  max-width: 680px;
  color: rgba(231, 237, 240, 0.78);
  white-space: pre-wrap;
}

.feature-actions {
  margin-top: 30px;
}

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

.short-link-grid a {
  min-height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(126, 158, 169, 0.22);
  border-radius: 4px;
  padding: 12px 14px;
  background: rgba(6, 11, 15, 0.74);
  color: rgba(245, 248, 249, 0.82);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.short-link-grid a:hover {
  border-color: rgba(76, 145, 239, 0.8);
  color: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(126, 158, 169, 0.18);
}

.pagination-label {
  margin-right: 8px;
  color: rgba(223, 229, 230, 0.62);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 158, 169, 0.34);
  border-radius: 4px;
  background: rgba(5, 10, 14, 0.74);
  color: rgba(245, 248, 249, 0.82);
  font-family: var(--mono-font);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pagination a:hover,
.pagination a.active {
  border-color: rgba(39, 119, 228, 0.9);
  background: linear-gradient(180deg, rgba(33, 105, 201, 0.86), rgba(14, 63, 130, 0.78));
  color: #fff;
  transform: translateY(-1px);
}

.partner-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  gap: 40px;
  align-items: start;
}

.stat-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(126, 158, 169, 0.2);
  padding: 14px 0;
  color: var(--muted);
}

.stat strong {
  color: var(--ink);
}

.form-panel {
  border: 1px solid rgba(126, 158, 169, 0.24);
  border-radius: 6px;
  padding: 28px;
  background: rgba(7, 11, 14, 0.8);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(126, 158, 169, 0.3);
  border-radius: 4px;
  background: rgba(2, 5, 7, 0.92);
  color: var(--ink);
  padding: 12px 13px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(126, 158, 169, 0.2);
}

.timeline-item span {
  color: var(--blue-soft);
  font-family: "SF Mono", "Cascadia Mono", Menlo, monospace;
}

.timeline-item p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid rgba(126, 158, 169, 0.16);
  background: #020406;
}

.footer-inner {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  color: rgba(215, 222, 224, 0.68);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .header-inner {
    width: min(var(--max), calc(100% - 34px));
  }

  .brand {
    min-width: 250px;
    flex-basis: 250px;
  }

  .main-nav,
  .socials {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .socials {
    display: flex;
  }

  .site-header.nav-open {
    height: 100svh;
    background: rgba(2, 4, 6, 0.98);
  }

  .site-header.nav-open .header-inner {
    align-content: start;
    align-items: start;
    flex-wrap: wrap;
    padding-top: 18px;
  }

  .site-header.nav-open .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 30px;
  }

  .site-header.nav-open .main-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid rgba(126, 158, 169, 0.16);
    font-size: 1.4rem;
  }

  .site-header.nav-open .main-nav a::after {
    display: none;
  }

  .site-header.nav-open .socials {
    order: 4;
    width: 100%;
    padding-top: 20px;
  }

  .case-grid,
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .archive-panel {
    padding: 30px;
  }

  .sponsor-strip,
  .split,
  .partner-grid,
  .contact-grid,
  .feature-watch-layout,
  .short-watch-layout {
    grid-template-columns: 1fr;
  }

  .feature-watch-layout,
  .short-watch-layout {
    width: min(var(--max), calc(100% - 34px));
    gap: 38px;
  }

  .short-link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-shell {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .case-video {
    min-height: auto;
    padding: 42px 30px 24px;
  }

  .case-notes {
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid rgba(126, 158, 169, 0.18);
    padding: 30px;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 78px;
  }

  .hero-inner,
  .section-inner,
  .archive-panel,
  .footer-inner {
    width: calc(100% - 30px);
  }

  .header-inner {
    width: calc(100% - 26px);
  }

  .brand {
    min-width: 0;
    width: 214px;
    height: 50px;
    flex-basis: 214px;
    padding: 0;
  }

  .hero {
    min-height: 88svh;
    align-items: end;
    padding-bottom: 86px;
    background-position: center;
  }

  h1 {
    font-size: clamp(3.3rem, 15vw, 5.2rem);
  }

  .button-row,
  .btn {
    width: 100%;
  }

  .archive-panel {
    margin-top: -64px;
    padding: 24px 16px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .story-grid,
  .short-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 276px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.92) 61%),
      var(--thumb) center top / 100% auto no-repeat,
      #05090c;
  }

  .case-body {
    min-height: 276px;
    justify-content: flex-end;
  }

  .case-card h3,
  .case-card p {
    width: 100%;
  }

  .feature-card {
    min-height: auto;
    background: rgba(5, 9, 12, 0.94);
  }

  .feature-card .case-body {
    min-height: 220px;
    justify-content: flex-start;
  }

  .feature-card h3 {
    width: 100%;
  }

  .sponsor-strip {
    padding: 18px;
  }

  .sponsor-mark {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .footer-inner,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 48svh;
  }

  .short-card {
    min-height: 390px;
  }

  .short-watch-page {
    padding: calc(var(--header) + 28px) 0 56px;
  }

  .feature-watch-page {
    padding: calc(var(--header) + 28px) 0 56px;
  }

  .feature-player-shell {
    padding: 10px;
  }

  .feature-notes h1 {
    font-size: clamp(2.5rem, 12vw, 4.4rem);
  }

  .short-player-shell {
    padding: 10px;
  }

  .short-notes h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .short-link-grid {
    grid-template-columns: 1fr;
  }

  .case-modal {
    padding: 12px;
  }

  .case-shell {
    max-height: calc(100svh - 24px);
  }

  .case-close {
    top: 10px;
    right: 10px;
  }

  .case-video {
    padding: 58px 14px 18px;
  }

  .case-notes {
    padding: 24px 18px 28px;
  }

  .case-notes h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
