@charset "UTF-8";
/* =========================================================
   국민기계 - 메인페이지 섹션 (main.css)
   - 기준 시안 : Figma "메인페이지(최종) / 시안 F" (1920 x 7765)
   - common.css 다음에 불러옴 (토큰·단위 --u 는 common.css 에 정의)
   ========================================================= */

/* =========================================================
   HERO (Figma: Group 51 / B : MainTitleAni)
   ========================================================= */
.hero {
  position: relative;
  z-index: 2;
  height: max(calc(946 * var(--u)), 600px);
  overflow: hidden;
}
.hero__media,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; }

.hero__content {
  position: absolute;
  left: 50%;
  top: 41.12%;                       /* 389 / 946 */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}
.hero__sub {
  font-size: max(calc(24 * var(--u)), 16px);
  letter-spacing: -0.02em;
}
.hero__title {
  margin-top: calc(18 * var(--u));
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: max(calc(72 * var(--u)), 36px);
  letter-spacing: -0.02em;
  line-height: normal;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(calc(189 * var(--u)), 150px);
  height: max(calc(65 * var(--u)), 52px);
  margin-top: calc(59 * var(--u));
  background: var(--c-main);
  font-size: max(calc(18 * var(--u)), 15px);
  letter-spacing: -0.02em;
}
.btn-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25.37px;
  height: 25.37px;
}
.btn-contact__icon img { width: 17.94px; height: 17.94px; transform: rotate(-44.4deg); }

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: calc(48 * var(--u));
  transform: translateX(-50%);
  width: 111px;
  height: 68px;
  text-align: center;
}
.scroll-down__text {
  display: block;
  font-family: var(--ff-en);
  font-size: 24px;
  line-height: 34px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
}
.scroll-down__chev {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 10px;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-chev);
  font-size: 24px;
  line-height: 1;
}
.scroll-down__chev::first-letter { display: inline-block; }
.scroll-down__chev { transform: rotate(90deg); }
.scroll-down__chev--dim { top: 48px; color: rgba(255, 255, 255, 0.48); }
.scroll-down__chev:not(.scroll-down__chev--dim) { top: 58px; }

/* =========================================================
   STAGE : 1920 캔버스를 그대로 비례 축소하는 연출 영역
   (브랜드 메시지 / 슬로건) - 좌표는 Figma 값 그대로 style 속성에 기입
   ========================================================= */
.stage { position: relative; overflow: hidden; }
.stage__canvas {
  position: relative;
  width: calc(1920 * var(--su));
  margin-left: calc(50% - 960 * var(--su));
}
.pos {
  position: absolute;
  left: calc(var(--x) * var(--su));
  top: calc(var(--y) * var(--su));
  width: calc(var(--w) * var(--su));
  height: calc(var(--h) * var(--su));
}
.rot { display: flex; align-items: center; justify-content: center; }
.rot > i {
  flex: none;
  display: block;
  width: calc(var(--iw) * var(--su));
  height: calc(var(--ih) * var(--su));
  transform: rotate(var(--r));
}
.fade--down { background: linear-gradient(to bottom, rgba(7, 15, 31, 0), var(--c-bg) 76.79%); }
.fade--left { background: linear-gradient(to left, rgba(7, 15, 31, 0), var(--c-bg) 66.346%); }

/* ---------- BRAND MESSAGE (Figma: Frame 7, 1920 x 2333) ---------- */
.brand {
  z-index: 1;
  margin-top: calc(-15 * var(--su));          /* page y 931 (hero 946 과 15px 겹침) */
}
.brand__canvas {
  height: calc(2333 * var(--su));
  background: var(--c-bg);                     /* luminosity 블렌드 기준 배경 */
}
.brand__img { mix-blend-mode: luminosity; }
.brand__img img { width: 100%; height: 100%; object-fit: cover; }
.brand__img--02 img { opacity: 0.65; }
.brand__img--03 { --x: -382; --y: 1294.65; --w: 1347.29; --h: 898.19; overflow: hidden; }   /* 시작 위치 = Figma variant1 · 이미지 = 프로토타입 베리언트7·8 image 23 (734×978) · 최종 위치·자르기는 animation.css step6 */
.brand__img--03 img { opacity: 0.52; }
.brand__fade-157 { --x: 640; }

