/* ============================================================
   PRECISIUM — Photoreal CGI Hero
   ============================================================ */

:root {
  --bg: #05070a;
  --bg-2: #0d1114;
  --ink: #eef2f5;
  --ink-dim: #d7e0e3;
  --ink-mute: #9aa7ac;
  --accent: #7ee8f2;        /* cyan telemetry */
  --accent-warm: #f2c47e;   /* amber highlight, matches oil */
  --accent-brand: #2f7a6d;  /* dark industrial green from equipment */
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.18);
  --font-sans: 'PRECISIUM Display', 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
  --font-mono: 'PRECISIUM Display', 'Pretendard Variable', 'Pretendard', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-kr: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 회사소개처럼 내용이 길어 세로 스크롤바가 실제로 생기는 페이지만 그
   스크롤바 너비(보통 15~17px)만큼 오른쪽 공간을 더 뺏겨서, margin:0 auto로
   중앙정렬된 본문이 창 전체 기준으로는 살짝 왼쪽으로 쏠려 보이던 문제 —
   스크롤바가 실제로 필요 없는 짧은 페이지와 비교하면 차이가 두드러졌다.
   스크롤바 유무와 상관없이 양쪽에 항상 같은 공간을 미리 확보해 둬서
   모든 페이지에서 본문이 창 기준으로 똑같이 중앙에 오게 한다.
   게시판/관리자 페이지(.board-shell처럼 max-width+margin:auto로 중앙정렬된
   좁은 본문)에만 적용한다 — 처음엔 모든 페이지에 걸어뒀는데, 이 여백이
   body가 아니라 html 박스에 속하다 보니 화면 가득 채우는 홈페이지 CGI
   배경(풀블리드)에는 그 폭만큼 빈 줄이 그대로 드러나 버렸다. 홈페이지는
   애초에 중앙정렬이 필요한 좁은 본문이 없어(가로 풀사이즈 씬) 이 속성
   자체가 필요 없으므로, 아예 안 걸어서 여백 자체가 생기지 않게 한다. */
html:has(body.board-page),
html:has(body.admin-body) {
  scrollbar-gutter: stable both-edges;
  background: #ffffff;
}

body { min-height: 100vh; }

/* ============================================================
   FIXED STAGE — all CGI scene images stacked, cross-faded
   ============================================================ */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: -6% -4%;   /* extra room for parallax scale */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1) translate3d(0,0,0);
  will-change: opacity, transform;
}

/* 유량계/밸브 사진처럼 피사체(계기 헤드)가 프레임 위쪽에 있는 사진은
   기본 cover+center(세로 중앙 기준 크롭)로는 상단 헤더에 가려 잘려
   보인다. 확대하지 않고 위쪽 기준으로만 잘리게 해(사진 전체 느낌은
   유지하면서) 헤더 아래로 밀어낸다 — background-position만으로는 부족한데,
   .scene의 inset 상단 여백(-6%, 패럴랙스 확대용 여유분)이 위쪽 기준
   정렬을 해도 그만큼 이미지 상단을 뷰포트 밖으로 밀어올리기 때문이다.
   그래서 상단 여백만 0으로 없앤다(하단/좌우는 스케일 애니메이션용으로 유지). */
.scene--top-bias {
  /* 위쪽은 퍼센트가 아니라 고정 픽셀(130px)로 띄운다 — 사진 자체에 계기
     헤드 위로 여백이 거의 없어서(원본 사진의 한계), background-position을
     퍼센트로 조절하면 화면 비율에 따라 크롭되는 양이 달라져(넓은 화면일수록
     크롭 여유가 적어 오히려 더 잘림) 일관된 여백을 만들 수 없었다. 상단을
     고정 픽셀만큼 비워두면(그 자리는 #stage의 검은 배경이 그대로 보여
     사진과 자연스럽게 이어진다) 화면 크기와 무관하게 항상 같은 여백이 생기고,
     그 아래에서는 예전처럼 크롭 없이(0%) 꽉 채운다. */
  top: 130px;
  right: -4%;
  bottom: -10%;
  left: -4%;
  background-size: cover;
  background-position: center 0%;
  /* 스크롤 패럴랙스로 걸리는 transform: scale()이 기본값(중앙 기준)으로
     확대되면서, 확대되는 만큼 위쪽 가장자리가 밀려 올라가 잘리는 문제가
     있었다. 확대 기준점을 위쪽으로 옮겨서(top-anchored) 확대돼도 위쪽은
     그대로 있고 아래쪽으로만 자라도록 한다 — 그만큼 아래쪽 여백도 넉넉히. */
  transform-origin: 50% 0%;
}

