/* Sex Machina landing page (BAD-1061).
   Scoped under .msl to isolate from GlobalStyles / other landing pages. */

@font-face {
  font-family: 'Unison Pro Bold Round';
  src: url('/sex-machina/fonts/UnisonPro-BoldRound.otf') format('opentype');
  font-weight: 400 900;
  font-display: swap;
}

.msl {
  --ink: #241a1a;
  --panel: #33211d;
  --paper: #f8ead5;
  --soft: #c7ad92;
  --rust: #d7873e;
  --rule: rgba(248, 234, 213, 0.14);
  --red: #b9503f;
  --teal: #7f9e96;
  --olive: #9b9161;
  --gold: #d49d53;
  --rose: #a85c65;

  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 'Nunito Sans', sans-serif;
}

.msl * {
  box-sizing: border-box;
}

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

/* Neutralize GlobalStyles element rules (p gets clamp(18-20px)/500/--color-txt globally). */
.msl p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: inherit;
  margin: 1em 0;
}

.msl .display {
  font-family: 'Unison Pro Bold Round', sans-serif;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--paper);
}

.msl .mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.msl h1 > span,
.msl h2 > span {
  display: block;
}
.msl h1 > span {
  white-space: nowrap;
}

.msl .rust {
  color: var(--rust);
}

.msl .shell {
  width: min(1280px, calc(100% - 48px));
  margin: auto;
}

.msl .nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}
.msl .nav.scrolled {
  background: rgba(36, 26, 26, 0.94);
  backdrop-filter: blur(12px);
  border-color: var(--rule);
}
.msl .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.msl .brand {
  letter-spacing: 0.12em;
  font-size: 1.125rem;
}
.msl .brand b {
  color: var(--rust);
}
.msl .nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.msl .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.msl .nav-burger {
  display: none;
  border: 0;
  background: none;
  color: var(--paper);
  padding: 2px;
}
.msl .nav-burger svg {
  width: 22px;
  height: 22px;
  display: block;
}
.msl .nav-links button,
.msl .nav-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--soft);
  font: 500 0.65rem 'DM Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.msl .nav-links button:hover,
.msl .nav-link:hover {
  color: var(--rust);
}
.msl .nav-rule {
  height: 16px;
  width: 1px;
  background: var(--rule);
}

