﻿/* ==========================================================================
   atlas.css — 시네마틱 껍데기

   참고 디자인(SEN_homepage.html)의 색·타이포·구성을 따르되,
   장면을 겹쳐 교차 전환하는 방식은 쓰지 않습니다.
   섹션(.scene)이 위에서 아래로 그냥 이어지는 평범한 세로 스크롤입니다.

   섹션 안쪽 내용(카드·타임라인·채용 아코디언)은 기존 components.css 를 그대로 씁니다.
   여기서는 색만 이 디자인에 맞게 덮어씁니다.
   ========================================================================== */

:root {
  /* 참고 디자인의 팔레트 — 밝은 장면(회사소개/프로젝트/뉴스/채용) 배경을
     완전 흰색으로 통일. 예전엔 연한 회색(#f5f5f7)이었습니다. */
  --paper:   #ffffff;
  --paper-2: #e8e8ed;
  /* 섹션이 전부 순백색이면 9화면을 끊김 없는 흰 벽으로 내려가게 됩니다.
     같은 밝은 계열 안에서 아주 옅은 단계를 하나 만들어 번갈아 씁니다. */
  --paper-tint: #f6f7f9;
  --ink:     #1d1d1f;
  --dim:     #6e6e73;
  --blue:    #0071e3;
  --line:    #e2e2e7;
  --night:   #0b0f1a;

  /* 기존 컴포넌트가 쓰는 토큰을 이 팔레트로 재정의 */
  --c-navy: #0b0f1a;
  --c-blue: #0071e3;
  --c-blue-dark: #0066cc;
  --c-ink: #1d1d1f;
  --c-muted: #6e6e73;
  --c-line: #e2e2e7;
  --c-tint: #eef4fd;
}

html { scroll-behavior: auto; }   /* 스크롤 위치를 직접 제어하므로 smooth 를 끕니다 */

body {
  background: var(--night);
  color: var(--ink);
  overflow-x: hidden;
}

/* 섹션은 위에서 아래로 그냥 이어집니다.
   예전에는 #stage 를 고정해 두고 장면을 겹쳐 교차 전환했는데,
   스크롤할 때마다 창이 통째로 바뀌는 느낌이라 걷어냈습니다.
   (되살리려면 무대 고정 + 장면 겹침이 필요하지만, 권하지 않습니다) */
/* 상단 메뉴(회사소개/프로젝트/뉴스/채용)를 누르면 이 섹션의 맨 위가
   고정 헤더 바로 아래로 스크롤됩니다(atlas.js goTo) — 그래서 위쪽
   여백이 크면 헤더 밑에 빈 공간이 그대로 보입니다. 아래쪽 여백(다음
   섹션과의 경계)은 원래대로 두고 위쪽만 줄였습니다. */
.scene {
  position: relative;
  padding: clamp(40px, 6vh, 72px) 0 clamp(72px, 10vh, 128px);
  overflow-x: hidden;
}
.scene[hidden] { display: none; }
.scene + .scene { border-top: 1px solid var(--line); }

.scene__inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* 밝은 장면 (회사소개·프로젝트·뉴스·채용) */
.scene--paper { background: var(--paper); }
.scene--paper .scene__inner { color: var(--ink); }

/* ---------- 섹션 리듬 ----------
   예전에는 일곱 섹션이 전부 같은 배경·같은 여백·같은 제목 크기였습니다.
   그게 "AI가 찍어낸 페이지" 인상의 가장 큰 원인이었습니다.
   배경을 번갈아 깔고, 여는 섹션과 닫는 섹션에 다른 무게를 줍니다. */
.scene--tint { background: var(--paper-tint); }
.scene--tint .scene__inner { color: var(--ink); }

/* 배경이 바뀌면 경계선이 필요 없습니다 — 색이 이미 경계입니다 */
.scene--tint + .scene,
.scene + .scene--tint { border-top: 0; }

/* 회사소개는 본문의 첫 장이라 위를 넉넉히 열어 줍니다 */
.scene--opening { padding-top: clamp(64px, 9vh, 116px); }
/* CONTACT 는 주소 목록이라 조용히 지나가면 됩니다 */
.scene--tight { padding-bottom: clamp(48px, 6vh, 80px); }
/* 프로젝트 섹션(지도·지구본)이 한동안 이 폭을 더 쓰는 .scene--wide
   였는데, 제목은 다른 장면과 맞춰 좁히고 지도만 넓게 두었더니 같은
   섹션 안에서 제목과 지도의 왼쪽 시작점이 서로 안 맞아 오히려
   어색했습니다 — 지금은 다른 장면과 똑같이 표준 폭(.scene__inner
   기본값, 1180px)을 씁니다. 나중에 정말 더 넓게 써야 하는 장면이
   생기면 이 클래스를 다시 씁니다. */