/* Gradient scrim so text stays legible over the CGI — kept as light as
   possible while still holding contrast for the overlaid text. */
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5,7,10,0.45) 0%,
      rgba(5,7,10,0.08) 35%,
      rgba(5,7,10,0.08) 55%,
      rgba(5,7,10,0.55) 100%),
    linear-gradient(90deg,
      rgba(5,7,10,0.22) 0%,
      rgba(5,7,10,0) 45%,
      rgba(5,7,10,0) 55%,
      rgba(5,7,10,0.22) 100%);
  pointer-events: none;
}

/* Film grain */
#grain {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-2%, 5%); }
  80% { transform: translate(4%, -2%); }
  100% { transform: translate(0, 0); }
}

/* Vignette */
#vignette {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* Ambient glow — pulses subtly, warm side */
#glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 30%, rgba(242,196,126,0.09) 0%, transparent 40%),
    radial-gradient(circle at 8% 70%, rgba(126,232,242,0.06) 0%, transparent 40%);
  mix-blend-mode: screen;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  /* The nav always sits on its own dark glass scrim (over the CGI hero on
     the home page, or floating over a light content page elsewhere), so it
     keeps the bright/dark-appropriate palette regardless of the page's own
     theme — a property set directly on an element always wins over one
     inherited from an ancestor (e.g. body.board-page's light overrides). */
  --ink: #eef2f5;
  --ink-dim: #d7e0e3;
  --ink-mute: #9aa7ac;
  --accent: #7ee8f2;
  --accent-warm: #f2c47e;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.18);

  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  padding: 26px 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
  z-index: -1;
  pointer-events: none;
}
/* 밝은 배경 페이지(홈 포함 전체)용 nav — 텍스트를 어두운 톤으로 맞춘다.
   배경 자체는 nav 바 높이만큼만 살짝 채워서, 아래로 스크롤되는 페이지
   본문 텍스트가 절대 가려지지 않게 한다 (예전엔 홈용 긴 그라데이션을
   모든 페이지에 그대로 적용해서, 콘텐츠 페이지 제목이 그 아래 깔려
   흐릿하게 잘려 보이는 문제가 있었다). */