.brand__msg {
  position: absolute;
  left: 50%;
  top: calc(var(--y) * var(--su));
  z-index: 2;
  font-weight: 700;
  font-size: calc(55 * var(--su));
  line-height: calc(88 * var(--su));
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}
.highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 calc(14 * var(--su));
}
.highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(69 * var(--su));
  margin-top: calc(-34.5 * var(--su));
  background: var(--c-main);
  transform-origin: left center;
}

/* ---------- SLOGAN (Figma: A : Slogan, 1920 x 1080) ---------- */
.slogan {
  z-index: 3;
  margin-top: calc(-244 * var(--su));          /* page y 3020 (브랜드 하단과 겹침) */
}
.slogan__canvas { height: calc(1080 * var(--su)); }
.slogan__glow {                                  /* Figma Group 14 (blur glow) */
  position: absolute;
  left: calc(526 * var(--su));
  top: calc(-7 * var(--su));
  width: calc(868 * var(--su));
  height: calc(998 * var(--su));
  transform: rotate(-90deg);
  pointer-events: none;
}
.slogan__bracket {
  /* 단계별 값은 animation.css 에서 변경 */
  --bw: 65.91; --bh: 60; --bt: 2.8;
  --blt: 17.72; --blb: 32.95; --brt: 27.36; --brb: 23.94;
  /* --bk : 브래킷 크기 배율 · --bl : 선 굵기 배율 (768px 이하에서 변경 · responsive.css) */
  --bs: calc(var(--su) * var(--bk, 1));
  --bts: calc(var(--bt) * var(--su) * var(--bl, 1));
  position: absolute;
  left: 50%;
  top: calc(540.5 * var(--su));
  width: calc(var(--bw) * var(--bs));
  height: calc(var(--bh) * var(--bs));
  transform: translate(-50%, -50%);
}
.sb { position: absolute; display: block; background: var(--c-bg); }
.sb--top    { left: 0; top: 0;    width: 100%; height: var(--bts); }
.sb--bottom { left: 0; bottom: 0; width: 100%; height: var(--bts); }
.sb--lt { left: 0;  top: 0;    width: var(--bts); height: calc(var(--blt) * var(--bs)); }
.sb--lb { left: 0;  bottom: 0; width: var(--bts); height: calc(var(--blb) * var(--bs)); }
.sb--rt { right: 0; top: 0;    width: var(--bts); height: calc(var(--brt) * var(--bs)); }
.sb--rb { right: 0; bottom: 0; width: var(--bts); height: calc(var(--brb) * var(--bs)); }

.slogan__text {
  position: absolute;
  left: 50%;
  top: calc(512 * var(--su));
  transform: translateX(-50%);
  font-weight: 700;
  font-size: calc(48 * var(--su));
  line-height: calc(57 * var(--su));
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* =========================================================
   TECHNOLOGY (page y 4090)
   ========================================================= */
.tech {
  position: relative;
  z-index: 2;
  margin-top: calc(-10 * var(--u));
  padding-bottom: calc(161 * var(--u));
}
.tech__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow-x: clip;                              /* 좌우만 자르고 아래(LINE UP)로는 이어지게 */
}
.tech__circuit {                                 /* Figma image 10 */
  position: absolute;
  left: calc(50% - 1791 * var(--u));             /* page x -831 */
  top: calc(-237 * var(--u));
  width: calc(2166 * var(--u));
  height: calc(1850 * var(--u));
  object-fit: cover;
  opacity: 0.23;
}
.tech__glow {                                    /* Figma Group 28 */
  position: absolute;
  left: calc(50% + 608.57 * var(--u));
  top: calc(270 * var(--u));
  width: calc(644.43 * var(--u));
  height: calc(723.26 * var(--u));
}
.tech__inner { z-index: 1; }

.tech__list {
  display: flex;
  align-items: flex-start;
  margin-top: calc(153 * var(--u));
}
.tech-card {
  position: relative;
  flex: none;
  width: calc(363 * var(--u));
  height: calc(449 * var(--u));
  border-radius: calc(35 * var(--u));
  background: var(--c-card);
  text-align: center;
  transition: background-color 0.3s ease;
}
.tech-card:hover { background: var(--c-main); }
/* AOS 의 transition-property(opacity, transform) 가 배경 전환을 덮어쓰지 않도록 */
.tech-card[data-aos] { transition-property: opacity, transform, background-color; }
/* 배경색 전환은 AOS duration(800ms) 과 별개로 0.3s 유지 (AOS 속성 선택자보다 우선하도록 클래스 중복) */
.tech-card.tech-card[data-aos][data-aos-duration] {
  transition-duration: 800ms, 800ms, 0.3s;
  transition-timing-function: linear, linear, ease;
}
.tech-card:nth-child(1) { margin-left: calc(104 * var(--u)); }
.tech-card:nth-child(2) { margin-left: calc(92 * var(--u)); margin-top: calc(193 * var(--u)); }
.tech-card:nth-child(3) { margin-left: calc(82 * var(--u)); margin-top: calc(68 * var(--u)); }