.msl .hero {
  min-height: 100vh;
  padding: 130px 0 72px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.msl .hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 54% at 50% 41%, rgba(215, 135, 62, 0.1), transparent 70%);
  pointer-events: none;
}
.msl .hero:after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}
.msl .hero-copy {
  position: relative;
  z-index: 1;
  width: min(1024px, 100%);
}
.msl .eyebrow {
  color: var(--rust);
  margin: 0 0 22px;
}
.msl h1 {
  font-size: clamp(2rem, 5.8vw, 4.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.msl .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
}
.msl .tagline {
  color: var(--soft);
  margin: 0 0 40px;
  font-size: clamp(1rem, 2vw, 1.22rem);
}
.msl .tagline em {
  color: var(--paper);
  font-style: normal;
}
.msl .tagline strong {
  color: var(--paper);
  font-weight: 700;
}
.msl .series-logo {
  display: block;
  width: min(640px, 90vw);
  height: auto;
  margin: 0 auto 40px;
}
.msl .poster-frame {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--panel);
  box-shadow: 0 0 80px rgba(215, 135, 62, 0.16), inset 0 0 60px rgba(0, 0, 0, 0.4);
  position: relative;
  margin: 0 auto 36px;
}
.msl .poster-frame img,
.msl .poster-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  display: block;
  transition: opacity 0.5s;
}
.msl .poster-frame:hover img,
.msl .poster-frame:hover video {
  opacity: 1;
}
.msl .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.msl .play span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid var(--rust);
  background: rgba(215, 135, 62, 0.14);
  transition: transform 0.25s;
}
.msl .play:hover span {
  transform: scale(1.1);
}
.msl .play svg {
  width: 30px;
  fill: var(--rust);
  color: var(--rust);
  margin-left: 4px;
}
.msl .trailer-label {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: var(--soft);
  text-align: left;
}
.msl .scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  background: none;
  color: var(--soft);
  padding: 0;
}
.msl .scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: msl-bounce 1s infinite;
}
@keyframes msl-bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
.msl .button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: var(--rust);
  color: var(--ink);
  padding: 16px 40px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msl section {
  border-top: 1px solid var(--rule);
  padding: 96px 0;
}
.msl .about {
  background: var(--panel);
}
.msl .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.msl h2 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  margin: 0 0 34px;
  letter-spacing: -0.015em;
}
.msl .prose {
  color: var(--soft);
  max-width: 590px;
}
.msl .stats {
  border-top: 1px solid var(--rule);
  margin-top: 36px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.msl .stat-value {
  color: var(--rust);
  font: 900 1.9rem/0.9 'Unison Pro Bold Round', sans-serif;
}
.msl .stat-label {
  color: var(--soft);
  margin-top: 8px;
}
.msl .about-art {
  position: relative;
  aspect-ratio: 1309/2000;
  background: #4b3831;
}
.msl .about-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.msl .inset-art {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  left: -20px;
  bottom: -20px;
  overflow: hidden;
  border: 3px solid var(--panel);
}
.msl .inset-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}
.msl .badge {
  position: absolute;
  top: 24px;
  right: -12px;
  background: var(--rust);
  color: var(--ink);
  padding: 11px 16px;
  font: 900 0.75rem/1.1 'Unison Pro Bold Round', sans-serif;
  letter-spacing: 0.1em;
}

.msl .episode-list {
  margin-top: 52px;
  border-bottom: 1px solid var(--rule);
}
.msl .episode-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
}
.msl .episode-row:hover .episode-title {
  color: var(--rust);
}
.msl .episode-row:hover .episode-no {
  color: var(--soft);
}
.msl .episode-no {
  width: 54px;
  color: var(--rule);
  font: 900 clamp(2.5rem, 5vw, 4rem) / 0.9 'Big Shoulders Display', sans-serif;
  transition: 0.2s;
}
.msl .episode-info {
  flex: 1;
  min-width: 0;
}
.msl .episode-title {
  display: block;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  transition: 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msl .episode-tag {
  display: block;
  color: var(--soft);
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-style: italic;
}
.msl .episode-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  white-space: nowrap;
  text-transform: none;
}
.msl .episode-date svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.msl .episode-status {
  background: #4b3831;
  color: var(--soft);
  padding: 0.3rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.msl .episode-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--soft);
  transition: transform 0.2s;
}
.msl .episode-row:hover .episode-arrow {
  transform: translateX(4px);
}

.msl .detail {
  padding: 96px 0;
}
.msl .detail:nth-of-type(2n + 1) {
  background: var(--panel);
}
.msl .detail-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 46px;
}
.msl .detail h3 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
}
.msl .quote {
  color: var(--soft);
  font-style: italic;
}
.msl .detail-copy {
  color: var(--soft);
  max-width: 720px;
}
.msl .release-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.msl .release {
  min-width: 180px;
  border: 1px solid var(--rule);
  padding: 17px 19px;
}
.msl .release p {
  margin: 5px 0 0;
  font: 900 1.25rem/0.9 'Big Shoulders Display', sans-serif;
}
.msl .release-label {
  color: var(--soft);
}
.msl .gallery-eyebrow {
  color: var(--soft);
  margin-bottom: 12px;
}

.msl .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.msl .gallery button {
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  background: #4b3831;
}
.msl .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.75;
  transition: 0.35s;
}
.msl .gallery button:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.msl .covers-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.msl footer {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  padding: 44px 0;
}
.msl .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--soft);
}
.msl footer .brand {
  color: var(--soft);
  font-size: 1.25rem;
}

