/* ============================================================
   KURO — shared styles
   Kurolabs precision engineering studio
   ============================================================ */

::selection {
  background: #c1c1ff;
  color: #131313;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #131313;
  color: #e5e2e1;
  font-family: 'Geist', system-ui, sans-serif;
  overflow-x: hidden;
}

/* --- Structural grid (visible 1px markers, desktop only) --- */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #1a1a1a 1px, transparent 1px),
    linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
  background-size: 8.333333% 100%, 100% 128px;
  z-index: 10;
  opacity: 0.5;
}

/* --- Material symbols tuning --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* --- Scrolling technical wall --- */
@keyframes kuro-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-scroll {
  display: flex;
  width: max-content;
  animation: kuro-scroll 40s linear infinite;
}

/* --- Underline hover (links) --- */
.line-hover {
  position: relative;
}
.line-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #c1c1ff;
  transition: width 0.3s ease;
}
.line-hover:hover::after {
  width: 100%;
}

/* --- Nav active state --- */
[data-nav] {
  position: relative;
}
[data-nav][data-active='true'] {
  color: #e5e2e1;
}
[data-nav][data-active='true']::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #c1c1ff;
}

/* --- Mobile menu panel --- */
.mobile-panel {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- Form fields --- */
.kuro-field {
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.kuro-field:focus {
  border-color: #c1c1ff !important;
  box-shadow: 0 0 0 1px rgba(193, 193, 255, 0.25);
}
select.kuro-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23988e90' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-scroll { animation: none; }
  .mobile-panel { transition: none; }
}
