/* ============================================================
   SKY MEDIA GROUP — 공식 홈페이지
   시각 기준: DESIGN.md (색·타이포·간격은 그 문서가 SSOT)
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #0a0a0b;
  --surface-2: #121214;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);

  --text: #ededed;
  --text-dim: #9a9aa0;
  --text-faint: #63636a;

  --amber: #f0a93b;
  --amber-soft: rgba(240, 169, 59, 0.13);
  --sky: #59a9e8;

  --r: 14px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(90px, 12vw, 170px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Segoe UI', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 16px; line-height: 1.68; letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

/* ---------- 공통 타이포 ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amber);
}
.kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }

h2 {
  font-size: clamp(28px, 4.4vw, 52px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.2;
}
.am { color: var(--amber); }

.lead { margin: 0 0 14px; color: var(--text-dim); font-size: clamp(15px, 1.4vw, 17px); max-width: 60ch; }
.lead:last-child { margin-bottom: 0; }

/* ---------- 등장 애니메이션 ---------- */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 스크롤 진행 ---------- */

.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0%; background: var(--amber); transition: width 0.1s linear; }

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

.hdr {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.hdr.stuck {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
/* 로고 심볼이 주황+검정 2톤 → 검정 배경에서 반쪽이 사라지므로 밝은 플레이트 위에 올린다 */
.brand__plate {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: linear-gradient(180deg, #fff, #e7e8ea);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand__plate img { width: 26px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: 0.05em; }
.brand__name em { font-style: normal; color: var(--amber); }
.brand__sub { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: var(--text-dim); transition: color 0.2s var(--ease); }
.nav a:hover, .nav a.on { color: var(--text); }
.nav__cta {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px;
  color: var(--text) !important; font-size: 13.5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__cta:hover { border-color: var(--amber); background: var(--amber-soft); }

.burger {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; padding: 0; place-items: center; gap: 5px; flex-direction: column;
}
.burger span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease), opacity 0.25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav { display: none; }
  .burger { display: flex; }
}

.drawer {
  position: fixed; inset: 76px 0 auto; z-index: 79;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 26px;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer a { padding: 14px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer a:last-child { border-bottom: 0; color: var(--amber); }

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

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }

/* 배경은 세로 컬럼 6개. 화면을 넘치도록 깔고 가장자리는 veil 로 녹인다.
   사진이 드러나도록 투명도를 올리고, 흑백은 줄여 색을 살렸다. */
.hero__bg {
  position: absolute; inset: -4% -2%; z-index: 0;
  display: flex; flex-direction: row; gap: 14px;
  opacity: 0.42; filter: grayscale(0.2) contrast(1.02);
  overflow: hidden;
}
/* 속도(--dur)·방향(--dir)·시작 위치(--delay)는 site.js 가 컬럼마다 다르게 넣는다 */
.hero__col {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  height: max-content;
  animation: driftY var(--dur, 90s) linear infinite;
  animation-direction: var(--dir, normal);
  animation-delay: var(--delay, 0s);
}
.hero__col img {
  width: 100%; aspect-ratio: 16 / 10; height: auto;
  object-fit: cover; border-radius: 10px; flex: none;
}
@keyframes driftY { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* 좁은 화면에서는 컬럼 수를 줄여 사진이 너무 작아지지 않게 한다 */
@media (max-width: 900px) { .hero__col:nth-child(n+5) { display: none; } }
@media (max-width: 560px) { .hero__col:nth-child(n+4) { display: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 글자가 놓이는 왼쪽 아래는 진하게, 오른쪽 위는 열어 사진이 보이게 한다.
   (배경을 밝힌 만큼 글자 뒤쪽만 선택적으로 눌러 가독성을 지킨다) */
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 105% at 12% 62%, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 32%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.12) 100%),
    linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.3) 34%, rgba(0,0,0,.45) 72%, #000 100%);
}

.hero__in { position: relative; z-index: 2; padding: 130px 0 110px; }

/* 히어로 메인 — 필기체 브랜드 선언 (두 줄: We Are / SMG)
   Great Vibes 는 획이 가늘어 그냥 키우면 배경에 묻힌다.
   흰색→앰버 그라데이션 + 은은한 발광으로 무게를 준다. */
.hero__script {
  font-family: 'Great Vibes', 'Apple Chancery', cursive;
  font-weight: 400;
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0.01em;
  /* 필기체는 첫 글자 장식 획이 글자 상자 밖으로 나온다 — 좌우 여유 확보 */
  padding-left: 0.06em;
}
.hero__script span { display: block; white-space: nowrap; }

/* 윗줄 'We Are' — 산뜻한 블루 그라데이션.
   아랫줄 SMG 의 골드와 보색으로 맞물려 서로를 살린다.
   로고의 스카이블루(--sky)를 중심축으로 잡았다. */
.hero__script-sm {
  font-size: clamp(30px, 5.2vw, 72px);
  margin-left: 0.1em;
  /* 필기체는 위아래 장식 획이 글자 상자를 벗어난다.
     line-height 만으로는 상자가 획을 못 담아 잘리므로 여유를 직접 준다. */
  line-height: 1.32;
  padding-top: 0.18em;
  padding-bottom: 0.1em;
  margin-bottom: -0.16em;   /* 늘어난 여백만큼 아랫줄과의 간격을 되돌린다 */
  /* 글자 높이가 낮아 그라데이션 구간이 짧다 —
     흰색을 짧게 끊고 블루를 일찍 올려야 색이 실제로 보인다. */
  background: linear-gradient(
    160deg,
    #f2fbff 0%,
    #a9dcfa 18%,
    #6ab7ee 42%,
    var(--sky) 62%,
    #2f7fc7 100%
  );
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter:
    drop-shadow(0 0 30px rgba(89, 169, 232, 0.38))
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

/* 아랫줄 'SMG' — 주인공.
   ⚠ 필기체로 쓰면 S·M·G 의 장식 획이 겹쳐 읽히지 않는다(약어의 고질적 문제).
   굵은 산세리프로 바꿔 가독성을 확보하고, 필기체 윗줄과 대비를 만든다. */
.hero__script-lg {
  font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 15.5vw, 214px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin-top: 0.02em;
  padding-bottom: 0.04em;
  /* 그라데이션 —
     흰색에서 주황으로 바로 넘어가면 색이 튄다.
     상아빛(#f6efe4) → 샴페인(#e8cfa4) → 앰버 순으로 단계를 거쳐
     금속에 빛이 스치는 결을 만든다. 아래쪽만 살짝 어둡게 눌러 입체감. */
  background: linear-gradient(
    168deg,
    #ffffff 0%,
    #f6efe4 22%,
    #e8cfa4 46%,
    var(--amber) 72%,
    #c9812a 100%
  );
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* 그라데이션 글자는 text-shadow 가 안 먹으므로 filter 로 발광을 준다.
     번짐을 넓고 옅게 깔아야 조명처럼 보이고, 진하면 촌스러워진다. */
  filter:
    drop-shadow(0 0 60px rgba(240, 169, 59, 0.22))
    drop-shadow(0 2px 1px rgba(255, 255, 255, 0.14))
    drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}

@media (max-width: 420px) {
  .hero__script-sm { font-size: 28px; }
  .hero__script-lg { font-size: 62px; }
}

/* 태그라인 — 'We Are'(블루)와 'SMG'(골드) 사이를 잇는 다리.
   글자 그라데이션이 두 색을 그대로 이어받아 세 요소가 한 덩어리로 읽힌다. */
/* 실선을 늘어나게 두면 글자가 오른쪽으로 밀려 좌측 정렬 축이 깨진다.
   위쪽 kicker 와 같은 들여쓰기(짧은 실선 + 여백)로 맞춰 세로 축을 세운다. */
.hero__lockup {
  display: inline-flex; align-items: center; gap: 10px;
  margin: clamp(14px, 2vw, 24px) 0 0;
}
.hero__lockup-txt {
  font-size: clamp(10.5px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(96deg, var(--sky) 0%, #9fd3f2 34%, #f0dcb4 64%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* 실선은 고정 길이 — kicker 의 24px 와 같은 값으로 들여쓰기를 일치시킨다 */
.hero__lockup-rule {
  height: 1px; width: 24px; flex: none;
  background: linear-gradient(90deg, transparent, rgba(89, 169, 232, 0.8));
}
.hero__lockup-rule--r {
  width: 40px;
  background: linear-gradient(90deg, rgba(240, 169, 59, 0.8), transparent);
}
@media (max-width: 560px) {
  .hero__lockup-txt { letter-spacing: 0.26em; }
  .hero__lockup-rule { width: 18px; }
}

/* 하단 좌측 각주 — 설립연도·정체성.
   메인 문구와 떨어뜨려 놓아 서로 경쟁하지 않고,
   가운데 SCROLL 표시와 좌우 균형을 만든다. */
.hero__meta {
  position: absolute; left: 50%; bottom: 34px; z-index: 2;
  transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); padding: 0 24px;
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
}
.hero__meta em { width: 14px; height: 1px; background: currentColor; opacity: 0.5; flex: none; }
@media (min-width: 900px) { .hero__meta { padding: 0 40px; } }
@media (max-width: 700px) { .hero__meta { bottom: 22px; font-size: 9.5px; letter-spacing: 0.16em; } }

.hero__lead { margin: clamp(20px, 2.4vw, 30px) 0 0; max-width: 54ch; color: var(--text-dim); font-size: clamp(15px, 1.5vw, 18px); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 26px;
  border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #140d02; }
.btn--primary:hover { background: #ffc264; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--amber); background: var(--amber-soft); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.28em; color: var(--text-faint);
}
.hero__scroll span { display: block; width: 1px; height: 42px; background: linear-gradient(180deg, transparent, var(--amber)); }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- 숫자 지표 ---------- */

.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.fig { padding: clamp(30px, 4vw, 52px) 20px; border-left: 1px solid var(--line); }
.fig:first-child { border-left: 0; }
.fig__n {
  font-size: clamp(30px, 4vw, 56px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.fig__n em { font-style: normal; font-size: 0.44em; color: var(--amber); margin-left: 3px; letter-spacing: 0; }
.fig p { margin: 8px 0 0; font-size: 13px; color: var(--text-faint); }

@media (max-width: 940px) {
  .figures__grid { grid-template-columns: repeat(2, 1fr); }
  .fig { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .fig:nth-child(odd) { border-left: 0; }
  .fig:nth-child(-n+2) { border-top: 0; }
  .fig:last-child { grid-column: 1 / -1; }
}

/* ---------- 섹션 ---------- */

.sec { padding: var(--pad) 0; }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 62px); }
.sec__head h2 { margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* 인증 로고 — 배경/테두리 없이 로고만 노출 */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 34px; margin-top: 36px; }
.badge { display: flex; align-items: center; }
.badge img { height: 38px; width: auto; }
@media (max-width: 520px) { .badges { gap: 24px; } .badge img { height: 32px; } }

/* ---------- 사업영역 ---------- */

.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; }
.line {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.line__body { padding: 26px 26px 28px; }

/* 카드 상단 현장 사진 — 평소엔 어둡게 깔고 hover 시 살아난다 */
.line__pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.line__pic::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(10,10,11,.55) 70%, var(--surface) 100%);
}
.line__pic img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  user-select: none;
}
.line:hover .line__pic img { transform: scale(1.06); filter: brightness(1) saturate(1); }
.line:hover { border-color: rgba(240, 169, 59, 0.4); transform: translateY(-4px); }
.line::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.line:hover::after { opacity: 1; }
.line__no { font-size: 11px; letter-spacing: 0.2em; color: var(--amber); display: block; margin-bottom: 16px; }
.line h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 16px; }
.line ul { margin: 0; padding: 0; list-style: none; }
.line li { position: relative; padding-left: 14px; margin-bottom: 8px; font-size: 14px; color: var(--text-dim); }
.line li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

/* ---------- 스펙 ---------- */

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; }
.spec {
  position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.3s var(--ease);
}
.spec:hover { border-color: rgba(89, 169, 232, 0.35); }

/* 장비 카드 사진 — 스펙이 주인공이므로 더 낮게 깔아 배경처럼 쓴다 */
.spec__pic { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-2); }
.spec__pic::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(18,18,20,.6) 65%, var(--surface-2) 100%);
}
.spec__pic img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62) saturate(0.85);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  user-select: none;
}
.spec:hover .spec__pic img { transform: scale(1.05); filter: brightness(0.95) saturate(1); }
.spec__tag, .spec h3, .spec dl { padding-left: 28px; padding-right: 28px; }
.spec__tag { padding-top: 24px; }
.spec dl { padding-bottom: 28px; }
.spec__tag { margin: 0 0 12px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); position: relative; z-index: 1; }
.spec h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 18px; }
/* 사진 위로 걸치지 않게 카드 내용은 사진 아래에서 시작한다 */
.spec > .spec__tag { margin-top: 0; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 13.5px; }
.spec dt { color: var(--text-faint); white-space: nowrap; }
.spec dd { margin: 0; color: var(--text-dim); }