/* 채용은 마지막이라 푸터와 붙지 않게 아래를 띄웁니다 */
.scene--closing { padding-bottom: clamp(88px, 12vh, 150px); }

/* ---------- 표지 (첫 화면, 사진 크로스페이드) ----------
   본문(main) 앞에 화면 전체를 채운 채 고정되어(position:fixed) 배경처럼
   깔려 있습니다. 아래 ".cover + main" 규칙이 본문을 표지 높이(100vh)만큼
   내려서 시작시키므로, 처음엔 표지만 보이다가 스크롤하면 본문(불투명
   배경)이 위로 슬라이드해 올라오며 표지를 덮습니다 — "아래 창이 위 창을
   덮는" 느낌. z-index가 음수라 일반 흐름의 본문(z-index 지정 없음)보다
   항상 뒤에 그려지므로, main 쪽에 별도 position/z-index를 줄 필요가
   없고 atlas.js의 offsetTop 기준 스크롤 계산도 그대로 맞습니다. */
.cover {
  position: fixed; inset: 0; z-index: -1;
  isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3.4vw, 46px);
  overflow: hidden;
  background: var(--night);
  color: #fff;
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
}
.cover__bg { position: absolute; inset: 0; z-index: -2; }
.cover__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
/* 표지가 스크롤로 화면 밖에 있거나 탭이 안 보일 때(cover.js가 감시)
   사진·사진명 전환 애니메이션을 실제로 멈춥니다 — 안 보이는 동안
   계속 도는 걸 막고, 사진과 사진명이 같은 타이밍을 공유하므로 함께
   멈춰야 다시 보일 때도 서로 안 어긋납니다. */
.cover.is-paused .cover__bg img,
.cover.is-paused .cover__photo-titles span { animation-play-state: paused; }
.cover__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,10,18,.72) 0%, rgba(6,10,18,.28) 30%,
                            rgba(6,10,18,.42) 62%, rgba(6,10,18,.86) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(6,10,18,.5) 100%);
}
.cover__vision {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300; font-style: normal;
  font-size: clamp(1.05rem, 1.95vw, 1.85rem);
  line-height: 1.42; letter-spacing: -.005em;
  max-width: 42ch; margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,.96);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
/* container-type을 걸면 .cover__brand의 font-size를 cqw(이 칸의 실제
   폭 기준 %)로 줄 수 있습니다 — "너비가 양쪽에 꽉 차야 하고 잘리면
   안 된다"는 요구사항은 칸 폭에 정확히 맞춰 그리는 방법 말고는 만족시킬
   수 없습니다(고정 px는 어떤 폭에서는 남고 어떤 폭에서는 잘립니다).
   확대/축소 문제는 사실 이 방식과 상관없었습니다 — 브라우저 확대는
   CSS 픽셀 수를 화면 배율의 역수만큼 줄이는 방식이라(예: 150% 확대 시
   같은 물리적 화면에 CSS 픽셀이 1/1.5만큼만 들어감), cqw로 그 줄어든
   폭에 비례해 글자를 다시 그리면 화면에 실제로 찍히는 물리적 크기는
   항상 똑같습니다 — 확대해도 눈에 보이는 크기 자체는 페이지의 다른
   요소들과 정확히 같은 비율로만 커집니다. */
.cover__foot { display: grid; gap: clamp(14px, 2vw, 22px); container-type: inline-size; }
.cover__brand {
  font-family: "Anton", Impact, sans-serif; font-weight: 400;
  display: block; width: 100%;
  line-height: 1.06; letter-spacing: -.015em;
  white-space: nowrap;
  text-align: center;
  /* "SEN ENGINEERING GROUP"이 이 칸(.cover__foot) 폭에 정확히 꽉 차는
     비율(11.7cqw)로 실측해 고정했습니다. 글자를 바꾸면 이 비율도 다시
     맞춰야 합니다. */
  font-size: 11.7cqw;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.42);
}
/* "SEN" 부분만 메인페이지 회사소개(인트로) 플립워드("센벡스" 등)와
   같은 파란색(--blue, atlas.css :root — 전역 변수라 여기서도 그대로
   씁니다)으로 강조합니다. 나머지 "ENGINEERING GROUP"은 부모의 흰색을
   그대로 물려받습니다. */
