/* Skynet One — interactive blue hexagon background */

:root {
  --bg-0: #01040a;
  --bg-1: #031022;
  --bg-2: #071d3b;

  --blue-1: #0a4fff;
  --blue-2: #009dff;
  --blue-3: #35d8ff;
  --cyan: #6eefff;

  --text: #e9f7ff;
  --muted: rgba(205, 232, 255, .58);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-0);
}

body {
  position: relative;
  min-height: 100dvh;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  touch-action: none;
  user-select: none;
}

#hexCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 122, 255, .11), transparent 38%),
    radial-gradient(circle at 50% 120%, rgba(0, 208, 255, .07), transparent 42%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 72%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, .38) 78%, rgba(0, 0, 0, .72) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: .028;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.75,.2,1);
}

.page.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(22px, 3vh, 38px);
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.logo-wrap {
  position: relative;
  width: min(74vw, 760px);
  max-height: 66vh;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 64vh;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(0, 153, 255, .32))
    drop-shadow(0 0 36px rgba(0, 106, 255, .18));
  animation: logoFloat 7s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(57, 211, 255, .20), rgba(0, 110, 255, .09) 36%, transparent 72%);
  filter: blur(24px);
  opacity: .88;
  animation: glowPulse 4.6s ease-in-out infinite;
}

.contact-stack {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.caret-phone {
  animation-delay: .15s;
}

.contact {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: rgba(223, 246, 255, .88);
  text-decoration: none;
  letter-spacing: .065em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(13px, 1.35vw, 18px);
  text-shadow: 0 0 12px rgba(0, 184, 255, .28);
  transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
  user-select: text;
  touch-action: manipulation;
}

.contact:hover {
  color: #fff;
  text-shadow:
    0 0 9px rgba(63, 218, 255, .8),
    0 0 24px rgba(0, 112, 255, .45);
  transform: translateY(-1px);
}

.terminal-prefix {
  color: var(--blue-3);
  opacity: .92;
}

.caret {
  width: .58em;
  height: 1.08em;
  display: inline-block;
  background: rgba(88, 224, 255, .9);
  box-shadow: 0 0 8px rgba(34, 198, 255, .55);
  animation: caretBlink .95s steps(1) infinite;
}

.hint {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .58;
  white-space: nowrap;
  pointer-events: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 107, 255, .10), transparent 33%),
    #01040a;
  transition: opacity .8s ease, visibility .8s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__box {
  width: min(78vw, 430px);
  text-align: center;
}

.loader__title {
  margin-bottom: 18px;
  color: rgba(223, 244, 255, .88);
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.loader__bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(80, 170, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(93, 196, 255, .08);
}

.loader__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-3), #adf7ff);
  box-shadow:
    0 0 8px rgba(0, 157, 255, .7),
    0 0 22px rgba(0, 157, 255, .35);
}

.loader__percent {
  margin-top: 12px;
  color: rgba(159, 213, 255, .74);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .13em;
}

@keyframes logoFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -7px, 0); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(.96); opacity: .62; }
  50%      { transform: scale(1.08); opacity: 1; }
}

@keyframes caretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 700px) {
  .logo-wrap {
    width: min(91vw, 580px);
  }

  .hero {
    gap: 18px;
  }

  .hint {
    font-size: 9px;
    letter-spacing: .16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo-glow,
  .caret {
    animation: none !important;
  }

  .page,
  .loader {
    transition-duration: .2s;
  }
}


/* V5 — phone centering + terminal cursor cleanup */
.contact-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.contact {
  display: inline-flex;
  width: auto;
  max-width: 94vw;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.caret.is-hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .contact-stack {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .contact {
    width: auto;
    max-width: 94vw;
    margin-inline: auto;
    justify-content: center;
    text-align: center;
    font-size: clamp(12px, 3.55vw, 16px);
  }
}
