/* About page — base */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "IBM Plex Sans KR", sans-serif;
}

/* About section */
.about-section {
  --about-left-ratio: 40.42%;
  --about-frame-w: 1920;
  --about-frame-h: 1080;
  --about-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --about-intro-1-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --about-intro-1-duration: 1.2s;
  --about-duration: 1s;
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #fff;
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #001427;
}

.about-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scaleX(-1) scale(1.06);
  transition: transform 2.2s var(--about-ease);
}

.about-section.is-ready .about-bg__img {
  transform: scaleX(-1) scale(1);
}

.about-bg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 12, 27, 0.45);
  opacity: 1;
}

/* ── About Us 1 — 첫 화면 intro (중앙, Figma About Us 1) ── */
.about-intro-1 {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 0;
  text-align: center;
  color: #fff;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.7s var(--about-ease),
    visibility 0s linear 0.7s;
}

.about-section.is-stage-2 .about-intro-1 {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.7s var(--about-ease),
    visibility 0s linear 0.7s;
}

.about-intro-1__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: min(90vw, 900px);
}

.about-intro-1__label,
.about-intro-1__title,
.about-intro-1__desc p {
  opacity: 0;
  visibility: hidden;
}

.about-intro-1__label,
.about-intro-1__title {
  transform: translate(-70px, 0);
}

.about-intro-1__desc p {
  transform: translate(70px, 0);
}

