/* Enter demo · eight-digit access gate · transition into the Intelligence Core. Website tokens, canonical orange only. */
.cta .btn.demo { background: rgba(255, 255, 255, .06); gap: 8px; }
.cta .btn.demo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 4, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#gate[hidden] { display: none; }
.gate-card { position: relative; width: min(420px, 100%); padding: 30px 26px 22px; border-radius: 22px; color: #f4f1ec; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 50%), rgba(14, 12, 11, .92); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.gate-card .lk { width: 150px; height: auto; margin: 0 auto 10px; display: block; }
.gate-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #ff8a4c; }
.gate-card h2 { font-size: 24px; font-weight: 500; margin: 8px 0 6px; letter-spacing: -.01em; }
.gate-t { color: #cdc6bc; font-size: 15px; }
.gate-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #f4f1ec; cursor: pointer; font-size: 15px; }
.pin { display: flex; justify-content: center; gap: 10px; margin: 20px 0 8px; cursor: text; }
.pin span { width: 42px; height: 52px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.pin span.on::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #f4f1ec; }
.pin span.cur { border-color: #fc5609; box-shadow: 0 0 0 1px rgba(252, 86, 9, .35); }
.pin.bad span { border-color: #ff7a6b; }
.pin.ok span { border-color: #6fc79a; }
.pin.shake { animation: pinShake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes pinShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
#pin-in { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; top: 40%; border: 0; padding: 0; caret-color: transparent; }
#pin-in:focus-visible + .pin span.cur, .pin.focus span.cur { outline: 2px solid #ff8a4c; outline-offset: 2px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px auto 6px; max-width: 300px; }
.keypad button { min-height: 52px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #f4f1ec; font: 500 20px/1 var(--display, Manrope, sans-serif); cursor: pointer; font-variant-numeric: tabular-nums; }
.keypad button:hover { border-color: rgba(252, 86, 9, .55); }
.keypad button.sm { font-size: 13px; font-weight: 600; color: #cdc6bc; }
.keypad button:disabled { opacity: .4; cursor: not-allowed; }
.gate-msg { min-height: 22px; margin-top: 8px; font-size: 14px; color: #cdc6bc; }
.gate-msg.bad { color: #ff9b8f; } .gate-msg.ok { color: #8fdcb3; }
.gate-fine { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: #9a938a; line-height: 1.6; }
.gate-fine b { color: #ff8a4c; font-weight: 500; }
#warp { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 46%, rgba(255, 178, 122, .95) 0, rgba(252, 86, 9, .55) 14%, rgba(10, 8, 7, 1) 52%); transform: scale(.2); }
html.warping #warp { animation: warp 1.15s cubic-bezier(.6, 0, .2, 1) forwards; }
html.warping #stage { transition: transform 1.15s cubic-bezier(.6, 0, .2, 1), filter 1.15s; transform: scale(1.4); filter: brightness(1.5); }
html.warping .scene, html.warping .cta-d, html.warping #hint { transition: opacity .5s; opacity: 0; }
@keyframes warp { 0% { opacity: 0; transform: scale(.2); } 45% { opacity: .9; } 100% { opacity: 1; transform: scale(2.4); } }
#demo-frame { position: fixed; inset: 0; z-index: 99; width: 100%; height: 100%; border: 0; background: #070707; opacity: 0; transition: opacity .6s; }
#demo-frame.in { opacity: 1; }
#entry-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; padding: 10px 16px; border-radius: 12px; background: rgba(14, 12, 11, .92); border: 1px solid rgba(255, 255, 255, .14); color: #f4f1ec; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .pin.shake { animation: none; }
  html.warping #warp { animation: none; opacity: 1; transform: none; transition: opacity .2s; background: #0a0807; }
  html.warping #stage { transform: none; filter: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Slow devices (globe.js marks html.gl-lite): the website's glass panels over the moving globe stop re-blurring it every
   frame and become slightly more opaque instead. Fast devices are unchanged. */
.gl-lite .card, .gl-lite #decision, .gl-lite .cta .btn, .gl-lite #gate { backdrop-filter: none; -webkit-backdrop-filter: none }
.gl-lite .card { background-color: rgba(18, 16, 15, .88) }
.gl-lite #decision { background-color: rgba(14, 12, 11, .95) }
.gl-lite .cta .btn { background-color: rgba(20, 18, 17, .85) }
.gl-lite #gate { background-color: rgba(8, 7, 7, .9) }
/* audit 6 Nov 2026 (visual review V05): at 360 px the six code boxes made the card wider than the screen. The card never
   exceeds the screen; the boxes shrink to fit (at least 34 px each). */
#gate { grid-template-columns: minmax(0, 1fr) }
.gate-card { box-sizing: border-box; width: min(420px, 100%); justify-self: center; padding-left: clamp(14px, 5vw, 26px); padding-right: clamp(14px, 5vw, 26px) }
.pin { gap: clamp(6px, 2vw, 10px) }
.pin span { width: clamp(34px, 11vw, 42px) }
/* eight code boxes fit the dialog from a 320 px phone to a desktop */
.pin { gap: clamp(4px, 1.2vw, 6px) }
.pin span { width: clamp(26px, 8.2vw, 38px); height: 50px }

/* Contact: enquiries are taken on LinkedIn (owner decision 6 Nov 2026); the same dialog card as the access gate */
#contact { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; background: rgba(5, 4, 4, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#contact[hidden] { display: none; }
.gl-lite #contact { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgba(8, 7, 7, .9) }
.contact-go { margin: 22px 0 6px; }
.contact-go a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: #fc5609; color: #0d1011; font-weight: 600; text-decoration: none; }
.contact-go a:hover { background: #ff6a24; } .contact-go a:focus-visible { outline: 2px solid #ff8a4c; outline-offset: 3px; }

/* phones: the tagline and signature sit over the moving globe scene; a soft shade under the letters keeps them steady and legible */
@media (max-width: 1099px) { .kicker, .signature { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .45); } }

/* the website's lines reveal in sequence (app.js adds .rv-on at each line's moment); the browser runs the motion at the
   screen's own rate, so it stays smooth while the globe is still loading or draws fewer frames on a phone */
html.js .rv { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1.1s cubic-bezier(.33, 1, .68, 1), transform 1.1s cubic-bezier(.33, 1, .68, 1), filter 1.1s cubic-bezier(.33, 1, .68, 1); }
html.js .rv.rv-on { opacity: 1; transform: none; filter: none; }
html.js .lockup.rv { transform: none; filter: none; }
@media (max-width: 1099px) { html.js .rv { filter: none; } }   /* phones: no blur on text (costly to animate there) */
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; filter: none; transition: none; } }

/* demo.orvum.com: only the private prototype's entrance (the globe and the access code), no website around it */
.gate-only #wires, .gate-only .cta-d, .gate-only .scene, .gate-only #hint, .gate-only #golink { display: none !important; }
.gate-only .gate-x { display: none; }
.gate-only #gate { background: rgba(5, 4, 4, .32); }

/* after a correct code the card steps back into the light before the warp (site main.ts success) */
#gate .gate-card { transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .5s ease, filter .5s ease; }
#gate.leaving { background: rgba(5, 4, 4, 0); transition: background .5s ease; }
#gate.leaving .gate-card { transform: scale(.92) translateY(-8px); opacity: 0; filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { #gate .gate-card { transition: none; } }
/* the warp hides the whole website, also the lines that the reveal has switched on (.rv-on would otherwise keep them visible) */
html.warping .scene, html.warping .cta-d, html.warping #hint, html.warping .cta-d.rv.rv-on { opacity: 0 !important; transition: opacity .45s ease !important; }
