:root {
  --ink: #151515;
  --muted: #8b8b8b;
  --line: #e8e8e8;
  --soft: #f3f3f3;
  --brand: #e5262c;
  --green: #2eb867;
  --container: 1120px;
  --utility-height: 32px;
  --nav-height: 72px;
  --header-height:
    calc(
      var(--utility-height) +
      var(--nav-height)
    );
}

/* =========================================
   기본 설정
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;

  color: var(--ink);
  background: #fff;

  font-family:
    Pretendard,
    "Noto Sans KR",
    "Malgun Gothic",
    Arial,
    sans-serif;

  line-height: 1.55;

  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.container {
  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99999;

  padding: 10px 14px;

  color: #fff;
  background: #111;

  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* =========================================
   헤더
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  width: 100%;

  background: #fff;

  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.08);
}

/* 상단 유틸리티 */

.utility-bar {
  height: var(--utility-height);

  color: #5d5d5d;
  background: #efefef;

  font-size: 10px;
}

.utility-inner {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.utility-badge {
  height: 20px;

  display: inline-flex;
  align-items: center;

  padding: 0 13px;

  color: #fff;
  background: #45c879;

  border-radius: 999px;

  font-weight: 700;
  white-space: nowrap;
}

.utility-links {
  display: flex;
  align-items: center;

  gap: 10px;
}

.social {
  width: 19px;
  height: 19px;

  display: inline-grid;
  place-items: center;

  overflow: hidden;

  border-radius: 5px;
}

.social img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* 메인 내비게이션 */

.nav-bar {
  position: relative;

  height: var(--nav-height);

  background:
    rgba(255, 255, 255, 0.98);

  border-bottom:
    1px solid rgba(0, 0, 0, 0.04);
}

.nav-inner {
  position: relative;

  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;

  flex: 0 0 auto;
}

.brand-logo {
  width: 128px;
  height: auto;
}

.menu-toggle {
  display: none;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.menu-word {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.menu-icon {
  width: 24px;
  height: 24px;

  object-fit: contain;

  transition:
    transform 0.25s ease;
}

/* PC 메뉴 */

.primary-nav {
  align-self: stretch;
}

.nav-list {
  height: 100%;

  display: flex;
  align-items: stretch;

  gap:
    clamp(
      34px,
      5vw,
      76px
    );
}

.nav-item {
  position: relative;

  display: flex;
  align-items: stretch;
}

.nav-item-head {
  display: flex;
  align-items: center;

  height: 100%;
}

.nav-link {
  position: relative;

  height: 100%;

  display: flex;
  align-items: center;

  padding: 0;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;

  white-space: nowrap;
}

/* 상위 메뉴 빨간 밑줄 */

.nav-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 13px;

  width: 0;
  height: 2px;

  background: var(--brand);

  transform: translateX(-50%);

  transition:
    width 0.25s ease;
}

.nav-item:hover
> .nav-item-head
.nav-link::after,
.nav-item:focus-within
> .nav-item-head
.nav-link::after {
  width: 100%;
}

/* 모바일 화살표 버튼은 PC에서 숨김 */

.submenu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  color: #777;
  background: transparent;

  border: 0;

  cursor: pointer;
}

.submenu-arrow {
  width: 8px;
  height: 8px;

  display: block;

  margin: auto;

  border-right:
    2px solid currentColor;

  border-bottom:
    2px solid currentColor;

  transform:
    rotate(45deg)
    translate(-1px, -1px);

  transition:
    transform 0.22s ease;
}

/* =========================================
   PC 세부 메뉴
========================================= */

@media (min-width: 761px) {
  .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 100;

    width: 184px;

    padding: 10px 0;

    background:
      rgba(255, 255, 255, 0.99);

    border:
      1px solid #ededed;

    border-top:
      2px solid var(--brand);

    border-radius:
      0 0 10px 10px;

    box-shadow:
      0 14px 30px
      rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
      translate(-50%, -8px);

    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.24s ease;
  }

  .submenu-products {
    width: 194px;
  }

  .nav-item:hover > .submenu,
  .nav-item:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
      translate(-50%, 0);
  }

  .submenu li {
    width: 100%;
  }

  .submenu a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    padding: 0 24px;

    color: #666;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;

    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    color: var(--brand);
    background: #f8f8f8;
  }

  /* 세부메뉴 텍스트 가운데 정렬 */

  .submenu-text {
    width: auto;
    min-width: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0;

    white-space: nowrap;
    text-align: center;
  }

  .submenu-products .submenu-text {
    width: auto;
  }

  .submenu-text > span {
    display: inline-block;

    flex: 0 0 auto;
  }
}

