@font-face {
  font-family: Sora;
  src: url("/assets/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Sora, Arial, sans-serif;
  background: #040812;
  color: #f4f6fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --piece: clamp(48px, 5.2vw, 64px);
  --half-piece: calc(var(--piece) / 2);
  --step: calc(var(--piece) + 3px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at 50% 43%, #0a1120 0%, #040812 65%);
}
.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(40px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.identity {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 100%;
}
.brand { margin: 0; flex: 0 0 auto; }
.brand-symbol {
  display: block;
  width: calc(var(--step) * 4.7);
  height: auto;
  animation: neural-breathe 6s ease-in-out infinite;
}
.data-bridge{position:relative;flex:0 0 112px;width:112px;height:100px;pointer-events:none}
.neural-bridge{display:block;width:100%;height:100%;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 85%,transparent)}
.neural-traces{stroke:#4278bb;stroke-width:.7;opacity:.32}
.neural-pulses{stroke-width:1.8;stroke-linecap:round}
.neural-pulses path{stroke-dasharray:12 188;animation:neural-flow 3s linear infinite}
.neural-pulses path:nth-child(2){animation-delay:-1s}
.neural-pulses path:nth-child(3){animation-delay:-2s}
.data-packet{animation:data-transfer 3.4s linear infinite;opacity:0}
.data-packet:nth-child(2){animation-delay:-1.1s}
.data-packet:nth-child(3){animation-delay:-2.2s}
.data-packet rect{fill:#0c2444;stroke:#477ed3;stroke-width:.7}
.data-packet text{fill:#b4d5ff}
@keyframes data-transfer{0%{transform:translateX(-28px);opacity:0}12%,80%{opacity:.9}100%{transform:translateX(200px);opacity:0}}
.cube-stage {
  position: relative;
  width: calc(var(--step) * 5.8);
  height: calc(var(--step) * 5.8);
  flex: 0 0 auto;
}
.cube-stage::before {
  content: "";
  position: absolute;
  inset: 2%;
  background: radial-gradient(ellipse, #2868f413, #7c4bda09 38%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cube-shadow {
  position: absolute;
  width: 76%;
  height: 16%;
  left: 12%;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #0009, #0000 70%);
  filter: blur(8px);
  pointer-events: none;
}
.cube-halo {
  position: absolute;
  width: 84%;
  height: 15%;
  left: 8%;
  bottom: 3%;
  border-radius: 50%;
  border: 1px solid #5274ea26;
  box-shadow: 0 0 18px #426cf00b, inset 0 0 18px #426cf00b;
  transition: border-color 650ms ease, box-shadow 650ms ease;
}
.cube-halo::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid #607fea14;
  border-radius: 50%;
}
.is-turning .cube-halo { border-color: #6c88ff66; box-shadow: 0 0 24px #426cf030, inset 0 0 24px #426cf018; }
.cube-fallback {
  position: absolute;
  inset: 23%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 9px;
  border: 1px solid #3c4b67;
  background: #101b2e;
}
.cube-fallback img { width: 100%; height: 100%; padding: 7px; border-radius: 5px; background: #1d2b43; }
.loader {
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: clamp(24px, 4vh, 40px);
  border: 1.5px solid #1c263d;
  border-top-color: #168cff;
  border-right-color: #8660ec;
  border-radius: 50%;
  animation: orbit 1.6s linear infinite;
}
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 28px;
  padding: 8px 0;
  color: #9ba8bd;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.045em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.contact:hover { color: #f4f6fb; text-decoration-color: #6085ff; }
.contact:focus-visible { color: #f4f6fb; outline: 2px solid #6085ff; outline-offset: 7px; border-radius: 2px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes neural-flow { from { stroke-dashoffset: 200; opacity: 0; } 12%, 80% { opacity: .85; } to { stroke-dashoffset: 0; opacity: 0; } }
@keyframes neural-breathe { 0%, 100% { filter: drop-shadow(0 0 3px #007bff08); } 50% { filter: drop-shadow(0 0 16px #5d53f53b); } }
@media (max-width: 640px) {
  :root { --piece: clamp(30px, min(11vw, 5.3svh), 52px); }
  .landing { padding-top: max(32px, env(safe-area-inset-top)); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .identity { flex-direction: column; gap: 20px; }
  .cube-stage { width: calc(var(--step) * 5.35); height: calc(var(--step) * 5.35); }
  .loader { margin-top: 16px; width: 24px; height: 24px; }
  .contact { margin-top: 16px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  :root { --piece: 38px; }
  .landing { padding-top: 24px; padding-bottom: 24px; }
  .identity { flex-direction: row; gap: 50px; }
  .cube-stage { width: 220px; height: 220px; }
  .loader { margin-top: 8px; width: 20px; height: 20px; }
  .contact { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .loader, .brand-symbol, .neural-pulses path { animation: none; }
  .neural-pulses { opacity: .25; }
  .contact, .cube-halo { transition: none; }
}
@media (forced-colors: active) {
  .loader { border-color: GrayText; border-top-color: CanvasText; }
  .contact { color: LinkText; }
}

/* Projected SVG avoids cross-browser CSS 3D depth sorting and face clipping. */
.crypto-cube{position:absolute;inset:0;width:100%;height:100%;transform:none;transform-style:flat}
.projected-cube{display:block;width:100%;height:100%;overflow:visible}
.company-summary{max-width:100%;text-align:center;font-size:14px;line-height:1.8;margin:24px 0 0;overflow-wrap:anywhere}
.company-summary span{color:#9ba8bd;font-size:12px}
.contact{margin-top:10px;text-align:center}
@media(max-width:640px){:root{--piece:clamp(22px,9vw,42px)}.identity{width:100%;min-width:0}.brand-symbol{max-width:100%;width:min(64vw,260px)}.cube-stage{width:min(78vw,300px);height:min(78vw,300px)}.company-summary{margin-top:16px}}
@media(max-height:480px) and (orientation:landscape){:root{--piece:clamp(22px,5vw,38px)}.identity{gap:20px}.brand-symbol{width:min(30vw,190px)}.cube-stage{width:min(36vw,210px);height:min(36vw,210px)}.company-summary{margin-top:12px}}

.identity{gap:clamp(8px,1.4vw,20px)}
@media(max-width:640px){.identity{gap:0}.data-bridge{flex:0 0 72px;width:100px;height:72px}.neural-bridge{position:absolute;width:112px;height:90px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg)}}
@media(max-height:480px) and (orientation:landscape){.identity{gap:8px}.data-bridge{flex:0 0 72px;width:72px;height:72px}.neural-bridge{position:static;width:100%;height:100%;transform:none}}
@media(prefers-reduced-motion:reduce){.data-packet{animation:none;opacity:0}.neural-pulses path{animation:none;stroke-dasharray:none;opacity:.4}}
