/* Platform access gate — cinematic video hero (SpaceX IR style) */

html.access-locked,
html.access-locked body {
  overflow: hidden;
  height: 100%;
}

html.access-locked .access-gate--cinematic {
  overflow: hidden;
}

html.access-locked .access-gate--cinematic .access-gate__scroll-root {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

html.access-checking,
html.access-checking body {
  overflow: hidden;
  height: 100%;
  background-color: #050506;
}

/* Session restore: never flash logged-in chrome before verify completes */
html.access-checking #root,
html.access-checking .ir-nav-desktop-spa,
html.access-checking .ir-mobile-nav-root,
html.access-checking .ir-spa-block,
html.access-checking #mandate-chart-section,
html.access-checking #mandate-doge-pipeline {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.access-granted #root,
html.access-granted .ir-nav-desktop-spa,
html.access-granted .ir-mobile-nav-root,
html.access-granted .ir-spa-block,
html.access-granted #mandate-chart-section,
html.access-granted #mandate-doge-pipeline {
  visibility: visible !important;
  pointer-events: auto !important;
}

html.access-granted #access-gate {
  display: none !important;
}

.access-checking-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1.5rem 1.5rem;
  background: #050506;
  color: #f0f0fa;
  text-align: center;
}

.access-checking-overlay[hidden] {
  display: none !important;
}

.access-checking-overlay__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 240, 250, 0.55);
}

.access-checking-overlay__body {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(240, 240, 250, 0.82);
}

html.access-locked #root,
html.access-locked .ir-nav-desktop-spa,
html.access-locked .ir-mobile-nav-root,
html.access-locked .ir-spa-block,
html.access-locked #mandate-chart-section,
html.access-locked #mandate-doge-pipeline {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.access-granted,
html.access-granted body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
}

html.access-granted #root {
  visibility: visible;
}

/* Editorial text unveil — see css/access-gate-unveil.css (line-mask rise) */

.access-gate.hero-video,
.hero-video.access-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  color: #fff;
  font-family: var(--ir-font, 'D-DIN', 'Barlow', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* Cinematic gates — outer shell fixed; scroll lives on __scroll-root */
.access-gate.hero-video.access-gate--cinematic,
#thermocool-login.access-gate--cinematic {
  display: block;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
}

.access-gate[hidden] {
  display: none !important;
}

.hero-video__media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  background: #000;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-video__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.access-gate__inner {
  width: min(100%, 34rem);
  max-width: none;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
}

.access-gate--cinematic .access-gate__panel-content .access-gate__inner {
  width: min(100%, 34rem);
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(4.5rem, 12vh, 7rem);
}

.access-gate__logo {
  display: block;
  width: auto;
  height: 24px;
  margin-bottom: clamp(2.75rem, 7vh, 4.5rem);
  opacity: 1;
  filter: brightness(0) invert(1);
}

.access-gate__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-title,
.access-gate__title {
  font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 1.25rem;
  color: #fff;
  text-transform: uppercase;
}

.hero-subtitle,
.access-gate__lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin: 0 0 2.25rem;
  line-height: 1.6;
}

.access-gate__form {
  max-width: 34rem;
}

.access-gate__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.access-gate__row label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.access-gate__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.access-gate__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.access-gate__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.access-gate__legal {
  margin: 0.25rem 0 0.85rem;
}

.access-gate__legal-meta {
  margin: 0 0 1.5rem;
  display: flex;
  align-items: flex-start;
}

.access-gate__info-wrap {
  position: relative;
  display: inline-flex;
}

.access-gate__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.access-gate__info-btn:hover,
.access-gate__info-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.access-gate__info-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.access-gate__info-icon {
  display: block;
}

.access-gate__info-popover {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000001;
  width: min(18.5rem, calc(100vw - 1.5rem));
  max-width: min(18.5rem, calc(100vw - 1.5rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.access-gate__info-popover--anchored {
  visibility: visible;
}

.access-gate__info-popover[hidden] {
  display: none;
}

.access-gate__info-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
}

.access-gate__legal-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.access-gate__legal-link:hover,
.access-gate__legal-link:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.95);
}

.access-gate__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  min-height: auto;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.access-gate__checkbox-compact {
  align-items: center;
}

.access-gate__checkbox input {
  position: absolute;
  opacity: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  left: -0.2rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
}

.access-gate__check-box {
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  margin-top: 0.08rem;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  pointer-events: none;
}

.access-gate__checkbox-compact .access-gate__check-box {
  margin-top: 0;
}

.access-gate__check-label {
  flex: 1;
  padding-right: 0.25rem;
}