/* ---------- 현장 갤러리 ---------- */

.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(120px, 15vw, 190px);
}
.ga { margin: 0; overflow: hidden; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ga--w { grid-column: span 2; }   /* 가로로 두 칸 차지하는 사진 */
.ga img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.72) saturate(0.85);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  user-select: none;
}
.ga:hover img { transform: scale(1.06); filter: brightness(1) saturate(1); }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 30vw; }
  .ga--w { grid-column: span 2; }
}

/* ---------- 포트폴리오 ---------- */

.note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px;
  font-size: 12.5px; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
}
.note svg { flex: none; opacity: 0.8; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #140d02; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }

.card {
  display: block; width: 100%; text-align: left; cursor: pointer; color: inherit;
  background: transparent; border: 0; padding: 0; font-family: inherit;
  animation: card-in 0.5s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card__thumb { border-color: rgba(240, 169, 59, 0.45); transform: translateY(-4px); }

/* <img> 대신 배경이미지 — 우클릭 '이미지 저장' 메뉴 자체가 뜨지 않는다 */
.card__pic {
  position: absolute; inset: 0; display: block;
  background-size: cover; background-position: center; background-color: var(--surface-2);
  filter: brightness(0.8) saturate(0.95); user-select: none;
  transition: transform 0.55s var(--ease), filter 0.3s var(--ease);
}
.card:hover .card__pic { transform: scale(1.05); filter: brightness(1) saturate(1); }

.card__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.42)); }
.card__play > span {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 10, 10, 0.5); border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover .card__play > span { transform: scale(1.1); background: var(--amber); border-color: var(--amber); }
.card__play svg { margin-left: 3px; }
.card:hover .card__play svg path { fill: #140d02; }

.card__cat {
  position: absolute; left: 12px; top: 12px; font-size: 11px;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 999px; padding: 4px 11px; color: var(--text);
}

.card__body { padding: 15px 2px 0; }
.card__title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; transition: color 0.2s var(--ease); }
.card:hover .card__title { color: var(--amber); }
.card__client { margin: 5px 0 0; font-size: 13px; color: var(--text-faint); }
.empty { padding: 60px 0; color: var(--text-faint); text-align: center; }

