/* ===========================================================================
   팀플기획 홈페이지 — 2026 리디자인
   ---------------------------------------------------------------------------
   원칙 세 가지.
   1) 웹폰트를 쓰지 않는다. 시스템 한글 글꼴로 그리면 다운로드 대기도,
      글자가 나중에 바뀌며 흔들리는 일도 없다. 첫 화면이 가장 빨리 뜬다.
   2) 사진이 아직 없다. 빈 이미지 자리를 두는 대신 분야별 색과 타이포로
      화면을 채운다. 나중에 사진이 들어와도 같은 자리에 그대로 얹힌다.
   3) 애니메이션은 합성(compositor)만 건드리는 것으로 제한한다.
      transform 과 opacity 외에는 움직이지 않는다.
   =========================================================================== */

:root {
  /* 바탕 */
  --bg: #0b0b0d;
  --bg-2: #131317;
  --bg-3: #1b1b21;
  --line: #2a2a32;
  --line-soft: #1f1f26;

  /* 글자 */
  --fg: #f4f2ee;
  --fg-2: #b6b3ac;
  --fg-3: #7d7a74;

  /* 강조 */
  --accent: #ff5c35;
  --accent-soft: #ff8a6b;

  /* 분야별 색 — 카드 아트와 태그에 쓴다 */
  --c-festival: #ff5c35;
  --c-corporate: #5b8cff;
  --c-brand: #ffb020;
  --c-stage: #c77dff;
  --c-exhibition: #21d4a0;
  --c-research: #8fa3b8;

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 공통 조각 ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
}

.section { padding-block: clamp(64px, 10vw, 140px); }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(28px, 4.6vw, 52px);
  margin-top: 16px;
}
.section-head .sub {
  margin-top: 18px; max-width: 56ch; color: var(--fg-2);
  font-size: clamp(15px, 1.5vw, 17px);
}
.section-head.row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-2); background: var(--bg-2); }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn[disabled] { opacity: .5; cursor: progress; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--fg);
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .16s ease, border-color .16s ease;
}
.link-more::after { content: "→"; transition: transform .2s ease; }
.link-more:hover { color: var(--accent); border-color: var(--accent); }
.link-more:hover::after { transform: translateX(4px); }

/* 분야 태그 — data-cat 값으로 색이 정해진다 */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--cat, var(--fg-2));
  background: color-mix(in srgb, var(--cat, var(--fg-3)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat, var(--fg-3)) 30%, transparent);
  white-space: nowrap;
}

[data-cat="축제"]              { --cat: var(--c-festival); }
[data-cat="기업·기관 행사"]     { --cat: var(--c-corporate); }
[data-cat="브랜드·팝업"]        { --cat: var(--c-brand); }
[data-cat="공연·콘서트"]        { --cat: var(--c-stage); }
[data-cat="전시·박람회"]        { --cat: var(--c-exhibition); }
[data-cat="교육·연구"]          { --cat: var(--c-research); }
[data-cat="기타"]              { --cat: var(--fg-3); }

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-mark {
  font-size: 21px; font-weight: 900; letter-spacing: .14em;
}
.logo-sub { font-size: 12px; color: var(--fg-3); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--fg-2);
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav-cta {
  margin-left: 8px; background: var(--accent); color: #fff !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--accent-soft) !important; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--fg); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  padding: 8px var(--pad) 24px; border-top: 1px solid var(--line-soft);
}
.mobile-nav a {
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 17px; font-weight: 700;
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--accent); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: flex; }
}

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
  /* 첫 화면이 뷰포트를 꽉 채우되, 내용이 길어지면 그만큼 늘어난다 */
  min-height: min(92svh, 900px);
  display: flex; flex-direction: column; justify-content: center;
}

/* 배경. 사진 한 장 없이 CSS 로만 만든다 — 이미지 요청이 0건이라 첫 화면이 빠르다.
   세 겹이다: 색 덩어리 두 개 + 격자 + 위아래 페이드. */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(46% 52% at 14% 16%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%),
    radial-gradient(42% 48% at 86% 6%, color-mix(in srgb, var(--c-stage) 26%, transparent), transparent 70%),
    radial-gradient(52% 44% at 62% 96%, color-mix(in srgb, var(--c-corporate) 22%, transparent), transparent 72%);
  filter: blur(34px);
  opacity: .92;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
/* transform 만 움직인다. 메인 스레드가 아니라 합성 단계에서 처리된다. */
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}

.hero-inner { position: relative; z-index: 1; }
.hero > .wrap { position: relative; z-index: 1; }

