:root {
  --bg: #0f1115;
  --surface: #151820;
  --surface-raised: #1c202a;
  --border: #242a36;
  --border-strong: #333b4d;
  --ink: #f2f0eb;
  --ink-muted: #97a0b2;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --live: #22c55e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.48rem 0.92rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.86rem 1.4rem;
  font-size: 0.96rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  padding: 3.25rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 355px);
  gap: 3.25rem;
  align-items: center;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.34rem 0.76rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.84rem;
  margin-bottom: 1.3rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.45rem, 4.8vw, 3.7rem);
  font-weight: 700;
  max-width: 13ch;
}

.hero-lead {
  margin: 1.25rem 0 0;
  font-size: 1.06rem;
  color: var(--ink-muted);
  max-width: 50ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.35rem 0 0;
  padding-top: 1.45rem;
  border-top: 1px solid var(--border);
}

.hero-facts dt {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.hero-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.93rem;
}

/* Featured Monitor */
.monitor-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}

.reel-viewport {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #08090c;
  overflow: hidden;
  cursor: pointer;
}

.reel-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sound-pill {
  position: absolute;
  right: 0.75rem;
  bottom: 0.95rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 14, 18, 0.8);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.sound-pill:hover {
  background: rgba(24, 28, 36, 0.94);
}

.reel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  display: flex;
  align-items: flex-end;
  background: transparent;
  z-index: 6;
  cursor: pointer;
}

.reel-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: height 0.12s ease;
}

.reel-progress:hover::before {
  height: 6px;
}

.reel-progress-bar {
  position: relative;
  height: 3px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear, height 0.12s ease;
}

.reel-progress:hover .reel-progress-bar {
  height: 6px;
}

.monitor-note {
  padding: 0.88rem 0.95rem 0.95rem;
  border-top: 1px solid var(--border);
}

.monitor-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
}

.monitor-note p {
  margin: 0.2rem 0 0;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

/* Work Grid */
.section {
  padding: 4.2rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
}

.section-sub {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  max-width: 56ch;
  font-size: 0.96rem;
}

.filter-bar {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.filter-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 0.42rem 0.84rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
}

.filter-btn.is-active {
  background: var(--surface-raised);
  color: var(--ink);
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.reel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.reel-card:hover {
  border-color: var(--border-strong);
}

.reel-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #08090c;
  cursor: pointer;
}

.reel-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
  transition: opacity 0.18s ease;
}

.reel-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #ffffff;
}

.reel-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  padding: 0.24rem 0.54rem;
  border-radius: 6px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f2f0eb;
}

.reel-body {
  padding: 0.85rem 0.95rem 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.reel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
}

.reel-body h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.28;
}

.reel-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
}

/* Process Strip */
.process-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #12151b;
}

.process-header {
  max-width: 58ch;
  margin-bottom: 2.25rem;
}

.process-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.process-strip li {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-strong);
}

.step-index {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.process-strip h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.process-strip p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* Contact */
.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-copy {
  max-width: 52ch;
}

.contact-copy p {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand img {
  display: block;
  object-fit: contain;
}

.muted {
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .monitor-frame {
    max-width: 355px;
    margin-inline: auto;
  }
  .reel-grid, .process-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-actions .nav-link {
    display: none;
  }
  .hero {
    padding: 2.25rem 0 2.75rem;
  }
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .reel-grid, .process-strip {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
