@charset "UTF-8";
/* =========================================================
   애니메이션 상태 (animation.css)
   - Figma 프로토타입: Smart Animate / Ease Out (= CSS ease-out) 값 그대로 사용
   - js/animation.js 가 타임라인 루트에 .is-step-N 클래스를 누적 부여
   - 초기(숨김) 상태는 html.js 일 때만 적용 → JS 미동작 시 최종 화면 노출
   ========================================================= */

:root { --ease-figma-out: cubic-bezier(0, 0, 0.58, 1); }   /* Figma "Ease out" */

/* ---------------------------------------------------------
   1) HERO 메인 타이틀 (B : MainTitleAni)
   기본 → 3.2s 후 → [0.5s] 서브카피 ↑50 → 0.3s → [0.5s] 타이틀 ↑48 → 0.3s → [0.5s] 버튼 ↑50
   --------------------------------------------------------- */
.js .anim-rise {
  opacity: 0;
  transform: translateY(calc(var(--rise, 50) * var(--u)));
  transition: opacity 0.5s var(--ease-figma-out), transform 0.5s var(--ease-figma-out);
}
.js .hero__title.anim-rise { --rise: 48; }
.js .is-step-1 .anim-rise[data-step="1"],
.js .is-step-2 .anim-rise[data-step="2"],
.js .is-step-3 .anim-rise[data-step="3"] { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   2) BRAND MESSAGE (Frame 7 / 브랜드 메세지) - 8 variants, 각 1s Ease out
   step1 상단 이미지 페이드인 / step2 메시지1 ↑30 페이드인 / step3 하이라이트1
   step4 우측 이미지 / step5 메시지2 ↑30 / step6 하단 이미지 위치 변경 + 하이라이트2
   step7 하단 이미지 42% 페이드인
   --------------------------------------------------------- */
.brand__img,
.brand__img img,
.brand__msg,
.brand__fade-157,
.highlight::before {
  transition-duration: 1s;
  transition-timing-function: var(--ease-figma-out);
}
.brand__img { transition-property: opacity, left, top, width, height; }
.brand__img img { transition-property: opacity; }
.brand__msg { transition-property: opacity, transform; }
.brand__fade-157 { transition-property: left; }
.highlight::before { transition-property: transform; }

.brand__msg { transform: translateX(-50%); }
.js .brand__img { opacity: 0; }
.js .brand__msg { opacity: 0; transform: translate(-50%, calc(30 * var(--su))); }
.js .highlight::before { transform: scaleX(0); }

.js .brand.is-step-1 .brand__img--01 { opacity: 1; }
.js .brand.is-step-2 .brand__msg--01 { opacity: 1; transform: translateX(-50%); }
.js .brand.is-step-3 .brand__msg--01 .highlight::before { transform: scaleX(1); }
.js .brand.is-step-4 .brand__img--02 { opacity: 1; }
.js .brand.is-step-5 .brand__msg--02 { opacity: 1; transform: translateX(-50%); }
.js .brand.is-step-6 .brand__msg--02 .highlight::before { transform: scaleX(1); }

/* step6 : 하단 이미지 위치/크기 변경 (Figma 프로토타입 '브랜드 메세지' 베리언트7 · image 23)
   x 0 · y 1179 · 922×1154 / 이미지 자르기(CROP) = Figma 값 그대로
   (가로 89.68% · 세로 84.24% 영역, 왼쪽 18.0% · 위 15.74% 지점부터) */
.brand.is-step-6 .brand__img--03,
html:not(.js) .brand__img--03 { --x: 0; --y: 1179; --w: 922; --h: 1154; }
.brand.is-step-6 .brand__img--03 img,
html:not(.js) .brand__img--03 img {
  opacity: 1;
  position: absolute;
  left: -20.064%;      /* 0.17994 / 0.89680 */
  top: -18.689%;       /* 0.15744 / 0.84242 */
  width: 111.507%;     /* 1 / 0.89680 */
  height: 118.706%;    /* 1 / 0.84242 */
  max-width: none;
  object-fit: fill;
}
.brand.is-step-6 .brand__fade-157,
html:not(.js) .brand__fade-157 { --x: 569; }
/* step7 : image 23 opacity 0 → 0.42 */
.js .brand.is-step-7 .brand__img--03,
html:not(.js) .brand__img--03 { opacity: 0.42; }

