/* ==========================================================================
   Trinova Aether — shared stylesheet
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: #f9f9fb;
  color: #1a1c1d;
  overflow-x: hidden;
}

::selection {
  background: #d7c2f6;
  color: #2a0053;
}

/* Focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #7442b0;
  outline-offset: 3px;
  border-radius: 4px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

/* ---------- Glass surfaces ---------- */
.glass-panel,
.glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-nav {
  background: rgba(249, 249, 251, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.glass-nav.is-scrolled {
  background: rgba(249, 249, 251, 0.86);
  box-shadow: 0 20px 40px rgba(142, 92, 203, 0.08);
}

.hover-lift {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(116, 66, 176, 0.16);
}

.ambient-glow {
  position: absolute;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(215, 194, 246, 0.35) 0%, rgba(249, 249, 251, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Scroll reveal ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ---------- Shader / 3D canvas wrapper ---------- */
.canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link.active {
  color: #5b2796;
  font-weight: 700;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #7442b0;
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.open {
  max-height: 640px;
}

/* ---------- Marks / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(215, 194, 246, 0.2);
  color: #5b2796;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.chip:hover {
  background: rgba(215, 194, 246, 0.4);
}
.chip.chip-active {
  background: #7442b0;
  color: #ffffff;
}

/* ---------- Timeline ---------- */
.timeline-track {
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(116, 66, 176, 0.05), rgba(116, 66, 176, 0.4), rgba(116, 66, 176, 0.05));
}
@media (min-width: 768px) {
  .timeline-track::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #f9f9fb;
  border: 2px solid #7442b0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7442b0;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}

/* ---------- Form fields ---------- */
.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #cdc3d3;
  border-radius: 0.75rem;
  padding: 16px 20px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #1a1c1d;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.field-input::placeholder {
  color: #7c7483;
}
.field-input:focus {
  outline: none;
  border-color: #7442b0;
  box-shadow: 0 0 0 4px rgba(116, 66, 176, 0.12);
}

/* ---------- Utility: line clamp ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Decorative abstract art (replaces stock photography) ---------- */
.aether-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(215, 194, 246, 0.55) 0%, rgba(215, 194, 246, 0) 45%),
    radial-gradient(circle at 80% 75%, rgba(142, 92, 203, 0.35) 0%, rgba(142, 92, 203, 0) 50%),
    linear-gradient(155deg, #efe7fb 0%, #f9f9fb 45%, #e9e2f6 100%);
}
.aether-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(116, 66, 176, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 66, 176, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}
.aether-art .aether-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(2px);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #7442b0;
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
