:root {
  --bg-deep: #04181d;
  --bg-glass: rgba(4, 26, 30, 0.74);
  --bg-glass-soft: rgba(5, 36, 42, 0.56);
  --text-main: #ecfffd;
  --text-soft: #b5e7e2;
  --line-soft: rgba(92, 205, 193, 0.3);
  --accent-turquoise: #16c9c6;
  --accent-cyan: #7cefe4;
  --accent-sand: #7cd4ff;
  --accent-jungle: #1d8a72;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
  background: var(--bg-deep);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text-main);
  background: var(--bg-deep);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 26, 30, 0.7);
}

.site-footer .container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 14px 0 16px;
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.landing {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--bg-deep);
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1800ms ease;
  transform: scale(1.02);
}

.landing-bg.layer-a {
  opacity: 1;
}

.landing-bg.layer-b {
  opacity: 0;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 16, 20, 0.56) 0%, rgba(3, 19, 23, 0.62) 40%, rgba(3, 17, 21, 0.76) 100%),
    radial-gradient(1100px 440px at 85% 18%, rgba(25, 197, 183, 0.26), rgba(0, 0, 0, 0)),
    radial-gradient(900px 380px at 12% 78%, rgba(29, 138, 114, 0.2), rgba(0, 0, 0, 0));
}

.topline,
.main-nav,
.hero {
  position: relative;
  z-index: 2;
}

.topline {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 25, 30, 0.7);
  backdrop-filter: blur(2px);
}

.topline-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

.secret-admin-link {
  color: inherit;
  text-decoration: none;
  cursor: text;
}

.secret-admin-link:visited,
.secret-admin-link:hover,
.secret-admin-link:active {
  color: inherit;
  text-decoration: none;
}

.secret-admin-link:focus {
  outline: none;
}

.main-nav {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-glass);
  backdrop-filter: blur(4px);
}

.main-nav-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.nav-side {
  display: flex;
  gap: 22px;
}

.nav-side.right {
  justify-content: flex-end;
}

.nav-side a {
  color: var(--text-soft);
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-side a:hover {
  color: #d5fffb;
}

.brand-center {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.brand-center img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.brand-title {
  margin-top: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.hero {
  width: min(1080px, 92%);
  margin: 0 auto;
  min-height: calc(100vh - 126px);
  display: grid;
  align-content: center;
  gap: 20px;
  text-align: center;
  padding: 70px 0 40px;
}

.hero-kicker {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.36);
}

.hero-break {
  display: inline;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 11px 20px;
}

.btn-primary {
  color: #043137;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-turquoise) 55%, #0fc6ab);
  box-shadow: 0 8px 18px rgba(15, 198, 171, 0.32);
}

.btn-ghost {
  color: var(--text-main);
  border: 1px solid rgba(124, 239, 228, 0.55);
  background: rgba(4, 39, 44, 0.48);
}

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

.feature-card {
  background: var(--bg-glass-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: left;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 400;
  color: #8af7e8;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.mini-gallery-section {
  position: relative;
  z-index: 2;
  padding: 12px 0 56px;
}

.mini-gallery-wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.mini-gallery-wrap h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
}

.mini-gallery-wrap p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-family: "Segoe UI", Arial, sans-serif;
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-gallery-card {
  display: block;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(3, 26, 32, 0.5);
}

.mini-gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.mini-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 14, 22, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.mini-lightbox[hidden] {
  display: none;
}

.mini-lightbox-inner {
  width: min(1160px, 95vw);
  max-height: 92vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.mini-lightbox-inner img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}

.mini-lightbox-caption {
  color: #d7f8f4;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.mini-lightbox-close,
.mini-lightbox-nav {
  border: 0;
  color: #ecfffd;
  background: rgba(127, 239, 228, 0.22);
  cursor: pointer;
}

.mini-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
}

.mini-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 62px;
  border-radius: 10px;
  font-size: 34px;
}

.mini-lightbox-prev {
  left: 14px;
}

.mini-lightbox-next {
  right: 14px;
}

@media (max-width: 960px) {
  .main-nav-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 0;
    gap: 10px;
  }

  .nav-side {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-side.right {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 34px;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .mini-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero-break {
    display: none;
  }

  .topline-inner {
    width: min(1180px, 94%);
    min-height: auto;
    padding: 6px 0;
    display: grid;
    gap: 4px;
    justify-items: start;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .mini-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.tape-viewport {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(3, 30, 36, 0.42);
}

.tape-track {
  display: inline-flex;
  width: max-content;
  gap: 0;
  padding: 12px 0;
}

.tape-set {
  position: relative;
  display: inline-flex;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(24, 30, 38, 0.96), rgba(18, 24, 31, 0.95));
  border-top: 1px solid rgba(155, 170, 180, 0.36);
  border-bottom: 1px solid rgba(155, 170, 180, 0.36);
}

.tape-set::before,
.tape-set::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(9, 13, 17, 0.98) 0 11px,
      rgba(212, 221, 228, 0.9) 11px 17px
    );
}

.tape-set::before {
  top: 3px;
}

.tape-set::after {
  bottom: 3px;
}

.tape-card {
  display: block;
  width: clamp(220px, 24vw, 330px);
  padding: 0;
  border: 2px solid rgba(175, 188, 197, 0.45);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(7, 16, 24, 0.82);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.tape-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

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

.tape-note {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.84;
}

.mini-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 14, 22, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.mini-lightbox[hidden] {
  display: none;
}

.mini-lightbox-inner {
  width: min(1160px, 95vw);
  max-height: 92vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.mini-lightbox-inner img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}

.mini-lightbox-caption {
  color: #d7f8f4;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.mini-lightbox-close,
.mini-lightbox-nav {
  border: 0;
  color: #ecfffd;
  background: rgba(127, 239, 228, 0.22);
  cursor: pointer;
}

.mini-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
}

.mini-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 62px;
  border-radius: 10px;
  font-size: 34px;
}

.mini-lightbox-prev {
  left: 14px;
}

.mini-lightbox-next {
  right: 14px;
}

@media (max-width: 620px) {
  .tape-card {
    width: min(82vw, 320px);
  }
}