.cover__brand-accent { color: var(--blue); }
.cover__row { display: flex; justify-content: flex-end; }
/* 사진명 — SEN ENGINEERING GROUP 글자 바로 위, .cover__foot의 grid
   gap이 자연스러운 간격(offset)을 만들어 줍니다. 사진처럼 여러 장이
   같은 자리에 겹쳐 있다가(coverFade) 지금 사진의 제목만 보입니다.
   제목이 없는 사진은 빈 칸으로 지나갑니다. */
.cover__photo-titles {
  position: relative;
  height: 1.1em;
  text-align: center;
}
.cover__photo-titles span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  /* PC는 3pt 더 키움(요청) — 모바일은 아래 미디어쿼리에서 원래 크기(.8rem)로 되돌립니다. */
  font-size: calc(.8rem + 3pt); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  opacity: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover__cue {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: .3em; color: rgba(255,255,255,.72);
}
.cover__cue i {
  display: block; width: 42px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.75), transparent);
}
@media (prefers-reduced-motion: reduce) {
  .cover__bg img { animation: none; opacity: 0; transform: none; }
  .cover__bg img:first-child { opacity: 1; }
}
@media (max-width: 640px) {
  /* 좁은 화면에서는 비전 문구가 고정 헤더(.topbar)와 겹칠 만큼 위쪽에
     붙어 있어서 살짝 내려주고, 그룹명은 화면 아래 대신 정중앙으로
     옮깁니다(PC 레이아웃은 이 미디어쿼리 밖이라 그대로 유지됩니다). */
  .cover__vision { max-width: none; margin-top: clamp(48px, 12vh, 88px); }
  .cover__row { justify-content: flex-start; }
  .cover__brand {
    /* width:100%(위 기본 규칙)가 그대로 남아있으면 left·width·right가
       한꺼번에 지정된 꼴이 되어 브라우저가 right를 무시하고 width를
       우선시킵니다 — width:auto로 그 충돌을 없애 left/right로 실제
       박스 폭이 정해지게 합니다.
       left/right는 .cover의 padding과 정확히 같은 값(clamp(20px,3.4vw,46px))
       으로 둡니다 — absolute 위치의 left/right는 .cover의 padding
       바깥쪽(테두리) 기준이라, 이 값을 안 맞추면 실제로 그려지는 박스
       폭이 .cover__foot 폭(위 cqw의 기준)보다 넓어져 글자가 칸을 다
       못 채우고 남습니다. */
    position: absolute; width: auto;
    top: 50%; left: clamp(20px, 3.4vw, 46px); right: clamp(20px, 3.4vw, 46px);
    transform: translateY(-50%);
    text-align: center;
    /* 뒤 사진이 밝거나 복잡하면 흰 글자가 잘 안 보여서, 글자 뒤에 검은
       반투명 배경을 깝니다. padding 대신 box-shadow(번짐 0, 퍼짐만)로
       그려서 실제 박스 폭(위 left/right로 정확히 계산된, cqw 글자
       크기의 기준이 되는 폭)은 그대로 두고 칠만 바깥으로 번지게 합니다
       — padding을 쓰면 그 폭 계산이 틀어져 글자가 칸을 못 채우거나
       넘칩니다. */
    background: rgba(0, 0, 0, .38);
    box-shadow: 0 0 0 14px rgba(0, 0, 0, .38);
    border-radius: 10px;
  }
  /* 그룹명은 화면 정중앙으로 빠지지만(위 .cover__brand), 사진명은 그대로
     .cover__foot의 기본 흐름에 남겨 둡니다 — .cover__foot 자체가 화면
     아래쪽에 붙어 있고 text-align:center 라서, 자연스럽게 화면
     "가운데 아래"에 오게 됩니다(요청사항). PC 크기(.8rem + 3pt)는
     모바일에서는 다시 원래 크기로 되돌립니다. */
  .cover__photo-titles span { font-size: .8rem; }
  /* 모바일에서 SCROLL 글자와 사진명의 높이(위아래) 순서를 맞바꿉니다
     — 사진명이 위, SCROLL이 그 아래로(PC는 이 미디어쿼리 밖이라
     기존 순서 그대로 SCROLL이 위). .cover__foot이 grid라 DOM 순서를
     안 바꾸고 order만으로 뒤집을 수 있습니다. */
  .cover__photo-titles { order: 1; }
  .cover__row { order: 2; }
}

