/* OBORTECH · coming-soon page. No JavaScript, no third-party requests. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/ibm-plex-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #FFFFFF; --ink: #0E0E0E; --dots: #C9CDD2;
  --tile-bg: #F5F6F8; --tile-line: #DADDE1; --tile-ink: #8A8F96;
  --tile-hi: #0E0E0E; --tile-glow: 0 14px 34px -10px rgba(14,14,14,.24); --tile-glow0: 0 0 0 0 rgba(14,14,14,0);
  --sk-a: #E6E8EB; --sk-b: #F8F9FA; --dash: #C9CDD2; --ghost-dot: #A3A7AE;
  --pkt: #0E0E0E; --pkt-glow: 0 0 8px rgba(14,14,14,.35);
  --glow: rgba(210,38,48,.14); --radar: rgba(14,14,14,.28); --orbit: #A3A7AE; --orbit-dot: #0E0E0E; --foot: #5B5F66;
}

* { box-sizing: border-box }
html, body { margin: 0; background: var(--bg) }
body { color: var(--ink); font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100% }

.page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden }

/* dot field (moves with a cheap transform) */
.dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 44%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 44%, #000 0%, transparent 75%) }
.dots-in { position: absolute; left: -26px; top: -26px; right: 0; bottom: 0;
  background-image: radial-gradient(var(--dots) 1.1px, transparent 1.4px); background-size: 26px 26px;
  animation: drift 8s linear infinite }

.head { position: relative; display: flex; align-items: center; padding: 28px clamp(20px, 5vw, 72px) }
.logo { display: block; height: 30px; width: auto }

.main { position: relative; flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(40px, 6vw, 64px); padding: 8px clamp(20px, 5vw, 72px) 40px; text-align: center }

/* hub grid: 3 x 3, also limited by screen height so it fits short / landscape phones */
.grid { --g: clamp(16px, 3.6vw, 36px); width: 440px; max-width: 100%; width: min(100%, 440px, 48vh);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g) }

.ghost { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--dash); border-radius: 6px;
  animation: pop .5s cubic-bezier(.2,1.3,.4,1) var(--i) both, ghost 3s ease-in-out var(--d) infinite }
.ghost i { display: block; width: 6px; height: 6px; background: var(--ghost-dot) }

.tile { position: relative; z-index: 1; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14%; background: var(--tile-bg); border: 1px solid var(--tile-line); border-radius: 6px; color: var(--tile-ink);
  animation: pop .5s cubic-bezier(.2,1.3,.4,1) var(--i) both, flash 3.2s ease-out var(--d) infinite }
.tile svg { display: block; width: 26%; height: auto }
.bars { display: flex; flex-direction: column; gap: 6px }
.bars i { display: block; height: 6px; border-radius: 3px;
  background-image: linear-gradient(90deg, var(--sk-a) 0%, var(--sk-b) 50%, var(--sk-a) 100%); background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite }

.hub { position: relative; z-index: 0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center }
.line { position: absolute }
.line.n { left: 50%; bottom: 100%; height: var(--g); border-left: 1.5px dashed var(--dash) }
.line.s { left: 50%; top: 100%; height: var(--g); border-left: 1.5px dashed var(--dash) }
.line.w { right: 100%; top: 50%; width: var(--g); border-top: 1.5px dashed var(--dash) }
.line.e { left: 100%; top: 50%; width: var(--g); border-top: 1.5px dashed var(--dash) }
.pkt { position: absolute; width: 6px; height: 6px; background: var(--pkt); box-shadow: var(--pkt-glow) }
.pkt.n { left: calc(50% - 3px); top: -6px; animation: up 3.2s cubic-bezier(.4,0,.6,1) var(--d) infinite both }
.pkt.e { right: -6px; top: calc(50% - 3px); animation: right 3.2s cubic-bezier(.4,0,.6,1) var(--d) infinite both }
.pkt.s { left: calc(50% - 3px); bottom: -6px; animation: down 3.2s cubic-bezier(.4,0,.6,1) var(--d) infinite both }
.pkt.w { left: -6px; top: calc(50% - 3px); animation: left 3.2s cubic-bezier(.4,0,.6,1) var(--d) infinite both }
.glow { position: absolute; inset: -30%; border-radius: 50%;
  background-image: radial-gradient(circle, var(--glow) 0%, rgba(210,38,48,0) 62%); animation: glow 3.2s ease-in-out infinite }