.msl .lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(9, 9, 15, 0.96);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 32px;
}
.msl .lightbox.open {
  display: grid;
}
.msl .lightbox img {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}
.msl .lightbox-body {
  max-width: min(1024px, 100%);
  text-align: center;
}
.msl .lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.4);
  color: var(--paper);
  font-size: 40px;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.msl .lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
.msl .lightbox-nav.prev {
  left: 24px;
}
.msl .lightbox-nav.next {
  right: 24px;
}
.msl .lightbox-caption {
  color: var(--soft);
  margin: 16px 0 0;
}
.msl .close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 28px;
}

.msl .nav-join {
  background: var(--rust);
  color: var(--ink);
  font: 900 0.75rem 'Big Shoulders Display', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
}
.msl .nav-join:hover {
  opacity: 0.88;
}

.msl .ep-thumb {
  display: none;
  width: 180px;
  height: 120px;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
  background: #4b3831;
}
.msl .ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.msl .episode-row:hover .ep-thumb img {
  opacity: 1;
}
.msl .ep-cast-line {
  display: block;
  color: var(--soft);
  margin-top: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msl .ep-cast-line a {
  color: inherit;
  text-decoration: none;
}
.msl .ep-cast-line a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.msl .ep-site {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.msl a.ep-site:hover {
  text-decoration: underline;
}

.msl .ep-cast-section {
  border-top: 1px solid var(--rule);
  margin-top: 28px;
  padding-top: 22px;
}
.msl .cast-eyebrow {
  margin: 0 0 10px;
  color: var(--soft);
}
.msl .cast-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.msl .cast-chip {
  border: 1px solid var(--rule);
  padding: 0.35rem 0.75rem;
  font: 500 0.72rem 'DM Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.msl a.cast-chip:hover {
  color: var(--paper);
  border-color: var(--rust);
}

.msl .episode-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.75rem 1.5rem;
}
.msl .episode-cta:hover {
  opacity: 0.85;
}
.msl .episode-cta.coming {
  background: none;
  border: 1px solid;
}
.msl .episode-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (min-width: 761px) {
  .msl .ep-thumb {
    display: block;
  }
}

@media (max-width: 760px) {
  .msl .shell {
    width: min(100% - 32px, 1280px);
  }
  .msl .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .msl .episode-status {
    white-space: normal;
    text-align: center;
    width: min-content;
  }
  .msl .detail h3 {
    font-size: clamp(1.3rem, 6vw, 2.4rem);
    overflow-wrap: break-word;
  }
  .msl h1 {
    font-size: clamp(1.5rem, 7.5vw, 2.6rem);
  }
  .msl h1 > span:last-child {
    font-size: 0.9em;
  }
  .msl .nav-burger {
    display: block;
  }
  .msl .brand {
    line-height: 1;
  }
  .msl .brand span,
  .msl .brand b {
    display: block;
  }
  .msl .nav-links {
    display: none;
  }
  .msl .nav.open {
    background: rgba(36, 26, 26, 0.97);
    border-color: var(--rule);
  }
  .msl .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 16px 24px;
    background: rgba(36, 26, 26, 0.97);
    border-bottom: 1px solid var(--rule);
  }
  .msl .nav.open .nav-rule {
    width: 100%;
    height: 1px;
  }
  .msl .about-grid,
  .msl .detail-top {
    grid-template-columns: 1fr;
  }
  .msl .about-art {
    margin: 0 18px 28px;
  }
  .msl .episode-tag {
    display: none;
  }
  .msl .episode-date {
    display: none;
  }
  .msl .episode-row {
    gap: 14px;
  }
  .msl .episode-no {
    width: 40px;
  }
  .msl .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .msl .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .msl .badge {
    display: none;
  }
  .msl .inset-art {
    left: -12px;
    bottom: -12px;
  }
}
