/* ===== LAB HERO ===== */
.lab-hero-wrap {
  background: #f3f3f1;
}

.lab-hero {
  position: relative;
  min-height: min(920px, 100vh);
  background: #f3f3f1;
  color: #111;
  overflow: hidden;
}

.lab-hero-frame {
  position: relative;
  min-height: min(920px, 100vh);
  margin: 0;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
  border: none;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(16px, 2.5vw, 28px);
}

/* --- top bar --- */
.lab-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 20;
}

.lab-hero-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.lab-hero-logo img {
  height: clamp(44px, 4.5vw, 66px);
  width: auto;
  display: block;
}

.lab-hero-top-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex-wrap: nowrap;
}

.lab-hero-lang.lang-switch button {
  border: 1.5px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1.2;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.lab-hero-lang.lang-switch button:hover {
  border-color: rgba(17, 17, 17, 0.35);
}

.lab-hero-lang.lang-switch button.active {
  background: #fff;
  color: #111;
  font-weight: 800;
  border: 2px solid #111;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.lab-hero-auth-btn {
  font-size: 11px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  background: #fff !important;
  color: #111 !important;
}

.lab-hero-auth-btn.btn-signup {
  background: transparent !important;
  border-color: transparent !important;
}

/* --- main layout --- */
.lab-hero-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: center;
  min-height: 0;
  z-index: 5;
}

.lab-hero-left {
  align-self: center;
  z-index: 12;
  max-width: 340px;
}

.lab-hero-year {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: clamp(18px, 3vw, 32px);
  color: #111;
}

.lab-hero-year-line {
  display: block;
  width: 48px;
  height: 1px;
  background: #111;
}

.lab-hero-title {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.lab-hero-title-line {
  display: block;
  overflow: hidden;
}

.lab-hero-title.is-entering .lab-hero-title-line {
  animation: labHeroTitleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--line-i, 0) * 0.08s);
}

.lab-hero-title.is-exiting .lab-hero-title-line {
  animation: labHeroTitleOut 0.34s ease both;
  animation-delay: calc(var(--line-i, 0) * 0.05s);
}

