/* Studiotra — site-wide password gate overlay */

/* Thunder font — ensure it loads with gate */
@font-face {
  font-family: "Thunder";
  src: url("../fonts/Thunder-BoldLC.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Block interactions on content when gate is active */
body.studiotra-gate-active * {
  pointer-events: none !important;
}
body.studiotra-gate-active .studiotra-gate-overlay,
body.studiotra-gate-active .studiotra-gate-overlay * {
  pointer-events: auto !important;
}

/* Overlay: full viewport, blur bg (same as header) */
.studiotra-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(17, 17, 17, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.studiotra-gate-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 80px;
  text-align: center;
}

.studiotra-gate-section {
  width: 100%;
}

/* Override .font-heading-sequelsans-romanbody h2 from body */
.studiotra-gate-overlay .studiotra-gate-headline {
  font-family: "Thunder", var(--font_thunder) !important;
  font-size: 30vh;
  font-weight: 700;
  line-height: 0.8;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 auto 1.5rem;
}

.studiotra-gate-subheadline {
  font-family: var(--font_sequelsansromanbody);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* Form */
.studiotra-gate-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 4rem;
  text-align: left;
}

.studiotra-gate-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.studiotra-gate-field input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.studiotra-gate-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.studiotra-gate-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.studiotra-gate-field input.error {
  border-color: rgba(220, 80, 80, 0.6);
}

.studiotra-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.studiotra-gate-btn:hover {
  background: #d3d800;
}

.studiotra-gate-btn:active {
  transform: scale(0.98);
}

.studiotra-gate-error {
  font-size: 13px;
  color: rgba(220, 100, 100, 0.9);
  margin-top: 0.5rem;
  display: none;
}

.studiotra-gate-error.visible {
  display: block;
}

/* CTA section — duplicate cta-area style, no padding L/R/B */
.studiotra-gate-cta-wrap {
  margin-top: 2rem;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.studiotra-gate-cta,
.studiotra-gate-cta .cta-area-inner,
.studiotra-gate-cta .container.large,
.studiotra-gate-cta .section-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

.studiotra-gate-cta {
  height: 100vh;
  min-height: 400px;
}

.studiotra-gate-cta .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.studiotra-gate-cta-title {
  color: var(--primary);
  font-size: 0.88em; /* 10% larger than 0.8em */
  line-height: 0.8;
}

.studiotra-gate-cta-title .studiotra-gate-cta-line {
  display: block;
  line-height: 0.4;
}
.studiotra-gate-cta-title .studiotra-gate-cta-line + .studiotra-gate-cta-line {
  margin-top: 0.35em;
}

.studiotra-gate-cta-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding-top: 2.5rem;
}

.studiotra-gate-cta-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.studiotra-gate-cta-reveal .text {
  font-family: var(--font_instrumentsans);
  font-size: clamp(7px, 1.02vw, 10px); /* 15% smaller */
  color: #111111;
  margin: 0;
}

.studiotra-gate-cta-reveal .text a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s;
}

.studiotra-gate-cta-reveal a:hover {
  opacity: 0.85;
}

@media (max-width: 575px) {
  .studiotra-gate-inner {
    padding: 0 20px 40px;
  }

  /* Sticky: top padding + headline + form stay fixed while CTA scrolls */
  .studiotra-gate-sticky {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 80px 0 24px;
    margin-bottom: 0;
  }

  .studiotra-gate-overlay .studiotra-gate-headline {
    font-size: clamp(48px, 10vh, 64px);
    margin-bottom: 1rem;
  }

  .studiotra-gate-form {
    max-width: 100%;
    margin-bottom: 0;
  }

  /* CTA scrolls over the sticky content */
  .studiotra-gate-cta-wrap {
    margin-top: 0;
    position: relative;
    z-index: 2;
  }

  .studiotra-gate-cta {
    min-height: 70vh;
  }

  .studiotra-gate-cta-reveal {
    padding-top: 1rem;
  }
}
