/* 트리플나인홀딩스 — Wix 사이트(2024-10 기준)를 정적 페이지로 옮긴 것. 980px 그리드 그대로. */
:root {
  --ink: #303030;
  --muted: #707070;
  --line: #c8c8c8;
  --gray-band: #dedede;
  --org-band: #ebebeb;
  --highlight: #ffe600;
  --wrap: 980px;
  --gutter: 20px;
  --head-h: 104px;
  --latin: "Jost", "Futura", "Century Gothic", sans-serif;
  --kr: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
  --nav: "Lucida Sans Unicode", "Lucida Grande", var(--kr);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--latin), var(--kr);
  font-weight: 400;
  line-height: 1.6;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: #fff;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo img { width: 176px; }
.site-nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0 12px;
  font-family: var(--nav); font-size: 17px; line-height: 30px; color: var(--ink);
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--muted); }
.nav-toggle { display: none; }

/* ---------- 공통 섹션 제목 ---------- */
.section-title {
  font-family: var(--latin); font-weight: 600; letter-spacing: .01em;
  font-size: clamp(36px, 6vw, 65px); line-height: 1.1; text-align: center;
}

/* ---------- 홈: 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  height: clamp(480px, calc(100vh - var(--head-h)), 905px);
  background: #111;
}
/* 원본처럼 배경 사진을 흐리고 어둡게 */
.hero::before {
  content: ""; position: absolute; inset: -40px;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
  filter: blur(14px) brightness(.8);
}
.hero .wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.hero .hero-logo { width: min(544px, 70%); filter: invert(1); opacity: .92; }

/* ---------- 홈: 세 칸 소개 ---------- */
.about-cols { padding: 170px 0 240px; }
.about-cols .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.about-col {
  display: block; padding: 0 34px;
  border-left: 1px dotted #555;
}
.about-col:first-child { border-left: 0; padding-left: 0; }
.about-col:last-child { padding-right: 0; }
.about-col .col-head { display: flex; align-items: center; gap: 22px; min-height: 96px; }
.about-col .col-head img { width: 90px; flex: none; }
.about-col h2 { font-family: var(--latin); font-weight: 400; font-size: 24px; line-height: 1.41; white-space: nowrap; }
.about-col p {
  margin-top: 48px;
  font-family: var(--latin); font-weight: 300; font-size: 18px; line-height: 1.33; color: #6a6a6a;
}
.about-col:hover h2 { color: var(--muted); }

/* ---------- Business: 회사 소개 ---------- */
.company { padding: 110px 0 160px; }
.company .row { margin-top: 110px; display: grid; grid-template-columns: 459px 1fr; gap: 56px; align-items: start; }
.company .copy p { font-family: var(--kr); font-size: 16px; line-height: 2.1; }
.company .copy p + p { margin-top: 30px; }

.slider { position: relative; aspect-ratio: 459 / 436; background: #111; overflow: hidden; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slider img.is-active { opacity: 1; }
.slider button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 56px; border: 0; background: none; cursor: pointer; color: #fff; opacity: .8;
}
.slider button:hover { opacity: 1; }
.slider button svg { width: 14px; height: 28px; }
.slider .prev { left: 4px; }
.slider .next { right: 4px; }

/* ---------- Business: 연혁 ---------- */
.history { background: var(--gray-band); padding: 120px 0 140px; border-bottom: 6px solid #fff; }
.history ol { list-style: none; margin: 60px auto 0; padding: 0; width: min(690px, 100%); border-top: 2px dotted #fff; }
.history li {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline;
  padding: 72px 0 60px; border-bottom: 2px dotted #fff;
}
.history .year { font-family: var(--latin); font-weight: 600; font-size: clamp(34px, 5vw, 55px); line-height: 1; }
.history .what { font-family: var(--kr); font-size: 17px; }

/* ---------- Business: 사업 ---------- */
.business {
  color: #fff; text-align: center;
  background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)), #1b1b1b url("../img/business-bg.jpg") center / cover no-repeat;
  padding: 150px 0 170px;
}
.business .copy { margin-top: 70px; font-family: var(--kr); font-size: 14px; line-height: 2.85; }
.business .chart { margin: 80px auto 0; width: min(980px, 100%); }

/* ---------- Members ---------- */
.members-intro { padding: 100px 0 70px; text-align: center; }
.members-intro .section-title { font-size: clamp(32px, 5vw, 44px); }
.members-intro .copy { margin-top: 60px; font-family: var(--kr); font-size: 15px; line-height: 2.65; }
.members-intro .stat { margin-top: 56px; font-family: var(--kr); font-size: 15px; }
.members-intro mark { background: var(--highlight); color: inherit; font-weight: 700; padding: 0 2px; }
.org { background: var(--org-band); padding: 70px 0 90px; }
.org .scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.org img { width: min(1300px, 100%); min-width: 860px; margin-inline: auto; }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 2px solid #9a9a9a; padding: 28px 0 22px; }
.site-footer .badge { width: min(445px, 100%); }
.site-footer .domain { margin-top: 18px; font-family: var(--latin); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.site-footer .tel { margin-top: 14px; font-family: var(--latin); font-weight: 600; font-size: 26px; line-height: 1.2; }
.site-footer .tel a { color: inherit; }
.site-footer .mail { margin-top: 12px; font-size: 15px; font-weight: 700; }
.site-footer .addr { margin-top: 12px; font-family: var(--kr); font-size: 15px; line-height: 1.5; }
.site-footer .addr-kr { font-family: var(--kr); font-size: 13px; line-height: 1.5; }
.site-footer .sns { margin-top: 14px; display: inline-block; }
.site-footer .sns img { width: 30px; }

/* ---------- 스크롤 등장 ----------
   JS 가 첫 화면 요소에 is-in 을 먼저 붙이고 나서 html 에 reveal-ready 를 붙인다.
   그래서 첫 화면은 바로 보이고, 아래쪽만 스크롤할 때 나타난다(JS 가 없으면 전부 그냥 보임). */
.reveal { transition: opacity .9s ease, transform .9s ease; }
.reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .reveal:not(.is-in) { opacity: 1; transform: none; }
  .reveal, .slider img { transition: none; }
}

/* ---------- 태블릿 ---------- */
@media (max-width: 900px) {
  :root { --head-h: 72px; }
  .site-header .logo img { width: 140px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .site-nav {
    position: fixed; inset: var(--head-h) 0 auto 0; background: #fff;
    border-top: 1px solid #eee; box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 10px 0; font-size: 18px; }

  .hero .wrap { justify-content: center; }
  .about-cols { padding: 90px 0 110px; }
  .about-cols .wrap { grid-template-columns: 1fr; gap: 56px; }
  .about-col, .about-col:first-child, .about-col:last-child { border-left: 0; padding: 0; }
  .about-col p { margin-top: 20px; }

  .company { padding: 70px 0 90px; }
  .company .row { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .slider { max-width: 459px; width: 100%; margin-inline: auto; }
  .company .copy p { font-size: 15px; line-height: 1.95; }

  .history { padding: 80px 0 90px; }
  .history li { grid-template-columns: 1fr; gap: 10px; padding: 36px 0 32px; }

  .business { padding: 90px 0 100px; }
  .business .copy { line-height: 2.2; margin-top: 40px; }
  .business .copy br { display: none; }
  .business .copy span { display: block; margin-top: 6px; }

  .members-intro { padding: 70px 0 50px; }
  .members-intro .copy br { display: none; }
  .members-intro .copy span { display: block; }
}
