/* ===== COMING SOON: "The door is ajar" ===== */

:root {
  --black: #070707;
  --panel: #0e100c;
  --green: #CAFB0C;
  --green-dim: #9ec717;
  --white: #f5f5f0;
  --grey: #aaaaaa;
  --door: #1f2418;
  --door-edge: #3a4029;
  --door-w: 200px;
  --door-h: 320px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 70% 50% at 50% 78%, #12160c 0, var(--black) 70%);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

.cs-top {
  padding: 1.6rem 2rem 0;
}

.cs-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--green);
  text-transform: uppercase;
}

.cs-logo span {
  color: var(--white);
}

.cs-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.cs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1rem;
  text-align: center;
}

.cs-title {
  margin: 0;
  font-family: 'Archivo', 'Arial Black', sans-serif;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.9rem, 5.6vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 14ch;
  /* keep two lines of room so "Not yet." doesn't make the door jump */
  min-height: 1.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cs-title.is-peek {
  color: var(--green);
}

.cs-sub {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- the door --- */
.cs-scene {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: calc(var(--door-h) + 70px);
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 1px solid #23281a;
}

.cs-floor-light {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: 520px;
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 0, rgba(202, 251, 12, 0.35), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cs-door {
  position: relative;
  width: var(--door-w);
  height: var(--door-h);
  padding: 0;
  border: 8px solid #20251a;
  border-bottom: 0;
  background: #000;
  perspective: 900px;
  perspective-origin: 0 50%;
  cursor: pointer;
  /* light leaking under the closed door */
  box-shadow: 0 6px 24px -6px rgba(202, 251, 12, 0.55);
}

.cs-door:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.cs-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 75%, rgba(202, 251, 12, 0.5), rgba(202, 251, 12, 0.06) 60%, #050505 85%);
}

.cs-poster {
  position: absolute;
  width: 46%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0.85;
  box-shadow: 0 0 18px rgba(202, 251, 12, 0.35);
}

.cs-poster.p1 {
  left: 6%;
  top: 14%;
  transform: rotate(-7deg);
}

.cs-poster.p2 {
  left: 30%;
  top: 6%;
  z-index: 1;
}

.cs-poster.p3 {
  right: 4%;
  top: 18%;
  transform: rotate(6deg);
}

.cs-crowd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
}

.cs-crowd i {
  position: relative;
  display: block;
  width: 22px;
  height: 52px;
  background: #000;
  border-radius: 11px 11px 0 0;
}

.cs-crowd i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
}

.cs-crowd i:nth-child(2n) {
  height: 62px;
}

.cs-crowd i:nth-child(3n) {
  height: 46px;
}

.cs-leaf {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10%;
  padding: 24% 14% 12%;
  background: linear-gradient(90deg, #2a3021, var(--door));
  transform-origin: left center;
  transform: rotateY(-8deg);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: inset -2px 0 0 var(--door-edge);
}

.cs-leaf.is-slam {
  transition: transform 0.18s cubic-bezier(0.6, 0, 0.9, 0.4);
}

.cs-panel {
  flex: 1;
  border: 2px solid var(--door-edge);
}

.cs-plate {
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--door-edge);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

.cs-handle {
  position: absolute;
  right: 10%;
  top: 52%;
  width: 8px;
  height: 28px;
  border-radius: 4px;
  background: var(--green-dim);
}

.cs-hint {
  position: absolute;
  right: 0;
  bottom: 10px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6c7060;
}

.cs-scene.is-thud .cs-door {
  animation: cs-thud 0.3s ease-out;
}

.cs-scene.is-knock .cs-door {
  animation: cs-knock 0.9s ease-in-out;
}

@keyframes cs-thud {
  30% {
    transform: translateY(2px);
  }
}

@keyframes cs-knock {

  10%,
  40%,
  70% {
    transform: translateX(-3px);
    box-shadow: 0 6px 34px -4px rgba(202, 251, 12, 0.9);
  }

  25%,
  55%,
  85% {
    transform: translateX(2px);
  }
}

/* --- knock form --- */
.cs-form {
  width: 100%;
  max-width: 560px;
  margin-top: 2.2rem;
}

.cs-form-title {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
}

.cs-fields {
  display: flex;
  gap: 0.6rem;
}

.cs-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #2c3122;
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
}

.cs-input::placeholder {
  color: #6c7060;
}

.cs-input:focus {
  outline: none;
  border-color: var(--green);
}

.cs-knock {
  padding: 0.85rem 1.6rem;
  border: 0;
  background: var(--green);
  color: var(--black);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.cs-knock:disabled {
  opacity: 0.6;
  cursor: progress;
}

.cs-knock:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.cs-msg {
  min-height: 1.5em;
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--grey);
}

.cs-msg.is-ok {
  color: var(--green);
}

.cs-msg.is-error {
  color: #ff8a7a;
}

.cs-foot {
  padding: 1.4rem 1rem 1.8rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6c7060;
}

.cs-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin-top: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: none;
}

.cs-legal a {
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0;
}

.cs-legal a:hover,
.cs-legal a:focus-visible {
  color: #cafb0c;
}

@media (max-width: 600px) {
  :root {
    --door-w: 160px;
    --door-h: 250px;
  }

  .cs-top {
    padding: 1.2rem 1rem 0;
  }

  .cs-logo {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  .cs-logo img {
    height: 34px;
  }

  .cs-main {
    padding-top: 1.6rem;
  }

  .cs-scene {
    height: calc(var(--door-h) + 30px);
  }

  .cs-hint {
    left: 0;
    right: 0;
    bottom: -26px;
  }

  .cs-form {
    margin-top: 2.6rem;
  }

  .cs-fields {
    flex-direction: column;
  }

  .cs-floor-light {
    width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cs-leaf,
  .cs-leaf.is-slam,
  .cs-floor-light {
    transition: none;
  }

  .cs-scene.is-thud .cs-door,
  .cs-scene.is-knock .cs-door {
    animation: none;
  }
}