.tech-card__img { position: absolute; mix-blend-mode: lighten; overflow: hidden; }
.tech-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tech-card__img--01 { left: calc(41 * var(--u)); top: calc(31 * var(--u)); width: calc(262 * var(--u)); height: calc(262 * var(--u)); }
/* 02 도 01 · 03 처럼 lighten : hover 시 파란 배경 위에서 이미지의 어두운 배경이 비치지 않도록 (요청)
   기본 상태는 카드 배경(#141c2d)과 이미지 배경색이 거의 같아 이전(normal)과 동일하게 보임 */
.tech-card__img--02 { left: calc(67 * var(--u)); top: calc(30 * var(--u)); width: calc(229 * var(--u)); height: calc(279 * var(--u)); }
.tech-card__img--02 img { width: 121.89%; max-width: none; margin-left: -21.89%; }
.tech-card__img--03 { left: calc(35 * var(--u)); top: calc(29 * var(--u)); width: calc(287 * var(--u)); height: calc(287 * var(--u)); }

.tech-card__title {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(310 * var(--u));
  font-weight: 700;
  font-size: max(calc(28 * var(--u)), 20px);
  letter-spacing: -0.02em;
}
.tech-card__desc {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(357 * var(--u));
  font-size: max(calc(20 * var(--u)), 15px);
  letter-spacing: -0.02em;
  color: #b8b8b8;                                /* 요청 */
}

/* =========================================================
   LINE UP (page y 5160)
   ========================================================= */
.lineup { position: relative; z-index: 2; }
.lineup__desc {
  margin-top: calc(9 * var(--u));
  font-size: max(calc(20 * var(--u)), 15px);
  letter-spacing: -0.02em;
}
/* 슬라이더 뷰포트 : 컨테이너 왼쪽 끝에서 잘리고, 오른쪽은 화면 끝까지 */
.lineup__track {
  --slide-dur: 0.8s;
  margin-top: calc(80 * var(--u));
  margin-right: calc((var(--vw) - 100%) / -2);
  overflow-x: hidden;
  overflow-x: clip;                              /* 세로(활성 카드 패널·more 버튼)는 잘리지 않게 */
  touch-action: pan-y;
}
.lineup__list {
  display: flex;
  align-items: flex-start;
  gap: calc(64 * var(--u));
  width: max-content;
  padding-left: calc(2 * var(--u));
}
.lineup__list.is-sliding { transition: transform var(--slide-dur) cubic-bezier(0.65, 0, 0.35, 1); }
.lineup__track { -webkit-user-select: none; user-select: none; }
.lineup__track img { -webkit-user-drag: none; }
.lineup__track.is-dragging { cursor: grabbing; }

