:root {
  --bg: #f6f9fc;
  --bg-soft: #ecf2ff;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --line: #dfe5ef;
  --line-strong: #c9d7eb;
  --ink: #2a3547;
  --ink-strong: #172033;
  --muted: #5a6a85;
  --primary: #5d87ff;
  --primary-dark: #3f69dc;
  --secondary: #49beff;
  --success: #13deb9;
  --warning: #ffae1f;
  --shadow: 0 18px 45px rgba(42, 53, 71, .10);
  --shadow-strong: 0 26px 80px rgba(42, 53, 71, .16);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(93, 135, 255, .16), transparent 31rem),
    radial-gradient(circle at 88% 4%, rgba(73, 190, 255, .14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef5ff 100%);
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-shell { display: flex; min-height: 100vh; }

.premium-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 306px;
  padding: 22px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 45px rgba(42, 53, 71, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 22px;
  border-bottom: 1px solid var(--line);
}

.brand img { width: 156px; }

.brand span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.side-nav { padding: 14px 0; }

.side-home,
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition: .22s ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--primary-dark);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px rgba(93, 135, 255, .18);
}

.nav-group { margin-top: 18px; }

.nav-group p {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 14px rgba(93, 135, 255, .38);
  flex: 0 0 auto;
}

.nav-icon { color: var(--primary); }

.sidebar-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(236, 242, 255, .98), rgba(232, 247, 255, .96));
  border: 1px solid rgba(93, 135, 255, .18);
}

.sidebar-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-card strong {
  display: block;
  margin: 8px 0 14px;
  line-height: 1.35;
}

.sidebar-card a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.site-main {
  width: calc(100% - 306px);
  margin-left: 306px;
  padding: 22px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(223, 229, 239, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ink-strong);
}

.topbar-brand img { width: 116px; }
.topbar-actions { display: flex; gap: 10px; }

.topbar-actions a,
.btn-ghost,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}

.topbar-actions .primary,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 34px rgba(93, 135, 255, .26);
}

.btn-ghost,
.topbar-actions a:not(.primary) {
  color: var(--primary-dark);
  border: 1px solid rgba(93, 135, 255, .20);
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--bg-soft);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero,
.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(93, 135, 255, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(236, 242, 255, .98));
  box-shadow: var(--shadow-strong);
}

.hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(73, 190, 255, .22), transparent 26rem),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.75) 52%, transparent 100%);
  pointer-events: none;
}

.hero-copy,
.detail-hero > div,
.detail-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--ink-strong);
  font-family: "Space Grotesk", Manrope, sans-serif;
  letter-spacing: -.035em;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 46px);
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p,
.detail-hero p {
  max-width: 760px;
  font-size: 17px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics div,
.detail-panel,
.feature-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 30px rgba(42, 53, 71, .06);
}

.hero-metrics strong {
  display: block;
  color: var(--primary-dark);
  font-size: 28px;
}

.hero-metrics span,
.detail-panel span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
}

.hero-visual img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(42, 53, 71, .22));
  animation: floatHero 5s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .9;
}

.orb-one {
  top: 40px;
  left: 30px;
  width: 230px;
  height: 230px;
  background: rgba(93, 135, 255, .16);
}

.orb-two {
  right: 24px;
  bottom: 60px;
  width: 170px;
  height: 170px;
  background: rgba(73, 190, 255, .18);
}

.hero-glass {
  position: absolute;
  right: 24px;
  bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(93, 135, 255, .20);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-glass span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-glass strong { display: block; margin-top: 4px; }

.quick-filter,
.gallery-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 34px 0 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(420px, 100%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 53, 71, .06);
}

.search-box input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.type-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.type-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(223, 229, 239, .92);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(42, 53, 71, .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.type-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 135, 255, .38);
  box-shadow: 0 22px 56px rgba(42, 53, 71, .13);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 242, 255, .75), transparent 48%);
  pointer-events: none;
}

.type-card > *:not(.card-shine) { position: relative; }

.type-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.type-card h3 {
  margin: 24px 0 10px;
  font-size: 28px;
}

.type-card p { min-height: 86px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  padding: 7px 10px;
  color: var(--primary-dark);
  border: 1px solid rgba(93, 135, 255, .18);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 900;
}

.type-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 900;
}

.detail-panel strong {
  display: block;
  margin: 12px 0;
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1.2;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.feature-strip h3 {
  margin: 8px 0;
  font-size: 22px;
}

.media-card {
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(223, 229, 239, .92);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(42, 53, 71, .08);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 135, 255, .38);
  box-shadow: 0 22px 54px rgba(42, 53, 71, .13);
}

.media-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef4fb;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.media-card:hover img { transform: scale(1.04); }

