* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #07090e;
  color: #f1f5f9;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* 🖼️ Hero Gallery Showcase Section */
.root {
  --thumb-scale: 0.11;
  --thumb-gap: 14px;
  --thumb-bottom: 28px;
  --zoom-duration: 0.8s;
  --zoom-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: #0b0b0f;
  color: #fff;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  width: 100%;
}

@media (width <= 640px) {
  .root {
    --thumb-scale: 0.16;
    --thumb-gap: 10px;
    --thumb-bottom: 20px;
  }
}

.gallery {
  height: 100%;
}

.track {
  height: 100%;
  overflow: visible !important;
}

.item {
  inset: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  transform: none !important;
  width: auto !important;
}

.item[data-active="true"] {
  z-index: 1 !important;
}

.item[data-active="false"] {
  z-index: 10 !important;
}

.slide {
  border-radius: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  position: absolute;
  transform: translate(0, 0) scale(1);
  transition:
    transform var(--zoom-duration) var(--zoom-ease),
    border-radius var(--zoom-duration) var(--zoom-ease),
    filter 0.25s ease;
  will-change: transform;
}

.item[data-active="false"] .slide {
  border-radius: 48px;
  filter: brightness(0.7);
  transform: translate(
      calc(var(--offset) * (var(--thumb-scale) * 100vw + var(--thumb-gap))),
      calc((50vh - var(--thumb-scale) * 50vh) - var(--thumb-bottom))
    )
    scale(var(--thumb-scale));
}

.item[data-active="false"] .slide:hover {
  filter: brightness(1);
}

.image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.thumbButton {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  inset: 0;
  padding: 0;
  position: absolute;
}

.rail {
  align-items: flex-start;
  background: linear-gradient(90deg, rgb(7 9 14 / 85%) 0%, rgb(7 9 14 / 45%) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  inset: 0 auto 0 0;
  justify-content: center;
  max-width: min(540px, 75%);
  padding: 0 3.5rem 0 3rem;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

@media (width <= 640px) {
  .rail {
    max-width: 92%;
    padding: 0 1.5rem;
  }
}

.content {
  animation: content-in 0.6s var(--zoom-ease) calc(var(--zoom-duration) * 0.4) backwards;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.tag-badge-hero {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kicker {
  font-size: 0.82rem;
  margin: 0;
  color: #94a3b8;
  letter-spacing: 1px;
  font-weight: 500;
}

.title {
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.description {
  color: rgb(241 245 249 / 88%);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Home Return Button in Hero Rail */
.home-btn-wrap {
  margin-top: 0.5rem;
  pointer-events: auto;
}

.home-return-btn {
  appearance: none;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0f9ff;
  font-family: 'Prompt', 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.65rem 1.35rem;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 180, 216, 0.2);
}

.home-return-btn svg {
  transition: transform 0.25s ease;
  color: #38bdf8;
}

.home-return-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5), 0 0 20px rgba(56, 189, 248, 0.4);
}

.home-return-btn:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

.controls {
  display: flex;
  gap: 0.75rem;
  pointer-events: auto;
}

.navBtn {
  align-items: center;
  appearance: none;
  backdrop-filter: blur(8px);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 3rem;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
  width: 3rem;
}

.navBtn:hover:not(:disabled) {
  background: rgb(255 255 255 / 22%);
  border-color: rgb(255 255 255 / 40%);
}

.navBtn:disabled {
  cursor: default;
  opacity: 0.35;
}

.visuallyHidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* 🏛️ Top Left Floating Brand Header & Back to Portal Link */
.top-brand-bar {
  position: absolute;
  top: 2rem;
  left: 3rem;
  z-index: 20;
  animation: content-in 0.5s var(--zoom-ease) backwards;
}

@media (width <= 640px) {
  .top-brand-bar {
    top: 1.25rem;
    left: 1.25rem;
  }
}

.top-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-brand-link:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.2);
}

.brand-icon-bubble {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.top-brand-link:hover .brand-icon-bubble {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #38bdf8;
  text-transform: uppercase;
}

.brand-title {
  font-family: 'Prompt', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #f1f5f9;
}

/* 🔍 Multi-Angle View Switcher (Top-Right Glass Capsule) */
.view-switcher {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: content-in 0.5s var(--zoom-ease) backwards;
}

@media (width <= 640px) {
  .view-switcher {
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.25rem 0.4rem 0.25rem 0.65rem;
  }
}

.view-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-right: 0.25rem;
  user-select: none;
}

.view-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Prompt', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  height: 2rem;
  width: 2rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.view-btn.active {
  background: #00b4d8;
  border-color: #00b4d8;
  color: #091e3a;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.6);
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }

  .content {
    animation: none;
  }
}