.nav--on-white {
  --ink: #161a1e;
  --ink-dim: #47525a;
  --ink-mute: #7c868d;
  --accent: #0e7f8f;
  --accent-warm: #b06a1f;
  --line: rgba(0,0,0,0.10);
  --line-2: rgba(0,0,0,0.16);
}
.nav--on-white::before {
  /* nav 박스 높이(inset:0)에서 딱 잘리면 그 아래 페이지 배경(#f8fafc)과
     맞닿는 경계가 또렷한 선처럼 보인다. 박스 자체를 늘리는 대신 — 좁은
     화면에서는 nav 바로 아래 본문이 시작해 겹칠 수 있다 — 박스 안에서
     끝나기 전에 미리 투명하게 페이드아웃시켜, 박스 하단(=nav 높이)에
     닿을 때는 이미 페이지 배경과 거의 같은 색이 되게 한다. */
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.92) 80%,
    rgba(255,255,255,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* 홈페이지 히어로 전용: 로고 뒤로 CGI 사진을 가릴 만큼 긴 흰색 그라데이션.
   히어로 텍스트는 훨씬 아래(padding-top:22vh)에서 시작하므로 겹치지 않는다. */
.nav--hero::before {
  top: 0; left: 0; right: 0; bottom: auto;
  height: 390px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.85) 40%,
    rgba(255,255,255,0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 0.3s ease;
}
/* 첫 화면(인트로)을 지나 스크롤하면(scroll.js가 붙이는 nav--scrolled)
   이 긴 흰색 그라데이션을 다른 페이지와 같은 짧은 그라데이션으로 되돌린다
   — 안 그러면 390px짜리 흰 띠가 스크롤 내내 계속 깔려서, 사진 속 계기
   헤드가 화면 위쪽에 있는 씬(유량계측/밸브)에서 사진이 허옇게 씻겨
   보이는(잘린 것처럼 보이는) 문제가 있었다. */
.nav--hero.nav--scrolled::before {
  /* scene--top-bias가 사진 위에 고정 130px 검은 여백을 이미 확보해주므로,
     nav는 다른 페이지와 똑같은 짧은 그라데이션이면 충분하다. */
  height: auto;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.92) 80%,
    rgba(255,255,255,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  /* 원래 짧은 영문 워드마크(PRECISIUM) 기준으로 잡아둔 0.24em 자간이,
     지금의 긴 한글 회사명에는 너무 벌어져 보여 다른 한글 제목들과 비슷한
     수준으로 좁혔다. */
  letter-spacing: -0.01em;
  justify-self: start;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand svg { color: var(--accent); }

/* 로고는 밝은 배경 전제로 그려져서, 어두운 히어로/네비 배경 위에서는 흰색 칩을 깔아준다.
   단, 홈페이지 상단은 이미 흰색 그라데이션이 깔려 있어 칩이 필요 없다 — 아래
   .nav--on-white .brand-logo 에서 배경/그림자를 제거해 자연스럽게 녹아들게 한다. */
.brand-logo {
  height: 45px;
  width: auto;
  display: block;
  background: #fff;
  padding: 5px 8px;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.nav--on-white .brand-logo {
  background: none;
  padding: 0;
  box-shadow: none;
}
/* 상단 메뉴는 브랜드/버튼 너비와 무관하게 화면 정중앙에 항상 고정된다 (1fr auto 1fr 그리드). */
.nav__links {
  display: flex;
  align-items: center;
  gap: 56px;
  justify-self: center;
  font-size: 18px;
  letter-spacing: 0.1em;
}
.nav__item { position: relative; }
.nav__top {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  opacity: 0.92;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}
.nav__top:hover,
.nav__top:focus-visible { opacity: 1; color: var(--accent); }
.nav__top.is-current { opacity: 1; color: var(--accent); }

/* 드롭다운: 데스크톱은 hover/focus로, 터치는 top 버튼 탭(=focus)으로 열린다.
   nav 바 자체 색(다크 글라스 / 흰 그라데이션)과 무관하게 항상 동일한 밝은
   패널로 고정 — 어떤 페이지의 nav 위에서도 일관되게 보인다. */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 8px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  padding: 9px 14px;
  border-radius: 6px;
  color: #47525a;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown a:hover { background: rgba(14,127,143,0.1); color: #0e7f8f; }

/* 편집모드에서 로고 옆에 뜨는 크기 조절 A-/A+ 컨트롤.
   평소엔 숨겨져 있다가 body.editing일 때만 inline-edit.js가 보여준다 — JS는
   hidden 속성만 토글하는데, 아래에 display:inline-flex를 무조건 걸어두면
   author 스타일시트가 브라우저 기본 [hidden]{display:none}보다 우선순위가
   높아 hidden 속성이 있어도 계속 보여버린다(item-list-add 등과 같은 문제).
   그래서 기본값을 display:none으로 두고 body.editing에서만 보이게 한다. */
.resize-ctrl {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
body.editing .resize-ctrl { display: inline-flex; }
.resize-ctrl button {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(126,232,242,0.16);
  color: #06181c;
  border: none;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.resize-ctrl button:hover { background: #7ee8f2; }

.color-ctrl {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
body.editing .color-ctrl { display: inline-flex; }
.color-ctrl__swatch {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(126,232,242,0.16);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}
.color-ctrl__swatch:hover { background: #7ee8f2; }
.color-ctrl__input {
  width: 26px; height: 26px;
  margin: -3px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.color-ctrl__reset {
  height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  background: rgba(126,232,242,0.16);
  color: #06181c;
  border: none;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.color-ctrl__reset:hover { background: #7ee8f2; }

/* 햄버거 버튼 — 데스크톱에서는 메뉴가 항상 보이니 완전히 숨겨두고,
   좁은 화면(아래 미디어 쿼리)에서만 나타난다. */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  justify-self: end;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
/* 열린 상태 — 세 줄이 X 모양으로 바뀐다. */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) {
  /* 브랜드 칸을 1fr(줄어들 수 있게)로, 햄버거 칸만 내용 크기(auto)로 —
     기존엔 두 칸 다 auto라 긴 회사명이 grid를 그만큼 넓혀버려 화면
     오른쪽 밖으로 잘려나갔다. */
  .nav { grid-template-columns: minmax(0, 1fr) auto; }
  /* .nav__brand의 원래 justify-self:start 때문에 grid 칸 폭(1fr)과 무관하게
     내용 크기만큼 늘어날 수 있었다 — stretch로 바꿔 실제 칸 폭에 맞게 눌러주고,
     혹시라도 로고를 아주 크게 키운 경우를 대비해 overflow:hidden으로 안전하게
     잘라낸다. */
  .nav__brand { justify-self: stretch; min-width: 0; overflow: hidden; }
  .nav__hamburger { display: flex; }
  /* 메뉴 자체(.nav__links)는 기본 display:none이고, 햄버거를 눌러
     nav-menu.js가 .is-open을 붙이면 헤더 바로 아래 화면 전체 폭 패널로
     펼쳐진다. 데스크톱의 가운데 정렬/가로 나열 레이아웃과는 완전히 다른
     스타일이라 .is-open일 때만 아래 규칙들을 적용한다. */
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    /* 데스크톱 규칙의 justify-self:center가 그대로 남아있으면, left/right를
       둘 다 지정해도(고정폭 계산이 아니라) 내용 크기로 줄어든 뒤 가운데
       정렬돼버린다(절대/고정 위치 박스의 자체 정렬 규칙) — stretch로
       재지정해야 실제로 화면 전체 폭을 채운다. */
    justify-self: stretch;
    top: 78px; left: 0; right: 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 8px 24px 32px;
    /* 홈 히어로(어두운 배경)든 콘텐츠 페이지(밝은 배경)든 항상 같은
       어두운 패널로 고정 — nav 바 자체 색과 무관하게 항상 잘 읽힌다. */
    background: rgba(8, 11, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .nav__links.is-open .nav__item { width: 100%; }
  .nav__links.is-open .nav__top {
    display: block;
    width: 100%;
    padding: 16px 2px;
    text-align: left;
    font-size: 17px;
    letter-spacing: 0;
    text-transform: none;
    color: #eef2f5;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  /* 데스크톱은 hover/focus로 열리는 팝오버지만, 모바일에서는 각 그룹의
     하위 메뉴를 펼친 패널 안에 항상 보이는 목록으로 바꾼다(별도 탭 없이
     한 번에 다 보이는 편이 터치 환경에서 더 단순하고 안전하다). */
  .nav__links.is-open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: flex;
    min-width: 0;
    padding: 4px 0 12px 14px;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__links.is-open .nav__dropdown a {
    color: #b8c2c6;
    padding: 10px 4px;
    font-size: 15px;
  }
  .nav__links.is-open .nav__dropdown a:hover { background: none; color: #7ee8f2; }
}

/* ============================================================
   SCROLL PANES — one 100vh per scene, content over the CGI
   ============================================================ */
#scroll {
  position: relative;
  z-index: 10;
  pointer-events: none;
}
.pane {
  position: relative;
  min-height: 100vh;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.pane > * { pointer-events: auto; }

.pane--right { align-items: flex-end; text-align: right; }
.pane--left  { align-items: flex-start; text-align: left; }
.pane--center { align-items: center; text-align: center; }

.pane--intro { align-items: flex-start; padding-top: 22vh; }
.pane--intro .hero { max-width: 900px; }
.pane--intro .lede { max-width: 520px; margin-top: 28px; }

.pane .chip,
.pane h2,
.pane p {
  max-width: 640px;
}
.pane--right .chip,
.pane--right h2,
.pane--right p { margin-left: auto; }

/* Text has a subtle backdrop-blur card feel via drop-shadow */
.pane h1,
.pane h2,
.pane p,
.pane .chip,
.pane .eyebrow,
.pane .scroll-hint,
.pane .cta-row,
.pane .company-info,
.pane .footer-copyright {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.65));
}

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero {
  font-family: var(--font-kr);
  font-weight: 600;
  font-size: clamp(52px, 7.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--accent {
  font-weight: 400;
  color: var(--accent-warm);
}

.lede {
  font-family: var(--font-kr);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 680px;
  font-weight: 400;
  letter-spacing: -0.01em;
  /* 관리자가 편집모드에서 직접 입력한 줄바꿈(Enter)을 그대로 반영 — 너비만
     늘리면 짧은 문장에서 자동 줄바꿈 위치가 마음에 안 들 수 있어, 필요하면
     수동으로 줄을 끊을 수 있게 한다. */
  white-space: pre-line;
}

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(126,232,242,0.45);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(5,7,10,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pane h2 {
  font-family: var(--font-kr);
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
  color: var(--ink);
}
.pane p {
  font-family: var(--font-kr);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.92;
  text-wrap: pretty;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  /* .lede와 같은 이유 — 관리자가 편집모드에서 Enter로 직접 넣은 줄바꿈을
     그대로 보여준다(inline-edit.js의 data-editable-multiline 참고). */
  white-space: pre-line;
}

/* ============================================================
   SCROLL HINT
   ============================================================ */
.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent-warm);
}
/* 편집모드에서 드래그로 화면 아무 곳에나 옮길 수 있는 요소 — 웹빌더처럼
   원하는 위치에 텍스트를 배치할 수 있게. 편집모드가 아닐 때는 평소
   그대로(손잡이 표시/커서 변화 없음). */
body.editing [data-draggable-pos] {
  outline: 1px dashed rgba(126,232,242,0.55);
  outline-offset: 6px;
  border-radius: 4px;
}
[data-draggable-pos].is-dragging {
  opacity: 0.85;
}
/* 요소 전체가 아니라 이 손잡이를 잡았을 때만 드래그가 시작된다 — 안에
   data-editable 텍스트가 있는 요소(회사소개 제목 칸 등)에서 텍스트를
   클릭해 편집하려는 시도가 드래그로 먹히지 않게 하기 위함. */
.drag-handle {
  display: none;
  position: absolute;
  top: -13px;
  left: -13px;
  z-index: 6;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(126,232,242,0.92);
  color: #06181c;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
body.editing .drag-handle { display: inline-flex; }
.drag-handle:active { cursor: grabbing; }
/* data-resizable-box(inline-edit.js initResizableBox) 전용 — 요소
   전체(레이아웃)의 폭을 오른쪽 아래 모서리를 드래그해서 조절하는
   손잡이. drag-handle(위치 이동)과 짝을 이루는 크기 조절용이라 반대쪽
   모서리에 둔다. */
.resize-corner-handle {
  display: none;
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: 6;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(126,232,242,0.92);
  cursor: ew-resize;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.resize-corner-handle::after {
  content: '⤡';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06181c;
  font-size: 13px;
  line-height: 1;
}
body.editing .resize-corner-handle { display: block; }
[data-resizable-box].is-resizing { opacity: 0.85; }
.scroll-hint__bar {
  display: inline-block;
  width: 64px; height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.scroll-hint__bar i {
  position: absolute; inset: 0;
  background: var(--accent);
  animation: sweep 2.4s ease-in-out infinite;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ============================================================
   OUTRO
   ============================================================ */
.outro {
  font-family: var(--font-kr);
  font-size: clamp(48px, 6.5vw, 96px) !important;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: none !important;
}
.cta-row {
  display: flex; gap: 14px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-kr);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #06181c;
  border-color: var(--accent);
}
.btn--primary:hover { background: #a4f0f7; border-color: #a4f0f7; }
.btn--ghost {
  background: rgba(5,7,10,0.5);
  color: var(--ink);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.08); }

/* 회사 정보 + 카피라이트를 섹션 하단 쪽으로 고정 배치 (.pane은 position:relative).
   absolute 자식의 기준 박스는 부모의 padding 바깥쪽(border) 이라 .pane의
   좌우 padding(0 80px, 900px 이하에서는 0 24px)이 무시되므로 여기서 같은
   값을 다시 지정해 좌우 정렬이 어긋나지 않게 한다. */
.pane-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  padding: 0 80px;
}
@media (max-width: 900px) {
  .pane-footer { padding: 0 24px; }
}
/* 좁은 화면에서는 항목이 여러 줄로 접히면서 bottom 고정 위치가 위쪽의
   버튼과 겹칠 수 있어, absolute 대신 일반 흐름으로 되돌려 겹침을 막는다. */
@media (max-width: 560px) {
  .pane-footer { position: static; padding: 0; margin-top: 48px; }
}
/* 회사 정보(3열×N행 그리드), 중앙 정렬 */
.company-info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  column-gap: 32px;
  row-gap: 10px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
@media (max-width: 720px) {
  .company-info { grid-template-columns: repeat(2, auto); }
}
/* 회사 정보 항목 — 순서를 편집모드에서 위/아래 버튼으로 바꿀 수 있는
   반복 목록(.item-list-block, 연혁/사업분야 카드와 같은 메커니즘). */
.footer-info-item { display: inline-flex; align-items: center; gap: 4px; }
.footer-info-item__label { color: var(--ink); font-weight: 500; }
.footer-info-item__sep { color: var(--ink-mute); }
.footer-info-item__value { color: var(--ink-dim); font-weight: 600; }
.footer-info-item__actions {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
body.editing .footer-info-item__actions { display: inline-flex; }
.footer-info-item__move,
.footer-info-item__remove {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.footer-info-item__move:hover,
.footer-info-item__remove:hover { border-color: var(--accent); color: var(--accent); }
.footer-info-item:first-child .item-list-move-up,
.footer-info-item:last-child .item-list-move-down { opacity: 0.3; pointer-events: none; }

.item-list-empty {
  margin-top: 16px;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-kr);
  font-size: 13px;
}
.item-list-add {
  display: none;
  margin: 16px auto 0;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.3);
  color: var(--ink-dim);
  font-family: var(--font-kr);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
body.editing .item-list-add { display: block; }
.item-list-add:hover { border-color: var(--accent); color: var(--accent); }

/* .pane p { font-size:17.5px } 규칙이 <p class="footer-copyright">에도
   걸리는데 그쪽이 클래스+태그(.pane p)라 이 클래스 하나짜리 선택자보다
   우선순위가 높아 12px가 무시된다 — .pane을 붙여 우선순위를 맞춘다. */
.pane .footer-copyright {
  margin: 24px auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ============================================================
   HUD
   ============================================================ */
#hud {
  position: fixed; inset: 0;
  z-index: 30;
  pointer-events: none;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.6s ease;
}
#hud.hud--on { opacity: 1; }
.hud__corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 20px;
  min-width: 140px;
}
.hud__corner--tl { top: 78px; left: 32px; }
.hud__corner--tr { top: 78px; right: 32px; text-align: right; }
.hud__corner--bl { bottom: 32px; left: 32px; }
.hud__corner--br { bottom: 32px; right: 32px; text-align: right; }

.hud__label {
  color: rgba(126,232,242,0.45);
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-bottom: 4px;
}
.hud__val {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(126,232,242,0.5);
}
.hud__val em {
  font-style: normal;
  color: rgba(126,232,242,0.55);
  font-size: 10px;
  margin-left: 4px;
  letter-spacing: 0.14em;
}

.hud__reticle {
  position: absolute;
  left: 50%; top: 50%;
  width: 140px; height: 140px;
  transform: translate(-50%, -50%);
  color: rgba(126,232,242,0.35);
  opacity: 0;
  transition: opacity 0.5s;
  animation: reticleSpin 20s linear infinite;
}
#hud.hud--reticle .hud__reticle { opacity: 1; }
@keyframes reticleSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   VIDEO LIGHTBOX — 사이트 전역, 모든 페이지에서 항상 로드됨
   (public/static/video-lightbox.js). 어디서든 [data-video-url]을 가진
   요소를 누르면 페이지 이동 없이 여기서 재생된다.
   ============================================================ */
.video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-kr);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.video-play-btn:hover { transform: translateY(-1px); }
.video-play-btn::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* 썸네일 위에 재생 버튼을 겹쳐 놓는 조합 (회사소개 영상 블록 등) */
/* 게시판/회사소개 페이지 본문 폭(720px)에 맞춰 위아래로 너무 크게
   보이지 않도록 상한을 둔다 — 페이지 폭에 그대로 늘어나면 영상이
   지나치게 커 보인다는 피드백으로 축소(회사소개에서는 .company-overview-row__video의
   좁은 칸 폭이 한 번 더 상한이 되어 실제로는 이보다 훨씬 작게 보인다). */
.video-block { position: relative; max-width: 400px; margin: 8px auto 24px; }
.video-block__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(127,127,127,0.12);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-block__thumb .video-play-btn {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.video-block__thumb-empty-label {
  display: none;
  font-family: var(--font-kr);
  font-size: 13px;
  color: var(--ink-mute);
}
.video-block__thumb--empty .video-block__thumb-empty-label { display: block; }

/* 재생 버튼을 누르면 팝업 없이 썸네일 자리에서 바로 재생되고(.video-block__inline-player),
   그 위에 뜨는 전체화면 아이콘(.video-fullscreen-btn)을 눌러야 모달 팝업으로 커진다. */
.video-block__thumb--playing .video-play-btn,
.video-block__thumb--playing .video-block__thumb-empty-label {
  display: none;
}
.video-block__inline-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
}
.video-block__inline-player iframe,
.video-block__inline-player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,7,10,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.video-fullscreen-btn:hover { background: rgba(5,7,10,0.85); border-color: rgba(255,255,255,0.6); }
/* "확대" 아이콘 — 모서리 네 개의 꺾쇠를 border로 그린 사각 프레임 */
.video-fullscreen-btn::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
  opacity: 0.9;
}
/* 영상 링크는 방문자에게 보여줄 콘텐츠가 아니라 설정값이라, 평소엔
   숨겨두고 관리자 편집모드에서만 보이게 한다 (재생 버튼만 공개 노출). */
.video-block__url-row {
  display: none;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
body.editing .video-block__url-row { display: flex; }
.video-block__url-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.video-block__url-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  word-break: break-all;
}
.video-block__caption {
  margin-top: 12px;
  font-family: var(--font-kr);
  font-size: 14px;
  color: var(--ink-dim);
}
/* 캡션이 비어있을 땐 위 여백도 없애 썸네일 바로 아래가 영상 블록의
   실제 끝이 되게 한다 — 회사소개 2단 배치에서 이 여백 때문에 영상
   아래쪽이 옆 숫자 영역 경계선과 정확히 안 맞는 문제가 있었다. */
.video-block__caption:empty { margin-top: 0; }

#videoLightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  padding: 24px;
}
#videoLightbox.is-open { opacity: 1; visibility: visible; }
.video-lightbox__box {
  position: relative;
  width: 100%;
  max-width: 1100px;
}
.video-lightbox__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-lightbox__player iframe,
.video-lightbox__player video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.video-lightbox__close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.video-lightbox__close:hover { background: rgba(255,255,255,0.24); }

/* ============================================================
   PROGRESS RAIL
   ============================================================ */
#rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  height: 320px;
  width: 2px;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
#railFill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(126,232,242,0.2) 100%);
  box-shadow: 0 0 12px var(--accent);
  transition: height 0.1s linear;
}
#railTicks {
  position: absolute;
  left: 14px;
  top: 0;
  list-style: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#railTicks li {
  position: relative;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 12px;
  white-space: nowrap;
  transition: color 0.3s;
}
#railTicks li::before {
  content: '';
  position: absolute;
  left: -14px; top: 50%;
  width: 6px; height: 1px;
  background: currentColor;
}
#railTicks li.is-active {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}
#railTicks li::after {
  content: attr(data-label);
}

@media (max-width: 900px) {
  #rail { display: none; }
  .pane { padding: 0 24px; }
  .scroll-hint { left: 24px; }
  .hud__corner { min-width: 100px; padding: 12px; }
  .hud__corner--tl, .hud__corner--tr { top: 70px; }
}

/* 연혁(History) 타임라인은 /company/history(board-page)에서만 렌더링되며
   그 스타일은 public/static/admin-board.css에 있다. */

/* ============================================================
   ADMIN INLINE EDIT MODE
   ============================================================ */
body.editing [data-editable],
body.editing [data-item-field] {
  outline: 1px dashed rgba(126,232,242,0.55);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
}
body.editing [data-editable]:focus,
body.editing [data-item-field]:focus {
  outline: 1px solid var(--accent);
  background: rgba(126,232,242,0.06);
}

/* Always a self-contained dark glass pill, regardless of whether the page
   underneath it is the dark CGI hero or a light content page. */
#adminEditBar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5,7,10,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#adminEditToggle {
  font-family: var(--font-kr);
  font-size: 13px;
  font-weight: 500;
  color: #06181c;
  background: #7ee8f2;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
#adminEditToggle:hover { background: #a4f0f7; }
#adminEditStatus {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d7e0e3;
  min-width: 40px;
}

/* 홈페이지 포함 모든 페이지 공통 "맨 위로" 버튼 — 스크롤을 일정 이상
   내리면 나타난다. (홈페이지의 우측 #rail은 화면 중앙에 떠 있어서 같은
   우측 하단 자리를 겹치지 않고 같이 쓸 수 있다.) */
.to-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font: 700 12px/1 var(--font-sans, inherit);
  letter-spacing: 0.02em;
  /* "TOP" 텍스트에 쓰이는 커스텀 폰트가 700 굵기여도 가늘어 보여서
     텍스트 스트로크로 한 번 더 두껍게 보정한다. */
  -webkit-text-stroke: 0.5px currentColor;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top-btn:hover { filter: brightness(1.08); }
@media (max-width: 640px) {
  .to-top-btn { right: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 11px; }
}
/* 홈 히어로 위에서는 채도 높은 accent 원형이 CGI 화면과 안 어울려서,
   히어로에 이미 쓰는 유리질감 고스트 버튼(.btn--ghost)과 같은 톤으로. */
.to-top-btn--hero {
  width: 60px;
  height: 60px;
  background: rgba(5, 7, 10, 0.55);
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 13px;
  -webkit-text-stroke-width: 0.7px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.to-top-btn--hero:hover {
  background: rgba(5, 7, 10, 0.75);
  border-color: rgba(255, 255, 255, 0.85);
  filter: none;
}
@media (max-width: 640px) {
  .to-top-btn--hero { width: 52px; height: 52px; font-size: 12px; }
}
