@font-face {
  font-family: "SiteFont";
  src: url("assets/fonts/HelveticaNeueLTPro-55Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --red: #8f0000;
  --beige: #d8c7aa;

  --white-muted: rgba(255, 255, 255, 0.54);
  --white-bright: rgba(255, 255, 255, 0.98);
  --white-border: rgba(255, 255, 255, 0.26);
  --white-border-hover: rgba(255, 255, 255, 0.62);
  --white-bg: rgba(255, 255, 255, 0.03);

  --black-muted: rgba(0, 0, 0, 0.58);
  --black-bright: rgba(0, 0, 0, 0.92);
  --black-border: rgba(0, 0, 0, 0.26);
  --black-border-hover: rgba(0, 0, 0, 0.62);
  --black-bg: rgba(0, 0, 0, 0.03);

  --white-glow-core: rgba(255, 255, 255, 0.72);
  --white-glow-soft: rgba(255, 255, 255, 0.24);
  --white-glow-wide: rgba(255, 255, 255, 0.11);
  --white-glow-far: rgba(255, 255, 255, 0.052);

  --black-glow-core: rgba(0, 0, 0, 0.42);
  --black-glow-soft: rgba(0, 0, 0, 0.18);
  --black-glow-wide: rgba(0, 0, 0, 0.08);
  --black-glow-far: rgba(0, 0, 0, 0.035);

  --font-size: 12px;
  --letter-spacing: 0.08em;

  --slot-width: 148px;
  --slot-height: 28px;
  --slot-gap: 8px;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);

  --background-fade: 2600ms;
  --content-fade: 1800ms;
  --hover-fast: 180ms;
  --hover-slow: 720ms;
  --stagger: 26ms;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--black);
}

body {
  font-family: "SiteFont", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--font-size);
  font-weight: 400;
  letter-spacing: var(--letter-spacing);
  text-transform: uppercase;
  color: var(--white-muted);
  background-color: var(--black);
  overflow: hidden;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition:
    background-color var(--background-fade) var(--ease-inout),
    color var(--background-fade) var(--ease-inout);
}

body[data-view="home"] {
  color: var(--white-muted);
  background-color: var(--black);
}

body[data-view="contact"] {
  color: var(--black-muted);
  background-color: var(--beige);
}

body[data-view="services"] {
  color: var(--white-muted);
  background-color: var(--red);
}

button,
input,
textarea {
  appearance: none;
  border-radius: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
}

.site {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.content {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--content-fade) var(--ease-inout),
    visibility var(--content-fade) var(--ease-inout);
}

body[data-view="contact"] .content-contact,
body[data-view="services"] .content-services {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* One permanent navigation component */

.central-nav {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: var(--slot-width) var(--slot-width) var(--slot-width);
  gap: var(--slot-gap);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.nav-slot,
.password-input {
  position: relative;
  width: var(--slot-width);
  min-width: var(--slot-width);
  height: var(--slot-height);
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--white-border);
  background: rgba(255, 255, 255, 0.015);
  color: var(--white-muted);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  outline: none;
  cursor: pointer;
  transition:
    color var(--hover-fast) var(--ease-out),
    border-color var(--hover-fast) var(--ease-out),
    background var(--hover-fast) var(--ease-out),
    box-shadow var(--hover-slow) var(--ease-out),
    opacity 420ms var(--ease-out),
    visibility 420ms var(--ease-out);
}

body[data-view="contact"] .nav-slot,
body[data-view="contact"] .password-input {
  color: var(--black-muted);
  border-color: var(--black-border);
  background: rgba(0, 0, 0, 0.012);
}

.nav-slot::after,
.password-input::after {
  content: "";
  position: absolute;
  top: 0;
  left: -44%;
  z-index: 0;
  width: 42%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 35%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.04) 65%,
      transparent 100%
    );
  filter: blur(8px);
  transform: skewX(-14deg);
}

body[data-view="contact"] .nav-slot::after {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.04) 35%,
      rgba(0, 0, 0, 0.18) 50%,
      rgba(0, 0, 0, 0.04) 65%,
      transparent 100%
    );
}