.hero-title {
  margin-top: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: .98;
  display: grid;
}
.hero-line {
  font-size: clamp(38px, 9.2vw, 104px);
  /* 글자 자체에 은은한 그라데이션. 단색보다 화면이 살아난다. */
  background: linear-gradient(170deg, var(--fg) 30%, color-mix(in srgb, var(--fg) 62%, var(--bg)) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-line em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-soft) 60%, var(--c-brand));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-belief {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 34ch;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.45;
  color: var(--fg);
}

/* TIMPLE = Trendy + Simple */
.hero-meaning {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(26px, 3.4vw, 40px);
  max-width: 760px;
}
.meaning {
  padding: clamp(16px, 1.9vw, 22px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(6px);
}
.meaning-word {
  display: block;
  font-size: clamp(18px, 2.1vw, 24px); font-weight: 900;
  letter-spacing: -0.02em; color: var(--accent);
}
.meaning-ko {
  display: block; margin-top: 2px;
  font-size: 13px; font-weight: 700; color: var(--fg-3);
}
.meaning p { margin-top: 10px; font-size: 14px; color: var(--fg-2); line-height: 1.6; }

@media (max-width: 620px) {
  .hero-meaning { grid-template-columns: 1fr; }
  .meaning p { font-size: 13.5px; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 40px); }
@media (max-width: 460px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* 통계 스트립 */
.stats {
  display: grid; gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 88px);
  grid-template-columns: repeat(4, 1fr);
}
.stat { background: var(--bg); padding: clamp(20px, 2.6vw, 32px); }
.stat-value {
  display: block;
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
}
.stat-label { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }
.stat-note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ---------- 고객사 마키 ---------- */

.marquee {
  border-block: 1px solid var(--line-soft);
  padding-block: 22px;
  overflow: hidden;
  /* 양끝을 흐리게 잘라 줄이 끊기는 느낌을 없앤다 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
}
.marquee-group span {
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 700;
  color: var(--fg-3); white-space: nowrap;
  transition: color .2s ease;
}
.marquee-group span:hover { color: var(--fg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- 벤토 그리드 (하는 일) ---------- */

.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}
.bento-card {
  position: relative;
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 210px; padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease;
}
.bento-card::after {
  content: ""; position: absolute; right: -30%; top: -60%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent);
  filter: blur(40px); opacity: .7;
  transition: opacity .3s ease, transform .4s ease;
  pointer-events: none;
}
.bento-card:hover { border-color: color-mix(in srgb, var(--cat, var(--accent)) 45%, var(--line)); transform: translateY(-3px); }
.bento-card:hover::after { opacity: 1; transform: scale(1.15); }
/* 앞의 두 칸을 크게 잡아 리듬을 준다 */
.bento-card:nth-child(1), .bento-card:nth-child(2) { grid-column: span 3; min-height: 240px; }

.bento-count {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--cat, var(--accent));
}
.bento-count small { font-size: .45em; font-weight: 700; margin-left: 4px; color: var(--fg-3); }
.bento-card h3 { font-size: clamp(18px, 2vw, 22px); margin-top: 18px; }
.bento-card p { margin-top: 10px; font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card:nth-child(1), .bento-card:nth-child(2) { grid-column: span 1; min-height: 180px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

/* ---------- 프로젝트 카드 ---------- */

.work-grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.work-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2); overflow: hidden;
  transition: border-color .22s ease, transform .22s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cat) 50%, var(--line)); }

/* 사진 대신 쓰는 카드 아트. 분야 색으로 만든 그라데이션 위에 제목 이니셜을 얹는다. */
.work-art {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 100% at 20% 0%, color-mix(in srgb, var(--cat) 42%, transparent), transparent 62%),
    radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--cat) 28%, transparent), transparent 70%),
    var(--bg-3);
  overflow: hidden;
}
.work-art::before {
  /* 격자 무늬. 이미지 없이 질감만 얹는다 */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fg) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 6%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.work-art span {
  position: relative;
  font-size: clamp(34px, 5vw, 52px); font-weight: 900;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--fg) 82%, transparent);
  transition: transform .35s ease;
}
.work-card:hover .work-art span { transform: scale(1.06); }
.work-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.work-body { padding: 20px clamp(18px, 2vw, 24px) 24px; display: flex; flex-direction: column; flex: 1; }
.work-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work-year { font-size: 13px; color: var(--fg-3); font-weight: 600; }
.work-title { font-size: clamp(18px, 1.9vw, 21px); margin-top: 14px; }
.work-card:hover .work-title { color: var(--cat); }
.work-summary {
  margin-top: 10px; font-size: 14.5px; color: var(--fg-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.work-client { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--fg-3); }

/* ---------- 필터 ---------- */

.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.filter {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--fg-2);
  transition: all .16s ease;
}
.filter:hover { color: var(--fg); border-color: var(--fg-3); }
.filter.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---------- 기술 ----------
   벤토 카드와 리듬이 겹치지 않도록 일부러 다른 형태로 짰다.
   번호가 붙은 목록형이라 "무엇을 할 수 있는가"가 순서대로 읽힌다. */

