*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #000000;
  color: #f8f8ff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* Security: Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Prevent drag */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Allow selection only for interactive elements */
a, button, input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Golden particles background effect */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 215, 0, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 193, 7, 0.25), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 235, 59, 0.4), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 215, 0, 0.3), transparent),
    radial-gradient(2px 2px at 90% 40%, rgba(255, 193, 7, 0.25), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(255, 235, 59, 0.35), transparent),
    radial-gradient(2px 2px at 10% 60%, rgba(255, 215, 0, 0.3), transparent);
  background-size: 200% 200%;
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes particleFloat {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 90% 40%, 33% 80%, 10% 60%; }
  50% { background-position: 100% 100%, 0% 0%, 50% 50%, 20% 90%, 10% 60%, 67% 20%, 90% 40%; }
}

main {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.ds-site-header {
  display: none;
}

.ds-logo {
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(255, 193, 7, 0.5),
    0 0 20px rgba(255, 152, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.ds-logo span {
  color: #ffb347;
  text-shadow: 
    0 0 15px rgba(255, 179, 71, 0.6),
    0 0 30px rgba(255, 152, 0, 0.4);
}

.ds-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.ds-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.ds-nav a:hover {
  color: #ffffff;
}

.ds-hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 152, 0, 0.06) 0%, transparent 50%),
    #000000;
  overflow: hidden;
  position: relative;
}

.ds-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(3px 3px at 25% 25%, rgba(255, 215, 0, 0.4), transparent),
    radial-gradient(2px 2px at 75% 75%, rgba(255, 193, 7, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 235, 59, 0.5), transparent);
  background-size: 100% 100%;
  animation: sparkle 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ds-hero-intro {
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.ds-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.ds-hero-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.ds-subcopy {
  margin: 0;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ds-layer-toggle {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 20;
}

.ds-toggle-switch {
  position: relative;
  width: 120px;
  height: 36px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(246, 106, 2, 0.4);
  border-radius: 18px;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: all 300ms ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.ds-toggle-switch[data-layer="l1"] {
  border: 1px solid rgba(246, 106, 2, 0.4);
}

.ds-toggle-switch[data-layer="l1"]:hover {
  border-color: rgba(246, 106, 2, 0.6);
}

.ds-toggle-switch[data-layer="l2"] {
  border: 1px solid rgba(255, 140, 66, 0.4);
}

.ds-toggle-switch[data-layer="l2"]:hover {
  border-color: rgba(255, 140, 66, 0.6);
}

.ds-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 56px;
  height: 30px;
  background: #f66a02;
  border-radius: 15px;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(246, 106, 2, 0.4);
}

.ds-toggle-switch[data-layer="l1"] .ds-toggle-slider {
  background: #f66a02;
  box-shadow: 0 2px 8px rgba(246, 106, 2, 0.4);
}

.ds-toggle-switch[data-layer="l2"] .ds-toggle-slider {
  transform: translateX(60px);
  background: #ff8c42;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.4);
}

.ds-toggle-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 300ms ease;
  z-index: 3;
  pointer-events: none;
}

.ds-toggle-l1 {
  left: 18px;
}

.ds-toggle-l2 {
  right: 18px;
}

.ds-toggle-switch[data-layer="l1"] .ds-toggle-l1,
.ds-toggle-switch[data-layer="l2"] .ds-toggle-l2 {
  color: #fff;
  font-weight: 700;
}

.ds-accordion {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

.ds-panel {
  position: relative;
  flex: 0.3;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  will-change: flex;
  margin-left: -3px; /* Overlap borders to eliminate gaps */
  transition: flex 600ms cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 400ms ease,
    filter 400ms ease,
    z-index 0ms,
    opacity 300ms ease,
    visibility 300ms ease;
  filter: saturate(0.85) contrast(1.0) brightness(0.7);
  outline: none;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 0 0 rgba(255, 193, 7, 0);
  z-index: 1;
  height: 100%;
  min-width: 0;
}

/* Disable flex transitions during layer switching for instant swap */
.ds-accordion.ds-layer-switching .ds-panel {
  transition: box-shadow 400ms ease,
    filter 400ms ease,
    z-index 0ms,
    opacity 300ms ease,
    visibility 300ms ease;
}

/* Blur-in effect for swap panels when switching layers */
.ds-panel.ds-blur-in::after {
  animation: blurInBackground 250ms ease-out;
}

.ds-panel.ds-blur-in.is-active::after {
  animation: blurInBackgroundActive 250ms ease-out;
}

@keyframes blurInBackground {
  from {
    filter: blur(8px);
    opacity: 0.7;
  }
  to {
    filter: blur(2px);
    opacity: 1;
  }
}

@keyframes blurInBackgroundActive {
  from {
    filter: blur(8px);
    opacity: 0.7;
  }
  to {
    filter: blur(0px);
    opacity: 1;
  }
}

.ds-panel:first-child {
  margin-left: 0; /* First panel has no negative margin */
}

.ds-panel[data-hidden="true"] {
  display: none;
}

.ds-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  transition: filter 400ms ease, opacity 400ms ease;
}

.ds-panel.is-active::after {
  filter: blur(0px);
}

/* Orange border for inactive panels - appears on hover */
.ds-panel:not(.is-active) {
  border: 3px solid transparent;
  transition: flex 600ms cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 400ms ease,
    filter 400ms ease,
    z-index 0ms,
    opacity 300ms ease,
    visibility 300ms ease,
    border 400ms ease;
}

.ds-panel:not(.is-active):hover {
  border: 3px solid #f66a02;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(246, 106, 2, 0.3),
    0 0 20px rgba(246, 106, 2, 0.15),
    0 0 0 1px rgba(246, 106, 2, 0.3);
}

/* L2 panels use lighter orange for hover borders */
.ds-panel[data-layer="l2"]:not(.is-active):hover {
  border: 3px solid #ff8c42;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(255, 140, 66, 0.3),
    0 0 20px rgba(255, 140, 66, 0.15),
    0 0 0 1px rgba(255, 140, 66, 0.3);
}

.ds-panel:focus-visible {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 0 3px rgba(246, 106, 2, 0.6);
}

/* L2 panels use lighter orange for focus */
.ds-panel[data-layer="l2"]:focus-visible {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 0 3px rgba(255, 140, 66, 0.6);
}

.ds-panel.is-active {
  flex: 20;
  border-radius: 0;
  border: none;
  filter: saturate(0.85) contrast(1.0) brightness(0.7) blur(0px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(246, 106, 2, 0.2),
    0 0 0 2px rgba(246, 106, 2, 0.4);
  z-index: 10;
}

/* L2 active panels use lighter orange */
.ds-panel[data-layer="l2"].is-active {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 140, 66, 0.2),
    0 0 0 2px rgba(255, 140, 66, 0.4);
}

.ds-panel:not(.is-active) {
  flex: 2.5;
  border-radius: 0;
  filter: saturate(0.85) contrast(1.0) brightness(0.7);
}


.ds-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 30% 30%, rgba(255, 193, 7, 0.15), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 70% 0%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
    linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2), transparent);
  mix-blend-mode: normal;
  z-index: 1;
}
 