.access-gate__checkbox input:focus-visible + .access-gate__check-box {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.access-gate__checkbox input:checked + .access-gate__check-box {
  border-color: #fff;
  background: #fff;
}

.access-gate__checkbox input:checked + .access-gate__check-box::after {
  content: '';
  display: block;
  width: 0.28rem;
  height: 0.52rem;
  border: solid #0a0a0a;
  border-width: 0 0.14rem 0.14rem 0;
  transform: rotate(45deg);
  margin-top: -0.06rem;
}

.access-gate__btn,
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}

.access-gate__btn:hover:not(:disabled),
.hero-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.access-gate__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.access-gate__status {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.access-gate__status[hidden] {
  display: none;
}

.access-gate__status--pending {
  border-color: rgba(255, 200, 100, 0.25);
}

.access-gate__status--denied {
  border-color: rgba(255, 100, 100, 0.25);
}

.access-gate__status--error {
  border-color: rgba(255, 100, 100, 0.25);
}

.access-gate__verify-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.access-gate__verify-lead strong {
  color: #fff;
  word-break: break-all;
}

.access-gate__code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.35rem !important;
  font-weight: 700;
}

.access-gate__btn-ghost {
  margin-top: 0.75rem;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}

.access-gate__btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ========== Scroll-to-unveil cinematic gate (ir.spacex.com) ========== */
.access-gate--cinematic {
  display: block;
  align-items: stretch;
}

.access-gate__scroll-root {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.access-gate__panels {
  display: flex;
  flex-direction: column;
}

.access-gate__panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.access-gate__panel--hero {
  align-items: stretch;
  justify-content: flex-start;
}

.access-gate__panel-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #000;
  z-index: 0;
}

.access-gate__panel-img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: var(--panel-pos, center center);
  -webkit-object-fit: cover;
  -webkit-object-position: var(--panel-pos, center center);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.access-gate__panel-img--ready,
.access-gate__panel--img-ready .access-gate__panel-img {
  opacity: 1;
}

.access-gate__panel--hero .access-gate__panel-img {
  transform: translateZ(0);
}

.access-gate__panel--reveal .access-gate__panel-img {
  transform: translateZ(0);
}

.access-gate--thermocool .access-gate__panel--hero .access-gate__panel-overlay {
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.58) 38%,
    rgba(0, 0, 0, 0.42) 62%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.access-gate--investor .access-gate__panel--hero .access-gate__panel-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.52) 42%,
    rgba(0, 0, 0, 0.86) 100%
  );
}

.access-gate__panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.access-gate__panel--reveal .access-gate__panel-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

.access-gate__panel-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding:
    max(clamp(3rem, 9vh, 5.5rem), env(safe-area-inset-top, 0px))
    max(clamp(1.5rem, 4vw, 3.5rem), env(safe-area-inset-right, 0px))
    max(clamp(5.5rem, 14vh, 7.5rem), env(safe-area-inset-bottom, 0px))
    max(clamp(1.5rem, 4vw, 3.5rem), env(safe-area-inset-left, 0px));
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

.access-gate__panel-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 5rem) 2rem clamp(4rem, 12vh, 6rem);
}

.access-gate__panel-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.access-gate__panel-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: uppercase;
  color: #fff;
}

.access-gate__panel-lead {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
}

.access-gate__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(clamp(1.5rem, 5vh, 2.75rem), env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
  opacity: 0;
  animation: access-gate-hint-in 0.85s 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.access-gate__scroll-hint-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  animation: access-gate-hint-text 3.2s ease-in-out 1.8s infinite;
}

.access-gate__scroll-hint-chevron {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  animation: access-gate-chevron-float 2.4s cubic-bezier(0.45, 0, 0.55, 1) 1.6s infinite;
}

.access-gate__scroll-hint-chevron svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.85;
}

.access-gate__scroll-hint-chevron svg + svg {
  margin-top: -0.55rem;
  opacity: 0.45;
}

@keyframes access-gate-hint-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes access-gate-hint-text {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.72; }
}