.media-title,
.media-card h3 {
  display: block;
  padding: 14px 16px 16px;
  color: var(--ink-strong);
  font-weight: 900;
}

.media-video { cursor: default; }
.media-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 51, .72);
  backdrop-filter: blur(10px);
}

.lightbox.is-open { display: grid; }

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  font-size: 30px;
  cursor: pointer;
}

.lightbox figure {
  max-width: min(1180px, 96vw);
  margin: 0;
}

.lightbox img {
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
}

.lightbox figcaption {
  padding-top: 12px;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  color: var(--ink-strong);
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 900;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.empty-state {
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 1180px) {
  .type-grid,
  .media-grid,
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero,
  .detail-hero { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .premium-sidebar {
    width: min(86vw, 330px);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }

  body.menu-open .premium-sidebar { transform: translateX(0); }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: none;
    background: rgba(42, 53, 71, .46);
  }

  body.menu-open .sidebar-overlay { display: block; }

  .site-main {
    width: 100%;
    margin-left: 0;
    padding: 14px;
  }

  .menu-toggle { display: block; }
  .topbar { top: 10px; }
  .topbar-actions { display: none; }
  .hero,
  .detail-hero { padding: 28px 20px; }
  h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-visual { min-height: 330px; }
  .hero-visual img { max-height: 310px; }
  .quick-filter,
  .gallery-head,
  .section-head,
  .site-footer { display: block; }
  .search-box { margin-top: 14px; }
}

@media (max-width: 640px) {
  .type-grid,
  .media-grid,
  .feature-strip,
  .hero-metrics { grid-template-columns: 1fr; }
  .type-card { min-height: auto; }
  .brand img { width: 138px; }
  .topbar-brand span { display: none; }
  .hero-glass {
    right: 14px;
    bottom: 10px;
    left: 14px;
  }
}


body.lightbox-open {
  overflow: hidden;
}

.video-thumb {
  position: relative;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 34px rgba(93, 135, 255, .28);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.lightbox {
  grid-template-rows: auto 1fr auto;
}

.lightbox-toolbar {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(23, 32, 51, .72);
  backdrop-filter: blur(14px);
}

.lightbox-toolbar strong {
  display: block;
  max-width: min(640px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-toolbar span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.lightbox-actions {
  display: flex;
  gap: 8px;
}

.lightbox-actions button {
  position: static;
  width: auto;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  font-size: 18px;
  font-weight: 900;
}

.lightbox.is-video [data-zoom-in],
.lightbox.is-video [data-zoom-out],
.lightbox.is-video [data-zoom-reset] {
  display: none;
}

.lightbox figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(100vh - 150px);
  margin-top: 66px;
  overflow: hidden;
  touch-action: none;
}

.lightbox figure img {
  max-width: min(1200px, 94vw);
  max-height: calc(100vh - 170px);
  object-fit: contain;
  user-select: none;
  cursor: zoom-in;
  will-change: transform;
}

.lightbox figure img.is-zoomed {
  cursor: grab;
}

.lightbox figure video {
  width: min(1180px, 94vw);
  max-height: calc(100vh - 170px);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.lightbox [hidden] {
  display: none !important;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 72px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(23, 32, 51, .56);
  font-size: 48px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-help {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  max-width: calc(100vw - 36px);
  padding: 9px 13px;
  color: rgba(255, 255, 255, .80);
  border-radius: 999px;
  background: rgba(23, 32, 51, .66);
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 720px) {
  .lightbox {
    padding: 10px;
  }

  .lightbox-toolbar {
    top: 10px;
    left: 10px;
    right: 10px;
    align-items: flex-start;
    padding: 10px;
  }

  .lightbox-toolbar strong {
    max-width: 46vw;
    font-size: 14px;
  }

  .lightbox-actions {
    gap: 5px;
  }

  .lightbox-actions button {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border-radius: 12px;
    font-size: 16px;
  }

  .lightbox figure {
    height: calc(100vh - 136px);
    margin-top: 58px;
  }

  .lightbox figure img,
  .lightbox figure video {
    max-width: 96vw;
    max-height: calc(100vh - 156px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 20px;
    width: 48px;
    height: 48px;
    font-size: 34px;
    transform: none;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .lightbox-help {
    display: none;
  }
}

/* lightbox-nav-position-fix */
.lightbox .lightbox-nav {
  position: fixed;
  top: 50%;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 82px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  background: rgba(23, 32, 51, .62);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
  font-size: 52px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox .lightbox-prev {
  left: 24px;
}

.lightbox .lightbox-next {
  right: 24px;
}

@media (max-width: 720px) {
  .lightbox .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 36px;
    transform: none;
  }

  .lightbox .lightbox-prev {
    right: auto;
    left: 16px;
  }

  .lightbox .lightbox-next {
    right: 16px;
    left: auto;
  }
}