@keyframes about-fade-up {
  from {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes about-slide-left-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes about-scale-y-in {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes about-word-up {
  from {
    opacity: 0;
    transform: translateY(100%);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.about-intro-1__title {
  margin-top: 7px;
  font-size: clamp(48px, 6.25vw, 120px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -3px;
}

.about-intro-1__label {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.5px;
  color: #7ae400;
}

.about-intro-1__desc {
  margin-top: 20px;
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.6px;
}

.about-intro-1__desc p {
  margin: 0;
}

/* ── About Us 2 — 전환 후 좌측 intro ── */
.about-intro-2 {
  position: absolute;
  z-index: 2;
  left: calc(388 / var(--about-frame-w) * 100%);
  top: calc(319 / var(--about-frame-h) * 100%);
  width: max-content;
  max-width: min(440px, 42vw);
  text-align: center;
  color: #fff;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-section.is-stage-2 .about-intro-2 {
  pointer-events: auto;
}

.about-section.is-intro-2-visible .about-intro-2 {
  opacity: 1;
  visibility: visible;
}

.about-intro-2__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.about-intro-2__title {
  overflow: hidden;
  margin: 0;
  font-size: clamp(48px, 4.17vw, 80px);
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: -2px;
}

.about-intro-2__word {
  display: inline-block;
  opacity: 0;
  visibility: hidden;
}

.about-intro-2__desc p,
.about-intro-2__divider,
.about-intro-2__brand,
.about-intro-2__est {
  opacity: 0;
  visibility: hidden;
}

.about-intro-2__desc {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.45px;
}

.about-intro-2__desc p {
  margin: 0;
}

.about-intro-2__meta {
  width: 100%;
}

.about-intro-2__divider {
  width: 1px;
  height: 100px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: top center;
}

.about-intro-2__brand {
  margin: 40px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.55px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.about-intro-2__est {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.5px;
}

/* ── About Us 2 — 우측 패널 ── */
.about-panel {
  /*
   * 패널 텍스트 간격 — 아래 변수 값만 수정하면 됩니다.
   * ─────────────────────────────────────────
   * --panel-gap-logo-heading   로고 ↔ 제목
   * --panel-gap-heading-body   제목 ↔ 본문
   * --panel-gap-body-signature 본문 ↔ 서명 (서명 위 여백)
   * --panel-heading-line-gap   제목 줄 사이
   * --panel-body-para-gap      본문 연속 문단 사이
   * --panel-body-block-gap     본문 단락 구분 (spacer 높이)
   * --panel-signature-gap      서명 이미지 ↔ 대표명
   */
  --panel-pad-x: calc(120 / 1144 * 100%);
  --panel-pad-top: calc(180 / var(--about-frame-h) * 100%);
  --panel-pad-bottom: calc(80 / var(--about-frame-h) * 100%);
  --panel-content-max-w: min(833px, 72.8%);
  --panel-gap-logo-heading: 50px;
  --panel-gap-heading-body: 40px;
  --panel-gap-body-signature: 00px;
  --panel-heading-line-gap: 0px;
  --panel-body-para-gap: 0px;
  --panel-body-block-gap: 34px;
  --panel-signature-gap: 11px;

  position: absolute;
  z-index: 3;
  left: var(--about-left-ratio);
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  background: transparent;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

.about-section.is-stage-2 .about-panel {
  pointer-events: auto;
}

.about-section.is-panel-active .about-panel {
  visibility: visible;
}

.about-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.about-panel__bg-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  pointer-events: none;
}

.about-panel__logo,
.about-panel__heading,
.about-panel__body,
.about-panel__signature {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}

.about-panel__content {
  position: absolute;
  z-index: 2;
  inset: var(--panel-pad-top) var(--panel-pad-x) var(--panel-pad-bottom)
    var(--panel-pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--panel-content-max-w);
}

.about-panel__logo {
  display: block;
  width: 100px;
  height: 110px;
  margin: 0;
  object-fit: contain;
}

.about-panel__heading {
  width: 100%;
  margin: var(--panel-gap-logo-heading) 0 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.9px;
  color: #252A5E;
}

.about-panel__heading p {
  margin: 0;
}

.about-panel__heading p + p {
  margin-top: var(--panel-heading-line-gap);
}

.about-panel__body {
  width: 100%;
  margin: var(--panel-gap-heading-body) 0 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: -0.5px;
  color: rgba(17, 17, 17, 0.9);
}

.about-panel__body p {
  margin: 0;
  line-height: 34px;
}

.about-panel__body > p:not(.about-panel__body-spacer) + p:not(.about-panel__body-spacer) {
  margin-top: var(--panel-body-para-gap);
}

.about-panel__body-spacer {
  height: var(--panel-body-block-gap);
  margin: 0;
  visibility: hidden;
}

.about-panel__signature {
  width: 100%;
  margin: auto 0 0;
  padding-top: var(--panel-gap-body-signature);
  text-align: right;
}

.about-panel__signature-img {
  display: block;
  width: 203px;
  height: 72px;
  margin-left: auto;
  object-fit: contain;
  object-position: right center;
}

.about-panel__ceo {
  margin: var(--panel-signature-gap) 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: rgba(17, 17, 17, 0.9);
}

@media (max-width: 1280px) {
  .about-panel__content {
    max-width: min(833px, calc(100% - 140px));
  }
}

@media (max-width: 1024px) {
  .about-intro-2 {
    left: 50%;
    top: 22%;
    max-width: 90%;
    transform: translate(-50%, 0);
  }

  .about-panel,
  .about-section.is-stage-2 .about-panel {
    left: 0;
    top: auto;
    bottom: 0;
    height: auto;
    min-height: 55vh;
    --panel-gap-logo-heading: 32px;
    --panel-gap-heading-body: 24px;
    --panel-gap-body-signature: 32px;
  }

  .about-panel__content {
    position: relative;
    inset: auto;
    max-width: none;
    width: 100%;
  }

  .about-panel__signature {
    align-self: flex-end;
  }

  .about-section.is-stage-2 .about-panel {
    display: flex;
    flex-direction: column;
    padding: 32px 24px 40px;
  }

  .about-section.is-stage-2 .about-panel__content {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-intro-1,
  .about-bg__img {
    transition: none !important;
  }

  .about-panel__bg,
  .about-panel__logo,
  .about-panel__heading,
  .about-panel__body,
  .about-panel__signature {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .about-section.is-ready .about-bg__img {
    transform: scaleX(-1) scale(1);
  }

  .about-intro-1__label,
  .about-intro-1__title,
  .about-intro-1__desc p,
  .about-intro-2__word,
  .about-intro-2__desc p,
  .about-intro-2__divider,
  .about-intro-2__brand,
  .about-intro-2__est {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