.nav-slot:hover,
.nav-slot:focus-visible,
.nav-slot.is-current,
.nav-slot.is-active,
.password-input:hover,
.password-input:focus {
  color: var(--white-bright);
  border-color: var(--white-border-hover);
  background: var(--white-bg);
  box-shadow:
    0 0 1px var(--white-glow-core),
    0 0 8px var(--white-glow-soft),
    0 0 22px var(--white-glow-wide),
    0 0 48px var(--white-glow-far);
}

body[data-view="contact"] .nav-slot:hover,
body[data-view="contact"] .nav-slot:focus-visible,
body[data-view="contact"] .nav-slot.is-current,
body[data-view="contact"] .nav-slot.is-active {
  color: var(--black-bright);
  border-color: var(--black-border-hover);
  background: var(--black-bg);
  box-shadow:
    0 0 1px var(--black-glow-core),
    0 0 8px var(--black-glow-soft),
    0 0 22px var(--black-glow-wide),
    0 0 48px var(--black-glow-far);
}

/* Sweep frame left-to-right on hover in AND hover out */
.nav-slot:hover::after,
.nav-slot:focus-visible::after,
.nav-slot.is-current::after,
.nav-slot.is-active::after,
.nav-slot.is-leaving::after {
  animation: light-sweep 920ms var(--ease-out) forwards;
}

@keyframes light-sweep {
  0% { left: -44%; opacity: 0; }
  18% { opacity: 0.2; }
  62% { opacity: 0.1; }
  100% { left: 108%; opacity: 0; }
}

/* Text splitting, stable centering */

.slot-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--slot-height);
  line-height: var(--slot-height);
  white-space: nowrap;
}

.char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--slot-height);
  color: inherit;
  line-height: var(--slot-height);
  text-shadow: none;
  transition:
    color var(--hover-fast) var(--ease-out),
    text-shadow var(--hover-slow) var(--ease-out);
  transition-delay: calc(var(--i) * var(--stagger));
}

.char.is-space {
  width: 0.45em;
  color: transparent;
  text-shadow: none;
}

.nav-slot:hover .char,
.nav-slot:focus-visible .char,
.nav-slot.is-current .char,
.nav-slot.is-active .char {
  text-shadow:
    0 0 1px var(--white-glow-core),
    0 0 4px var(--white-glow-soft),
    0 0 14px var(--white-glow-wide),
    0 0 32px var(--white-glow-far);
}

body[data-view="contact"] .nav-slot:hover .char,
body[data-view="contact"] .nav-slot:focus-visible .char,
body[data-view="contact"] .nav-slot.is-current .char,
body[data-view="contact"] .nav-slot.is-active .char {
  text-shadow:
    0 0 1px var(--black-glow-core),
    0 0 4px var(--black-glow-soft),
    0 0 14px var(--black-glow-wide),
    0 0 32px var(--black-glow-far);
}

/* Hover off always left-to-right, same direction as hover on */
.nav-slot.is-leaving .char {
  transition-delay: calc(var(--i) * var(--stagger));
}

/* Slot visibility states */

body[data-state="intro"] .nav-left,
body[data-state="intro"] .nav-right {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-state="intro"] .nav-center {
  opacity: 1;
  visibility: visible;
}

