:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --dark: #050505;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark);
  color: var(--text);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 60px;
  right: 60px;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.menu-toggle {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 236px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-toggle {
  position: relative;
  z-index: 150;
  width: 34px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  height: 2px;
  display: block;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: center;
  transition: width 0.25s ease, transform 0.25s ease;
}

.menu-toggle span:first-child {
  width: 22px;
}

.menu-toggle span:last-child {
  width: 15px;
}

body.menu-open .menu-toggle span:first-child {
  width: 22px;
  transform: translateY(4px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  width: 22px;
  transform: translateY(-4px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: 33.333vw;
  min-width: 360px;
  max-width: 520px;
  height: 100vh;
  padding: 120px 60px 80px;
  background: rgba(0, 0, 0, 0.96);
  color: #ffffff;
  backdrop-filter: blur(26px);
  transform: translateX(100%);
  overflow-y: auto;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.side-menu-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-group-toggle {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.menu-group-toggle span:first-child,
.menu-products a {
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.12;
  font-weight: 380;
  letter-spacing: -0.018em;
}

.menu-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.48);
  transition: transform 0.25s ease;
}

.menu-group.is-open .menu-arrow {
  transform: rotate(180deg);
}

.menu-sublist {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: max-height 0.35s ease, padding-top 0.35s ease;
}

.menu-group.is-open .menu-sublist {
  max-height: 240px;
  padding-top: 14px;
}

.menu-sublist a {
  width: fit-content;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 330;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu-sublist a:hover,
.menu-products a:hover,
.menu-bottom a:hover,
.menu-group-toggle:hover {
  color: #ffffff;
}

.menu-sublist a:hover,
.menu-products a:hover {
  transform: translateX(4px);
}

.menu-products {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-products p {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1;
  font-weight: 350;
  color: rgba(255, 255, 255, 0.38);
}

.menu-products a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu-products a span {
  font-size: 0.72em;
  line-height: 1;
  transform: translateY(-1px);
}

.menu-bottom {
  margin-top: auto;
  padding-top: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.menu-bottom a {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 330;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.25s ease;
}

.split-page {
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.split-panel {
  position: relative;
  min-height: 100vh;
  flex: 1 1 50%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  cursor: pointer;
  transition: flex 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-page:hover .split-panel {
  flex: 1 1 40%;
}

.split-page .split-panel:hover {
  flex: 1.5 1 60%;
}

.panel-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58) saturate(0.78);
  transform: scale(1.01);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.split-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76)),
    linear-gradient(to right, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.1));
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.split-panel:hover .panel-video,
.split-panel.is-playing .panel-video {
  transform: scale(1.045);
  filter: brightness(0.9) saturate(1.08);
}

.split-panel:hover::after,
.split-panel.is-playing::after {
  opacity: 0.72;
}

.panel-content {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  padding: 60px;
}

.panel-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.panel-content h1,
.panel-content h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1;
  font-weight: 620;
  letter-spacing: -0.032em;
}

.panel-content p:not(.panel-label) {
  max-width: 420px;
  margin: 18px 0 24px;
  font-size: clamp(14px, 0.95vw, 15.5px);
  line-height: 1.5;
  color: var(--muted);
}

.panel-link {
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font-size: 13px;
  font-weight: 580;
  transition: transform 0.25s ease, background 0.25s ease;
}

.panel-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

@media (max-width: 1024px) {
  .site-header {
    left: 42px;
    right: 42px;
  }

  .brand {
    width: 192px;
  }

  .side-menu {
    width: 46vw;
    min-width: 340px;
    padding: 112px 42px 70px;
  }

  .split-page {
    display: flex;
    overflow: hidden;
  }

  .split-panel,
  .split-page:hover .split-panel,
  .split-page .split-panel:hover {
    min-height: 100vh;
  }

  .split-page:hover .split-panel {
    flex: 1 1 40%;
  }

  .split-page .split-panel:hover {
    flex: 1.5 1 60%;
  }

  .panel-content {
    width: min(100%, 420px);
    padding: 48px 32px;
  }

  .panel-content h1,
  .panel-content h2 {
    font-size: clamp(24px, 4vw, 38px);
  }

  .panel-content p:not(.panel-label) {
    max-width: 340px;
    font-size: 13.5px;
  }
}

@media (max-width: 640px) {
  .site-header {
    left: 22px;
    right: 22px;
  }

  .brand {
    width: 152px;
  }

  .menu-toggle {
    width: 30px;
    height: 22px;
  }

  .menu-toggle span:first-child {
    width: 20px;
  }

  .menu-toggle span:last-child {
    width: 13px;
  }

  body.menu-open .menu-toggle span:first-child,
  body.menu-open .menu-toggle span:last-child {
    width: 20px;
  }

  .side-menu {
    width: 82vw;
    min-width: 0;
    max-width: none;
    padding: 104px 22px 54px;
  }

  .menu-group-toggle span:first-child,
  .menu-products a {
    font-size: 24px;
  }

  .split-page {
    display: flex;
    min-height: 100vh;
  }

  .split-panel,
  .split-page:hover .split-panel,
  .split-page .split-panel:hover {
    min-height: 100vh;
  }

  .split-page:hover .split-panel {
    flex: 1 1 46%;
  }

  .split-page .split-panel:hover {
    flex: 1.18 1 54%;
  }

  .panel-content {
    width: 100%;
    padding: 82px 14px 28px;
  }

  .panel-label {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .panel-content h1,
  .panel-content h2 {
    font-size: clamp(22px, 7vw, 34px);
    letter-spacing: -0.03em;
  }

  .panel-content p:not(.panel-label) {
    max-width: 260px;
    margin: 14px 0 20px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .panel-link {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .site-header {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .brand {
    width: 132px;
  }

  .panel-content {
    padding: 78px 10px 24px;
  }

  .panel-content h1,
  .panel-content h2 {
    font-size: clamp(20px, 6.6vw, 28px);
  }

  .panel-content p:not(.panel-label) {
    max-width: 220px;
    font-size: 12px;
  }

  .panel-link {
    width: fit-content;
  }
}