/* OS Communication v12 — restored custom motion layer */

/* Falcon emblem */
.art .v12-core-falcon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px #00e5ffcc) drop-shadow(0 0 26px #0077ff99);
  animation: v12-falcon-float 4.2s ease-in-out infinite;
}
@keyframes v12-falcon-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 6px)) scale(1.05); }
}

/* PCB intro timings and boot meter */
.pcb-intro .pcb-beam { animation-duration: .85s !important; }
.pcb-intro .pcb-traces path { animation-duration: .9s !important; animation-delay: .1s !important; }
.pcb-intro .pcb-floor { animation-delay: .22s !important; }
.pcb-intro .pcb-hud { animation-delay: .65s !important; }
.pcb-intro .pcb-logo img,
.pcb-intro .pcb-logo i {
  animation-duration: .95s !important;
  animation-delay: .78s !important;
}
.pcb-intro .pcb-logo::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -24%;
  height: 45%;
  background: radial-gradient(ellipse at center, #00e5ff55, transparent 70%);
  filter: blur(10px);
  opacity: 0;
  animation: pcb-hud-in .6s 1.2s forwards;
  pointer-events: none;
}
.pcb-intro .pcb-status { animation-delay: 1.45s !important; }
.pcb-intro .pcb-pulse {
  animation-delay: 2.15s !important;
  animation-duration: .75s !important;
}
.v12-boot-meter {
  display: inline-block;
  margin-inline-start: 10px;
  padding: 2px 8px;
  border: 1px solid #00e5ff66;
  border-radius: 999px;
  color: #e6fbff;
  background: #00e5ff1a;
  font: 700 11px/1.4 monospace;
  letter-spacing: .12em;
}

/* Scroll-story lock ring */
.sculpture-logo { transition: filter .35s ease; }
.scroll-story.v12-logo-locked .sculpture-logo {
  filter: drop-shadow(0 0 18px #00e5ffaa) drop-shadow(0 0 42px #0077ff77);
}
.v12-lock-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64%, 58svh, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed #00e5ff55;
  transform: translate(-50%, -50%) scale(.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.scroll-story.v12-logo-locked .v12-lock-ring {
  opacity: .85;
  animation: v12-lock-spin 22s linear infinite;
}
@keyframes v12-lock-spin {
  from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  to { transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

/* Local page transition */
.v12-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #072245 0%, #020612 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s cubic-bezier(.4, 0, .2, 1);
}
.v12-transition.is-active { opacity: 1; pointer-events: all; }
.v12-transition img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 0 22px #00e5ffcc);
  transform: scale(.86);
  transition: transform .24s ease;
}
.v12-transition.is-active img { transform: scale(1.04); }
.v12-transition::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, #e6fbff, #00e5ff, transparent);
  box-shadow: 0 0 24px #00e5ff;
  transform: scaleX(0);
  transition: transform .26s ease;
}
.v12-transition.is-active::after { transform: scaleX(1); }

/* Pointer/touch press feedback */
.v12-ripple-host { position: relative; overflow: hidden; }
.v12-click-ripple {
  position: absolute;
  left: var(--click-x);
  top: var(--click-y);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6fbff99;
  box-shadow: 0 0 0 1px #00e5ff66, 0 0 20px #00e5ffcc;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: v12-ripple .55s ease-out forwards;
}
@keyframes v12-ripple {
  to { opacity: 0; transform: translate(-50%, -50%) scale(16); }
}
.v12-clicked { transform: translateY(1px); }

/* Shared quality layer */
.contact-dock a[data-v12-wa] {
  border: 1px solid #00e5ff66;
  box-shadow: 0 8px 24px #0077ff33;
}
.v12-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.v12-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.legal-links {
  display: inline-flex;
  gap: 16px;
}
.legal-links a:hover {
  color: #66d5ff;
}
.message-count {
  display: block;
  margin-top: -2px;
  color: #7899ad;
  direction: ltr;
  text-align: left;
  font: 11px/1.5 Arial, sans-serif;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #ff8f9e;
  box-shadow: 0 0 0 3px #ff516c1c;
}
.legal-page {
  max-width: 900px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 80px 5% 120px;
}
.legal-page h1 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.5;
}
.legal-page h2 {
  margin-top: 42px;
  font-size: 26px;
}
.legal-page p,
.legal-page li {
  color: #a8bfce;
  font-size: 16px;
  line-height: 2;
}
.legal-page ul {
  padding-right: 24px;
}
.legal-page .button {
  margin-top: 28px;
}
@media (max-width: 760px) {
  body {
    padding-bottom: 72px;
  }
  .actions {
    align-items: stretch;
  }
  .actions .button {
    width: min(100%, 420px);
  }
  .sector-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sector-tabs::-webkit-scrollbar {
    display: none;
  }
  .sector-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .contact-dock {
    right: 12px;
    left: 12px;
    justify-content: space-between;
  }
  .contact-dock > a {
    flex: 1;
    text-align: center;
  }
  .legal-links {
    width: 100%;
    justify-content: space-between;
  }
  .legal-page {
    padding-top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v12-reveal { opacity: 1; transform: none; transition: none; }
  .v12-core-falcon,
  .v12-lock-ring { animation: none !important; }
  .v12-transition { display: none !important; }
}
.no-motion .v12-reveal { opacity: 1; transform: none; transition: none; }
.no-motion .v12-core-falcon,
.no-motion .v12-lock-ring { animation: none !important; }

@media (max-width: 760px) {
  .art .v12-core-falcon { width: 76px; }
}
