/* Public gate: split desk preview + login/register. Graphite, no landing sky. */

.lk-gate {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.lk-gate--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh / 0.92);
  overflow-x: hidden;
  zoom: 0.92;
}

.lk-gate__stage {
  position: relative;
  overflow: hidden;
  z-index: 2;
  min-height: 0;
  margin: 20px;
  border-radius: 32px;
  background: var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--bone) 8%, transparent);
  container-type: inline-size;
}

.lk-gate__auralis {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* WebKit/macOS does not clip a composited WebGL canvas to the parent's
     overflow:hidden + border-radius — clip it explicitly here or its square
     corners poke past the 32px radius of .lk-gate__stage. */
  border-radius: inherit;
}
.lk-gate__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
  border-radius: inherit;
}

.lk-gate__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  pointer-events: none;
}
.lk-gate__hero {
  position: relative;
  width: min(96%, 92cqi);
  margin: 0 auto;
  text-align: center;
  pointer-events: none;
}

.lk-gate__hero h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  font-family: var(--display);
  font-size: clamp(36px, 8.5cqi, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bone);
  font-feature-settings: "calt" 0, "liga" 0;
}

.lk-gate__hero-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.28em;
  white-space: nowrap;
}

.lk-gate__rotate {
  display: inline-flex;
  overflow: hidden;
  height: 1.12em;
  min-width: 4ch;
  justify-content: center;
  color: color-mix(in srgb, var(--signal) 58%, var(--bone));
}

.lk-gate__rotate-word {
  display: inline-flex;
  justify-content: center;
}

.lk-gate__rotate-ch {
  display: inline-block;
  will-change: transform, opacity;
}

.lk-gate__rotate-word.is-out .lk-gate__rotate-ch {
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.22s ease;
  transition-delay: calc(var(--i, 0) * 18ms);
}

.lk-gate__rotate-word.is-in .lk-gate__rotate-ch {
  animation: lk-gate-ch-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}

@keyframes lk-gate-ch-in {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-gate__rotate-word.is-out .lk-gate__rotate-ch,
  .lk-gate__rotate-word.is-in .lk-gate__rotate-ch {
    animation: none;
    transition: none;
  }
}

.lk-gate__hero p {
  margin: 16px 0 0;
  font-family: var(--font);
  font-size: clamp(20px, 3.2cqi, 32px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--bone);
}

.lk-gate__marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 52px 0 0;
  padding: 0;
  background: none;
}

.lk-gate__marks > p {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone) 42%, transparent);
}

.lk-gate__tape {
  width: 100%;
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.lk-gate__tape-track {
  display: flex;
  width: max-content;
  animation: lk-gate-tape 32s linear infinite;
}

.lk-gate__tape:hover .lk-gate__tape-track {
  animation-play-state: paused;
}

.lk-gate__marks ul {
  display: flex;
  align-items: center;
  gap: 56px;
  margin: 0;
  padding: 0 28px;
  list-style: none;
  flex-shrink: 0;
}

.lk-gate__marks li {
  font-family: var(--display);
  font-size: clamp(22px, 3.4cqi, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--bone) 72%, transparent);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.lk-gate__tape:hover li {
  color: color-mix(in srgb, var(--bone) 38%, transparent);
}

.lk-gate__marks li:hover {
  color: var(--signal);
}

@keyframes lk-gate-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .lk-gate__tape-track { animation: none; }
}

.lk-gate__pane {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 48px 56px;
  background: var(--ink);
}

.lk-gate__pane > * {
  width: 100%;
  max-width: 400px;
}

.lk-gate__brand {
  --brand-size: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--bone);
}

.lk-gate__brand img,
.lk-gate__brand span {
  width: var(--brand-size);
  height: var(--brand-size);
  flex-shrink: 0;
}

/* An uploaded logo is shown as-is: no plate behind it and no corner rounding, so a transparent
   PNG doesn't end up sitting on a visible rounded tile. The letter fallback below still gets
   its own coloured tile, since a bare initial needs one to read as a mark. */
.lk-gate__brand img {
  object-fit: contain;
  background: none;
  border-radius: 0;
}

.lk-gate__brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--signal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
}

.lk-gate__brand strong {
  display: inline-flex;
  align-items: center;
  height: var(--brand-size);
  font-size: var(--brand-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.lk-gate__tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 0;
}

.lk-gate__tabs a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 12px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bone) 10%, transparent);
  background: var(--panel-2);
  color: var(--stone);
  font-size: 14px;
  font-weight: 700;
}