@keyframes access-gate-chevron-float {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.access-gate__mode-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0 0 1.5rem;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.access-gate__mode-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.access-gate__mode-tab[aria-selected="true"] {
  color: #0a0a0a;
  background: #fff;
}

.access-gate__mode-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.access-gate__disclosure {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .access-gate.hero-video,
  .access-gate--cinematic {
    background: #000;
  }

  .access-gate .ir-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
    animation: none;
  }

  .access-gate--cinematic .access-gate__panel-content .ir-reveal {
    animation: none;
  }

  .access-gate__panel-img {
    transform: none !important;
  }

  .access-gate__scroll-hint,
  .access-gate__scroll-hint-text,
  .access-gate__scroll-hint-chevron {
    animation: none;
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .access-gate.hero-video {
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    align-items: flex-start;
  }

  .access-gate__panel {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .access-gate__panel--hero .access-gate__panel-img {
    object-fit: cover;
    min-height: 100%;
  }

  .access-gate__panel-content {
    padding:
      max(calc(env(safe-area-inset-top, 0px) + 1.75rem), 3.5rem)
      max(1.25rem, env(safe-area-inset-right, 0px))
      max(4rem, env(safe-area-inset-bottom, 0px))
      max(1.25rem, env(safe-area-inset-left, 0px));
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: flex-start;
  }

  .access-gate--cinematic .access-gate__panel-content .access-gate__inner {
    width: min(100%, 30rem);
    padding: 0.35rem 0 3.25rem;
  }

  .access-gate__panel-copy {
    padding: 2.5rem 1.35rem 3rem;
  }

  .hero-video__content {
    padding: 0;
  }

  .hero-title,
  .access-gate__title {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    margin-bottom: 0.65rem;
    line-height: 1.06;
  }

  .access-gate__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.66rem;
  }

  .hero-subtitle,
  .access-gate__lead {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.45;
  }

  .access-gate__mode-tabs {
    margin-bottom: 0.85rem;
    padding: 2px;
  }

  .access-gate__mode-tab {
    padding: 0.38rem 0.72rem;
    font-size: 0.58rem;
  }

  .access-gate__row {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .access-gate__row label {
    font-size: 0.62rem;
  }

  .access-gate__input {
    padding: 0.45rem 0.72rem;
    font-size: 0.875rem;
    line-height: 1.2;
    min-height: 0;
    height: auto;
    border-radius: 5px;
  }

  .access-gate__legal {
    margin: 0.1rem 0 0.5rem;
  }

  .access-gate__check-label {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .access-gate__legal-meta {
    margin-bottom: 0.75rem;
  }

  .access-gate__btn,
  .hero-btn {
    min-height: 2.1rem;
    padding: 0.48rem 1.25rem;
    font-size: 0.64rem;
  }

  .access-gate__logo {
    height: 16px;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
  }

  .access-gate__scroll-hint {
    bottom: max(clamp(1.25rem, 4vh, 2.5rem), env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .access-gate__panel-content {
    padding-top: max(calc(env(safe-area-inset-top, 0px) + 3.25rem), 5rem);
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .access-gate--cinematic .access-gate__panel-content .access-gate__inner,
  .access-gate__inner {
    width: min(100%, 25rem);
    padding-bottom: 2.5rem;
  }

  .access-gate__panel-copy {
    padding: 2rem 1.15rem 2.75rem;
  }

  .access-gate__panel-title {
    font-size: 1.75rem;
  }

  .hero-title,
  .access-gate__title {
    font-size: 1.4rem;
  }

  .access-gate__input {
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
  }

  .access-gate__btn,
  .hero-btn {
    min-height: 2rem;
    padding: 0.42rem 1.1rem;
  }

  .access-gate__code-input {
    font-size: 1.1rem !important;
    padding: 0.48rem 0.65rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .access-gate__panel-content {
    justify-content: flex-start;
    padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .access-gate__panel--hero .access-gate__panel-img {
    object-position: var(--panel-pos, center center);
  }

  .access-gate__scroll-hint {
    display: none;
  }
}

/* Agent desk — access requests panel */
.access-inbox-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.access-inbox-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.access-inbox-count {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.access-request-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.access-request-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.access-request-email {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.access-request-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.access-request-actions {
  display: flex;
  gap: 0.5rem;
}

.access-request-actions button {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
}

.access-request-actions .access-approve {
  border-color: rgba(110, 231, 160, 0.35);
  color: #6ee7a0;
}

.access-request-actions .access-deny {
  border-color: rgba(255, 120, 120, 0.25);
  color: #ffb4b4;
}

.access-request-empty {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 0;
}

/* Guest support modal on login gate */
.access-gate__guest-support {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.access-gate__btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

.access-gate-guest-support {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.access-gate-guest-support[hidden] {
  display: none !important;
}

.access-gate-guest-support__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.access-gate-guest-support__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.35rem 1.35rem 1.5rem;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
}

.access-gate-guest-support__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.access-gate-guest-support__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-gate-guest-support__close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.access-gate-guest-support__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.access-gate-guest-support__form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.access-gate-guest-support__form input,
.access-gate-guest-support__form select,
.access-gate-guest-support__form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.92rem;
}

.access-gate-guest-support__status {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.access-gate-guest-support__status--ok {
  color: #6ee7a0;
}

.access-gate-guest-support__status--error {
  color: #f87171;
}