.tech-section { position: relative; }
.tech-section::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.tech-list {
  display: grid;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-2);
}
.tech-item {
  display: grid; align-items: start;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 320px);
  gap: 20px 24px;
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line-soft);
  transition: background-color .2s ease;
}
.tech-item:first-child { border-top: 0; }
.tech-item:hover { background: var(--bg-3); }
.tech-num {
  font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--accent); padding-top: 5px;
}
.tech-body h3 { font-size: clamp(18px, 2vw, 22px); }
.tech-body p { margin-top: 10px; font-size: 15px; color: var(--fg-2); line-height: 1.65; }
.tech-proof {
  align-self: center;
  font-size: 12.5px; line-height: 1.5; color: var(--fg-3);
  padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (max-width: 1000px) {
  .tech-item { grid-template-columns: 48px minmax(0, 1fr); }
  .tech-proof { grid-column: 2; align-self: start; }
}
@media (max-width: 560px) {
  .tech-item { grid-template-columns: 1fr; gap: 12px; }
  .tech-num { padding-top: 0; }
  .tech-proof { grid-column: 1; }
}

/* ---------- 특장점 ---------- */

.strengths { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .strengths { grid-template-columns: 1fr; } }
.strength {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2);
}
.strength-num {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent);
}
.strength h3 { font-size: clamp(19px, 2.1vw, 24px); margin-top: 14px; }
.strength p { margin-top: 12px; color: var(--fg-2); font-size: 15px; }
.strength-proof {
  display: inline-block; margin-top: 20px; padding: 7px 14px;
  border-radius: 999px; background: var(--bg-3);
  font-size: 12.5px; font-weight: 600; color: var(--fg-2);
}

/* ---------- 프로세스 ---------- */

.process { display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(5, 1fr); }
.process-step { background: var(--bg); padding: clamp(20px, 2.4vw, 28px); }
.process-num { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.process-step h3 { font-size: 17px; margin-top: 12px; }
.process-step p { margin-top: 8px; font-size: 14px; color: var(--fg-3); line-height: 1.55; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- 페이지 헤더 ---------- */

.page-hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(34px, 6vw, 64px); margin-top: 18px; letter-spacing: -0.04em; }
.page-hero .sub { margin-top: 20px; max-width: 58ch; color: var(--fg-2); font-size: clamp(15px, 1.6vw, 18px); }

/* ---------- 연혁 ---------- */

.history-layout {
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .history-layout { grid-template-columns: 1fr; } }

.year-rail { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .year-rail {
    position: sticky; top: 72px; z-index: 20;
    display: flex; gap: 8px; overflow-x: auto;
    padding-block: 12px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--line-soft);
    scrollbar-width: none;
  }
  .year-rail::-webkit-scrollbar { display: none; }
}
.year-rail a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--fg-3);
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
.year-rail a:hover { color: var(--fg); background: var(--bg-2); }
.year-rail a b { font-size: 12px; font-weight: 600; color: var(--fg-3); }

.year-block { padding-bottom: clamp(40px, 6vw, 72px); }
.year-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.year-head h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.04em; }
.year-head span { font-size: 14px; color: var(--fg-3); font-weight: 600; }

.year-items { display: grid; gap: 2px; }
.year-item {
  display: grid; gap: 4px 18px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  padding: 16px 14px; border-radius: 12px;
  transition: background-color .16s ease;
}
.year-item:hover { background: var(--bg-2); }
.year-month { font-size: 13px; font-weight: 700; color: var(--fg-3); padding-top: 2px; }
.year-title { font-size: 16px; font-weight: 700; }
.year-desc { grid-column: 2 / -1; font-size: 14px; color: var(--fg-3); line-height: 1.55; }
@media (max-width: 640px) {
  .year-item { grid-template-columns: 48px minmax(0, 1fr); }
  .year-item .tag { grid-column: 2; justify-self: start; margin-top: 6px; }
  .year-desc { grid-column: 2; }
}

/* ---------- 프로젝트 상세 ---------- */

.detail-art {
  aspect-ratio: 21 / 9; border-radius: var(--radius-lg);
  display: grid; place-items: center; overflow: hidden; position: relative;
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--cat) 40%, transparent), transparent 60%),
    radial-gradient(70% 90% at 92% 100%, color-mix(in srgb, var(--cat) 26%, transparent), transparent 66%),
    var(--bg-2);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.detail-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(75% 75% at 50% 50%, #000, transparent);
}
.detail-art span { position: relative; font-size: clamp(44px, 8vw, 96px); font-weight: 900; letter-spacing: -0.06em; }
@media (max-width: 640px) { .detail-art { aspect-ratio: 4 / 3; } }

