/* =========================================================
   BRANDM — 기존 아임웹 사이트 재현 스타일
   기준 실측: PC 1440px(콘텐츠 1425px) / 모바일 375px
   구간: PC > 992px / 태블릿 769–992px(PC 레이아웃 + 글자 축소) / 모바일 ≤ 768px
   ========================================================= */

@import url("../fonts/pretendard/pretendard.css");

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

p, h1, h2, h3 { margin: 0; font-size: inherit; font-weight: inherit; }
h1 > span, h2 > span { display: block; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
hr { margin: 0; border: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 색상 */
.g  { color: #999; }
.w  { color: #fff; }
.b  { font-weight: 700; }

/* PC / 모바일 전용 블록 (아임웹 pc_section / mobile_section 대응) */
.mo-only { display: none !important; }

/* 공통 가로 여백 */
.inner { padding-left: 40px; padding-right: 40px; }

/* 링크 hover: 아임웹 기본 fade (0.3s, 50% 흰색) */
.fade-link { transition: color .3s, border-color .3s, opacity .3s; }
.fade-link:hover { color: rgba(255, 255, 255, .5); }

/* ---------- 스크롤 진입 애니메이션 (animate.css fadeInUp / fadeIn) ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.js [data-anim] { opacity: 0; }
.js [data-anim].is-in {
  animation-name: var(--anim, fadeInUp);
  animation-duration: var(--dur, .7s);
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease;
  animation-fill-mode: both;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; }
  .js [data-anim].is-in { animation: none; }
}

/* ---------- 헤더 ---------- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 40px;
}
.site-logo { font-size: 26px; font-weight: 700; line-height: 44.2px; }
.site-nav { display: flex; }
.site-nav a {
  display: block;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 23.8px;
}

/* ---------- 공통 타이포 ---------- */
.t72 { font-size: 72px; font-weight: 700; line-height: 79.2px; }
.t36 { font-size: 36px; font-weight: 700; line-height: 43.2px; }
.t24 { font-size: 24px; font-weight: 700; line-height: 30px; }
.t18 { font-size: 18px; line-height: 27.2px; }
.t16 { font-size: 16px; line-height: 27.2px; }
.t14 { font-size: 14px; line-height: 27.2px; }

/* 문장 속 별(✳) 아이콘: Froala fr-dii (middle, margin 5px 0) */
.inline-star {
  display: inline-block;
  width: 72px;
  height: 72px;
  margin: 5px 0;
  vertical-align: middle;
}

/* =========================================================
   메인 (/)
   ========================================================= */

/* 1. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 330px;
  padding-bottom: 350px;
}
.hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 750px;
  height: 750px;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}
.hero .inner { position: relative; }
.hero-title {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-title > span:nth-child(1) { grid-column: 1; }
.hero-title > span:nth-child(2) { grid-column: 3; text-align: right; }
.hero-title > span:nth-child(3) { grid-column: 4; text-align: right; }
.hero-sub { margin-top: 30px; }
.hero-strong { margin-top: 12px; }

/* 2. Philosophy */
.philosophy {
  padding-top: 333px;
  padding-bottom: 76px;
  background: url("../img/philosophy-bg-pc.webp") center / cover no-repeat;
}
.philosophy-star {
  float: right;
  width: 90px;
  height: 90px;
  margin: 5px 0 5px 5px;
}
.philosophy .lead { margin-top: 30px; }
.philosophy .strong { margin-top: 12px; }
.philosophy .story { margin-top: 273px; text-align: right; }

/* 3. Our Services */
.services { padding-top: 330px; padding-bottom: 49px; }
.services-grid {
  display: grid;
  grid-template-columns: 435fr 890fr;
  gap: 20px;
  align-items: start;
  margin-top: 60px;
}
.services-col { display: grid; gap: 20px; align-items: start; }
.services-row {
  display: grid;
  grid-template-columns: 549fr 321fr;
  gap: 20px;
  align-items: start;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: #000;
  padding: 40px 40px 45px;
}
.card--a { padding-left: 30px; }
.card--c,
.card--e { padding-right: 30px; }
.card-title { font-size: 24px; font-weight: 700; line-height: 30px; }
.card-text { margin-top: 28px; font-size: 16px; line-height: 27.2px; color: #999; }
.card--c .card-text { color: #fff; }
.card-icon { width: 120px; height: 120px; }
.card--a .card-icon { margin-top: 195px; }
.card--c .card-icon { width: 110px; height: 110px; margin-top: 59px; }
.card--d .card-icon { margin-top: 114px; }
.card--e .card-icon { margin-top: 113px; }
.card--b {
  justify-content: center;
  align-items: center;
  height: 287px;
  padding: 0;
}

/* 4. Channels (로고 흐름) */
.channels {
  container-type: inline-size;
  overflow: hidden;
  padding: 420px 0;
  background: url("../img/channels-bg-pc.webp") center / cover no-repeat;
}
.marquee {
  --item: calc((100cqw + 80px) / 5);
  display: flex;
  width: max-content;
  padding-left: 60px;
  animation: marquee 45s ease infinite;
}
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
/* owl 슬롯: 폭 (화면+80)/5, 안쪽 여백 100px → 로고 = 슬롯-200, 4:3 cover */
.marquee li { flex: none; width: var(--item); padding: 100px 200px 100px 0; }
.marquee img {
  width: calc(var(--item) - 200px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--item) * -5), 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- 푸터 (PC) ---------- */
.site-footer { background: #000; padding-bottom: 80px; }
.site-footer.pad-home { padding-top: 375px; }
.site-footer.pad-about { padding-top: 228px; }
.site-footer.pad-contact { padding-top: 240px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { font-size: 72px; font-weight: 700; line-height: 79.2px; letter-spacing: -1px; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-end; padding-top: 5px; }
.footer-cta img { width: 100px; height: 100px; }
.footer-cta span { margin-top: 5px; font-size: 18px; font-weight: 700; line-height: 27.2px; }
.footer-line { margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, .2); }
.footer-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 163px;
  margin-top: 30px;
  font-size: 14px;
  line-height: 27.2px;
}
.footer-info strong { color: #fff; font-weight: 700; }
.footer-info span { color: #999; }

/* =========================================================
   About (/about)
   ========================================================= */
.about-intro { padding-top: 228px; }
.about-body { margin-left: calc(7 / 12 * 100%); }
.about-lead { margin-top: 15px; }
.about-list { margin-top: 64px; margin-bottom: 0; padding: 0; list-style: none; }
.about-list li {
  display: grid;
  grid-template-columns: 2fr 3fr;
  padding: 12px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.about-list li + li { margin-top: 2px; }
.about-list dt,
.about-list .label { font-size: 16px; font-weight: 700; line-height: 27.2px; }
.about-list .desc { font-size: 16px; line-height: 27.2px; color: #999; }

/* =========================================================
   Contact (/contact)
   ========================================================= */
.contact-intro { padding-top: 240px; }
.contact-text { margin-top: 30px; }
.contact-btns { display: flex; gap: 15px; margin-top: 140px; }
.btn-line {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: color .3s, border-color .3s;
}
.btn-line:hover { color: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .5); }

/* 404 */
.notfound { padding: 228px 0 0; }
.notfound .t16 { margin-top: 30px; }
.notfound .contact-btns { margin-top: 60px; }

/* 992–1280px: 기존 사이트는 좌우 여백 40px 이 사라짐 (1281px 이상에서만 40px) */
@media (min-width: 992px) and (max-width: 1280px) {
  .inner,
  .site-header { padding-left: 0; padding-right: 0; }
}

/* =========================================================
   모바일 (≤ 991px): 아임웹 모바일 전용 섹션 재현
   (기존 사이트는 992px 미만에서 모바일 섹션으로 전환)
   ========================================================= */
@media (max-width: 991px) {
  .pc-only { display: none !important; }
  .mo-only { display: block !important; }

  .inner { padding-left: 15px; padding-right: 15px; }

  .site-header { height: 54px; padding: 0 15px; }
  .site-logo { font-size: 20px; line-height: 34px; }
  .site-nav { align-items: center; gap: 14px; }
  /* 기존 사이트 그대로: About 14px, Contact 13px (Bold) */
  .site-nav a { padding: 0; font-size: 14px; font-weight: 700; line-height: 19px; }
  .site-nav a + a { font-size: 13px; }

  .m36 { font-size: 36px; font-weight: 700; line-height: 43.2px; }
  .m18 { font-size: 18px; font-weight: 700; line-height: 27.2px; }
  .m16 { font-size: 16px; line-height: 24px; }
  .m16b { font-size: 16px; font-weight: 700; line-height: 27.2px; }
  .m14 { font-size: 14px; line-height: 24px; }
  .m14 p { line-height: 24px; }

  .inline-star { width: 36px; height: 36px; }

  /* Hero */
  .hero-m { position: relative; overflow: hidden; padding: 306px 0 220px; }
  .hero-m .hero-media { width: 500px; height: 500px; }
  .hero-m .inner { position: relative; }
  .hero-m .r { text-align: right; }
  .hero-m .sub { margin-top: 20px; }
  .hero-m .strong { margin-top: 12px; }

  /* Philosophy */
  .philosophy-m {
    padding: 50px 0 50px;
    background: url("../img/philosophy-bg-mo.webp") center / cover no-repeat;
  }
  .philosophy-m .philosophy-star { width: 36px; height: 36px; }
  .philosophy-m .lead { margin-top: 20px; }
  .philosophy-m .strong { margin-top: 12px; }
  .philosophy-m .story-title { margin-top: 220px; text-align: right; }
  .philosophy-m .story-text { margin-top: 20px; text-align: right; }
  .philosophy-m .story-strong { margin-top: 12px; text-align: right; }

  /* Services */
  .services-m { padding: 170px 0 15px; }
  .services-m .list { display: grid; gap: 16px; margin-top: 18px; }
  .card-m {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: 15px 15px 19px;
  }
  .card-m .m18 { margin-bottom: 19px; }
  .card-m--wide { padding-bottom: 20px; }
  .card-m--wide .m18 { margin-bottom: 27px; }
  .card-m img { width: 65px; height: 65px; margin-top: 42px; }

  /* Channels */
  .channels-m {
    container-type: inline-size;
    overflow: hidden;
    padding: max(255px, calc(255px + (100vw - 375px) * .035)) 0;
    background: url("../img/channels-bg-mo.webp") center / cover no-repeat;
  }
  .channels-m .marquee { --logo: max(92px, calc(34.3cqw - 36.7px)); --item: calc(var(--logo) + 10px); padding-left: 0; }
  .channels-m .marquee li { width: var(--item); padding: 0 10px 0 0; margin: 0; }
  .channels-m .marquee img { width: var(--logo); height: auto; aspect-ratio: 92 / 70; }

  /* Footer */
  .footer-m { padding: 115px 0 80px; }
  .footer-m .top { position: relative; height: 104px; }
  .footer-m .brand { position: absolute; left: 0; top: 65px; font-size: 30px; font-weight: 700; line-height: 36px; }
  .footer-m .icon { position: absolute; right: 0; top: 0; width: 65px; height: 65px; }
  .footer-m .cta { position: absolute; right: 0; top: 77px; font-size: 13px; font-weight: 700; line-height: 27px; }
  .footer-m hr { margin-top: 15px; border-top: 1px solid rgba(255, 255, 255, .2); }
  .footer-m .cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; margin-top: 15px; font-size: 12px; line-height: 18.4px; }
  .footer-m .cols > div > * + * { margin-top: 24px; }
  .footer-m .nogap { margin-top: 0 !important; }
  .footer-m .gap { margin-top: 18px !important; }
  .footer-m strong { font-weight: 700; color: #fff; }
  .footer-m span { color: #999; }

  /* About */
  .about-intro { padding-top: 129px; }
  .about-body { margin-left: 0; }
  .about-title { font-size: 36px; line-height: 39.6px; }
  .about-lead { margin-top: 8px; }
  .about-lead p { font-size: 15px; line-height: 27.2px; }
  .about-list { margin: 48px -15px 0; }
  .about-list li {
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding: 6px 15px 20px;
  }
  .about-list li + li { margin-top: 17px; }
  .about-list .label, .about-list .desc { font-size: 16px; }

  /* Contact */
  .contact-intro { padding-top: 120px; }
  .contact-intro .t72 { font-size: 36px; line-height: 39.6px; }
  .contact-intro .inline-star { width: 72px; height: 72px; }
  .contact-text { margin-top: 15px; font-size: 16px; }
  .contact-btns { margin-top: 70px; }

  .notfound { padding-top: 129px; }
  .notfound .t72 { font-size: 36px; line-height: 39.6px; }
}
