:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-hard: #151515;
  --line: #2c2c2c;
  --line-strong: #444;
  --text: #f2f2f2;
  --muted: #a7a7a7;
  --dim: #6d6d6d;
  --accent: #e50914;
  --steel: #9ca3a7;
  --green: #5a7568;
  --amber: #b48748;
  --blue: #657b96;
  --ratio-card: 16 / 9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--text);
}

body.menu-open,
body.video-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 30px;
  background: var(--accent);
  border: 2px solid #ff3440;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: #0b0b0b;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 19;
  display: none;
  flex-direction: column;
  background: #080808;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

main {
  padding-bottom: 80px;
}

.archive,
.bio-section,
.contact-section {
  padding: 46px 0 0;
}

.section-kicker {
  margin: 0 32px 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 32px 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 1px;
  min-width: 360px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #0b0b0b;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats strong {
  color: var(--text);
  font-size: 22px;
}

.catalog {
  display: grid;
  gap: 48px;
}

.rail {
  min-width: 0;
}

.rail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 32px 12px;
}

.rail h2 {
  margin-bottom: 0;
  font-size: 22px;
  text-transform: uppercase;
}

.rail-count {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 20vw, 340px);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 32px 18px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.rail-feature .row {
  grid-auto-columns: clamp(360px, 36vw, 620px);
  gap: 12px;
  padding-bottom: 24px;
}

.rail-feature .card {
  min-height: 240px;
}

.rail-feature .card-copy {
  gap: 10px;
  padding: 18px;
}

.rail-feature .card h3 {
  font-size: clamp(22px, 2.4vw, 36px);
  font-size: clamp(22px, 5.5cqi, 36px);
  line-height: 1;
}

.rail-feature .card p {
  font-size: 14px;
}

.rail-compact {
  margin-top: 8px;
}

.rail-compact .row {
  grid-auto-columns: clamp(150px, 13vw, 220px);
}

.rail-compact .card-copy {
  gap: 5px;
  padding: 10px;
}

.rail-compact .card h3 {
  font-size: 13px;
}

.rail-compact .card p {
  display: none;
}

.card {
  position: relative;
  container-type: inline-size;
  display: block;
  aspect-ratio: var(--ratio-card);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #242424;
  border-radius: 0;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.88)),
    var(--thumb);
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.08);
}

.card::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 0 solid var(--accent);
  opacity: 0;
  transition: opacity 180ms ease, border-width 180ms ease;
}

.card:hover,
.card:focus-visible {
  z-index: 5;
  border-color: #727272;
  box-shadow: 8px 8px 0 #000, 0 0 0 1px #585858;
  outline: 0;
  transform: translateY(-7px) scale(1.035);
}

.card:hover::after,
.card:focus-visible::after {
  border-width: 3px;
  opacity: 1;
}

.card-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  text-align: center;
}

.tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 3px 6px;
  background: rgba(5, 5, 5, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d8d8d8;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-cdn {
  border-color: rgba(229, 9, 20, 0.72);
  color: #fff;
}

.card h3 {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.05;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-transform: uppercase;
}

.card p {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  color: #c7c7c7;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bio-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  margin-top: 70px;
  padding: 58px 32px 0;
  border-top: 1px solid var(--line);
}

.bio-section .section-kicker,
.contact-section .section-kicker {
  margin-left: 0;
}

.bio-section h2,
.contact-section h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

.bio-grid {
  display: grid;
  gap: 24px;
}

.bio-grid > p,
.contact-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.project-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.project-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project-list span {
  color: var(--accent);
  font-weight: 900;
}

.project-list h3 {
  margin-bottom: 6px;
  font-size: 15px;
  text-transform: uppercase;
}

.project-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 #000;
}

.contact-panel > a:first-child {
  width: fit-content;
  color: var(--text);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 20px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--text);
}

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

.privacy-main {
  min-height: calc(100vh - 148px);
  padding: 72px 44px 96px;
}

.privacy-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 5vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
}

.privacy-intro {
  container-type: inline-size;
  position: sticky;
  top: 116px;
  align-self: start;
}

.privacy-intro h1 {
  max-width: 680px;
  margin: 14px 0 18px;
  font-size: clamp(40px, 13.5cqi, 74px);
  line-height: 0.9;
  text-transform: uppercase;
}

.privacy-intro p,
.privacy-content p,
.privacy-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.privacy-content {
  display: grid;
  border-top: 1px solid var(--line);
}

.privacy-content section {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.privacy-content h2 {
  margin-bottom: 14px;
  font-size: 18px;
  text-transform: uppercase;
}

.privacy-content p:last-child {
  margin-bottom: 0;
}

.privacy-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.privacy-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pixabay-link,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 11px 16px;
  background: var(--accent);
  border: 2px solid #ff3440;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  overflow-y: auto;
  padding: 28px;
  background: rgba(0, 0, 0, 0.92);
}

.video-view.is-open {
  display: block;
}

.video-shell {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.close-video {
  justify-self: end;
  min-height: 38px;
  padding: 0 14px;
  background: #0b0b0b;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: auto;
  overflow: hidden;
  background: #000;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line-strong);
  box-shadow: 16px 16px 0 #000;
}

.player::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: radial-gradient(circle at 50% 42%, transparent 0 30%, rgba(0, 0, 0, 0.58) 72%);
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.player video {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player iframe {
  position: absolute;
  inset: -3px;
  z-index: 4;
  display: none;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border: 0;
  background: #000;
}

.player.is-playing video {
  display: block;
}

.player.has-embed iframe {
  display: block;
}

.player.is-playing::before,
.player.has-embed::before,
.player.is-playing .scanline,
.player.has-embed .scanline,
.player.is-playing .play-button,
.player.has-embed .play-button,
.player.is-playing .player-error {
  display: none;
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
}

.play-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  background: var(--accent);
  border: 2px solid #ff3440;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player.is-loading .play-button {
  opacity: 0.72;
  pointer-events: none;
}

.player-error {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(5, 5, 5, 0.86);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player.has-error .player-error {
  display: flex;
}

.player-error a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.meta-line {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-copy h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.92;
  text-transform: uppercase;
}

.video-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.related-title {
  margin-bottom: 12px;
  font-size: 18px;
  text-transform: uppercase;
}

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

@media (max-width: 860px) {
  .topbar {
    padding: 0 18px;
  }

  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .privacy-main {
    padding: 44px 18px 72px;
  }

  .privacy-shell {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .privacy-intro {
    position: static;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  body.menu-open .mobile-menu {
    display: flex;
  }

  .archive {
    padding-top: 34px;
  }

  .section-kicker,
  .archive-head,
  .rail-head {
    margin-right: 18px;
    margin-left: 18px;
  }

  .archive-head {
    display: grid;
  }

  .stats {
    min-width: 0;
    width: 100%;
  }

  .row {
    grid-auto-columns: minmax(220px, 74vw);
    padding-right: 18px;
    padding-left: 18px;
  }

  .rail-feature .row {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .rail-feature .card {
    min-height: 190px;
  }

  .rail-compact .row {
    grid-auto-columns: minmax(150px, 44vw);
  }

  .bio-section,
  .contact-section {
    grid-template-columns: 1fr;
    margin-top: 52px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .video-view {
    padding: 18px;
  }

  .player {
    min-height: 54vw;
    box-shadow: 8px 8px 0 #000;
  }

  .related-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }

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

  .rail h2 {
    font-size: 18px;
  }

  .card h3 {
    font-size: 15px;
  }

  .related-row {
    grid-template-columns: 1fr;
  }
}