.lk-gate__tabs a:hover { color: var(--bone); }

.lk-gate__tabs a.is-active {
  color: var(--bone);
  background: color-mix(in srgb, var(--bone) 11%, transparent);
  border-color: color-mix(in srgb, var(--bone) 16%, transparent);
}

.lk-gate__pane h1 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lk-gate__pane--gate {
  background: var(--ink);
  box-shadow: none;
  text-align: center;
}

.lk-gate__pane--gate > * {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.lk-gate__pane--gate h1 {
  margin: 0;
  font-size: clamp(44px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
}

.lk-gate__pane--gate .lk-gate__lede {
  margin: 14px auto 0;
  max-width: 36em;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: color-mix(in srgb, var(--bone) 55%, transparent);
  text-align: center;
}

.lk-gate__pane--gate .lk-gate__legal {
  margin: 20px auto 0;
  width: max-content;
  max-width: 100%;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap;
  color: color-mix(in srgb, var(--bone) 55%, transparent);
  text-align: center;
}

.lk-gate__pane--gate .lk-gate__legal a {
  color: color-mix(in srgb, var(--bone) 88%, transparent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.lk-gate__pane--gate .lk-gate__legal a:hover { color: var(--bone); }

.lk-gate__pane--gate .lk-gate__email {
  height: 64px;
  max-width: 360px;
  margin: 28px auto 0;
  gap: 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--bone) 28%, transparent);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lk-gate__pane--gate .lk-gate__email svg {
  width: 24px;
  height: 24px;
}

.lk-gate__pane--gate .lk-gate__email:hover {
  background: color-mix(in srgb, var(--bone) 5%, transparent);
  border-color: color-mix(in srgb, var(--bone) 45%, transparent);
}

.lk-gate__pane--gate .lk-gate__switch {
  margin-top: 24px;
  font-size: 18px;
  text-align: center;
  color: color-mix(in srgb, var(--bone) 48%, transparent);
}

.lk-gate__pane--gate .lk-gate__switch a {
  margin-left: 6px;
  font-weight: 700;
}

.lk-gate__pane--gate .lk-gate__switch a:hover {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lk-gate__pane--gate .lk-gate__flash {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.lk-gate__pane--flow h1 {
  margin-top: 18px;
  font-size: 26px;
}

.lk-gate__pane--flow > * {
  position: relative;
  z-index: 1;
}

.lk-gate .is-collapsed,
.lk-gate [hidden] {
  display: none !important;
}

.lk-gate__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 28px 0 0;
}

.lk-gate__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--stone);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lk-gate__nav-btn:hover { color: var(--bone); }
.lk-gate__nav-btn svg { display: block; }

.lk-gate__email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  margin-top: 22px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bone) 14%, transparent);
  background: var(--panel-2);
  color: var(--bone);
  font-size: 15px;
  font-weight: 650;
}

.lk-gate__email:hover {
  border-color: color-mix(in srgb, var(--bone) 24%, transparent);
}

.lk-gate__email svg { display: block; }

.lk-gate__switch {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
}

.lk-gate__switch a {
  color: var(--bone);
  font-weight: 650;
}

.lk-gate__switch a:hover { color: var(--signal); }

.lk-gate__legal {
  margin: 16px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.45;
}

.lk-gate__legal a {
  color: var(--bone);
  font-weight: 650;
}

.lk-gate__legal a:hover { color: var(--signal); }

.lk-gate__skip {
  height: 50px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bone) 10%, transparent);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.lk-gate__skip:hover {
  border-color: color-mix(in srgb, var(--bone) 22%, transparent);
}

.lk-gate__pass-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lk-gate__lede {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.4;
}

/* Errors are plain bright-red text — no tinted plate behind them. */
.lk-gate__flash {
  margin: 16px 0 0;
  padding: 0;
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #ff4d4d;
  background: none;
}

/* The success variant keeps its plate — restated here because the base rule above dropped it. */
.lk-gate__flash--ok {
  padding: 8px 10px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--ok) 88%, var(--bone));
  background: color-mix(in srgb, var(--ok) 16%, transparent);
}

.lk-gate__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.lk-gate__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lk-gate__form [data-gate-creds] > .lk-gate__field + .lk-gate__field {
  margin-top: 20px;
}

.lk-gate__field > span:first-child {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--stone);
}

.lk-gate__hint {
  margin: 0;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
}

.lk-gate__rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 2px;
  display: grid;
  gap: 7px;
}