/* ---------------------------------------------------------
   3) SLOGAN (A : Slogan) - 진입 0.5s 후
   step1 [2s] 브래킷 확장 → step2 [1s] 세로 확장 → step3 타이핑 시작
   → 타이핑 : 13글자("철"~"임")를 같은 간격으로 600ms 동안 (요청 · animation.js)
   → 재생 동안 슬로건을 화면 정중앙에 두고 스크롤 잠금, 타이핑이 끝나면 해제 (요청 · animation.js)
   --------------------------------------------------------- */
.slogan__bracket,
.sb {
  transition-property: width, height;
  transition-duration: var(--bd, 1s);
  transition-timing-function: var(--ease-figma-out);
}
.slogan.is-step-1 { --bd: 2s; }
.slogan.is-step-2 { --bd: 1s; }
.slogan.is-step-1 .slogan__bracket,
html:not(.js) .slogan__bracket {
  --bw: 154.88; --bh: 141; --bt: 6.58;
  --blt: 41.64; --blb: 77.44; --brt: 64.29; --brb: 56.25;
}
.slogan.is-step-2 .slogan__bracket,
html:not(.js) .slogan__bracket { --bh: 281; }

/* 글자는 타이핑으로 나타나므로 문장 페이드인 없음 (첫 글자도 다른 글자와 같은 속도 · 요청) */
.js .slogan__text { opacity: 0; }
.js .slogan.is-step-3 .slogan__text { opacity: 1; }
html:not(.js) .slogan__typed::before { content: attr(data-text); }

/* ---------------------------------------------------------
   3-1) TECHNOLOGY 배경 회로 라인 (요청)
   타이틀(.tech__title)이 나타나는 순간부터 중앙 칩에서 바깥쪽으로 선이 그려짐 (animation.js · canvas)
   - JS 가 그림판(canvas.tech__circuit--canvas)을 만들 때까지 원본 SVG 이미지는 숨김
   - JS 없음 · 모션 줄이기 · 불러오기 실패 : 원본 SVG 그대로 표시 (.is-static)
   --------------------------------------------------------- */
.js img.tech__circuit:not(.is-static) { visibility: hidden; }

/* ---------------------------------------------------------
   4) FOOTER (Frame 2 / 푸터) - 슬로건이 화면 아래에서 400px 위에 닿고(또는 페이지 끝) 0.2s 후 [0.6s] 아웃라인 → 흰색 채움
      (Figma 0.5s 후 1s → 요청에 따라 변경 · 지연은 js/animation.js TIMELINES.footer)
   --------------------------------------------------------- */
.footer__slogan { transition: color 0.6s var(--ease-figma-out); }
.footer.is-step-1 .footer__slogan,
html:not(.js) .footer__slogan { color: var(--c-white); }

/* ---------------------------------------------------------
   6) SCROLL DOWN 화살표 (Figma 미정의 → 요청에 따라 추가)
   두 화살표가 차례로 페이드인되며 아래로 17px 흘러내림 (반복)
   17px = Figma 에 숨겨진 아래쪽 scroll down 사본과의 간격
   --------------------------------------------------------- */
.scroll-down__chev { animation: chev-flow 1.6s ease-in-out infinite both; }
.scroll-down__chev--dim { animation-delay: 0s; }
.scroll-down__chev:not(.scroll-down__chev--dim) { animation-delay: 0.2s; }
@keyframes chev-flow {
  0%   { opacity: 0; translate: 0 -8px; }
  40%  { opacity: 1; }
  80%, 100% { opacity: 0; translate: 0 9px; }
}

/* ---------------------------------------------------------
   5) LINE UP 슬라이더 (Figma 미정의 → 요청에 따라 추가)
   첫 활성 카드의 패널 등장은 섹션이 화면에 들어올 때 재생
   --------------------------------------------------------- */
.js .lineup:not(.is-inview) .product-card__body { animation-play-state: paused; }
.js .lineup:not(.is-inview) .product-card__more { transition: none; opacity: 0; }

/* ---------------------------------------------------------
   6) 서브 비주얼 배경 : 페이지 진입 시 100% → 110% 천천히 확대 (요청에 따라 추가)
   영역 밖으로 커지는 부분은 .sub-visual 의 overflow: hidden 으로 잘림
   --------------------------------------------------------- */
.sub-visual::before {
  transform-origin: center center;
  animation: sub-visual-zoom 3s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
@keyframes sub-visual-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

/* ---------------------------------------------------------
   모션 감소 설정 : 전환 제거 (JS 에서 최종 상태 즉시 적용)
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sub-visual::before { animation: none !important; }   /* 확대하지 않고 원래 크기 유지 */
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