.detail-body {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 880px) { .detail-body { grid-template-columns: 1fr; } }

.detail-meta { display: grid; gap: 20px; padding-top: 8px; }
.detail-meta > div { display: grid; gap: 6px; }
.detail-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.detail-meta dd { margin: 0; font-size: 15.5px; font-weight: 600; }

.prose { color: var(--fg-2); font-size: clamp(16px, 1.6vw, 17.5px); line-height: 1.75; }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 36px 0 16px; color: var(--fg); }
.lead { font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; line-height: 1.5; letter-spacing: -0.025em; color: var(--fg); }

.results { display: grid; gap: 10px; }
.results li {
  position: relative; padding-left: 26px; color: var(--fg-2); font-size: 15.5px;
}
.results li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 12px; height: 2px; border-radius: 2px; background: var(--cat, var(--accent));
}

.detail-nav {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding-block: 28px clamp(48px, 7vw, 80px);
}
.detail-nav-link { display: grid; gap: 6px; max-width: 46%; font-weight: 700; }
.detail-nav-link span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; }
.detail-nav-link:hover { color: var(--accent); }
.align-end { text-align: right; margin-left: auto; }

/* ---------- 회사 정보 ---------- */

.facts { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; background: var(--bg); padding: 18px 24px; }
.facts dt { font-size: 14px; font-weight: 600; color: var(--fg-3); }
.facts dd { margin: 0; font-size: 15.5px; }
@media (max-width: 620px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA ---------- */

.cta { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); text-align: center; border-top: 1px solid var(--line-soft); }
.cta::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(28px, 4.6vw, 52px); }
.cta p { margin: 18px auto 32px; max-width: 46ch; color: var(--fg-2); font-size: clamp(15px, 1.6vw, 17px); }

/* ---------- 문의 폼 ---------- */

.contact-layout { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 330px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 20px; margin-bottom: 20px; }
.contact-info .facts > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 16px 20px; }
.note { margin-top: 22px; font-size: 14px; color: var(--fg-3); line-height: 1.6; }

/* 문의 유형 카드 */
.contact-types { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .contact-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-types { grid-template-columns: 1fr; } }
.contact-type {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-type:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.contact-type h3 { font-size: 17px; }
.contact-type p { margin-top: 10px; font-size: 14px; color: var(--fg-2); line-height: 1.6; }

/* 견적 안내 */
.quote-guide {
  margin-top: 24px; padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.quote-guide h3 { font-size: 16px; }
.quote-guide p { margin-top: 8px; font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }
.quote-guide ul { margin-top: 14px; display: grid; gap: 8px; }
.quote-guide li {
  position: relative; padding-left: 20px; font-size: 14px; color: var(--fg-2);
}
.quote-guide li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 2px; border-radius: 2px; background: var(--accent);
}

.contact-form { display: grid; gap: 18px; }

/* 행사 개요 묶음 — 항목이 많아져서 시각적으로 한 덩어리로 묶었다 */
.field-group {
  display: grid; gap: 18px;
  margin: 4px 0; padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}
.field-group legend {
  padding: 0 10px; margin-left: -10px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.field-hint { margin-top: -6px; font-size: 13.5px; color: var(--fg-3); line-height: 1.55; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--fg-2); }
.field em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--fg);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2);
  transition: border-color .16s ease, background-color .16s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--bg-3); outline: none;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--accent); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.agree { font-size: 13px; color: var(--fg-3); max-width: 44ch; line-height: 1.55; }
.form-status { font-size: 15px; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: #3ddc97; }
.form-status.error { color: var(--accent); }

/* ---------- 푸터 ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding-top: clamp(48px, 7vw, 80px); }
.footer-inner { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding-bottom: 48px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-size: 26px; font-weight: 900; letter-spacing: .14em; }
.footer-tagline { margin-top: 10px; color: var(--fg-3); font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 620px) { .footer-cols { grid-template-columns: 1fr; gap: 26px; } }
.footer-cols h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 700; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols a, .footer-cols span { font-size: 14.5px; color: var(--fg-2); }
.footer-cols a:hover { color: var(--accent); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-block: 24px;
  font-size: 12.5px; color: var(--fg-3);
}

.empty { color: var(--fg-3); padding: 40px 0; }
.error-page { min-height: 50vh; }

/* ---------- 스크롤 진입 연출 ----------
   JS 를 쓰지 않는다. CSS 스크롤 기반 애니메이션만 쓰므로 미지원 브라우저나
   JS 차단 환경에서는 그냥 처음부터 보이는 상태가 기본이다.
   내용이 투명한 채로 남을 여지가 없고 메인 스레드도 건드리지 않는다. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-on .bento-card,
    .reveal-on .work-card,
    .reveal-on .strength,
    .reveal-on .process-step {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
  }
}