.ds-panel.is-active .ds-overlay {
  background:
    radial-gradient(ellipse 1200px 600px at 30% 30%, rgba(255, 193, 7, 0.2), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 70% 0%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6)),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15), transparent);
}

.ds-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 72px;
  z-index: 3;
  opacity: 0;
  transition: opacity 400ms ease 200ms;
  pointer-events: none;
}

.ds-panel.is-active .ds-content {
  opacity: 1;
  pointer-events: auto;
}

.ds-content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(246, 106, 2, 0.4);
  font-weight: 900;
  line-height: 1.1;
}

.ds-content p {
  margin: 0 0 24px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  min-width: 180px;
  border-radius: 0;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 0 rgba(246, 106, 2, 0.5);
  transition: box-shadow 200ms ease, filter 200ms ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* All buttons use signature orange with white text */
.ds-panel .ds-btn {
  background: #f66a02;
  cursor: pointer;
  pointer-events: auto;
}

.ds-btn:hover {
  filter: brightness(1.15);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(246, 106, 2, 0.5);
}


.ds-peekLabel {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 18px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.05em;
  text-transform: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  transition: opacity 300ms ease, color 300ms ease;
  pointer-events: none;
  gap: 8px;
}

/* L1 panels - original dark orange for icon text link hover */
.ds-panel[data-layer="l1"]:hover .ds-peekLabel {
  color: #f66a02;
}

.ds-panel[data-layer="l1"]:hover .ds-peekLabel .ds-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(98%) saturate(2000%) hue-rotate(0deg) brightness(1.1);
}

/* L2 panels - lighter orange for icon text link hover */
.ds-panel[data-layer="l2"]:hover .ds-peekLabel {
  color: #ff8c42;
}

