/* cortexnode.ai gateway (CORTEXNODE_SITE_GATEWAY_PLAN_20261104). Tokens from cortex40.css. No external requests. */
html { background: var(--cx-obsidian); }
body.gate { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--cx-font); color: var(--cx-text); background-repeat: no-repeat; -webkit-font-smoothing: antialiased; }
.gate__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(32px, 6vh, 64px); padding: max(48px, env(safe-area-inset-top)) var(--cx-inset) 32px; }
.gate__brand { text-align: center; }
.gate__x { width: clamp(96px, 18vw, 148px); height: auto; display: block; margin: 0 auto 18px; overflow: visible; }
.gate__word { margin: 0; font-weight: 300; font-size: clamp(34px, 7vw, 56px); letter-spacing: 0.32em; padding-left: 0.32em; }
.gate__tag { margin: 12px 0 0; font: var(--cx-type-caption); font-size: clamp(10px, 1.6vw, 12px); letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--cx-secondary); }
.gate__doors { width: 100%; max-width: 880px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gate__doors { grid-template-columns: 1fr 1fr; } }
.gate__door { display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 26px 24px; text-decoration: none; color: inherit;
  transition: transform var(--cx-dur-exit) var(--cx-ease-luxe), outline-color var(--cx-dur-exit) var(--cx-ease-luxe); }
.gate__door--universe { --cx-accent: var(--cx-layer-cortex); }
.gate__door--elite { --cx-accent: var(--cx-text); }
.gate__title { font-weight: 300; font-size: clamp(24px, 3.4vw, 30px); letter-spacing: 0.06em; color: var(--cx-text); }
.gate__copy { font: var(--cx-type-body); color: var(--cx-secondary); max-width: 34ch; }
.gate__go { margin-top: auto; font: 600 12px/1 var(--cx-font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--cx-sapphire); }
.gate__door--elite .gate__go { color: var(--cx-text); }
.gate__door:hover, .gate__door:focus-visible { transform: translateY(-2px); outline-color: rgba(255, 255, 255, 0.22); }
.gate__door:focus-visible { outline: 2px solid var(--cx-sapphire); outline-offset: 3px; }
.gate__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 22px var(--cx-inset) max(22px, env(safe-area-inset-bottom));
  font: 500 12px/1.4 var(--cx-font); color: var(--cx-tertiary); }
.gate__foot a { color: var(--cx-secondary); text-decoration: none; }
.gate__foot a:hover { color: var(--cx-text); }

/* Entry: the X resolves (God Mode intro timings), then the doors rise. Usable within 1 s. */
@keyframes gate-orbit { from { stroke-dasharray: 0 1; } to { stroke-dasharray: 1 0; } }
@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gate-blade { 0% { opacity: 0; } 40% { opacity: 1; filter: drop-shadow(0 0 10px #3d8fff); } 100% { opacity: 1; filter: drop-shadow(0 0 4px #3d8fff); } }
.gate__orbit { animation: gate-orbit var(--cx-dur-line-draw) var(--cx-ease-luxe) both; }
.gate__slash { animation: gate-fade var(--cx-dur-fade-in) ease-out both; }
.gate__blade { animation: gate-blade var(--cx-dur-emblem-resolve) var(--cx-ease-luxe) 120ms both; }
.gate__spark { animation: gate-fade var(--cx-dur-flare) ease-out 700ms both; }
.gate__word, .gate__tag { animation: gate-rise var(--cx-dur-fade-in) var(--cx-ease-luxe) 250ms both; }
.gate__door { animation: gate-rise var(--cx-dur-fade-in) var(--cx-ease-luxe) 400ms both; }
.gate__door--elite { animation-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  .gate__orbit, .gate__slash, .gate__blade, .gate__spark, .gate__word, .gate__tag, .gate__door { animation: none; }
  .gate__door { transition: none; }
}