/* =========================================
   메인 영상
========================================= */

.hero {
  position: relative;

  width: 100%;

  overflow: hidden;

  background: #111;
}

.hero-video {
  width: 100%;
  height: auto;

  aspect-ratio: 1.876 / 1;

  object-fit: cover;
  object-position: center;
}

.scroll-down {
  position: absolute;
  right: 12.8%;
  bottom: 9%;
  z-index: 3;

  width: 38px;
  height: 38px;

  filter:
    drop-shadow(
      0 2px 12px
      rgba(0, 0, 0, 0.55)
    );

  animation:
    bounce 1.8s infinite;
}

.scroll-down img {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* =========================================
   신제품 영역
========================================= */

.launch-section {
  background: #fff;
}

.launch-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.34fr)
    minmax(300px, 0.82fr);

  align-items: center;

  gap: 52px;
}

.media-card {
  position: relative;

  width: 100%;

  overflow: hidden;

  background: #fff;

  border-radius: 13px;

  isolation: isolate;
}

.feature-video {
  width:
    calc(100% + 4px);

  max-width: none;
  height: auto;

  margin: -2px;

  object-fit: contain;
}

.media-card::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  border: 2px solid #fff;
  border-radius: inherit;

  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 13px;

  color: #8c8c8c;

  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mini-mark {
  width: 40px;
  height: 29px;

  display: inline-block;

  flex: 0 0 auto;
}

.mini-mark img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.launch-copy h1 {
  margin: 0 0 16px;

  font-size:
    clamp(
      28px,
      3.1vw,
      43px
    );

  line-height: 1.22;
  letter-spacing: -0.065em;
}

.launch-copy p {
  margin: 0 0 16px;

  color: #727272;

  font-size: 15px;
  line-height: 1.8;
  letter-spacing: -0.035em;
}

.launch-copy ul {
  margin: 0 0 22px;
  padding-left: 19px;

  color: #8a8a8a;

  font-size: 13px;
  line-height: 1.9;

  list-style: disc;
}

.text-link {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  font-size: 14px;
  font-weight: 800;
}

.text-link img {
  width: 20px;
  height: 20px;

  transition:
    transform 0.2s ease;
}

.text-link:hover img {
  transform: translateX(5px);
}

/* =========================================
   제품소개
========================================= */

.product-section {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 44px;
}

.section-kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 6px;

  margin-bottom: 20px;

  font-size: 12px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0 0 13px;

  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.065em;
}

.section-heading > p {
  margin: 0;

  color: #9b9b9b;

  font-size: 14px;
}

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.product-card {
  position: relative;

  display: block;

  overflow: hidden;

  background: #c8c8c8;

  isolation: isolate;
}

.product-card::after {
  content: "";

  position: absolute;
  inset: 0;

  border:
    0 solid
    rgba(255, 255, 255, 0.8);

  transition:
    border-width 0.25s ease;

  pointer-events: none;
}

.product-card img {
  width: 100%;

  aspect-ratio: 1.145 / 1;

  object-fit: cover;

  transition:
    transform 0.45s ease,
    filter 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.04);

  filter: brightness(1.05);
}

.product-card:hover::after {
  border-width: 7px;
}

/* =========================================
   기업 비전
========================================= */

.vision-section {
  position: relative;

  min-height: 540px;

  display: grid;
  place-items: center;

  overflow: hidden;

  color: #fff;
  background: #263c27;

  text-align: center;
}

.vision-section > img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.vision-overlay {
  position: absolute;
  inset: 0;

  background:
    rgba(0, 22, 3, 0.28);
}

.vision-copy {
  position: relative;
  z-index: 2;

  width:
    min(
      900px,
      calc(100% - 40px)
    );

  text-shadow:
    0 2px 15px
    rgba(0, 0, 0, 0.35);
}

.vision-copy > span {
  display: block;

  margin-bottom: 12px;

  font-size: 16px;
  font-weight: 700;
}

.vision-copy h2 {
  margin: 0 0 19px;

  font-size:
    clamp(
      22px,
      2.8vw,
      36px
    );

  line-height: 1.38;
  letter-spacing: -0.045em;
}

.vision-copy p {
  margin: 0;

  font-size: 14px;
  line-height: 1.75;
}

/* =========================================
   뉴스
========================================= */

.news-section {
  background: #fff;
}

.news-layout {
  display: grid;

  grid-template-columns:
    170px 1fr;

  align-items: start;

  gap: 44px;
}

.news-heading {
  position: sticky;
  top:
    calc(
      var(--header-height) +
      30px
    );
}

.news-heading h2 {
  font-size: 34px;

  white-space: nowrap;
}

.news-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 38px 22px;
}

