:root {
  --ec-accent: #57aaff;
  --ec-bg: #06080f;
  --ec-ink: #f5f5f7;
  --ec-muted: rgba(245, 245, 247, 0.62);
  --ec-subtle: rgba(245, 245, 247, 0.38);
  --ec-line: rgba(255, 255, 255, 0.1);
  --ec-card: rgba(255, 255, 255, 0.06);
  --ec-grain-opacity: 0.055;
}

html[data-ec-theme="light"] {
  --ec-bg: #f5f5f7;
  --ec-ink: #1d1d1f;
  --ec-muted: rgba(29, 29, 31, 0.58);
  --ec-subtle: rgba(29, 29, 31, 0.38);
  --ec-line: rgba(0, 0, 0, 0.08);
  --ec-card: rgba(0, 0, 0, 0.04);
  --ec-grain-opacity: 0.035;
}

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

html,
body {
  overflow: hidden;
  background: var(--ec-bg);
  color: var(--ec-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ec-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ec-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
}

.ec-chapter {
  position: absolute;
  top: 48px;
  right: 56px;
  z-index: 60;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ec-subtle);
  opacity: 0;
  pointer-events: none;
}

.ec-chapter--mobile {
  top: 14px;
  right: 14px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.ec-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--ec-grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.ec-enter {
  visibility: hidden;
}

.ec-card {
  border-radius: 16px;
  border: 1px solid var(--ec-line);
  background: var(--ec-card);
  backdrop-filter: blur(12px);
}

.ec-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ec-accent);
  margin-bottom: 10px;
}

.ec-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.ec-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ec-muted);
}

.ec-vid-slot {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #06080f;
}

.ec-vid-slot .ec-vid-wrap {
  border-radius: inherit;
}

.ec-poster-slot {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ec-poster-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-masonry {
  display: grid;
  gap: 12px;
  width: 100%;
}

.ec-masonry--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ec-masonry--2 {
  grid-template-columns: repeat(2, 1fr);
}

.ec-masonry-tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  min-height: 0;
}

.ec-masonry-tile--tall {
  grid-row: span 2;
}