/* 표지 바로 다음(본문 전체)을 표지 높이만큼 내려서 시작시킵니다 —
   그래야 스크롤해야 본문이 표지를 덮으며 올라옵니다. */
.cover + main { margin-top: 100vh; margin-top: 100dvh; }

/* ---------- 장면 0 : 인트로(텍스트 플립) ----------
   카카오톡으로 받은 LayoutTextFlip 미리보기를 그대로 이식했습니다.
   흰 배경 전체화면 히어로라, 더는 어두운 장면이 없습니다
   (그래서 아래 .topbar 도 밝은/어두운 구분 없이 항상 같은 스타일). */
#scene-intro {
  padding: 0; min-height: 100vh; display: grid; place-items: center;
  background: var(--paper);
}
.hero { width: min(760px, 92vw); margin: 0 auto; text-align: center; padding: 90px 0 64px; }

/* "Welcome to SEN ENGINEERING GROUP"(고정 제목) 아래, 계열사 이름이
   작은 글씨로 번갈아 넘어가는 배지가 옵니다 — 예전엔 "Welcome to" +
   플립 단어가 한 줄로 이어지는 문장이었는데, 제목을 고정 문구로 바꾸면서
   플립은 그 아래 자기 줄로 내렸습니다. */
.ltf {
  position: relative; margin: 1rem auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .85rem; text-align: center;
}
.ltf__text {
  font-size: calc(1.5rem + 25pt); font-weight: 700; letter-spacing: -.025em;
  color: var(--ink); white-space: nowrap;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.07));
}
.ltf__accent { color: var(--blue); }
.ltf__box {
  position: relative; overflow: hidden;
  display: inline-block; vertical-align: middle; flex-shrink: 0;
  /* %가 아니라 뷰포트 기준으로 직접 잡습니다 — flex 아이템의 max-width:%
     는 align-items:center(=cross-size auto)일 때 브라우저마다 기준값
     해석이 갈릴 수 있어 자칫 무시될 수 있습니다. .hero와 같은 공식을
     써서 항상 화면 폭 안에 확실히 들어오게 합니다. */
  max-width: min(760px, 92vw);
  /* flex 아이템은 기본 min-width:auto(=내용 기준 최소폭)라, hero.js가
     fitBox()로 더 좁은 width를 줘도 이 자동 최소폭보다는 못 좁아집니다
     — 0으로 꺼서 fitBox()가 정한 값이 그대로 먹히게 합니다. */
  min-width: 0;
  border-radius: 6px;
  background: #fff; color: var(--blue);
  padding: .4rem .85rem;
  font-size: calc(1rem + 2pt); font-weight: 700; letter-spacing: -.025em;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px var(--line);
  transition: width .5s cubic-bezier(.22,1,.36,1);
}
/* 모바일은 제목이 "Welcome to / SEN ENGINEERING GROUP" 두 줄로 커지므로,
   아래 계열사 이름이 번갈아 넘어가는 배지는 제목보다 작아 보이도록
   글자 크기를 줄여 둡니다(데스크톱은 원래 크기 그대로, 아래 min-width:768px
   규칙에서 다시 키움). */
@media (max-width: 760px) {
  .ltf__line2 { display: block; }
}
@media (min-width: 768px) {
  .ltf__text { font-size: calc(2.25rem + 25pt); }
  .ltf__box { font-size: calc(1.35rem + 6pt); }
}
/* "SEN STRUCTURAL ENGINEERING CO., LTD."처럼 긴 단어도 절대 줄바꿈하지
   않습니다(nowrap) — 단어가 바뀔 때마다 칸 높이까지 들쭉날쭉 바뀌면
   전환이 버벅이는 것처럼 보였습니다. 대신 hero.js의 fitBox()가 칸 폭을
   넘는 경우에만 그 단어의 글자 크기를 줄여 한 줄 안에 맞춥니다. */