@keyframes labHeroTitleIn {
  from {
    opacity: 0;
    transform: translateY(105%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes labHeroTitleOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-hero-title.is-entering .lab-hero-title-line,
  .lab-hero-title.is-exiting .lab-hero-title-line,
  .lab-hero-slide-text.is-entering,
  .lab-hero-slide-text.is-exiting,
  .lab-hero-index.is-entering .lab-hero-cross,
  .lab-hero-index.is-exiting .lab-hero-cross,
  .lab-hero-status.is-entering .lab-status-dot,
  .lab-hero-status.is-exiting .lab-status-dot {
    animation: none;
  }
}

.lab-hero-dots {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.lab-hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 17, 17, 0.18);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.lab-hero-dots button.is-active {
  background: #111;
  transform: scale(1.15);
}

/* --- center visual --- */
.lab-hero-visual {
  position: relative;
  height: min(620px, 68vh);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lab-hero-photo {
  position: relative;
  z-index: 2;
  width: auto;
  height: min(600px, 66vh);
  max-width: min(480px, 52vw);
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
}

.lab-blob {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.15) 42%, transparent 70%),
    radial-gradient(circle at 70% 72%, rgba(180, 200, 220, 0.35), rgba(120, 140, 160, 0.08) 55%, transparent 75%);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(2px);
  opacity: 0.92;
  transition: transform 0.4s ease;
}

.lab-blob--tl {
  width: min(180px, 16vw);
  height: min(180px, 16vw);
  top: 8%;
  left: 12%;
}

.lab-blob--tr {
  width: min(120px, 11vw);
  height: min(120px, 11vw);
  top: 18%;
  right: 18%;
}

.lab-blob--bl {
  width: min(140px, 13vw);
  height: min(140px, 13vw);
  bottom: 16%;
  left: 20%;
}

.lab-blob--br {
  width: min(260px, 24vw);
  height: min(260px, 24vw);
  bottom: -8%;
  right: -4%;
}

/* --- right column (removed) --- */

.lab-hero-index {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.lab-hero-cross {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.lab-hero-cross::before,
.lab-hero-cross::after {
  content: '';
  position: absolute;
  background: #111;
  border-radius: 1px;
}

.lab-hero-cross::before {
  width: 2px;
  height: 14px;
  left: 6px;
  top: 0;
}

.lab-hero-cross::after {
  width: 14px;
  height: 2px;
  left: 0;
  top: 6px;
}

.lab-hero-index-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.lab-hero-slide-text.is-entering {
  animation: labHeroSideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lab-hero-slide-text.is-exiting {
  animation: labHeroSideOut 0.3s ease both;
}

.lab-hero-index.is-entering .lab-hero-cross {
  animation: labHeroCrossIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lab-hero-index.is-exiting .lab-hero-cross {
  animation: labHeroCrossOut 0.3s ease both;
}

.lab-hero-status.is-entering .lab-status-dot {
  animation: labHeroDotIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lab-hero-status.is-exiting .lab-status-dot {
  animation: labHeroDotOut 0.3s ease both;
}

@keyframes labHeroSideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes labHeroSideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes labHeroCrossIn {
  from {
    opacity: 0;
    transform: rotate(-45deg) scale(0.85);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes labHeroCrossOut {
  from {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  to {
    opacity: 0;
    transform: rotate(45deg) scale(0.85);
  }
}

@keyframes labHeroDotIn {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

@keyframes labHeroDotOut {
  from {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
  to {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
}

.lab-hero-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.75);
  max-width: 160px;
  margin-left: auto;
  line-height: 1.4;
}

.lab-status-dot {
  width: 8px;
  height: 8px;
  background: #3ecf6e;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- bottom --- */
.lab-hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  z-index: 20;
}

.lab-hero-bottom-left {
  align-self: end;
}

.lab-hero-mini-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lab-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fff;
}

.lab-mini-logo--globe {
  font-size: 14px;
  font-weight: 400;
}

.lab-hero-legal {
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

.lab-hero-scroll {
  justify-self: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.lab-scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(17, 17, 17, 0.35);
}

/* --- mobile --- */
.lab-hero-mobile-bar {
  display: none;
}

body.has-lab-hero > nav.legacy-top-nav {
  display: none;
}

body.has-lab-hero {
  background: #f3f3f1;
}

@media (max-width: 1024px) {
  .lab-hero-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
  }

  .lab-hero-visual {
    order: 1;
    height: min(400px, 48vh);
  }

  .lab-hero-photo {
    height: min(380px, 46vh);
    max-width: min(340px, 82vw);
  }

  .lab-hero-left {
    order: 2;
    max-width: none;
  }

  .lab-hero-index {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
  }

  .lab-hero-status {
    justify-content: flex-start;
    margin-left: 0;
  }

  .lab-blob--br {
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 768px) {
  .lab-hero-top {
    display: none;
  }

  .lab-hero-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .lab-hero-auth-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .lab-hero-auth-mobile .lang-switch button {
    border: 1.5px solid rgba(17, 17, 17, 0.14);
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
  }

  .lab-hero-auth-mobile .lang-switch button.active {
    border: 2px solid #111;
    font-weight: 800;
  }

  .lab-hero-frame {
    margin: 0;
    padding: 16px 14px 20px;
  }

  .lab-hero-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .lab-hero-bottom-left {
    order: 2;
  }

  .lab-hero-scroll {
    order: 1;
  }

  .lab-hero-legal {
    max-width: none;
  }

  .lab-hero-left {
    margin-top: -40px;
    contain: layout;
  }

  .lab-hero-title {
    min-height: 2.85em;
    overflow: hidden;
  }

  .lab-hero-title.is-entering .lab-hero-title-line {
    animation-name: labHeroTitleInMobile;
  }

  .lab-hero-title.is-exiting .lab-hero-title-line {
    animation-name: labHeroTitleOutMobile;
  }
}

@keyframes labHeroTitleInMobile {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes labHeroTitleOutMobile {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
}
