/* =========================================================
   Fonts — Inter (local woff)
   ========================================================= */
@font-face { font-family: 'Inter'; src: url('../font/Inter-300.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-800.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-300-italic.woff') format('woff'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-400-italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter-700-italic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --bg: #20201e;
  --bg-deep: #191917;
  --text: #ebe7dd;
  --text-dim: #8f8b82;
  --line: rgba(235, 231, 221, 0.16);

  --light-bg: #e5e1d6;
  --light-text: #23231f;
  --light-dim: #6a675f;
  --light-line: rgba(35, 35, 31, 0.18);

  --tan-bg: #c8c0ae;

  --container: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(80px, 10vw, 80px) 0; }

/* 작은 대문자 라벨 */
.section-head,
.eyebrow,
.meta-row,
.media-caption,
.activity-foot,
.header-tagline,
.header-contact,
.gnb a,
.footer-bottom,
.journal-foot {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.display {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.display em.light { font-weight: 300; }
.display strong { font-weight: 800; }

/* 사진 자리 (placeholder) — 안에 <img> 를 넣으면 꽉 차게 표시됩니다 */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3a3935, #262522);
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 8px;
  color: #f2efe8;
}

.tone-1 { background: linear-gradient(135deg, #a69c84, #6f6c64 70%, #4a4943); }
.tone-2 { background: linear-gradient(135deg, #9fa9a3, #6b7975 60%, #3d4542); }
.tone-3 { background: linear-gradient(135deg, #a8a594, #807d71 60%, #4a4943); }
.tone-4 { background: linear-gradient(135deg, #8c8f8b, #4f504c 60%, #262624); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(25, 25, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo img { height: 28px; width: auto; }
.header-tagline,
.header-contact {
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
  color: #AAA99F;
}
.header-contact { text-align: right; }
.gnb { display: flex; gap: 28px; }
.gnb a {
  position: relative;
  font-size: 9px;
  padding: 6px 0;
  transition: opacity .3s;
}
.gnb a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}
.gnb a:hover::after,
.gnb a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 0; padding: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 21px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 40px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(56px, 8.4vw, 124px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  padding: 0 4%;
}
.hero-title .l1 { align-self: flex-start; padding-left: 10%; }
.hero-title .l2 { align-self: center; font-weight: 700; }
.hero-title .l3 { align-self: flex-end; padding-right: 12%; }

.hero-intro {
  display: grid;
  grid-template-columns: 1fr auto; /* 설명문은 오른쪽 끝에 붙음 */
  gap: 24px 32px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; }
.hero-desc {
  max-width: 340px;
  font-size: 11px;
  color: var(--text-dim);
}
.hero-media {
  margin-top: clamp(32px, 4vw, 56px);
  aspect-ratio: 16 / 5.4;
  background: linear-gradient(180deg, #2a2a27 0%, #151514 100%);
}
/* 아래로 갈수록 어두워지는 그라데이션 — 메인 이미지 + Journal 박스 공통 (진하기: 마지막 rgba 값) */
.hero-media::after,
.journal-card .media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, .65) 100%);
  pointer-events: none;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 90px;
  font-size: 8px;
  color: var(--text-dim);
}

/* =========================================================
   01 / Activity
   ========================================================= */
.activity .display { margin-bottom: clamp(48px, 6vw, 80px); }

.activity-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.activity-item:last-child { margin-bottom: 0; }
.activity-item.reverse { grid-template-columns: 1fr 1.4fr; }
.activity-item.reverse .activity-media { order: 2; }

.activity-media {
  position: relative;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
}
.activity-body {
  display: flex;
  flex-direction: column;
}
.activity-body .eyebrow { font-size: 8px; color: var(--text-dim); margin-bottom: 16px; }
.activity-title {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.activity-desc {
  max-width: 300px;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--text-dim);
}
.activity-foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-dim);
}

/* ---- Marquee (가로 오토 스크롤) ---- */
.marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee::after { /* 하단 캡션 가독성용 그라데이션 */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent);
  pointer-events: none;
}
.marquee-track {
  display: flex;
  gap: clamp(10px, 1.1vw, 16px);
  padding-left: clamp(10px, 1.1vw, 16px);
  height: 82%;
  width: max-content;
  will-change: transform;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee--no-pause:hover .marquee-track { animation-play-state: running; }

.slide {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-distance, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =========================================================
   02 / Approach (light)
   ========================================================= */
.theme-light { background: var(--light-bg); color: var(--light-text); }
.theme-light .section-head { border-top-color: var(--light-line); }

.approach-sub {
  margin-top: 28px;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  color: var(--light-text);
}
.approach-list {
  list-style: none;
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--light-line);
}
.approach-list li {
  display: grid;
  grid-template-columns: 48px 1fr minmax(180px, 280px);
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-line);
}
.approach-list .num { font-size: 8px; font-weight: 600; color: var(--light-dim); align-self: start; padding-top: 4px; }
.approach-list .name { font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -0.02em; }
.approach-list .desc { font-size: 10px; line-height: 1.5; color: #20211F; }

/* =========================================================
   03 / Global
   ========================================================= */
.global .section-head.single { border-top: 0; padding-top: 0; }
.global-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.global-title strong { font-weight: 700; }
.global-title em { font-weight: 300; padding-left: 12%; }
.global-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.global-lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.35; }
.global-regions { font-size: 10px; line-height: 1.7; color: #E9E7DE; }

/* =========================================================
   04 / Philosophy (tan)
   ========================================================= */
.theme-tan { background: var(--tan-bg); color: var(--light-text); }
.theme-tan .section-head { border-top-color: var(--light-line); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
}
.philosophy-grid .eyebrow { font-size: 8px; }
.philosophy-statement {
  max-width: 780px;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.philosophy-desc {
  max-width: 420px;
  margin-top: 32px;
  font-size: 11px;
  line-height: 1.75;
  color: #20211F;
}

/* =========================================================
   05 / Journal
   ========================================================= */
.journal-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.journal-intro { max-width: 300px; font-size: 11px; line-height: 1.7; color: var(--text-dim); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
.journal-card .media { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.journal-card .eyebrow { font-size: 8px; color: var(--text-dim); }
.journal-card h3 {
  margin-top: 6px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.journal-card p { margin-top: 6px; font-size: 10px; color: var(--text-dim); }
.journal-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 14px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}
.journal-foot small { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--text-dim); }
.link-arrow { transition: opacity .3s; }
.link-arrow:hover { opacity: .6; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-deep);
  padding: clamp(80px, 10vw, 140px) 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.footer-logo { flex: 0 0 auto; width: clamp(200px, 30vw, 420px); height: auto; }

/* 제휴사 로고 슬라이드 */
.footer-partners {
  position: relative;
  flex: 0 1 620px;
  min-width: 0;
  height: clamp(110px, 10vw, 170px);
}
.footer-partners .marquee::after { display: none; }
.footer-partners .marquee-track { height: 100%; padding-left: 0; }
.footer-partners .slide {
  aspect-ratio: 4 / 3;
  background: none; /* 투명 PNG 로고가 그대로 보이도록 박스 배경 제거 */
  box-shadow: none;
}
.footer-partners .slide img {
  padding: 14%;
  object-fit: contain; /* 로고가 잘리지 않도록 */
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(56px, 8vw, 110px);
  padding-bottom: 28px;
}
.footer-slogan { font-size: 13px; line-height: 1.5; }
.footer-info { font-size: 12px; line-height: 1.6; color: #E9E7DE; }

/* Contact · Family sites · Office */
.footer-cols {
  display: flex;
  gap: clamp(32px, 4vw, 64px);
}
.footer-label {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #E9E7DE;
}
.footer-list a { transition: opacity .3s; }
.footer-list a:hover { opacity: .6; }
/* 자매사이트 4개마다 옆 칸으로 이어짐 */
.footer-sites {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 32px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--text-dim);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .header-tagline { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .gnb { justify-self: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-contact { display: none; }
  .menu-toggle { display: block; grid-column: 3; }

  .gnb {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    justify-self: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(25, 25, 23, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .gnb.is-open { opacity: 1; transform: none; visibility: visible; }
  .gnb a { font-size: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .gnb a::after { display: none; }

  .hero-title { padding: 0; }
  .hero-title .l1 { padding-left: 0; }
  .hero-title .l3 { padding-right: 0; }
  .hero-intro,
  .global-foot,
  .journal-head,
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; }

  .activity-item,
  .activity-item.reverse { grid-template-columns: 1fr; }
  .activity-item.reverse .activity-media { order: 0; }
  .activity-foot { margin-top: 28px; }

  .approach-list li { grid-template-columns: 32px 1fr; }
  .approach-list .desc { grid-column: 2; }

  .journal-grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-partners { flex: none; width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-cols { flex-wrap: wrap; gap: 28px 40px; }
}