body[data-state="menu"] .nav-left,
body[data-state="menu"] .nav-center,
body[data-state="menu"] .nav-right,
body[data-state="unlocked"] .nav-left,
body[data-state="unlocked"] .nav-center,
body[data-state="unlocked"] .nav-right,
body[data-view="contact"] .nav-left,
body[data-view="contact"] .nav-center,
body[data-view="contact"] .nav-right,
body[data-view="services"] .nav-left,
body[data-view="services"] .nav-center,
body[data-view="services"] .nav-right {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.password-form {
  position: absolute;
  left: calc(var(--slot-width) + var(--slot-gap));
  top: 0;
  width: var(--slot-width);
  height: var(--slot-height);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 520ms var(--ease-out),
    visibility 520ms var(--ease-out);
}

body[data-state="password"] .password-form {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

body[data-state="password"] .nav-center {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-input {
  cursor: text;
  caret-color: var(--white-bright);
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
  transition: opacity 120ms var(--ease-out);
}

.password-input:focus::placeholder,
.password-input.has-value::placeholder {
  opacity: 0 !important;
  color: transparent !important;
}

/* Content */

.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  min-height: 100vh;
  padding: 32px 32px 96px;
  color: var(--white-muted);
  font-size: 12pt;
  line-height: 1.48;
  text-transform: none;
}

.services-grid p {
  margin: 0 0 1em;
}

.contact-form {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  line-height: 1;
  color: rgba(0, 0, 0, 0.62);
}

.field input,
.field textarea {
  width: 100%;
  height: var(--slot-height);
  padding: 0 12px;
  border: 1px solid var(--black-border);
  background: rgba(0, 0, 0, 0.015);
  color: var(--black-bright);
  caret-color: var(--black-bright);
  outline: none;
  resize: none;
  box-shadow: none;
  transition:
    border-color var(--hover-fast) var(--ease-out),
    background var(--hover-fast) var(--ease-out),
    box-shadow var(--hover-slow) var(--ease-out);
}

.field textarea {
  padding-top: 7px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--black-border-hover);
  box-shadow:
    0 0 1px var(--black-glow-core),
    0 0 8px var(--black-glow-soft),
    0 0 22px var(--black-glow-wide),
    0 0 48px var(--black-glow-far);
}

/* Responsive */

@media (max-width: 900px) {
  .contact-form,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --slot-width: min(272px, calc(100vw - 44px));
  }

  .central-nav {
    grid-template-columns: var(--slot-width);
    grid-template-rows: var(--slot-height) var(--slot-height) var(--slot-height);
  }

  .password-form {
    left: 0;
    top: calc(var(--slot-height) + var(--slot-gap));
  }

  body[data-state="intro"] .central-nav {
    grid-template-rows: var(--slot-height);
  }

  body[data-state="intro"] .nav-center {
    grid-row: 1;
  }

  .contact-form,
  .services-grid {
    padding: 24px 22px 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}


/* ------------------------------------------------------------
   V5 — PROTECTED CENTRAL BUTTON PERIMETER
   The fixed central navigation has a protected band.
   Content and fields are kept outside this band.
------------------------------------------------------------ */

:root {
  --center-safe-height: 132px;
  --center-safe-half: calc(var(--center-safe-height) / 2);
  --page-side-padding: 32px;
  --page-bottom-padding: 96px;
}

.central-nav {
  z-index: 100;
}

/* Services: content stays in the upper safe area and never passes under the central buttons. */
.services-grid {
  padding:
    var(--page-side-padding)
    var(--page-side-padding)
    var(--page-bottom-padding);
  align-content: start;
}

@media (min-width: 901px) {
  .services-grid {
    max-height: calc(50vh - var(--center-safe-half));
    overflow: hidden;
  }

  .services-grid > div {
    max-height: calc(50vh - var(--center-safe-half) - var(--page-side-padding));
    overflow: auto;
    padding-right: 10px;
  }

  .services-grid > div::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* Contact: fields stay in the upper safe area and never pass under the central buttons. */
.contact-form {
  padding:
    var(--page-side-padding)
    var(--page-side-padding)
    var(--page-bottom-padding);
  align-content: start;
}

@media (min-width: 901px) {
  .contact-form {
    max-height: calc(50vh - var(--center-safe-half));
    overflow: visible;
  }
}

/* Mobile: allow scrolling content while keeping the center protected. */
@media (max-width: 700px) {
  :root {
    --center-safe-height: 236px;
    --page-side-padding: 22px;
    --page-bottom-padding: 120px;
  }

  .services-grid,
  .contact-form {
    padding:
      var(--page-side-padding)
      var(--page-side-padding)
      var(--page-bottom-padding);
  }

  .content-contact,
  .content-services {
    overflow: auto;
  }
}


/* ------------------------------------------------------------
   V6 — PASSWORD FRAME GAP FIX
   The PASSWORD button stays visible during the delay.
   When the input appears, it crossfades immediately, so the center frame never disappears.
------------------------------------------------------------ */

.password-form {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-state="password"] .password-form {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0ms !important;
}

body[data-state="password"] .nav-center {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ------------------------------------------------------------
   V6 — CONTACT PAGE USES WHITE TYPOGRAPHY / WHITE GLOW
------------------------------------------------------------ */

body[data-view="contact"] {
  color: var(--white-muted) !important;
}

body[data-view="contact"] .nav-slot,
body[data-view="contact"] .password-input {
  color: var(--white-muted) !important;
  border-color: var(--white-border) !important;
  background: rgba(255, 255, 255, 0.015) !important;
}

body[data-view="contact"] .nav-slot::after {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 35%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.04) 65%,
      transparent 100%
    ) !important;
}

body[data-view="contact"] .nav-slot:hover,
body[data-view="contact"] .nav-slot:focus-visible,
body[data-view="contact"] .nav-slot.is-current,
body[data-view="contact"] .nav-slot.is-active {
  color: var(--white-bright) !important;
  border-color: var(--white-border-hover) !important;
  background: var(--white-bg) !important;
  box-shadow:
    0 0 1px var(--white-glow-core),
    0 0 8px var(--white-glow-soft),
    0 0 22px var(--white-glow-wide),
    0 0 48px var(--white-glow-far) !important;
}

body[data-view="contact"] .nav-slot:hover .char,
body[data-view="contact"] .nav-slot:focus-visible .char,
body[data-view="contact"] .nav-slot.is-current .char,
body[data-view="contact"] .nav-slot.is-active .char {
  text-shadow:
    0 0 1px var(--white-glow-core),
    0 0 4px var(--white-glow-soft),
    0 0 14px var(--white-glow-wide),
    0 0 32px var(--white-glow-far) !important;
}

body[data-view="contact"] .field span,
body[data-view="contact"] .field input,
body[data-view="contact"] .field textarea {
  color: var(--white-bright) !important;
  caret-color: var(--white-bright) !important;
}

body[data-view="contact"] .field span {
  opacity: 0.72;
}

body[data-view="contact"] .field input,
body[data-view="contact"] .field textarea {
  border-color: var(--white-border) !important;
  background: rgba(255, 255, 255, 0.015) !important;
}

body[data-view="contact"] .field input:focus,
body[data-view="contact"] .field textarea:focus {
  border-color: var(--white-border-hover) !important;
  box-shadow:
    0 0 1px var(--white-glow-core),
    0 0 8px var(--white-glow-soft),
    0 0 22px var(--white-glow-wide),
    0 0 48px var(--white-glow-far) !important;
}


/* ------------------------------------------------------------
   V6 — MOBILE SAFE AREA AROUND FIXED CENTER BUTTONS
   A fixed center element cannot make text naturally wrap around it.
   On mobile we constrain the content to a scrollable top safe area,
   so it never passes under the central stacked buttons.
------------------------------------------------------------ */

@media (max-width: 700px) {
  .content-contact,
  .content-services {
    overflow: hidden !important;
  }

  .services-grid,
  .contact-form {
    position: absolute;
    top: var(--page-side-padding);
    left: var(--page-side-padding);
    right: var(--page-side-padding);
    width: auto;
    min-height: 0;
    height: calc(50vh - (var(--center-safe-height) / 2) - (var(--page-side-padding) * 1.5));
    max-height: calc(50vh - (var(--center-safe-height) / 2) - (var(--page-side-padding) * 1.5));
    padding: 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .services-grid {
    display: block !important;
  }

  .services-grid > div {
    margin-bottom: 1em;
  }

  .services-grid::-webkit-scrollbar,
  .contact-form::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}


/* ------------------------------------------------------------
   SEQUENCE + SOFTER HOVER FIX
   Base: user-provided V6.
------------------------------------------------------------ */

/* Restore open sequence:
   1. PASSWORD
   2. CONTACT
   3. HOTLINE SERVICES
*/
.access-module.is-open .home-actions .button {
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 0;
  transform: translateY(2px);
  animation: button-in 1100ms var(--ease-out) forwards !important;
}

.access-module.is-open .home-actions .button:nth-child(2) {
  animation-delay: 0ms !important;
}

.access-module.is-open .home-actions .button:nth-child(1) {
  animation-delay: 900ms !important;
}

.access-module.is-open .home-actions .button:nth-child(3) {
  animation-delay: 1400ms !important;
}

/* Once in password mode, all side buttons remain available. */
.access-module.is-password-mode .home-actions .button {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  animation: none !important;
}

/* Softer hover: no letter-by-letter glow.
   All letters glow together, all at once. */
.button:hover .char,
.button:focus-visible .char,
.button.is-current .char,
.button.is-active .char,
.number-wrap:hover .char,
.number-wrap:focus-visible .char,
.nav-slot:hover .char,
.nav-slot:focus-visible .char,
.nav-slot.is-current .char,
.nav-slot.is-active .char {
  transition-delay: 0ms !important;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.42),
    0 0 4px rgba(255, 255, 255, 0.13),
    0 0 12px rgba(255, 255, 255, 0.065) !important;
}

/* Hover off also all at once, no letter sequence. */
.button.is-leaving .char,
.number-wrap.is-leaving .char,
.nav-slot.is-leaving .char,
.char {
  transition-delay: 0ms !important;
}

/* Softer frame glow on dark/red pages */
.button:hover,
.button:focus-visible,
.button.is-current,
.button.is-active,
.number-wrap:hover,
.number-wrap:focus-visible,
.nav-slot:hover,
.nav-slot:focus-visible,
.nav-slot.is-current,
.nav-slot.is-active {
  box-shadow:
    0 0 1px rgba(255, 255, 255, 0.38),
    0 0 6px rgba(255, 255, 255, 0.11),
    0 0 16px rgba(255, 255, 255, 0.045),
    0 0 32px rgba(255, 255, 255, 0.025) !important;
}

/* Softer frame sweep */
.button::after,
.number-wrap::after,
.nav-slot::after {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.025) 35%,
      rgba(255, 255, 255, 0.11) 50%,
      rgba(255, 255, 255, 0.025) 65%,
      transparent 100%
    ) !important;
  filter: blur(7px) !important;
}

