:root {
  --ink: #080808;
  --pure-white: #ffffff;
  --soft-white: #f8f8f6;
  --crimson: #8b0015;
  --deep-red: #320006;
  --gold: #cba24a;
  --gold-line: rgba(203, 162, 74, 0.56);
  --white-line: rgba(255, 255, 255, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--pure-white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
p {
  margin: 0;
}

.skip {
  position: absolute;
  top: 16px;
  left: -999px;
  z-index: 20;
  padding: 16px 24px;
  background: var(--pure-white);
  color: var(--ink);
}

.skip:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gateway {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: clip;
  background: var(--ink);
}

.gateway-mark {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 8;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(203, 162, 74, 0.72);
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 0.95;
  transform: translateX(-50%);
}

.gateway.is-mark-hidden .gateway-mark {
  display: none;
}

.gateway-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 7;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 18%, var(--white-line) 50%, var(--gold-line) 82%, transparent);
}

.door {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background: var(--ink);
}

.door-poster,
.door-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms var(--ease), filter 260ms var(--ease);
}

.door-video {
  z-index: 1;
  opacity: 0;
}

.door-beauty .door-poster,
.door-beauty .door-video {
  object-position: center center;
  filter: brightness(0.6) contrast(1.06);
}

.door-film .door-poster,
.door-film .door-video {
  object-position: 45% center;
  filter: brightness(0.62) contrast(1.14) saturate(1.08);
}

.door-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.16), transparent 24%, rgba(8, 8, 8, 0.68)),
    linear-gradient(90deg, rgba(8, 8, 8, 0.46), transparent 42%, rgba(8, 8, 8, 0.18));
  transition: background 260ms var(--ease), opacity 260ms var(--ease);
}

.door-film .door-shade {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.16), transparent 28%, rgba(8, 8, 8, 0.7)),
    linear-gradient(90deg, rgba(49, 0, 7, 0.28), transparent 45%, rgba(8, 8, 8, 0.28));
}

.door-link {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(48px, 7vw, 96px);
  outline-offset: -12px;
}

.door-link:focus-visible {
  outline: 2px solid var(--gold);
}

.door-kicker {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  font-weight: 400;
}

.door-title {
  display: block;
  max-width: 600px;
  color: var(--pure-white);
  font-family: var(--serif);
  font-size: 48px;
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.door-action {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 32px;
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(8, 8, 8, 0.28);
  color: var(--pure-white);
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(203, 162, 74, 0.1);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.door-action::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(203, 162, 74, 0.64), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 220ms var(--ease), transform 420ms var(--ease);
}

.door-action::after {
  content: "";
  position: absolute;
  inset: auto 18px 5px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  transition: opacity 180ms var(--ease);
}

.route-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gateway[data-active="beauty"] .door-film,
.gateway[data-active="film"] .door-beauty {
  opacity: 0.62;
}

.gateway[data-active="beauty"] .door-beauty .door-video,
.gateway[data-active="film"] .door-film .door-video {
  opacity: 1;
}

.gateway[data-active="beauty"] .door-beauty .door-poster,
.gateway[data-active="film"] .door-film .door-poster {
  filter: brightness(0.72) contrast(1.1);
}

.gateway[data-active="beauty"] .door-beauty .door-shade,
.gateway[data-active="film"] .door-film .door-shade {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.12), transparent 30%, rgba(8, 8, 8, 0.66)),
    linear-gradient(90deg, rgba(8, 8, 8, 0.36), transparent 48%, rgba(8, 8, 8, 0.16));
}

.gateway[data-active] .door-link:hover .door-action,
.door-link:focus-visible .door-action {
  border-color: rgba(203, 162, 74, 0.9);
  background:
    linear-gradient(110deg, rgba(203, 162, 74, 0.18), transparent 38%),
    rgba(8, 8, 8, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(203, 162, 74, 0.24),
    0 0 28px rgba(203, 162, 74, 0.24);
  transform: translateY(-1px);
}

.gateway[data-active] .door-link:hover .door-action::before,
.door-link:focus-visible .door-action::before {
  opacity: 1;
  transform: translateX(70%);
}

.gateway[data-active] .door-link:hover .door-action::after,
.door-link:focus-visible .door-action::after {
  opacity: 0.95;
}

@media (hover: none), (pointer: coarse) {
  .gateway {
    overflow: visible;
  }

  .door-video {
    display: none;
  }
}

@media (max-width: 860px) {
  .gateway {
    grid-template-columns: 1fr;
  }

  .gateway-mark {
    position: absolute;
    top: 16px;
  }

  .gateway-divider {
    top: 50%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  }

  .door {
    min-height: 50svh;
  }

  .door-link {
    min-height: 50svh;
    padding: 72px 24px 32px;
  }

  .door-title {
    max-width: 340px;
    font-size: clamp(36px, 10vw, 48px);
  }

  .door-action {
    width: 100%;
  }

  .door-film .door-poster {
    object-position: 45% center;
  }
}

@media (max-width: 420px) {
  .door-title {
    max-width: 310px;
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .door-kicker {
    max-width: 300px;
  }
}

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

  .door-video {
    display: none !important;
  }
}