.ds-panel[data-layer="l2"]:hover .ds-peekLabel .ds-icon {
  filter: brightness(0) saturate(100%) invert(68%) sepia(89%) saturate(2142%) hue-rotate(345deg) brightness(1.15);
}

.ds-peekLabel .ds-icon {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
  opacity: 0.95;
  transition: filter 300ms ease;
}

.ds-panel.is-active .ds-peekLabel {
  opacity: 0;
  pointer-events: none;
}

.ds-panel:not(.is-active) .ds-peekLabel {
  opacity: 1;
}

@media (max-width: 1024px) {
  .ds-peekLabel {
    font-size: 0; /* Hide text */
    justify-content: center;
    padding: 14px;
  }

  .ds-peekLabel .ds-icon {
    font-size: 1.5em; /* Larger icon for better visibility */
    margin-right: 0; /* Remove margin since text is hidden */
  }
}

/* Above 1024px: Show both icon and text */
@media (min-width: 1025px) {
  .ds-peekLabel {
    font-size: clamp(11px, 1.4vw, 14px); /* Ensure text is visible */
    justify-content: flex-start; /* Text alignment */
  }

  .ds-peekLabel .ds-icon {
    font-size: 1.2em; /* Normal icon size */
    margin-right: 8px; /* Space between icon and text */
  }
}

@media (max-width: 900px) {
  .ds-site-header {
    padding-inline: 16px;
  }

  .ds-hero {
    padding: 0;
  }

  .ds-accordion {
    gap: 0;
    padding: 0;
  }

  .ds-panel.is-active {
    flex: 25;
  }
  
  .ds-panel:not(.is-active) {
    flex: 1.8;
    border-radius: 0;
  }

  .ds-content p {
    max-width: 38ch;
  }
}

@media (max-width: 640px) {
  .ds-site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ds-nav {
    font-size: 0.82rem;
  }

  .ds-hero {
    min-height: 100vh;
    padding: 0;
    overflow: visible !important;
  }

  .ds-accordion {
    flex-direction: column;
    gap: 0 !important;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    position: relative;
    z-index: 1;
    margin-top: -160px;
  }

  .ds-panel {
    border-radius: 0;
    width: 100%;
    height: auto;
    overflow: visible !important;
    position: relative !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .ds-panel:first-child {
    margin-left: 0 !important;
  }

  .ds-panel.is-active {
    flex: 1;
    min-height: 400px;
    order: 1; /* Active panel first */
    z-index: 10;
  }

  .ds-panel:not(.is-active) {
    flex: 0 0 60px;
    min-height: 60px;
    height: 60px;
    max-height: 60px;
    order: 2; /* Inactive panels stack at bottom */
    overflow: hidden !important;
    z-index: 10;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative !important;
  }


  /* Show panel backgrounds only on active panels */
  .ds-panel.is-active::after {
    display: block !important;
    opacity: 1 !important;
  }

  /* Hide background on inactive panels - only show peekLabels */
  .ds-panel:not(.is-active)::after {
    display: none !important;
  }

  /* Hide overlay on inactive panels */
  .ds-panel:not(.is-active) .ds-overlay {
    display: none !important;
  }

  /* Show overlay on active panels */
  .ds-panel.is-active .ds-overlay {
    display: block !important;
  }

  /* Ensure peekLabels are visible above everything on mobile - positioned at top, no spacing, aligned left */
  .ds-panel:not(.is-active) .ds-peekLabel {
    z-index: 200 !important;
    position: absolute !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    pointer-events: auto !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
  }

  .ds-layer-toggle {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px;
    margin-bottom: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ds-toggle-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .ds-peekLabel {
    font-size: 14px;
    background: #f66a02;
    color: #ffffff;
    padding: 8px 12px;
  }

  .ds-peekLabel .ds-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
  }

  /* L1 panels - original dark orange for mobile hover */
  .ds-panel[data-layer="l1"]:hover .ds-peekLabel {
    color: #ffffff;
    background: #f66a02;
  }

  .ds-panel[data-layer="l1"]:hover .ds-peekLabel .ds-icon {
    filter: brightness(0) invert(1);
  }

  /* L2 panels - lighter orange for mobile hover */
  .ds-panel[data-layer="l2"]:hover .ds-peekLabel {
    color: #ffffff;
    background: #ff8c42;
  }

  .ds-panel[data-layer="l2"]:hover .ds-peekLabel .ds-icon {
    filter: brightness(0) invert(1);
  }
}