/* Contact page: keep the same white soft glow. */
body[data-view="contact"] .button:hover,
body[data-view="contact"] .button:focus-visible,
body[data-view="contact"] .button.is-current,
body[data-view="contact"] .button.is-active,
body[data-view="contact"] .nav-slot:hover,
body[data-view="contact"] .nav-slot:focus-visible,
body[data-view="contact"] .nav-slot.is-current,
body[data-view="contact"] .nav-slot.is-active {
  box-shadow:
    0 0 1px rgba(255, 255, 255, 0.38),
    0 0 6px rgba(255, 255, 255, 0.11),
    0 0 16px rgba(255, 255, 255, 0.045),
    0 0 32px rgba(255, 255, 255, 0.025) !important;
}

body[data-view="contact"] .button:hover .char,
body[data-view="contact"] .button:focus-visible .char,
body[data-view="contact"] .button.is-current .char,
body[data-view="contact"] .button.is-active .char,
body[data-view="contact"] .nav-slot:hover .char,
body[data-view="contact"] .nav-slot:focus-visible .char,
body[data-view="contact"] .nav-slot.is-current .char,
body[data-view="contact"] .nav-slot.is-active .char {
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.42),
    0 0 4px rgba(255, 255, 255, 0.13),
    0 0 12px rgba(255, 255, 255, 0.065) !important;
}

