/* ═══════════════════════════════════════════
   Stellar Kinetics — Shared Design System
   ═══════════════════════════════════════════ */

:root {
  --sk-nav-h: 64px;
  --sk-nav-h-shrunk: 52px;
}

/* ── Page Transition Overlay ── */
#sk-transition {
  position: fixed;
  inset: 0;
  background: #141313;
  z-index: 9999;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.58s cubic-bezier(0.76, 0, 0.24, 1);
}
#sk-transition.out {
  transform: translateX(101%);
}

/* ── Nav Shrink ── */
.sk-nav {
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease !important;
}
.sk-nav.shrunk {
  height: 52px !important;
  background: rgba(14,14,14,0.97) !important;
  box-shadow: 0 1px 32px rgba(0,0,0,0.6);
}

/* ── Scroll Reveal ── */
.sk-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sk-reveal.visible { opacity: 1; transform: translateY(0); }

.sk-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sk-reveal-left.visible { opacity: 1; transform: translateX(0); }

.sk-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sk-reveal-right.visible { opacity: 1; transform: translateX(0); }

.sk-reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sk-reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.sk-d1 { transition-delay: 0.08s; }
.sk-d2 { transition-delay: 0.16s; }
.sk-d3 { transition-delay: 0.24s; }
.sk-d4 { transition-delay: 0.32s; }
.sk-d5 { transition-delay: 0.40s; }

