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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #f4f4f4;
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

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

.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- Logo placeholder ---------- */
.logo {
  font-size: 1.25rem;
  letter-spacing: 0.4em;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Landing page ---------- */
.page-landing {
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-tint {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.landing {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem;
  gap: 2.5rem;
}

.landing .logo {
  font-size: 1.5rem;
}

.gate {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gate input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.gate input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.gate input[type="password"]:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.gate button {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: #0a0a0a;
  border: 0;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.gate button:hover {
  background: #e8e8e8;
}

.gate button[disabled] {
  cursor: default;
  opacity: 0.7;
}

.gate button[disabled]:hover {
  background: #fff;
}

.gate .spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid rgba(10, 10, 10, 0.25);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: gate-spin 0.7s linear infinite;
}

@keyframes gate-spin {
  to {
    transform: rotate(360deg);
  }
}

.gate .error {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #ff8a8a;
  text-align: center;
}

/* ---------- Studio (interior) page ---------- */
.page-studio {
  background: #0a0a0a;
  min-height: 100vh;
}

.studio-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.studio > * {
  width: 100%;
}

.prose,
.signup {
  max-width: 640px;
}

.prose p {
  margin: 0 0 1rem;
  color: #d8d8d8;
  max-width: 64ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Signup form ---------- */
.signup h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
}

.signup-lede {
  margin: 0 0 1.25rem;
  color: #aaa;
  text-align: center;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.interest-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.interest-form input,
.interest-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  text-transform: none;
  letter-spacing: normal;
}

.interest-form input:focus,
.interest-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.interest-form textarea {
  resize: vertical;
  min-height: 90px;
}

.interest-form button {
  align-self: flex-start;
  padding: 0.7rem 1.5rem;
  background: #fff;
  color: #0a0a0a;
  border: 0;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.interest-form button:hover {
  background: #e8e8e8;
}

.signup-thanks {
  color: #9adfa6;
  margin: 0.5rem 0 0;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.gallery button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.92;
}

.gallery button:hover img {
  transform: scale(1.04);
  opacity: 1;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 700px) {
  .lightbox-prev {
    left: 1.5rem;
  }
  .lightbox-next {
    right: 1.5rem;
  }
}