/* Remove any left-to-right character stagger globally. */
.char {
  transition-delay: 0ms !important;
}

/* HOTLINE WebGL background layer */
#hotline-game-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

#unity-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #000;
  opacity: 1;
}

#hotline-game-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 1;
  transition: opacity 10000ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body.is-game-reveal #hotline-game-cover {
  opacity: 0;
}

body.is-game-fadeback #hotline-game-cover {
  opacity: 1;
}

.site {
  position: relative;
  z-index: 10;
}

@media (max-width: 767px) {
  #hotline-game-layer {
    display: none;
  }
}

/* ------------------------------------------------------------
   HOTLINE NEXT — first-click password choreography
   Flow:
   intro number click -> password-reveal -> menu.
   Second click on PASSWORD -> real password input.
------------------------------------------------------------ */

/* During reveal, the real password input must not appear. */
body[data-state="password-reveal"] .password-form {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Central frame stays visible at all times.
   JS changes the text from the phone number to PASSWORD immediately. */
body[data-state="password-reveal"] .nav-center {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

/* Side buttons are rendered as real buttons, but disabled during reveal. */
body[data-state="password-reveal"] .nav-left,
body[data-state="password-reveal"] .nav-right {
  visibility: visible !important;
  pointer-events: none !important;
  will-change: opacity, transform;
}

/* CONTACT fades in over one full second immediately after the click. */
body[data-state="password-reveal"] .nav-left {
  animation: hotline-side-button-fade 1000ms linear both !important;
  animation-delay: 0ms !important;
}

/* HOTLINE SERVICES fades in over one full second after CONTACT is visible. */
body[data-state="password-reveal"] .nav-right {
  animation: hotline-side-button-fade 1000ms linear both !important;
  animation-delay: 1000ms !important;
}

/* Normal menu: same visual state, interactions restored. */
body[data-state="menu"] .nav-left,
body[data-state="menu"] .nav-center,
body[data-state="menu"] .nav-right {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: none;
  transform: none;
  filter: none;
}

/* True password input mode. */
body[data-state="password"] .nav-center {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-state="password"] .password-form {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Linear, readable 1-second fade. */
@keyframes hotline-side-button-fade {
  0% {
    opacity: 0;
    transform: translateY(1px);
  }

  25% {
    opacity: 0.10;
    transform: translateY(0.75px);
  }

  50% {
    opacity: 0.35;
    transform: translateY(0.5px);
  }

  75% {
    opacity: 0.70;
    transform: translateY(0.25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------------------------------------------
   HOTLINE NEXT — game ESC hint and web pause state
------------------------------------------------------------ */

#hotline-game-esc-hint {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 8;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font: inherit;
  font-size: var(--button-font-size, 11px);
  letter-spacing: var(--button-letter-spacing, 0.08em);
  text-transform: uppercase;
  color: currentColor;
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 800ms;
}

body.is-game-playing.is-game-esc-hint-visible:not(.is-game-paused) #hotline-game-esc-hint {
  opacity: 0.72;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

body.is-game-playing:not(.is-game-paused) {
  cursor: none;
}

body.is-game-paused {
  cursor: auto;
}


/* HOTLINE NEXT — Unity pause/resume click target */
body.is-game-paused #hotline-game-layer {
  pointer-events: auto;
}

body.is-game-paused #unity-canvas {
  cursor: pointer;
}


/* HOTLINE NEXT — keep cursor hidden over site overlay while game is playing */
body.is-game-playing:not(.is-game-paused),
body.is-game-playing:not(.is-game-paused) .site,
body.is-game-playing:not(.is-game-paused) .central-nav,
body.is-game-playing:not(.is-game-paused) .nav-slot,
body.is-game-playing:not(.is-game-paused) .button,
body.is-game-playing:not(.is-game-paused) button {
  cursor: none !important;
}

/* HOTLINE NEXT — keep contact content white during fade-out */
.content-contact {
  color: var(--white-muted) !important;
}

.content-contact .field span,
.content-contact .field input,
.content-contact .field textarea {
  color: var(--white-bright) !important;
  caret-color: var(--white-bright) !important;
}

.content-contact .field span {
  opacity: 0.72;
}

.content-contact .field input,
.content-contact .field textarea {
  border-color: var(--white-border) !important;
  background: rgba(255, 255, 255, 0.015) !important;
}

.content-contact .field input:focus,
.content-contact .field textarea:focus {
  border-color: var(--white-border-hover) !important;
  box-shadow:
    0 0 1px var(--white-glow-core),
    0 0 8px var(--white-glow-soft),
    0 0 22px var(--white-glow-wide);
}