/* ---------- 마퀴 (주요 실적) ---------- */

.marquee { margin: clamp(10px, 3vw, 30px) 0 clamp(50px, 7vw, 84px); display: grid; gap: 12px; }
.marquee__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: drift 64s linear infinite; }
.marquee__track--rev { animation-duration: 78s; animation-direction: reverse; }
.marquee__row:hover .marquee__track { animation-play-state: paused; }
.mq {
  flex: none; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; color: var(--text-dim); white-space: nowrap;
}
.mq.hi { color: var(--text); border-color: rgba(240, 169, 59, 0.32); }

/* ---------- 연혁 카드 ---------- */

.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 20px; }
.year { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.year h3 {
  font-size: 15px; font-weight: 700; color: var(--amber); letter-spacing: -0.01em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
/* 연도 배지 — 어느 시기 실적인지 한눈에 */
.year__tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--amber-soft); border: 1px solid rgba(240, 169, 59, 0.4);
  color: var(--amber);
}
.year__tag--dim {
  background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text-faint);
}
/* 지난 실적 카드 — 한 톤 낮춰 최근 실적이 먼저 읽히게 */
.year--past { background: transparent; }
.year--past h3 { color: var(--text-dim); }
.year li b { color: var(--text); font-weight: 600; }
.year ul { margin: 0; padding: 0; list-style: none; }
.year li { position: relative; padding-left: 14px; margin-bottom: 10px; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.year li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
.year li:last-child { margin-bottom: 0; }

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

.cta { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { margin-bottom: 18px; }

.card-contact { padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.card-contact dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 16px 14px; font-size: 14.5px; }
.card-contact dt { color: var(--text-faint); }
.card-contact dd { margin: 0; word-break: keep-all; }
.cnote { color: var(--text-faint); font-size: 13px; }

/* 전화·이메일은 눌러서 바로 연결되게 — 모바일에서 특히 유용 */
.clink {
  color: var(--text); border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.clink:hover { color: var(--amber); border-bottom-color: currentColor; }

.card-contact__acts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line);
}
.card-contact__acts .btn { height: 46px; padding: 0 20px; font-size: 14px; }

.todo { color: var(--amber); font-size: 13.5px; }

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

.ftr { border-top: 1px solid var(--line); padding: 48px 0; }
.ftr__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ftr__brand { display: flex; align-items: center; gap: 13px; }
.ftr__name { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.05em; }
.ftr__tag { margin: 2px 0 0; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.ftr__contact { margin: 10px 0 0; font-size: 13px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 8px; }
.ftr__contact a { transition: color 0.2s var(--ease); }
.ftr__contact a:hover { color: var(--amber); }
.ftr__addr { margin: 4px 0 0; font-size: 12.5px; color: var(--text-faint); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.ftr__nav a { font-size: 13.5px; color: var(--text-dim); transition: color 0.2s var(--ease); }
.ftr__nav a:hover { color: var(--amber); }
.ftr small { color: var(--text-faint); font-size: 12.5px; }
@media (max-width: 760px) { .ftr__in { flex-direction: column; align-items: flex-start; gap: 22px; } }

/* ============================================================
   재생 오버레이 (라이트박스) — player.js 가 이 구조를 사용
   ============================================================ */

.lb {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 28px; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb[hidden] { display: none; }

.lb__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.lb__frame { position: relative; z-index: 1; width: min(1180px, 100%); transform: scale(.975); transition: transform 0.28s var(--ease); }
.lb.is-open .lb__frame { transform: none; }
@media (min-height: 560px) { .lb__frame { width: min(1180px, 100%, calc((100vh - 260px) * 16 / 9)); } }

.lb__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.lb__cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.lb__title { margin: 5px 0 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.lb__x {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lb__x:hover { background: rgba(255,255,255,.15); border-color: var(--line-strong); }

.lb__player { position: relative; background: #000; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lb__player:fullscreen { border: 0; border-radius: 0; }

/* overflow:hidden 이 핵심 — iframe 을 영상보다 크게 만들어
   유튜브 UI(제목·로고)가 그려지는 위아래 여백을 잘라낸다 */
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.lb__player:fullscreen .stage { height: 100vh; aspect-ratio: auto; }

.stage iframe {
  position: absolute; left: 0; top: 0; border: 0;
  /* 위치·크기는 player.js 의 sizeFrame() 이 계산한다.
     확대·축소는 쓰지 않는다 (조각 경계에 가로선이 생기는 문제). */
  pointer-events: none; /* 유튜브 UI 클릭 자체를 막는다 */
}

.shield { position: absolute; inset: 0; z-index: 3; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* 커튼 — 로딩·일시정지·종료 시 화면 전체를 덮어 유튜브 관련영상 화면을 감춘다 */
.bigplay {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  pointer-events: none; background: #000;
  opacity: 0; transition: opacity 0.25s var(--ease); /* 사라질 때만 부드럽게 */
}
/* 나타날 때는 즉시 — 서서히 나타나면 그 사이에
   유튜브 자체 일시정지 UI(가운데 정지 버튼·가로선)가 새어 나와 보인다. */
.bigplay.is-on { opacity: 1; transition: none; }
.bigplay > span {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.3);
}
.bigplay.is-wait > span { display: none; }
.bigplay__label {
  position: absolute; left: 0; right: 0; bottom: 16%; text-align: center;
  font-size: 13.5px; color: var(--text-faint); padding: 0 24px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.spin {
  position: absolute; z-index: 6; left: 50%; top: 50%; margin: -17px 0 0 -17px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22); border-top-color: var(--amber);
  animation: spin 0.8s linear infinite; opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.spin.is-on { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage__err {
  position: absolute; inset: 0; z-index: 7; display: none; place-items: center;
  text-align: center; padding: 24px; background: #08080a; color: var(--text-dim); font-size: 14.5px;
}
.stage__err.is-on { display: grid; }
.stage__wm { position: absolute; z-index: 4; right: 14px; top: 12px; font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.3); pointer-events: none; user-select: none; }

/* 자체 컨트롤바 */
.ctrl { position: relative; z-index: 5; background: linear-gradient(180deg, #0a0a0b, #050506); border-top: 1px solid var(--line); padding: 12px 16px 14px; }
.lb__player:fullscreen .ctrl {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88)); border-top: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb__player:fullscreen.is-idle .ctrl { opacity: 0; transform: translateY(8px); pointer-events: none; }
.lb__player:fullscreen.is-idle { cursor: none; }

.bar { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; margin-bottom: 6px; }
.bar__track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; transition: height 0.15s var(--ease); }
.bar:hover .bar__track { height: 6px; }
.bar__load { position: absolute; inset: 0 auto 0 0; width: 0%; background: rgba(255,255,255,.2); }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--amber); }
.bar__knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--amber); opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.bar:hover .bar__knob, .bar.is-drag .bar__knob { opacity: 1; }

.ctrl__row { display: flex; align-items: center; gap: 6px; }
.ib { width: 38px; height: 38px; border-radius: 9px; flex: none; background: transparent; border: 0; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background 0.18s, color 0.18s; }
.ib:hover { background: rgba(255,255,255,.1); color: #fff; }
.ib:disabled { opacity: .32; cursor: default; }
.ib:disabled:hover { background: transparent; }
.time { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
.time b { color: var(--text); font-weight: 500; }
.ctrl__sp { flex: 1; }
.vol { display: flex; align-items: center; gap: 4px; }
.vol__s { width: 82px; height: 4px; border-radius: 999px; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.18); cursor: pointer; outline-offset: 6px; }
.vol__s::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; cursor: pointer; }
.vol__s::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; cursor: pointer; }
@media (max-width: 620px) { .vol__s { display: none; } }

.lb__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.lb__navbtn {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-dim); padding: 9px 17px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: all 0.2s var(--ease);
}
.lb__navbtn:hover { color: var(--text); border-color: var(--line-strong); }
.lb__navbtn:disabled { opacity: .3; cursor: default; }
.lb__navbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
@media (max-width: 620px) { .lb__navbtn span { display: none; } }
.lb__hint { font-size: 12px; color: var(--text-faint); text-align: center; }
@media (max-width: 760px) { .lb__hint { display: none; } }

/* ---------- 모션 최소화 ---------- */

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