@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sogo";
  src: url("../fonts/sogo/sogo-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Pretendard", sans-serif;
  --font-display: "Sogo", serif;
  --color-black: #111111;
  --color-white: #ffffff;
  --gate-left-basis: 50%;
  --gate-right-basis: 50%;
  --gate-left-copy-left: 28.4375%;
  --gate-right-copy-left: 28.4375%;
  --gate-left-overlay: rgba(16, 22, 61, 0);
  --gate-right-overlay: rgba(0, 0, 0, 0.3);
  --transition-standard: 0.38s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--color-black);
  color: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
p {
  margin: 0;
}

.gate-page {
  min-height: 100svh;
  background: var(--color-black);
}

.gate-layout {
  display: flex;
  min-height: 100svh;
  background: var(--color-black);
  overflow: hidden;
}

.gate-panel {
  position: relative;
  flex: 0 0 50%;
  min-width: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.gate-panel__media,
.gate-panel__image,
.gate-panel__overlay {
  position: absolute;
  inset: 0;
}

.gate-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter var(--transition-standard);
}

.gate-panel__overlay {
  z-index: 1;
  pointer-events: none;
  transition: background-color var(--transition-standard), opacity var(--transition-standard);
}

.gate-panel__content {
  position: absolute;
  z-index: 2;
  width: min(414px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.gate-panel__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  text-transform: uppercase;
  white-space: nowrap;
}

.gate-panel__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 56px;
  line-height: 68px;
  word-break: keep-all;
}

.gate-panel--ai .gate-panel__overlay {
  background: var(--gate-left-overlay);
}

.gate-panel--investment .gate-panel__overlay {
  background: var(--gate-right-overlay);
}

.gate-panel--ai .gate-panel__image,
.gate-panel--investment .gate-panel__image {
  object-position: center center;
}

@media (min-width: 1280px) {
  .gate-panel {
    transition: flex-basis var(--transition-standard);
  }

  .gate-panel--ai {
    flex-basis: var(--gate-left-basis);
  }

  .gate-panel--investment {
    flex-basis: var(--gate-right-basis);
  }

  .gate-panel__content {
    top: clamp(360px, 41.7593svh, 451px);
    transition: left var(--transition-standard), top var(--transition-standard);
  }

  .gate-panel--ai .gate-panel__content {
    left: var(--gate-left-copy-left);
  }

  .gate-panel--investment .gate-panel__content {
    left: var(--gate-right-copy-left);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1280px) {
  .gate-layout:has(.gate-panel--ai:hover) {
    --gate-left-basis: 61.6667%;
    --gate-right-basis: 38.3333%;
    --gate-left-copy-left: 32.5169%;
    --gate-right-copy-left: 10.3261%;
    --gate-right-overlay: rgba(0, 0, 0, 0.7);
  }

  .gate-layout:has(.gate-panel--investment:hover) {
    --gate-left-basis: 38.3333%;
    --gate-right-basis: 61.6667%;
    --gate-left-copy-left: 35.3261%;
    --gate-right-copy-left: 32.5169%;
    --gate-left-overlay: rgba(16, 22, 61, 0.42);
  }

  .gate-layout:has(.gate-panel--ai:hover) .gate-panel--ai .gate-panel__image,
  .gate-layout:has(.gate-panel--investment:hover) .gate-panel--investment .gate-panel__image {
    transform: scale(1.02);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .gate-panel {
    flex-basis: 50%;
    min-height: 100svh;
  }

  .gate-panel__content {
    top: clamp(320px, 41.5svh, 420px);
    left: clamp(24px, 8vw, 72px);
    width: min(320px, calc(100% - 48px));
    gap: 10px;
  }

  .gate-panel__eyebrow {
    font-size: 16px;
    line-height: 24px;
  }

  .gate-panel__title {
    font-size: clamp(34px, 3.6vw, 44px);
    line-height: 1.25;
  }

  .gate-panel--ai .gate-panel__overlay {
    background: rgba(16, 22, 61, 0.06);
  }

  .gate-panel--investment .gate-panel__overlay {
    background: rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 767px) {
  .gate-page {
    min-height: 800px;
  }

  .gate-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 400px 400px;
    min-height: 800px;
  }

  .gate-panel {
    min-height: 400px;
    height: 400px;
    flex-basis: auto;
  }

  .gate-panel__content {
    top: 143.5px;
    left: 20px;
    width: min(320px, calc(100% - 40px));
    gap: 8px;
  }

  .gate-panel__eyebrow {
    font-size: 16px;
    line-height: 21px;
  }

  .gate-panel__title {
    font-size: 28px;
    line-height: 42px;
  }

  .gate-panel--ai .gate-panel__overlay {
    background: rgba(0, 0, 0, 0.3);
  }

  .gate-panel--investment .gate-panel__overlay {
    background: transparent;
  }

  .gate-panel--investment::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 143.5px;
    left: 20px;
    width: min(320px, calc(100% - 40px));
    height: 113px;
    background: rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate-panel,
  .gate-panel__image,
  .gate-panel__overlay,
  .gate-panel__content {
    transition: none;
  }
}