.ltf__word {
  display: inline-block; white-space: nowrap;
  will-change: transform, filter, opacity;
}
.ltf__word--out { position: absolute; left: .85rem; top: .4rem; }
.ltf__word--in  { animation: ltf-in  .5s cubic-bezier(.22,1,.36,1) both; }
.ltf__word--out { animation: ltf-out .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes ltf-in {
  from { transform: translateY(-40px); filter: blur(10px); }
  to   { transform: none;              filter: blur(0); }
}
@keyframes ltf-out {
  from { transform: none;             filter: blur(0);     opacity: 1; }
  to   { transform: translateY(50px); filter: blur(10px);  opacity: 0; }
}
.ltf__sizer { position: absolute; visibility: hidden; pointer-events: none; white-space: nowrap; left: -9999px; top: 0; }

.ltf__lead {
  margin: 1.5rem auto 0; max-width: 46ch;
  text-align: center; color: var(--dim);
  /* .scene__lead(회사소개 등 섹션 리드문)과 글자 크기를 맞췄습니다.
     PC·모바일 구분 없이 같은 clamp() 값이라 화면 폭이 같으면 항상 같게 보입니다. */
  font-size: clamp(.95rem, 1.2vw, 1.08rem); line-height: 1.75;
}

/* ---------- 상태 배지 (채용중 / 새 소식) ---------- */
.flags { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.flag {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.flag:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(0,113,227,.14); transform: translateY(-1px); }
.flag--off { color: #8e8e93; }

.flag__switch { position: relative; flex-shrink: 0; width: 38px; height: 22px; border-radius: 999px; background: #d1d1d6; transition: background .25s; }
.flag__switch i {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.flag--on .flag__switch { background: #34c759; }
.flag--on .flag__switch i { transform: translateX(16px); }

.flag__emoji { font-size: 1.15em; line-height: 1; }
.flag__icon { flex-shrink: 0; display: block; height: 1.5em; width: auto; border-radius: 5px; object-fit: cover; }

.flag--news .flag__emoji, .flag--news .flag__icon { animation: flag-pop 2.4s ease-in-out infinite; }
@keyframes flag-pop {
  0%, 82%, 100% { transform: none; }
  88%           { transform: translateY(-3px) rotate(-8deg); }
  94%           { transform: translateY(-1px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ltf__word--in, .ltf__word--out { animation: none; }
  .ltf__word--out { display: none; }
  .ltf__box { transition: none; }
  .flag--news .flag__emoji, .flag--news .flag__icon { animation: none; }
}

/* ---------- 상단 고정 네비 ----------
   로고·언어만 남아서 항상 흰 배경 + 어두운 글자로 고정했습니다
   (예전엔 어두운 인트로 위에서 흰 글자 ↔ 밝은 장면에서 흰 배경으로 바뀌었지만,
   이제 사이트 전체가 밝은 배경이라 그 구분이 필요 없습니다). PC·모바일
   구분 없이 항상 불투명해서, 아래로 스크롤되는 내용 위에 겹쳐도 글자가
   묻히지 않습니다. */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 16px clamp(20px, 4vw, 48px);
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: opacity .3s ease, transform .3s ease;
}
/* 표지(.cover)가 있는 페이지(index.html)에서는 atlas.js가 부팅 시
   .is-gated를 붙여, 표지를 지나 본문이 화면을 덮기 전까지는 헤더를
   숨겨 둡니다(로고·언어 둘 다). .cover가 없는 서브 페이지(news.html
   등)는 이 클래스가 안 붙어서 항상 그대로 보입니다. PC·모바일 구분
   없이 동일하게 적용됩니다. */
.topbar.is-gated { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.topbar.is-gated.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}

.topbar__logo { display: inline-flex; align-items: center; }
.topbar__logo img { display: block; height: clamp(26px, 3.2vw, 36px); width: auto; }

/* 언어 토글 — 상단 메뉴가 없어져서 .lang 에 margin-left:auto 로 오른쪽 정렬 */
.lang { position: relative; margin-left: auto; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; color: inherit;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .8;
}
.lang__btn:hover { opacity: 1; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 132px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  padding: 6px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s ease;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  text-align: left; padding: 8px 12px; border-radius: 8px;
  font-size: var(--fs-small); color: var(--ink); width: 100%;
}
/* --paper가 흰색이라 메뉴 배경(#fff)과 구분이 안 돼 --line으로 표시 */
.lang__menu button:hover { background: var(--line); }

/* ---------- 오른쪽 진행 점 ---------- */
#prog {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 60;
  display: grid; gap: 12px;
}
#prog button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgba(140, 150, 170, .45);
  transition: background .25s, transform .25s;
}
#prog button.is-on { background: var(--blue); transform: scale(1.45); }

/* ---------- 장면 머리말 ---------- */
.scene__head { margin-bottom: clamp(24px, 4vh, 44px); }
.scene__kicker {
  font-size: 11px; letter-spacing: .28em; color: var(--blue);
  font-weight: 800; margin-bottom: 12px;
}
/* 예전에는 모든 섹션 제목이 똑같이 56px 이었습니다. 크기가 같으면
   무엇이 중요한 장인지 알 수 없어 전부 같은 무게로 읽힙니다.
   기본은 낮추고, 본문을 여는 회사소개에만 큰 크기를 씁니다. */
.scene__title {
  font-weight: 900; letter-spacing: -.03em; line-height: 1.14;
  font-size: clamp(26px, 3.3vw, 42px); color: var(--ink);
}
.scene--opening .scene__title { font-size: clamp(30px, 4.4vw, 56px); }
.scene__title em { font-style: normal; color: var(--blue); }
.scene__lead {
  margin-top: 14px; max-width: 62ch; color: var(--dim);
  font-size: clamp(.95rem, 1.2vw, 1.08rem); line-height: 1.75;
}
/* 회사소개 리드문만 예외 — 바로 아래 CEO 영상(.ceo__video)이 폭 전체를
   쓰는데 이 문장만 62ch로 좁게 잡혀 있어 왼쪽에 몰린 것처럼 보였습니다.
   영상과 같은 폭(=.scene__inner 전체)까지 늘립니다. */
#scene-about .scene__lead { max-width: none; }
/* 채용 리드문도 마찬가지로 폭 제한을 풀어줍니다 — 62ch는 숫자 "0" 폭 기준이라
   전각 문자인 중국어(zh)는 한 줄에 약 31자밖에 못 들어가 너무 일찍 줄바꿈됩니다. */
#scene-careers .scene__lead { max-width: none; }
/* 프로젝트·회사소개·채용 리드문은 한 줄에 한 문장씩 끊어 보여줍니다 —
   data-bind는 순수 텍스트라 줄바꿈 문자(\n)를 그대로 두면 기본은 한 줄로
   뭉치므로, 여기서만 있는 그대로 보이게 합니다. */
#scene-projects .scene__lead,
#scene-about .scene__lead,
#scene-careers .scene__lead { white-space: pre-line; }

/* 예전 무대 방식에서 쓰던 안쪽 스크롤 칸.
   지금은 페이지가 통째로 스크롤되므로 높이를 제한하지 않고 그대로 흐르게 둡니다. */
.scene__scroll { max-height: none; overflow: visible; }

/* 회사소개는 항목이 많아 2단으로 */
.about-grid {
  display: grid; gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
/* 프로젝트 섹션(지도/지구본)은 CEO 섹션보다 오른쪽 칸을 더 넓게 씁니다.
   .about-grid 는 두 섹션이 같이 쓰는 클래스라, 여기서만 비율을 덮어씁니다. */
.about-grid--map { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
@media (max-width: 900px) {
  .about-grid--map { grid-template-columns: 1fr; }
}
/* 회사소개 하위 덩어리 (CEO 인사말 / 연혁 / 주요공법 / CONTACT).
   예전에는 탭으로 접어 뒀지만, 스크롤로 쭉 읽히도록 펼쳐 두었습니다. */
.about-block + .about-block { margin-top: clamp(48px, 8vh, 88px); }

/* 소제목(.block__title) 공통 스타일 — 채용 탭의 "채용공고"처럼
   .about-block 밖에서도 쓰입니다. * { margin:0 } 리셋 때문에 이 규칙이
   없으면 위아래 다른 내용과 완전히 붙어 보입니다. */
.block__title {
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 800;
  letter-spacing: -.02em; margin: var(--sp-5) 0 var(--sp-3);
}
/* 후손 선택자(직계 자식이 아니어도 매칭) — 주요공법 제목은 브로슈어
   언어 박스와 나란히 두려고 <div> 한 겹을 더 감쌌는데, > 로 직계 자식만
   고르면 그 안의 제목은 스타일이 안 먹습니다.
   위쪽 간격은 .about-block + .about-block 이 이미 담당하므로 0으로 둡니다. */
.about-block .block__title { margin-top: 0; margin-bottom: 10px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  #prog { right: 10px; }
  /* 예전 무대 고정형 디자인에서 쓰던 안쪽 스크롤 칸 높이 제한입니다.
     지금은 페이지가 통째로 스크롤되고 .scene__scroll 기본값이
     overflow:visible 이라, 여기서만 max-height 를 다시 주면 내용이
     박스 밖으로 삐져나와 바로 아래 섹션과 겹칩니다 (연혁·주요공법 등).
     되살리지 마세요 — 되살리려면 overflow:auto 도 같이 줘야 합니다. */
}

/* ---------- 공용 푸터 ----------
   index.html 맨 아래와 news.html 에 동일한 마크업이 복사되어 있습니다.
   둘 중 하나만 고치면 다른 쪽과 어긋나니, 문구를 바꿀 땐 content/site.json 의
   footer.* 값만 고치세요 (마크업 자체를 손대야 할 땐 둘 다 고쳐야 합니다). */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); }
.site-footer__inner {
  width: min(1180px, 92vw); margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
}
.site-footer__brand img { height: clamp(44px, 6vw, 68px); width: auto; display: block; }
.site-footer__info { text-align: right; font-size: var(--fs-small); line-height: 1.7; }
.site-footer__copy { margin-top: 4px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }

@media (max-width: 560px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .site-footer__info { text-align: left; }
}

/* ---------- 뉴스 상세 페이지 (news.html) ---------- */
.article-main {
  background: var(--paper); color: var(--ink);
  min-height: 60vh;
  padding: clamp(72px, 10vh, 128px) 0;
}
.article { width: min(760px, 92vw); margin: 0 auto; }
.article__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-small); font-weight: 700; color: var(--dim);
  margin-bottom: clamp(28px, 4vh, 48px);
}
.article__back:hover { color: var(--blue); }

.article__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); color: var(--dim); margin-bottom: 14px;
}
.article__cat { color: var(--blue); font-weight: 700; }
.article__share-wrap { position: relative; margin-left: auto; display: flex; align-items: center; }
.article__share {
  display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s;
}
.article__share svg { width: 16px; height: 16px; }
.article__share:hover, .article__share.is-copied { color: var(--blue); border-color: var(--blue); }
.article__share-toast {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
  background: var(--ink); color: var(--paper); white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 700; padding: 6px 10px; border-radius: 6px;
}
.article__title {
  font-weight: 900; letter-spacing: -.03em; line-height: 1.3;
  font-size: clamp(26px, 3.6vw, 42px); color: var(--ink);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.article__hero {
  overflow: hidden; background: var(--c-white);
  aspect-ratio: 16 / 9; margin-bottom: clamp(28px, 4vh, 44px);
}
/* object-fit:cover 였을 때는 사진이 16:9가 아니면 위아래(또는 좌우)가
   잘려 나갔습니다 — contain으로 바꿔 이 칸의 높이에 맞춰 사진 전체가
   줄어들거나 늘어나며 항상 다 보이게 합니다. 남는 자리(레터박스)는
   다른 자리표시(--ph, 진한 남색)와 달리 흰 배경으로 둡니다 — 사진이
   있을 때만 만들어지는 칸이라 로딩 placeholder 용도가 아니고, 남는
   자리가 파랗게 두드러지면 사진 일부가 잘린 것처럼 보이기 때문입니다. */
.article__hero img { width: 100%; height: 100%; object-fit: contain; display: block; }
.article__body { font-size: 1.05rem; line-height: 1.9; }
.article__body p + p { margin-top: 1.3em; }
.article__link { margin-top: clamp(32px, 5vh, 48px); }
.article__empty { text-align: center; padding: clamp(40px, 8vh, 80px) 0; color: var(--dim); }

/* ---------- 뉴스 전체 목록 페이지 (news-list.html) ----------
   상세 페이지(.article, 760px 좁은 폭)와 달리 카드 그리드라
   .scene__inner 와 같은 넓은 폭(1180px)을 씁니다. */
.newslist-main {
  background: var(--paper); color: var(--ink);
  min-height: 60vh;
  padding: clamp(72px, 10vh, 128px) 0;
}
.newslist { width: min(1180px, 92vw); margin: 0 auto; }
.newslist__head { margin-bottom: clamp(20px, 3vh, 32px); }
.newslist__head .scene__title { margin-top: 6px; }

/* ---------- 쪽번호 ---------- */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin-top: clamp(32px, 5vh, 48px);
}
.pager__page {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: var(--fs-small); font-weight: 700; color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
}
.pager__page:hover { border-color: var(--blue); color: var(--blue); }
.pager__page.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

