/* ============================================================
   ORBISOJAS — Core Shared Styles
   Imported by all pages after tokens.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   SKIP LINK & FOCUS
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1.2rem;
  background: var(--amber);
  color: var(--midnight);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ============================================================
   WORD REVEAL
   ============================================================ */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}

/* ============================================================
   TYPEWRITER — [data-typeon]
   ============================================================ */
[data-typeon] {
  visibility: hidden;
}
[data-typeon].typeon-ready {
  visibility: visible;
}
.typeon-out {
  white-space: pre-wrap;
}
.typeon-cursor {
  display: inline-block;
  color: var(--gold-bright);
  text-shadow: var(--glow-gold-soft);
  margin-left: 2px;
  animation: typeonBlink 0.9s steps(2, start) infinite;
}
.typeon-done .typeon-cursor {
  animation: typeonBlink 1.2s steps(2, start) infinite;
  opacity: 0.7;
}
@keyframes typeonBlink {
  to { visibility: hidden; }
}

/* ============================================================
   CUSTOM CURSOR (oj-cursor)
   Activated by shared/js/cursor.js when pointer:fine and motion ok.
   ============================================================ */
.oj-cursor-active,
.oj-cursor-active * { cursor: none !important; }
/* Keep native cursor where input matters */
.oj-cursor-active input,
.oj-cursor-active textarea,
.oj-cursor-active select { cursor: text !important; }

.oj-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}
.oj-cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--gold), 0 0 18px var(--gold-glow);
  transition: width 0.25s var(--ease), height 0.25s var(--ease);
}
.oj-cursor-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  animation: ojCursorSpin 8s linear infinite;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s ease;
}
.oj-cursor--hover .oj-cursor-ring {
  width: 44px; height: 44px;
  border-color: var(--gold-bright);
  border-style: solid;
  border-width: 1.5px;
}
.oj-cursor--hover .oj-cursor-dot {
  width: 3px; height: 3px;
}
.oj-cursor--text .oj-cursor-dot {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: var(--gold-bright);
}
.oj-cursor--text .oj-cursor-ring {
  opacity: 0;
}
@keyframes ojCursorSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.oj-cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .word { opacity: 1 !important; transform: none !important; }
  .scene-panel { opacity: 1 !important; transform: none !important; }
  .hero-divider { opacity: 1 !important; }
}