.lk-gate__rules li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: color-mix(in srgb, var(--bone) 38%, transparent);
  transition: color 0.15s ease;
}

.lk-gate__rules li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--bone) 22%, transparent);
  background: transparent;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lk-gate__rules li.is-met {
  color: #86efac;
}

.lk-gate__rules li.is-met::before {
  border-color: #4ade80;
  background-color: #4ade80;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23131315' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2 6.5 11.4 12.8 4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

.lk-gate__field input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--bone) 10%, transparent);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--bone);
  font-size: 15px;
}

.lk-gate__field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--signal) 55%, transparent);
}

.lk-gate__field input:-webkit-autofill,
.lk-gate__field input:-webkit-autofill:hover,
.lk-gate__field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bone);
  caret-color: var(--bone);
  box-shadow: 0 0 0 1000px var(--panel-2) inset;
  transition: background-color 9999s ease-out;
}

.lk-gate__pw {
  position: relative;
  display: block;
}

.lk-gate__pw input { padding-right: 50px; }

.lk-gate__eye {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--stone);
  padding: 0;
}

.lk-gate__eye:hover { color: var(--bone); }
.lk-gate__eye svg { display: block; }

.lk-gate__forgot {
  margin: 14px 0 0;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
}

.lk-gate__forgot a { color: var(--stone); }
.lk-gate__forgot a:hover { color: var(--bone); }

.lk-gate__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.45;
  cursor: pointer;
}

.lk-gate__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--bone) 10%, transparent);
  border-radius: 6px;
  background-color: var(--panel-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  cursor: pointer;
}

.lk-gate__check input:hover {
  border-color: color-mix(in srgb, var(--bone) 22%, transparent);
}

.lk-gate__check input:focus {
  outline: none;
}

.lk-gate__check input:focus-visible {
  border-color: color-mix(in srgb, var(--signal) 55%, transparent);
}

.lk-gate__check input:checked {
  background-color: var(--signal);
  border-color: var(--signal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2 6.5 11.4 12.8 4.6'/%3E%3C/svg%3E");
}

.lk-gate__check a {
  color: var(--bone);
  font-weight: 650;
}

.lk-gate__check a:hover { color: var(--signal); }

.lk-gate__go {
  height: 50px;
  margin-top: 4px;
  overflow: hidden;
  isolation: isolate;
  font-size: 15px;
  font-weight: 650;
}

.lk-gate__go:disabled,
.lk-gate .btn--primary:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  filter: none;
}

#auth-code,
#reset-code {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
}

.lk-gate__again {
  margin: 4px 0 0;
}

.lk-gate__resend {
  margin: 2px 0 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--stone);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lk-gate__resend:hover { color: var(--bone); }

.lk-gate__foot {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
}

.lk-gate__foot a {
  color: var(--bone);
  font-weight: 650;
}

.lk-gate__foot a:hover { color: var(--signal); }

@media (max-width: 900px) {
  .lk-gate--split {
    grid-template-columns: 1fr;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    zoom: 1;
  }
  .lk-gate__stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    margin: 0;
    height: 100%;
    border-radius: 0;
    border-width: 0;
  }
  .lk-gate__stage .lk-gate__hero {
    display: none;
  }
  .lk-gate__stage .lk-gate__copy {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .lk-gate__stage .lk-gate__marks {
    margin-top: 0;
  }
  .lk-gate--flow .lk-gate__stage {
    display: none;
  }
  .lk-gate__pane--flow {
    background: var(--ink);
  }
  .lk-gate__pane {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 0;
    height: 100%;
    justify-content: center;
    padding: 24px 20px 32px;
    box-shadow: none;
    overflow: hidden;
  }
  .lk-gate__pane--flow .lk-gate__brand {
    position: absolute;
    top: 24px;
    left: 50%;
    width: max-content;
    max-width: none;
    transform: translateX(-50%);
  }
  .lk-gate__pane--flow .lk-gate__brand::after {
    content: '';
    position: absolute;
    top: calc(100% + 32px);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: color-mix(in srgb, var(--bone) 30%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    pointer-events: none;
  }
  .lk-gate__pane--gate .lk-gate__legal {
    white-space: normal;
  }
  .lk-gate__pane--gate .lk-gate__email {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Honeypot: off-screen rather than display:none/visibility:hidden, which some bots
   specifically check for and skip. A real visitor never sees or reaches it (also
   aria-hidden + tabindex="-1" in the markup); anything that blind-fills every field on
   the page fills this one too, and the server rejects the submission when it does. */
.lk-gate__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