.radar { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--radar); animation: radar 3.2s ease-out infinite }
.radar.r2 { animation-delay: 1.6s }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 24s linear infinite }
.orbit circle { fill: none; stroke: var(--orbit); stroke-width: 1; stroke-dasharray: 1.5 4 }
.orbit rect { fill: var(--orbit-dot) }
.mark { position: relative; display: block; width: 58%; height: auto; fill: #D22630 }

/* headline: typed letter by letter */
.title { margin: 0; max-width: 100%; font-weight: 300; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance }
.k { animation: k-in .04s linear var(--t) both, k-cur .066s steps(1) var(--t) }
.caret { display: inline-block; width: .07em; height: 1.02em; margin-left: .05em; vertical-align: -.14em;
  animation: k-in .04s linear var(--t) both, blink 1.05s steps(1) var(--t) infinite }

.foot { position: relative; display: flex; justify-content: center;
  padding: 16px clamp(20px, 5vw, 72px) 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--foot) }

@media (max-width: 600px) {
  .head { padding-top: 20px; padding-bottom: 8px }
  .logo { height: 24px }
}
/* short screens (phone turned sideways) */
@media (max-height: 500px) {
  .head { padding-top: 12px; padding-bottom: 4px }
  .logo { height: 22px }
  .main { gap: 18px; padding-top: 4px; padding-bottom: 10px }
  .foot { padding-top: 6px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) }
}

@keyframes drift { to { transform: translate(26px, 26px) } }
@keyframes pop { from { opacity: 0; transform: scale(.6) } to { opacity: 1; transform: none } }
@keyframes ghost { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@keyframes flash {
  0%, 38% { border-color: var(--tile-line); color: var(--tile-ink); box-shadow: var(--tile-glow0) }
  44% { border-color: var(--tile-hi); color: var(--tile-hi); box-shadow: var(--tile-glow) }
  72%, 100% { border-color: var(--tile-line); color: var(--tile-ink); box-shadow: var(--tile-glow0) } }
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: -100% 0 } }
@keyframes up { 0% { transform: translateY(0); opacity: 0 } 4%, 34% { opacity: 1 } 40%, 100% { transform: translateY(calc(-1 * var(--g))); opacity: 0 } }
@keyframes down { 0% { transform: translateY(0); opacity: 0 } 4%, 34% { opacity: 1 } 40%, 100% { transform: translateY(var(--g)); opacity: 0 } }
@keyframes left { 0% { transform: translateX(0); opacity: 0 } 4%, 34% { opacity: 1 } 40%, 100% { transform: translateX(calc(-1 * var(--g))); opacity: 0 } }
@keyframes right { 0% { transform: translateX(0); opacity: 0 } 4%, 34% { opacity: 1 } 40%, 100% { transform: translateX(var(--g)); opacity: 0 } }
@keyframes glow { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
@keyframes radar { 0% { transform: scale(.7); opacity: .45 } 100% { transform: scale(2.3); opacity: 0 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes k-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes k-cur { from, to { box-shadow: .07em 0 0 0 currentColor } }
@keyframes blink { 0%, 49% { background-color: currentColor } 50%, 100% { background-color: transparent } }

@media (prefers-reduced-motion: reduce) {
  .dots-in, .ghost, .tile, .bars i, .orbit, .glow, .k { animation: none }
  .radar, .pkt { animation: none; opacity: 0 }
  .caret { animation: none; background-color: currentColor }
}
