:root {
  --sidebar-width: 280px;
  --edge-width: 24px;
  --ink: #18202a;
  --muted: #697386;
  --line: rgba(24, 32, 42, 0.12);
  --panel: rgba(255, 255, 255, 0.92);
  --accent: #0f8b8d;
  --accent-dark: #0b6d70;
  --page: #f5f7fb;
  --video-bg: #05070a;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 10%, rgba(15, 139, 141, 0.14), transparent 30%),
    linear-gradient(135deg, #f7fafc 0%, #eef3f8 50%, #f8fbff 100%);
}

a {
  color: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  padding: 28px 20px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 60px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.video-page .sidebar,
.gallery-page .sidebar,
.presentation-page .sidebar {
  transform: translateX(-100%);
  box-shadow: none;
}

.video-page.sidebar-open .sidebar,
.video-page .sidebar:hover,
.video-page .hover-zone:hover + .sidebar,
.gallery-page.sidebar-open .sidebar,
.gallery-page .sidebar:hover,
.gallery-page .hover-zone:hover + .sidebar,
.presentation-page.sidebar-open .sidebar,
.presentation-page .sidebar:hover,
.presentation-page .hover-zone:hover + .sidebar {
  transform: translateX(0);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.28);
}

.hover-zone {
  display: none;
}

.video-page .hover-zone,
.gallery-page .hover-zone,
.presentation-page .hover-zone {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 19;
  display: block;
  width: var(--edge-width);
}

.logo-link {
  display: block;
  margin: 0 8px 34px;
}

.logo {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
}

.menu {
  display: grid;
  gap: 8px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  color: var(--accent-dark);
  background: rgba(15, 139, 141, 0.1);
  border-color: rgba(15, 139, 141, 0.2);
  outline: none;
}

.menu a:hover {
  transform: translateX(2px);
}

.content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 48px;
}

.home-shell {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 96px);
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.video-page {
  overflow: hidden;
  background: var(--video-bg);
}

.gallery-page {
  overflow: hidden;
  background: #080908;
}

.presentation-page {
  overflow: hidden;
  background: #080908;
}

.video-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  background: var(--video-bg);
}

.video-stage video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: var(--video-bg);
}

.video-title {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 5;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  font-size: 16px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.gallery-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #080908;
}

.presentation-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #080908;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.presentation-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 680ms ease;
}

.gallery-slide.is-active {
  opacity: 1;
}

.presentation-slide.is-active {
  opacity: 1;
}

.gallery-slide img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
  transform: scale(1.025);
}

.presentation-slide img,
.presentation-slide video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
  background: #080908;
}

.gallery-slide.is-active img {
  animation: galleryDrift 3500ms ease forwards;
}

.gallery-slide:nth-child(3n + 1) img {
  object-position: 50% 50%;
  transform-origin: 42% 52%;
}

.gallery-slide:nth-child(3n + 2) img {
  object-position: 58% 50%;
  transform-origin: 60% 48%;
}

.gallery-slide:nth-child(3n + 3) img {
  object-position: 45% 50%;
  transform-origin: 48% 56%;
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 36%, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.gallery-count {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 5;
  min-width: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  font-size: 16px;
  font-weight: 750;
  text-align: center;
  backdrop-filter: blur(10px);
}

.presentation-controls {
  position: fixed;
  left: 32px;
  bottom: 28px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.presentation-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.presentation-controls button:hover,
.presentation-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.presentation-counter {
  min-width: 76px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

@keyframes galleryDrift {
  from {
    transform: scale(1.025);
  }

  to {
    transform: scale(1.065);
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 236px;
  }

  .sidebar {
    padding: 22px 16px;
  }

  .logo {
    width: 132px;
  }

  .content {
    margin-left: 0;
    padding: 28px;
    padding-top: 136px;
  }

  body:not(.video-page):not(.gallery-page):not(.presentation-page) .sidebar {
    right: 0;
    bottom: auto;
    width: 100%;
    min-height: 116px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body:not(.video-page):not(.gallery-page):not(.presentation-page) .logo-link {
    margin: 0 0 12px;
  }

  body:not(.video-page):not(.gallery-page):not(.presentation-page) .menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body:not(.video-page):not(.gallery-page):not(.presentation-page) .menu a {
    min-width: max-content;
    min-height: 40px;
    padding: 0 12px;
  }

  .video-title,
  .gallery-count {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 48px);
  }

  .presentation-controls {
    left: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}