/* ── Divider Line Reveal ── */
.sk-line {
  height: 1px;
  background: rgba(201,198,197,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sk-line.visible { transform: scaleX(1); }

/* ── Image Zoom on Hover ── */
.sk-img-wrap { overflow: hidden; }
.sk-img-wrap img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.sk-img-wrap:hover img { transform: scale(1.04); }

/* ── Card Hover ── */
.sk-card {
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sk-card:hover {
  border-color: rgba(201,198,197,0.3) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── Button Press Feel ── */
.sk-press { transition: transform 0.15s ease, opacity 0.15s ease; }
.sk-press:active { transform: scale(0.97); }

/* ── Counter Number ── */
.sk-counter {
  font-variant-numeric: tabular-nums;
}

/* ── Cursor Glow (subtle) ── */
.sk-cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,198,197,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

/* ── Section Label ── */
.sk-label {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  color: #c9c6c5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sk-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #c9c6c5;
  flex-shrink: 0;
}

/* ── Shop Product Card ── */
.sk-product {
  display: block;
  transition: opacity 0.3s ease;
}
.sk-product:hover { opacity: 0.85; }

/* ── Footer ── */
.sk-footer {
  background: #0e0e0e;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Responsive Section Spacing ── */
@media (max-width: 768px) {
  .py-section-gap { padding-top: 80px !important; padding-bottom: 80px !important; }
  .mb-section-gap { margin-bottom: 80px !important; }
  .pt-section-gap { padding-top: 80px !important; }
  .pb-section-gap { padding-bottom: 80px !important; }
}

/* ── Form Inputs ── */
.sk-input {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(201,198,197,0.14) !important;
  border-radius: 1px;
  padding: 14px 18px !important;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #e5e2e1 !important;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
.sk-input::placeholder { color: rgba(196,199,199,0.3) !important; }
.sk-input:focus {
  border-color: rgba(201,198,197,0.45) !important;
  background: rgba(255,255,255,0.07) !important;
}
.sk-input option { background: #1c1b1b; color: #e5e2e1; }

/* ── Form Error Messages ── */
.sk-field-error { display: none; font-family:'Geist',sans-serif; font-size:11px; color:#ff6b6b; letter-spacing:.1em; margin-top:8px; }
.sk-field-error.visible { display: block; }

/* ── Mobile Navigation ── */
.sk-nav-actions { display: flex; align-items: center; gap: 20px; }

.sk-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .sk-hamburger { display: none !important; } }

.sk-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #e5e2e1;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease, width 0.35s ease;
  transform-origin: center;
}
.sk-hamburger span:nth-child(3) { width: 66%; }
.sk-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sk-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sk-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 100%; }

.sk-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 48;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  pointer-events: none;
}
.sk-mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.sk-nav.shrunk + .sk-mobile-menu { top: 52px; }
@media (min-width: 1024px) { .sk-mobile-menu { display: none !important; } }

.sk-mobile-menu-inner {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
}
.sk-mobile-link {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: #c4c7c7;
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, padding-left 0.2s;
}
.sk-mobile-link:hover { color: #fff; padding-left: 8px; }
.sk-mobile-link.active { color: #fff; }
.sk-mobile-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 18px;
  background: #fff;
  color: #000;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.sk-mobile-cta:hover { background: #c9c6c5; }

.sk-btn-desktop { display: none !important; }
@media (min-width: 1024px) { .sk-btn-desktop { display: inline-block !important; } }

/* ── Scroll-to-Top ── */
.sk-scroll-top {
  position: fixed;
  bottom: 40px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(201,198,197,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.sk-scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.sk-scroll-top:hover { background: rgba(50,50,50,0.95); }

/* ── Social Links ── */
.sk-social-link {
  color: rgba(255,255,255,0.25);
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
}
.sk-social-link:hover { color: rgba(255,255,255,0.75); }

/* ── Nav Link Underline Animation ── */
.sk-link {
  position: relative;
}
.sk-link:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(201,198,197,0.6);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sk-link:not(.active):hover::after {
  width: 100%;
}

/* ── Section Reveal with Stagger on Children ── */
.sk-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.sk-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.sk-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.sk-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.sk-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ── Selection Color ── */
::selection { background: rgba(201,198,197,0.2); color: #fff; }

/* ── Cart Drawer ── */
#sk-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
#sk-cart-overlay.open { opacity: 1; pointer-events: all; }

#sk-cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 400px; max-width: 100vw; height: 100%;
  background: #0e0e0e;
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
}
#sk-cart-drawer.open { transform: translateX(0); }

.sk-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sk-cart-title {
  font-family: 'Geist', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: #e5e2e1;
}
#sk-cart-close {
  background: none; border: none; cursor: pointer;
  color: #8e9192; display: flex; align-items: center;
  padding: 4px; transition: color 0.2s;
}
#sk-cart-close:hover { color: #e5e2e1; }

#sk-cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.sk-cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 220px; gap: 14px;
}
.sk-cart-empty .material-symbols-outlined { font-size: 36px; color: rgba(255,255,255,0.08); }
.sk-cart-empty p {
  font-family: 'Geist', sans-serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.25em; color: rgba(255,255,255,0.18);
}

.sk-cart-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sk-cart-item:last-child { border-bottom: none; }

.sk-cart-item-img {
  width: 68px; height: 68px; object-fit: cover;
  flex-shrink: 0; background: #1c1b1b;
}
.sk-cart-no-img { width: 68px; height: 68px; background: #1c1b1b; flex-shrink: 0; }

.sk-cart-item-info { flex: 1; min-width: 0; }
.sk-cart-item-title {
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: #e5e2e1; font-weight: 500; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-cart-item-price {
  font-family: 'Geist', sans-serif; font-size: 11px;
  color: #8e9192; letter-spacing: 0.05em;
}
.sk-cart-item-controls {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.sk-qty-btn {
  width: 24px; height: 24px; border: 1px solid rgba(255,255,255,0.1);
  background: none; color: #e5e2e1; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.sk-qty-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.sk-qty-val {
  font-family: 'Geist', sans-serif; font-size: 12px; color: #e5e2e1;
  width: 20px; text-align: center;
}
.sk-remove-btn {
  background: none; border: none; cursor: pointer; padding: 0; margin-left: 4px;
  font-family: 'Geist', sans-serif; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2); transition: color 0.2s;
}
.sk-remove-btn:hover { color: rgba(255,100,100,0.8); }

.sk-cart-item-total {
  font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 600;
  color: #e5e2e1; flex-shrink: 0;
}

#sk-cart-footer {
  padding: 20px 24px 28px; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sk-cart-subtotal-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.sk-cart-subtotal-row > span:first-child {
  font-family: 'Geist', sans-serif; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.25em; color: #8e9192;
}
#sk-cart-subtotal {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 24px;
  font-weight: 700; color: #e5e2e1;
}
.sk-cart-note {
  font-family: 'Geist', sans-serif; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.18); margin-bottom: 18px;
}
.sk-cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px; background: #fff; color: #141313;
  font-family: 'Geist', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.25em;
  text-decoration: none; transition: background 0.25s;
}
.sk-cart-checkout-btn:hover { background: #c9c6c5; }
.sk-cart-checkout--disabled { opacity: 0.35; pointer-events: none; }

/* Cart icon in nav */
#sk-cart-icon-btn {
  position: relative; background: none; border: none;
  cursor: pointer; padding: 4px; display: flex; align-items: center;
  margin-right: 4px;
}
#sk-cart-badge {
  position: absolute; top: -3px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: #c9c6c5; color: #141313;
  border-radius: 999px;
  font-family: 'Geist', sans-serif; font-size: 9px; font-weight: 700;
  align-items: center; justify-content: center;
}

/* ── Mobile Global Fixes ── */
@media (max-width: 767px) {
  /* Cursor glow is desktop-only — disable on touch */
  .sk-cursor-glow { display: none; }

  /* Cart drawer: full-width on small screens */
  #sk-cart-drawer { width: 100vw; }

  /* Scroll-top button: smaller margin on mobile */
  .sk-scroll-top { bottom: 24px; right: 16px; }

  /* Reduce spec grid font on DUQM sections */
  .font-headline-md.text-\[17px\] { font-size: 15px; }

  /* Ensure no horizontal overflow anywhere */
  section { overflow-x: hidden; }
}

/* ── Team Card Border Left Accent ── */
.sk-team-accent {
  position: relative;
}
.sk-team-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: #c9c6c5;
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.sk-team-accent:hover::before { height: 100%; }