.product-card {
  --cw: calc(363 * var(--u));                    /* 카드 폭 (반응형에서 변경) */
  position: relative;
  flex: none;
  width: var(--cw);
  margin-top: calc(73 * var(--u));
  text-align: center;
  transition: margin-top var(--slide-dur) cubic-bezier(0.65, 0, 0.35, 1);
}
.product-card__link { position: relative; z-index: 0; display: block; }
.product-card__media {
  position: relative;
  z-index: 1;                                    /* 본문 패널이 이미지 뒤로 숨도록 */
  height: calc(var(--cw) * 442 / 363);
  border-radius: calc(var(--cw) * 35 / 363);
  overflow: hidden;
  background: var(--c-bg);
  isolation: isolate;
}
.product-card__media img,
.product-card__media video {                     /* 제품 영상 (요청 · 이미지 대신 자동 재생) */
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;                    /* Figma: Video fill LUMINOSITY 60% */
  opacity: 0.6;
  transition: opacity 0.6s ease;
}
.product-card__body {
  position: relative;
  z-index: 0;
  padding-top: calc(29 * var(--u));
}
.product-card__title {
  font-weight: 700;
  font-size: max(calc(28 * var(--u)), 20px);
  letter-spacing: -0.02em;
  line-height: normal;
}
.product-card__desc {
  margin-top: calc(13 * var(--u));
  font-size: max(calc(18 * var(--u)), 14px);
  letter-spacing: -0.02em;
  color: var(--c-sub);
}
.product-card__more {
  display: inline-block;
  margin-top: calc(57 * var(--u));
  font-size: max(calc(18 * var(--u)), 14px);
  letter-spacing: -0.02em;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

/* 활성 카드 (좌측 첫 번째 카드 = Figma 시안의 첫 번째 카드 상태)
   1) 이미지 원본 그대로 (luminosity 필터 해제)
   2) 파란 본문 패널이 이미지 뒤에 숨어 있다가 아래로 내려오며 노출 (Figma: 패널 y306, h297)
   3) 패널이 내려온 뒤 more view → 노출 */
.product-card.is-active { margin-top: 0; }
.product-card.is-active .product-card__media img,
.product-card.is-active .product-card__media video { mix-blend-mode: normal; opacity: 1; }
.product-card.is-active .product-card__body {
  min-height: calc(var(--cw) * 297 / 363);
  margin-top: calc(var(--cw) * -136 / 363);      /* 이미지 하단(442)과 136px 겹침 = 패널 시작 y306 */
  padding-top: calc(var(--cw) * 165 / 363);      /* 136 + 29 : 텍스트 위치는 비활성 카드와 동일 */
  padding-bottom: calc(var(--cw) * 24 / 363);
  border-radius: calc(var(--cw) * 35 / 363);
  background: var(--c-main);
  animation: card-body-drop 0.8s cubic-bezier(0, 0, 0.58, 1) 0.3s both;
}
.product-card.is-active .product-card__more {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 1s, transform 0.5s cubic-bezier(0, 0, 0.58, 1) 1s, visibility 0s 1s;
}
@keyframes card-body-drop {
  /* 패널 하단이 이미지 하단에 맞춰진 위치 = 이미지 뒤에 완전히 숨은 상태 */
  from { transform: translateY(calc(-100% + var(--cw) * 136 / 363)); }
  to   { transform: none; }
}

/* =========================================================
   NEWS ROOM (page y 6294)
   ========================================================= */
.news {
  position: relative;
  z-index: 2;
  padding-top: calc(315 * var(--u));
  padding-bottom: calc(169 * var(--u));
}
/* 배경 : 블러가 적용된 단일 이미지 (img/news-section-bgi.png, 1638 x 952)
   기존 Figma 두 레이어 영역(y 424~1233)의 중심에 맞춰 배치 */
.news__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.news__bg::before {
  content: "";
  position: absolute;
  left: calc(50% - 819 * var(--u));
  top: calc(352 * var(--u));
  width: calc(1638 * var(--u));
  height: calc(952 * var(--u));
  background: url("../img/news-section-bgi.png") center / cover no-repeat;
  mix-blend-mode: luminosity;                    /* Figma: LUMINOSITY 25% */
  opacity: 0.25;
}
.news__inner {
  z-index: 1;
  display: grid;
  grid-template-columns: calc(660 * var(--u)) calc(780 * var(--u));
  align-items: start;
}
.news__title { font-size: max(calc(55 * var(--u)), 34px); }
.news__list { margin-top: calc(19 * var(--u)); position: relative; }
.news-item {
  position: relative;
  border-top: 1px solid var(--c-line);
}
.news-item:first-child { border-top: 3px solid var(--c-white); }
.news-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.54); }
.news-item__link {
  display: flex;
  flex-direction: column;
  min-height: calc(208 * var(--u));
  padding: calc(37 * var(--u)) calc(40 * var(--u)) calc(34 * var(--u));
}
.news-item:first-child .news-item__link { min-height: calc(206 * var(--u)); }
.news-item__cate {
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.02em;
  color: var(--c-news);
}
.news-item__title {
  display: block;
  max-width: max(calc(560 * var(--u)), 400px);
  margin-top: 8px;
  font-weight: 700;
  font-size: max(calc(24 * var(--u)), 18px);
  letter-spacing: -0.02em;
  line-height: normal;
}
.news-item__date {
  margin-top: auto;
  padding-top: 16px;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.02em;
  color: var(--c-gray);
}