.news-card {
  min-width: 0;
}

.news-card a {
  display: block;
}

.news-card img {
  width: 100%;

  aspect-ratio: 1.23 / 1;

  object-fit: cover;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.news-card h3 {
  margin: 13px 0 0;

  text-align: center;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.045em;

  transition:
    color 0.2s ease;
}

.news-card a:hover img {
  transform: translateY(-4px);

  box-shadow:
    0 12px 30px
    rgba(0, 0, 0, 0.1);
}

.news-card a:hover h3 {
  color: var(--brand);
}

/* =========================================
   푸터
========================================= */

.site-footer {
  color: #6d6d6d;
  background: #fff;

  border-top: 1px solid var(--line);

  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  border-bottom:
    1px solid var(--line);
}

.footer-links .container {
  min-height: 40px;

  display: flex;
  align-items: center;
}

.footer-links a {
  padding: 0 18px;

  border-right:
    1px solid #ddd;

  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.footer-links a:first-child {
  padding-left: 0;
}

.footer-main {
  display: grid;

  grid-template-columns:
    145px
    1.2fr
    1fr
    auto;

  align-items: center;

  gap: 22px;

  padding-top: 20px;
  padding-bottom: 18px;
}

.footer-brand img {
  width: 120px;
}

.company-info {
  font-size: 13px;
}

.company-info p {
  display: flex;

  gap: 10px;

  margin: 0 0 4px;
}

.company-info p:last-child {
  margin-bottom: 0;
}

.company-info strong {
  flex: 0 0 82px;

  color: #333;

  font-weight: 700;
}

.footer-social {
  display: flex;

  gap: 8px;
}

.footer-social a {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border:
    1px solid #d3d3d3;

  border-radius: 50%;
}

.footer-social img {
  width: 17px;
  height: 17px;

  object-fit: contain;
}

.copyright {
  margin: 0;

  padding: 7px 20px;

  color: #a3a3a3;

  border-top:
    1px solid #f0f0f0;

  text-align: center;

  font-size: 11px;
}

/* =========================================
   스크롤 애니메이션
========================================= */

.js-enabled .reveal {
  opacity: 0;

  transform:
    translate3d(0, 42px, 0);

  transition:
    opacity 0.75s ease,
    transform 0.85s ease;
}

.js-enabled .reveal-left {
  transform:
    translate3d(-50px, 0, 0);
}

.js-enabled .reveal-right {
  transform:
    translate3d(50px, 0, 0);
}

.js-enabled .reveal-scale {
  transform:
    translate3d(0, 28px, 0)
    scale(0.96);
}

.js-enabled .reveal.is-visible {
  opacity: 1;

  transform:
    translate3d(0, 0, 0)
    scale(1);
}

/* =========================================
   태블릿
========================================= */

@media (max-width: 1000px) {
  .nav-list {
    gap: 34px;
  }

  .launch-grid {
    gap: 38px;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-heading {
    position: static;

    margin-bottom: 0;
  }

  .section-kicker {
    flex-direction: row;
    align-items: center;
  }

  .footer-main {
    grid-template-columns:
      130px
      1fr
      1fr;
  }

  .footer-social {
    grid-column: 3;

    justify-self: end;
  }
}

/* =========================================
   모바일
========================================= */

@media (max-width: 760px) {
  :root {
    --nav-height: 66px;
  }

  .container {
    width:
      min(
        calc(100% - 32px),
        var(--container)
      );
  }

  .section {
    padding: 70px 0;
  }

  /* 모바일 상단 */

  .utility-inner {
    gap: 8px;
  }

  .utility-badge {
    min-width: 0;

    height: 22px;

    padding: 0 9px;

    overflow: hidden;

    flex: 0 1 auto;

    font-size: 9px;

    text-overflow: ellipsis;
  }

  .utility-home,
  .utility-divider {
    display: none;
  }

  .utility-links {
    flex: 0 0 auto;

    gap: 7px;
  }

  .social {
    width: 21px;
    height: 21px;
  }

  /* 모바일 로고와 메뉴 버튼 */

  .brand-logo {
    width: 116px;
  }

  .menu-toggle {
    min-width: 91px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    background: #fff;

    border:
      1px solid #ddd;

    border-radius: 999px;

    box-shadow:
      0 5px 16px
      rgba(0, 0, 0, 0.1);
  }

  .menu-toggle.is-open {
    color: #fff;
    background: #222;

    border-color: #222;
  }

  .menu-toggle.is-open .menu-icon {
    filter:
      brightness(0)
      invert(1);

    transform: rotate(90deg);
  }

  /* 모바일 전체 메뉴 */

  .primary-nav {
    position: absolute;
    top: var(--nav-height);
    left: -16px;
    right: -16px;
    z-index: 100;

    max-height:
      calc(
        100vh -
        var(--header-height)
      );

    padding: 8px 18px 18px;

    overflow-y: auto;

    background:
      rgba(255, 255, 255, 0.99);

    border-top:
      1px solid #eee;

    box-shadow:
      0 16px 30px
      rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
      translateY(-10px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
  }

  .nav-list {
    height: auto;

    display: grid;

    gap: 0;
  }

  .nav-item {
    display: block;

    width: 100%;
  }

  .nav-item-head {
    width: 100%;
    height: auto;

    display: flex;
    align-items: center;

    border-bottom:
      1px solid #f0f0f0;
  }

  .nav-link {
    min-width: 0;
    height: auto;

    flex: 1 1 auto;

    padding: 14px 8px;

    font-size: 15px;
  }

  .nav-link::after {
    display: none;
  }

  /* 모바일 세부 메뉴 화살표 */

  .submenu-toggle {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    flex: 0 0 48px;
  }

  .nav-item.is-submenu-open
  .submenu-arrow {
    transform:
      rotate(225deg)
      translate(-1px, -1px);
  }

  /* 모바일 세부 메뉴 */

  .submenu {
    position: static;

    max-height: 0;

    overflow: hidden;

    background: #f7f7f7;

    opacity: 0;
    visibility: hidden;

    transition:
      max-height 0.32s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .nav-item.is-submenu-open
  > .submenu {
    max-height: 420px;

    opacity: 1;
    visibility: visible;
  }

  .submenu li + li {
    border-top:
      1px solid #ededed;
  }

  .submenu a {
    display: block;

    width: 100%;

    padding:
      11px 18px 11px 27px;

    color: #555;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    color: var(--brand);
    background: #fff;
  }

  /*
   * 모바일에서는 글자를 붙여서 표시
   * HTML에 실제 글자가 있으므로 빈 메뉴가 나오지 않습니다.
   */

  .submenu-text {
    display: inline-flex;
    align-items: center;

    width: auto;

    gap: 0;
  }

  .submenu-text > span {
    display: inline;
  }

  /* 메인 영상 */

  .hero-video {
    aspect-ratio: 1.44 / 1;
  }

  .scroll-down {
    right: 8%;
    bottom: 6%;

    width: 29px;
    height: 29px;
  }

  /* 신제품 */

  .launch-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .launch-copy h1 {
    font-size: 31px;
  }

  .eyebrow {
    font-size: 18px;
  }

  /* 제품 */

  .product-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  /* 비전 */

  .vision-section {
    min-height: 470px;
  }

  .vision-copy p br {
    display: none;
  }

  /* 뉴스 */

  .news-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 30px 16px;
  }

  /* 푸터 */

  .footer-main {
    grid-template-columns:
      1fr 1fr;

    gap: 13px 20px;

    padding-top: 17px;
    padding-bottom: 15px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .company-info {
    font-size: 12px;
  }

  .company-info strong {
    flex-basis: 76px;
  }

  .footer-social {
    grid-column: 1 / -1;

    justify-self: start;
  }
}

/* =========================================
   작은 모바일
========================================= */

@media (max-width: 500px) {
  .container {
    width:
      min(
        calc(100% - 28px),
        var(--container)
      );
  }

  .hero-video {
    aspect-ratio: 1.08 / 1;
  }

  .launch-section {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .launch-copy h1 {
    font-size: 27px;
  }

  .launch-copy p {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .vision-section {
    min-height: 430px;
  }

  .vision-copy > span {
    font-size: 13px;
  }

  .vision-copy h2 {
    font-size: 22px;
  }

  .vision-copy p {
    font-size: 12px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-links .container {
    flex-wrap: wrap;

    padding: 6px 0;
  }

  .footer-links a {
    padding: 4px 8px;

    border-right: 0;

    font-size: 11px;
  }

  .footer-links a:first-child {
    padding-left: 8px;
  }

  .footer-main {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .company-info p {
    display: grid;

    grid-template-columns:
      78px 1fr;

    gap: 4px;
  }

  .footer-social {
    grid-column: 1;
  }
}

/* =========================================
   움직임 최소화
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   메인 동영상 높이만 조정
   - 기존 헤더/메뉴/본문 CSS는 수정하지 않음
========================================================= */
.hero-video {
  aspect-ratio: 2.20 / 1;
}

@media (max-width: 760px) {
  .hero-video {
    aspect-ratio: 1.65 / 1;
  }
}

@media (max-width: 500px) {
  .hero-video {
    aspect-ratio: 1.30 / 1;
  }
}

