/* ===========================================================
   HAEON GROUP — style.css
   Components, layout, motion
   =========================================================== */

/* ==========  1. HEADER / NAV  ========== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: var(--c-glass);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--c-hairline);
}
/* 헤더는 스크롤 중에도 숨기지 않고 항상 최상단에 고정합니다 */
.site-header { transform: none; }

/* 고정 헤더(+섹션 탭) 높이만큼 앵커 이동 위치를 내려 제목이 가려지지 않게 합니다 */
:root { --header-h: 75px; --anchor-h: 50px; }
@media (min-width: 1024px) { :root { --header-h: 85px; } }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.has-anchor-nav [id],
body:has(.anchor-nav) [id] { scroll-margin-top: calc(var(--header-h) + var(--anchor-h) + 16px); }

.header-inner {
  display: flex; align-items: center; gap: var(--space-6);
  height: 74px; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
@media (min-width: 1024px) { .header-inner { height: 84px; } }

.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand svg { height: 21px; width: auto; color: var(--c-text); }

/* ---------- 로고 이미지 (업로드 원본 사용) ---------- */
.logo { display: block; flex-shrink: 0; line-height: 0; }
.logo-img { display: block; width: auto; height: 100%; }
.logo-mark { height: 38px; }
/* 슬로건까지 들어간 전체 로고는 글자가 읽히도록 가로 기준으로 크기를 잡습니다 */
.logo-full { width: 232px; height: auto; }
.logo-full .logo-img { width: 100%; height: auto; }
/* 기본(다크 테마) : 밝은 로고 */
.logo-img.on-light { display: none; }
[data-theme='light'] .logo-img.on-dark { display: none; }
[data-theme='light'] .logo-img.on-light { display: block; }
@media (max-width: 1100px) { .logo-mark { height: 34px; } .logo-full { width: 208px; } }
@media (max-width: 640px) { .logo-mark { height: 30px; } .logo-full { width: 188px; } }
.brand-sub {
  display: none; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-text-faint); padding-left: var(--space-3); border-left: 1px solid var(--c-border);
  line-height: 1.3; max-width: 130px; font-weight: 500;
}
@media (min-width: 1440px) { .brand-sub { display: block; } }
html[lang='ru'] .brand-sub { display: none; }

/* desktop nav */
.nav-wrap { margin-left: auto; }
.nav-main { display: none; }
@media (min-width: 1024px) { .nav-main { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); } }
.nav-main > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: -0.01em;
  padding-block: var(--space-3); color: var(--c-text);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 6px; height: 2px; width: 100%;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-main > li:hover .nav-link::after,
.nav-main > li[aria-current='page'] .nav-link::after { transform: scaleX(1); }
.nav-main > li:hover .nav-link { color: var(--c-accent); }

.nav-sub {
  position: absolute; top: calc(100% + 10px); left: -18px; min-width: 232px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--space-3); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.nav-main > li:hover .nav-sub, .nav-main > li:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub a {
  display: block; padding: var(--space-3) var(--space-4); border-radius: var(--r-md);
  font-size: var(--text-sm); color: var(--c-text-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.nav-sub a:hover { background: var(--c-surface-2); color: var(--c-accent); }

/* header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
@media (min-width: 1024px) { .header-actions { margin-left: 0; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-full); color: var(--c-text-muted);
  border: 1px solid transparent;
  transition: color var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast);
}
.icon-btn:hover { color: var(--c-accent); background: var(--c-surface-2); border-color: var(--c-border); }
.icon-btn svg { width: 19px; height: 19px; }

/* language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 40px; padding-inline: var(--space-3); border-radius: var(--r-full);
  border: 1px solid var(--c-border); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.06em; color: var(--c-text-muted); text-transform: uppercase;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.lang-btn:hover { color: var(--c-accent); border-color: var(--c-accent-line); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; z-index: 50;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: var(--space-2); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.lang-wrap.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-md);
  font-size: var(--text-sm); color: var(--c-text-muted); text-align: left;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.lang-menu button:hover { background: var(--c-surface-2); color: var(--c-text); }
.lang-menu button[aria-selected='true'] { color: var(--c-accent); font-weight: 600; }
.lang-menu .code { font-size: 12px; letter-spacing: 0.1em; color: var(--c-text-faint); }

/* burger */
.burger { display: inline-grid; place-items: center; width: 42px; height: 42px; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block; width: 20px; height: 1.5px; background: var(--c-text); border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
.burger span + span { margin-top: 5px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 190; background: var(--c-bg);
  padding: 96px var(--gutter) var(--space-12);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }
.mobile-nav > ul > li { border-bottom: 1px solid var(--c-hairline); }
.mobile-nav > ul > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-5); font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 600;
}
.mobile-nav .m-sub { padding-bottom: var(--space-4); display: grid; gap: var(--space-1); }
.mobile-nav .m-sub a {
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  font-size: var(--text-sm); color: var(--c-text-muted);
  border-left: 1px solid var(--c-border);
}
.mobile-nav .m-actions { display: grid; gap: var(--space-3); margin-top: var(--space-8); }
body.nav-open .mobile-nav > ul > li {
  animation: m-in 520ms var(--ease-out) backwards;
}
body.nav-open .mobile-nav > ul > li:nth-child(1) { animation-delay: 60ms; }
body.nav-open .mobile-nav > ul > li:nth-child(2) { animation-delay: 110ms; }
body.nav-open .mobile-nav > ul > li:nth-child(3) { animation-delay: 160ms; }
body.nav-open .mobile-nav > ul > li:nth-child(4) { animation-delay: 210ms; }
body.nav-open .mobile-nav > ul > li:nth-child(5) { animation-delay: 260ms; }
body.nav-open .mobile-nav > ul > li:nth-child(6) { animation-delay: 310ms; }
@keyframes m-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ==========  2. BUTTONS  ========== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-3); min-height: 52px; padding: var(--space-3) var(--space-7, 1.75rem);
  padding-inline: 1.75rem; border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease-out), color var(--dur-fast),
              background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--c-accent); color: var(--c-text-invert); }
.btn-primary:hover { background: var(--c-accent-soft); box-shadow: 0 10px 30px -10px var(--c-accent-glow); }
.btn-outline { border-color: var(--c-border-strong); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-glow); }
.btn-ghost { color: var(--c-text-muted); padding-inline: var(--space-4); min-height: 44px; }
.btn-ghost:hover { color: var(--c-accent); }
.btn-light { background: var(--c-text); color: var(--c-bg); }
.btn-light:hover { background: var(--c-accent); color: var(--c-text-invert); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--c-accent);
  padding-block: var(--space-2);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========  3. HERO + VIDEO BACKGROUND  ========== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(3.5rem, 8vh, 7rem); overflow: hidden; isolation: isolate;
  background: var(--c-bg-deep);
}
.hero-sub { min-height: 62svh; align-items: center; padding-top: 110px; }

.video-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #040607; }
.video-bg video, .video-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1400ms var(--ease-in-out);
}
.video-bg video.is-active, .video-bg img.is-active { opacity: 1; }
.video-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,6,7,0.82) 0%, rgba(4,6,7,0.34) 34%, rgba(4,6,7,0.88) 100%),
    radial-gradient(110% 80% at 12% 82%, rgba(4,6,7,0.7) 0%, rgba(4,6,7,0) 62%);
}
[data-theme='light'] .video-bg::after {
  background:
    linear-gradient(180deg, rgba(8,12,13,0.7) 0%, rgba(8,12,13,0.3) 34%, rgba(8,12,13,0.8) 100%);
}
/* scanline / grid overlay */
.video-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 25%, transparent 78%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero, .hero * { --c-text: #F2F7F8; }
.hero .eyebrow, .hero h1, .hero p { color: #F2F7F8; }
.hero-meta-item dd, .video-ui, .scroll-cue { color: #F2F7F8; }
.hero p.hero-lead { color: rgba(242,247,248,0.82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: ''; width: 34px; height: 1px; background: var(--c-accent); opacity: 0.8;
}
.hero h1 {
  font-size: var(--text-hero); font-weight: 700; letter-spacing: -0.035em;
  max-width: 19ch; margin-bottom: var(--space-6);
}
.hero-lead { font-size: var(--text-lg); max-width: 52ch; line-height: 1.68; margin-bottom: var(--space-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* hero meta bar */
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8);
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid rgba(242,247,248,0.16);
}
.hero-meta-item { display: grid; gap: 2px; }
.hero-meta-item dt { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242,247,248,0.55); }
.hero-meta-item dd { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }

/* video controls */
.video-ui {
  position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 8vh, 7rem); z-index: 3;
  display: none; align-items: center; gap: var(--space-4);
}
@media (min-width: 900px) { .video-ui { display: flex; } }
.video-dots { display: flex; gap: var(--space-2); }
.video-dots button {
  width: 30px; height: 3px; border-radius: 2px; background: rgba(242,247,248,0.28);
  transition: background-color var(--dur), width var(--dur) var(--ease-out);
}
.video-dots button[aria-selected='true'] { background: var(--c-accent); width: 46px; }
.video-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  border: 1px solid rgba(242,247,248,0.28); color: #F2F7F8;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.video-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }
.video-toggle svg { width: 15px; height: 15px; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: var(--space-6); transform: translateX(-50%);
  z-index: 3; display: none; width: 1px; height: 54px; background: rgba(242,247,248,0.2);
  overflow: hidden;
}
@media (min-width: 900px) { .scroll-cue { display: block; } }
.scroll-cue::after {
  content: ''; position: absolute; inset: 0; background: var(--c-accent);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ==========  4. SECTION HEADS  ========== */
.sec-head { max-width: 62ch; margin-bottom: var(--space-12); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-bottom: var(--space-5); letter-spacing: -0.028em; }
.sec-head p { color: var(--c-text-muted); font-size: var(--text-base); }
.sec-label {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-accent);
}
.sec-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-glow); }
.sec-head.center .sec-label { justify-content: center; }

/* ==========  5. GRIDS & CARDS  ========== */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: var(--space-6); } }

.card {
  position: relative; padding: var(--space-8); border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur),
              background-color var(--dur), box-shadow var(--dur);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--c-accent-glow), transparent 68%);
  transition: opacity var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-5px); border-color: var(--c-accent-line); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card-idx {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  color: var(--c-accent); margin-bottom: var(--space-5); display: block;
}
.card h3 { margin-bottom: var(--space-3); letter-spacing: -0.02em; }
.card p { color: var(--c-text-muted); font-size: var(--text-sm); line-height: 1.72; }
.card ul.ticks { margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.card ul.ticks li {
  position: relative; padding-left: var(--space-5); font-size: var(--text-sm); color: var(--c-text-muted);
  line-height: 1.6;
}
.card ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--c-accent); opacity: 0.75;
}
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-6);
  border-radius: var(--r-md); background: var(--c-accent-glow); color: var(--c-accent);
  border: 1px solid var(--c-accent-line);
}
.card-icon svg { width: 23px; height: 23px; }

/* media card */
.mcard {
  position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  display: flex; flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur);
}
.mcard:hover { transform: translateY(-5px); border-color: var(--c-accent-line); }
.mcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-3); }
.mcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.mcard:hover .mcard-media img { transform: scale(1.06); }
.mcard-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,6,7,0) 40%, rgba(4,6,7,0.55) 100%);
}
.mcard-tag {
  position: absolute; z-index: 2; top: var(--space-4); left: var(--space-4);
  padding: 5px var(--space-3); border-radius: var(--r-full);
  background: rgba(4,6,7,0.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(242,247,248,0.2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #F2F7F8;
}
.mcard-body { padding: var(--space-6); display: grid; gap: var(--space-3); flex: 1; align-content: start; }
.mcard-body h3 { letter-spacing: -0.02em; }
.mcard-body p { color: var(--c-text-muted); font-size: var(--text-sm); }

/* ==========  6. STATS / COUNTERS  ========== */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--c-surface); padding: var(--space-8) var(--space-6); text-align: center; }
.stat-val {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  letter-spacing: -0.03em; color: var(--c-accent); display: block; margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-label { font-size: var(--text-xs); color: var(--c-text-muted); letter-spacing: 0.04em; }

/* ==========  7. MARQUEE TICKER  ========== */
.ticker {
  position: relative; overflow: hidden; padding-block: var(--space-4);
  border-block: 1px solid var(--c-hairline); background: var(--c-surface);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: var(--space-10); width: max-content; animation: marquee 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: var(--space-4);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-text-faint); white-space: nowrap;
}
.ticker-track span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========  8. SPLIT / FEATURE ROWS  ========== */
.split { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.split.reverse > .split-media { order: -1; }
@media (max-width: 899px) { .split.reverse > .split-media { order: 0; } }
.split-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-border); aspect-ratio: 4 / 3; background: var(--c-surface-2);
}
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(47,216,195,0.1) 0%, rgba(4,6,7,0.25) 100%);
  pointer-events: none;
}
.split-body h2 { margin-bottom: var(--space-5); }
.split-body p { color: var(--c-text-muted); margin-bottom: var(--space-5); }
.split-body .link-arrow { margin-top: var(--space-2); }

/* ==========  9. FLOW / PROCESS  ========== */
.flow { display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(5, 1fr); gap: var(--space-3); } }
.flow-step {
  position: relative; padding: var(--space-6); border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-border);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.flow-step:hover { border-color: var(--c-accent-line); transform: translateY(-4px); }
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--c-accent);
  letter-spacing: 0.12em; display: block; margin-bottom: var(--space-4);
}
.flow-step h4 { margin-bottom: var(--space-2); font-size: var(--text-base); }
.flow-step p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.6; }
@media (min-width: 1024px) {
  .flow-step:not(:last-child)::after {
    content: ''; position: absolute; top: 50%; right: -1px; width: 12px; height: 1px;
    background: var(--c-accent-line); z-index: 2;
  }
}

/* ==========  10. TIMELINE / ROADMAP  ========== */
.timeline { position: relative; display: grid; gap: var(--space-6); }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, var(--c-accent-line), var(--c-border) 70%, transparent);
}
.tl-item { position: relative; padding-left: var(--space-10); }
.tl-item::before {
  content: ''; position: absolute; left: 4px; top: 8px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-glow);
}
.tl-phase {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-accent); display: block; margin-bottom: var(--space-2);
}
.tl-item h4 { margin-bottom: var(--space-2); font-size: var(--text-base); }
.tl-item p { font-size: var(--text-sm); color: var(--c-text-muted); }

/* ==========  11. GLOBAL / ENTITY TABLE  ========== */
.tablewrap {
  border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-surface);
}
.tablewrap .scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ent { min-width: 640px; font-size: var(--text-sm); }
table.ent thead th {
  text-align: left; padding: var(--space-4) var(--space-5); background: var(--c-surface-2);
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-muted); font-weight: 600; border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
table.ent tbody td {
  padding: var(--space-5); border-bottom: 1px solid var(--c-hairline);
  color: var(--c-text-muted); vertical-align: top;
}
table.ent tbody tr:last-child td { border-bottom: 0; }
table.ent tbody tr { transition: background-color var(--dur-fast); }
table.ent tbody tr:hover { background: var(--c-surface-2); }
table.ent td.nm { color: var(--c-text); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--c-accent-glow); color: var(--c-accent); border: 1px solid var(--c-accent-line);
  white-space: nowrap;
}
.badge.muted { background: var(--c-surface-3); color: var(--c-text-muted); border-color: var(--c-border); }

/* location cards */
.loc { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--c-border);
  aspect-ratio: 3 / 4; display: flex; align-items: flex-end; isolation: isolate; }
.loc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1000ms var(--ease-out), filter var(--dur); filter: saturate(0.7) brightness(0.6); }
.loc::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,6,7,0.1) 30%, rgba(4,6,7,0.92) 100%); }
.loc:hover img { transform: scale(1.07); filter: saturate(1) brightness(0.72); }
.loc-body { padding: var(--space-6); color: #F2F7F8; }
.loc-body .city { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; }
.loc-body .role { font-size: var(--text-xs); color: rgba(242,247,248,0.72); margin-top: 4px; line-height: 1.5; }
.loc-body .code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--c-accent); margin-bottom: var(--space-2); display: block; }

/* ==========  12. HARDWARE RAIL  ========== */
.rail { display: flex; gap: var(--space-5); overflow-x: auto; padding-block: var(--space-2) var(--space-6);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 2px; }
.rail > * { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; }
.hw { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border);
  background: var(--c-surface); display: flex; flex-direction: column;
  transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.hw:hover { border-color: var(--c-accent-line); transform: translateY(-4px); }
.hw-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--c-surface-3); position: relative; }
.hw-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.hw:hover .hw-media img { transform: scale(1.05); }
.hw-body { padding: var(--space-5) var(--space-6) var(--space-6); display: grid; gap: var(--space-2); }
.hw-body .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--c-accent); text-transform: uppercase; }
.hw-body h4 { font-size: var(--text-base); }
.hw-body p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.6; }
.hw-spec { margin-top: var(--space-3); display: grid; gap: 6px; }
.hw-spec div { display: flex; justify-content: space-between; gap: var(--space-3);
  font-size: var(--text-xs); padding-top: 6px; border-top: 1px solid var(--c-hairline); }
.hw-spec dt, .hw-spec .t { color: var(--c-text-faint); }
.hw-spec dd, .hw-spec .v { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ==========  13. CTA BAND  ========== */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl);
  border: 1px solid var(--c-border); background: var(--c-surface);
  padding: clamp(2.5rem, 6vw, 5rem);
}
.cta-band video, .cta-band img.bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(4,6,7,0.92) 0%, rgba(4,6,7,0.68) 60%, rgba(12,78,84,0.55) 100%);
}
.cta-band, .cta-band h2, .cta-band p { color: #F2F7F8; }
.cta-band p { color: rgba(242,247,248,0.8); max-width: 54ch; }
.cta-band h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.cta-inner { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; gap: var(--space-12); } }
.cta-band .hero-cta { flex-wrap: wrap; }

/* ==========  14. FOOTER  ========== */
.site-footer { background: var(--c-bg-deep); border-top: 1px solid var(--c-hairline); padding-top: var(--space-16); }
.footer-top { display: grid; gap: var(--space-10); padding-bottom: var(--space-12); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-8); } }
.footer-brand svg { height: 22px; color: var(--c-text); margin-bottom: var(--space-5); }
.footer-brand .logo { margin-bottom: var(--space-6); }
.footer-brand p { font-size: var(--text-sm); color: var(--c-text-muted); max-width: 40ch; }
.footer-brand .tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-accent); margin-top: var(--space-4); }
.fcol h4 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-faint); margin-bottom: var(--space-5); font-family: var(--font-body); font-weight: 600; }
.fcol ul { display: grid; gap: var(--space-3); }
.fcol a { font-size: var(--text-sm); color: var(--c-text-muted); transition: color var(--dur-fast); }
.fcol a:hover { color: var(--c-accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center;
  justify-content: space-between; padding-block: var(--space-6);
  border-top: 1px solid var(--c-hairline); font-size: var(--text-xs); color: var(--c-text-faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* ==========  15. FORMS / AUTH  ========== */
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--c-text); }
.field .hint { font-size: var(--text-xs); color: var(--c-text-faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); font-size: var(--text-sm); color: var(--c-text);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 148px; padding-top: var(--space-4); resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent); background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--c-accent-glow);
}
.field.invalid input, .field.invalid select { border-color: var(--c-data-5); }
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm);
  color: var(--c-text-muted); margin-bottom: var(--space-5); }
.check input { width: 20px; height: 20px; min-height: 0; flex-shrink: 0; margin-top: 3px; accent-color: var(--c-accent); }

.auth-shell { min-height: 100svh; display: grid; }
@media (min-width: 1024px) { .auth-shell { grid-template-columns: 1.05fr 1fr; } }
.auth-visual { position: relative; overflow: hidden; display: none; isolation: isolate; }
@media (min-width: 1024px) {
  .auth-visual { display: flex; align-items: flex-end; padding: var(--space-16);
    position: sticky; top: 0; height: 100svh; }
}
.auth-visual video, .auth-visual img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(4,6,7,0.32) 0%, rgba(4,6,7,0.86) 100%); }
.auth-visual-body { color: #F2F7F8; max-width: 44ch; }
.auth-visual-body h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.auth-visual-body p { color: rgba(242,247,248,0.76); font-size: var(--text-sm); }
.auth-panel { display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) var(--space-16); background: var(--c-bg); }
.auth-card { width: 100%; max-width: 460px; margin-inline: auto; }
.auth-card > .brand { margin-bottom: var(--space-10); }
.auth-card > .brand .logo-full { width: 246px; }
.auth-card h1 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.auth-card > p.lead { color: var(--c-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-8); }
.auth-alt { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--c-text-muted); text-align: center; }
.auth-alt a { color: var(--c-accent); font-weight: 600; }
.auth-note { margin-top: var(--space-8); padding: var(--space-4) var(--space-5); border-radius: var(--r-md);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  font-size: var(--text-xs); color: var(--c-text-muted); line-height: 1.7; }
.auth-note code { font-family: var(--font-mono); color: var(--c-accent); font-size: 0.95em; }

.alert { display: none; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md); font-size: var(--text-sm); margin-bottom: var(--space-6); line-height: 1.6; }
.alert.show { display: flex; animation: pop 320ms var(--ease-out); }
.alert-err { background: rgba(168,75,47,0.12); border: 1px solid rgba(168,75,47,0.4); color: #E9A98E; }
.alert-ok { background: var(--c-accent-glow); border: 1px solid var(--c-accent-line); color: var(--c-accent); }
[data-theme='light'] .alert-err { color: #8F3A20; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.strength { display: flex; gap: 4px; margin-top: var(--space-2); }
.strength i { flex: 1; height: 3px; border-radius: 2px; background: var(--c-surface-3); transition: background-color var(--dur); }
.strength[data-level='1'] i:nth-child(-n+1) { background: var(--c-data-5); }
.strength[data-level='2'] i:nth-child(-n+2) { background: var(--c-data-4); }
.strength[data-level='3'] i:nth-child(-n+3) { background: var(--c-data-2); }
.strength[data-level='4'] i { background: var(--c-accent); }

/* ==========  16. ADMIN  ========== */
.admin-shell { min-height: 100svh; padding-top: 74px; display: grid; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 252px 1fr; padding-top: 84px; } }
.admin-side { border-right: 1px solid var(--c-border); background: var(--c-surface); padding: var(--space-6) var(--space-4); }
@media (max-width: 1023px) { .admin-side { border-right: 0; border-bottom: 1px solid var(--c-border); } }
.admin-side h4 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-faint); margin-bottom: var(--space-4); padding-inline: var(--space-3);
  font-family: var(--font-body); }
.admin-side ul { display: grid; gap: 2px; }
@media (max-width: 1023px) { .admin-side ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; } }
.admin-side a, .admin-side button.sidelink {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md); font-size: var(--text-sm); color: var(--c-text-muted); width: 100%;
  text-align: left; white-space: nowrap; transition: background-color var(--dur-fast), color var(--dur-fast);
}
.admin-side a:hover, .admin-side button.sidelink:hover { background: var(--c-surface-2); color: var(--c-text); }
.admin-side [aria-current='true'] { background: var(--c-accent-glow); color: var(--c-accent); font-weight: 600; }
.admin-side svg { width: 17px; height: 17px; flex-shrink: 0; }
.admin-main { padding: var(--space-8) var(--gutter) var(--space-16); min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end;
  justify-content: space-between; margin-bottom: var(--space-8); }
.admin-head h1 { font-size: var(--text-xl); }
.admin-head p { font-size: var(--text-sm); color: var(--c-text-muted); margin-top: 4px; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: var(--space-6); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.kpi .k { font-size: var(--text-xs); color: var(--c-text-muted); letter-spacing: 0.04em; }
.kpi .v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  margin-top: var(--space-2); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.kpi .d { font-size: var(--text-xs); color: var(--c-accent); margin-top: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); align-items: center; }
.toolbar .search { position: relative; flex: 1 1 240px; min-width: 200px; }
.toolbar .search input { min-height: 46px; padding-left: 42px; width: 100%;
  background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--r-md);
  font-size: var(--text-sm); color: var(--c-text); }
.toolbar .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--c-text-faint); }
.toolbar select { min-height: 46px; padding-inline: var(--space-4); background: var(--c-surface-2);
  border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: var(--text-sm); color: var(--c-text); }

table.data { min-width: 780px; font-size: var(--text-sm); }
table.data thead th { text-align: left; padding: var(--space-4); background: var(--c-surface-2);
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border); white-space: nowrap; font-weight: 600; }
table.data tbody td { padding: var(--space-4); border-bottom: 1px solid var(--c-hairline); color: var(--c-text-muted); vertical-align: middle; }
table.data tbody tr:hover { background: var(--c-surface-2); }
table.data .who { display: flex; align-items: center; gap: var(--space-3); }
table.data .who strong { color: var(--c-text); display: block; font-size: var(--text-sm); }
table.data .who small { color: var(--c-text-faint); font-size: var(--text-xs); }
.avatar { width: 36px; height: 36px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--c-accent-glow); color: var(--c-accent); font-weight: 700; font-size: var(--text-xs);
  border: 1px solid var(--c-accent-line); flex-shrink: 0; }
.row-actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.mini {
  padding: 7px 12px; border-radius: var(--r-sm); font-size: var(--text-xs); font-weight: 600;
  border: 1px solid var(--c-border); color: var(--c-text-muted); white-space: nowrap;
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast);
}
.mini:hover { border-color: var(--c-accent); color: var(--c-accent); }
.mini.danger:hover { border-color: var(--c-data-5); color: var(--c-data-5); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.st-active { color: var(--c-accent); } .st-active::before { background: var(--c-accent); }
.st-pending { color: var(--c-data-4); } .st-pending::before { background: var(--c-data-4); }
.st-suspended { color: var(--c-text-faint); } .st-suspended::before { background: var(--c-text-faint); }
.empty { padding: var(--space-16) var(--space-6); text-align: center; color: var(--c-text-faint); font-size: var(--text-sm); }
.empty svg { width: 34px; height: 34px; margin: 0 auto var(--space-4); opacity: 0.5; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  padding: var(--gutter); background: rgba(4,6,7,0.7); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { width: 100%; max-width: 480px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--space-8); box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98); transition: transform var(--dur) var(--ease-out);
  max-height: 88svh; overflow-y: auto; }
.modal.is-open .modal-box { transform: none; }
.modal-box h3 { margin-bottom: var(--space-2); }
.modal-box > p { font-size: var(--text-sm); color: var(--c-text-muted); margin-bottom: var(--space-6); }
.modal-actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-6); flex-wrap: wrap; }

/* ==========  17. SCROLL REVEAL  ========== */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 90ms; }  .js .reveal-d2 { transition-delay: 180ms; }
  .js .reveal-d3 { transition-delay: 270ms; } .js .reveal-d4 { transition-delay: 360ms; }
}
.split-lines > span { display: block; overflow: hidden; }
.split-lines > span > i { display: block; font-style: normal; transform: translateY(105%); transition: transform 900ms var(--ease-out); }
.split-lines.in > span > i { transform: none; }
.split-lines > span:nth-child(2) > i { transition-delay: 90ms; }
.split-lines > span:nth-child(3) > i { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) { .split-lines > span > i { transform: none !important; } }

/* progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 300;
  background: var(--grad-accent); width: 0; transition: width 90ms linear; }

/* page intro (sub pages) */
.page-hero { position: relative; padding: 148px 0 var(--space-16); overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--c-hairline); background: var(--c-bg-deep); }
.page-hero img.bg, .page-hero video.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.75); }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,6,7,0.86) 0%, rgba(4,6,7,0.72) 55%, rgba(4,6,7,0.94) 100%); }
.page-hero, .page-hero h1, .page-hero p { color: #F2F7F8; }
.page-hero h1 { font-size: var(--text-2xl); max-width: 22ch; margin-bottom: var(--space-5); letter-spacing: -0.032em; }
.page-hero p { color: rgba(242,247,248,0.8); max-width: 56ch; font-size: var(--text-base); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: rgba(242,247,248,0.6); margin-bottom: var(--space-6); }
.crumbs a { color: rgba(242,247,248,0.75); }
.crumbs a:hover { color: var(--c-accent); }
.crumbs span.sep { opacity: 0.5; }

/* in-page anchor nav */
.anchor-nav { position: sticky; top: 74px; z-index: 100; background: var(--c-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-hairline); }
@media (min-width: 1024px) { .anchor-nav { top: 84px; } }
.anchor-nav ul { display: flex; gap: var(--space-6); overflow-x: auto; padding-inline: var(--gutter);
  max-width: var(--maxw); margin-inline: auto; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { display: block; padding: var(--space-4) 0; font-size: var(--text-sm);
  color: var(--c-text-muted); white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast); }
.anchor-nav a:hover, .anchor-nav a.active { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* accordion */
.acc { border-top: 1px solid var(--c-border); }
.acc-item { border-bottom: 1px solid var(--c-border); }
.acc-q { display: flex; width: 100%; gap: var(--space-4); align-items: center; justify-content: space-between;
  padding: var(--space-5) 0; text-align: left; font-family: var(--font-display);
  font-size: var(--text-base); font-weight: 600; color: var(--c-text); }
.acc-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-accent);
  transition: transform var(--dur) var(--ease-out); }
.acc-item.open .acc-q svg { transform: rotate(45deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding-bottom: var(--space-6); font-size: var(--text-sm); color: var(--c-text-muted); max-width: 72ch; }

/* contact info list */
.info-list { display: grid; gap: var(--space-5); }
.info-item { display: flex; gap: var(--space-4); align-items: flex-start; padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--c-hairline); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-md); background: var(--c-accent-glow); color: var(--c-accent);
  border: 1px solid var(--c-accent-line); }
.info-item .ico svg { width: 18px; height: 18px; }
.info-item dt { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-faint); margin-bottom: 3px; }
.info-item dd { font-size: var(--text-sm); color: var(--c-text); line-height: 1.6; }

/* ==========  18. MISC  ========== */
.quote { border-left: 2px solid var(--c-accent); padding-left: var(--space-6);
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.5; color: var(--c-text); }
.quote cite { display: block; margin-top: var(--space-4); font-family: var(--font-body);
  font-size: var(--text-sm); font-style: normal; color: var(--c-text-muted); font-weight: 400; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { padding: 7px 14px; border-radius: var(--r-full); border: 1px solid var(--c-border);
  font-size: var(--text-xs); color: var(--c-text-muted); background: var(--c-surface); }
.noise { position: fixed; inset: 0; z-index: 500; pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme='light'] .noise { display: none; }
.loading { position: relative; color: transparent !important; pointer-events: none; }
.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  color: var(--c-text-invert); animation: spin 720ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 라이트 테마: 어두운 히어로 위에 얹힌 투명 헤더 ---------- */
body.no-hero .site-header {
  background: var(--c-glass);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--c-hairline);
}
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .brand svg,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .header-actions button,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .brand,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .brand-sub,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .nav-link,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .header-actions a,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .lang-btn,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .icon-btn,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .burger {
  color: #F2F7F8;
}
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .lang-btn,
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .icon-btn {
  border-color: rgba(242,247,248,0.28);
}
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .burger span { background: #F2F7F8; }
[data-theme='light'] .page-hero .crumbs a:hover,
[data-theme='light'] .hero .link-arrow { color: var(--c-accent); }

/* --- 22. Mobile header: session buttons live in the drawer --- */
@media (max-width: 1023px) {
  .header-actions .btn { display: none !important; }
  .header-actions { gap: var(--space-2); }
}

/* --- 23. Admin: collapse the side menu while access is denied --- */
.admin-shell:has(#admin-guard:not([hidden])) { display: block; }
.admin-shell:has(#admin-guard:not([hidden])) .admin-side { display: none; }
#admin-guard { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#admin-guard[hidden] { display: none !important; }

/* --- 24. Overflow + drawer header fixes --- */
.admin-shell > * { min-width: 0; }
.admin-main { min-width: 0; overflow-x: hidden; }
.admin-side ul { min-width: 0; }
body.nav-open .site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
[data-theme='light'] body.nav-open .site-header .brand,
[data-theme='light'] body.nav-open .site-header .brand svg,
[data-theme='light'] body.nav-open .site-header .brand-sub,
[data-theme='light'] body.nav-open .site-header .lang-btn,
[data-theme='light'] body.nav-open .site-header .icon-btn,
[data-theme='light'] body.nav-open .site-header .burger span { color: var(--c-text); }
[data-theme='light'] body.nav-open .site-header .burger span { background: var(--c-text); }

/* ============================================================
   25. 임직원 포털 (공지 · 뉴스 · 자료실)
   ============================================================ */
.portal-tabs { margin-bottom: var(--space-8); }
.portal-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding: 6px; border: 1px solid var(--c-border); border-radius: 999px;
  background: var(--c-surface); width: fit-content; max-width: 100%; }
.portal-tabs a { display: block; padding: 8px 18px; border-radius: 999px; font-size: var(--text-sm);
  font-weight: 600; color: var(--c-text-muted); text-decoration: none; white-space: nowrap;
  transition: color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out); }
.portal-tabs a:hover { color: var(--c-text); background: var(--c-surface-2); }
.portal-tabs [aria-current='page'] a { background: var(--c-accent); color: #04191B; }

.portal-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.badge.ok { border-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
  color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 12%, transparent); }
.badge.warn { border-color: color-mix(in srgb, #BB653B 45%, transparent); color: #C97A4E;
  background: color-mix(in srgb, #BB653B 12%, transparent); }

.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  margin-bottom: var(--space-12); }
.pcard { position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-7); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-surface); text-decoration: none; color: inherit;
  transition: transform var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out); }
.pcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c-accent) 50%, var(--c-border)); }
.pcard .ic svg { width: 26px; height: 26px; color: var(--c-accent); }
.pcard h3 { font-size: var(--text-lg); }
.pcard p { font-size: var(--text-sm); color: var(--c-text-muted); flex: 1; }
.pcard .go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm);
  font-weight: 700; color: var(--c-accent); }
.pcard .go svg { width: 16px; height: 16px; }
.pcard .lock-chip { position: absolute; top: var(--space-5); right: var(--space-5);
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 600; color: #C97A4E;
  background: color-mix(in srgb, #BB653B 14%, transparent);
  border: 1px solid color-mix(in srgb, #BB653B 40%, transparent); }
.pcard .lock-chip svg { width: 13px; height: 13px; }

.precs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); }
.prec { padding: var(--space-6); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-surface); }
.prec-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-4); }
.prec-head h3 { font-size: var(--text-base); }
.tlink { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs);
  font-weight: 700; color: var(--c-accent); text-decoration: none; }
.tlink svg { width: 14px; height: 14px; }
.mini-list { list-style: none; display: flex; flex-direction: column; }
.mini-list li + li { border-top: 1px solid var(--c-border); }
.mini-list li.ph { padding: var(--space-3) 0; font-size: var(--text-sm); color: var(--c-text-faint); }
.mini-list a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0;
  font-size: var(--text-sm); color: var(--c-text); text-decoration: none; }
.mini-list a:hover .mt { color: var(--c-accent); }
.mini-list .mt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list time { font-size: var(--text-xs); color: var(--c-text-faint); font-variant-numeric: tabular-nums; }
.pin-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); flex: none; }

.toolbar .p-total { font-size: var(--text-sm); color: var(--c-text-muted);
  font-variant-numeric: tabular-nums; margin-left: auto; }

.board { display: flex; flex-direction: column; gap: var(--space-4); }
.post { padding: var(--space-6); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-surface); transition: border-color var(--d-base) var(--ease-out); }
.post.open, .post.hl { border-color: color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); }
.post .pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-3); }
.post .pmeta time { font-size: var(--text-xs); color: var(--c-text-faint);
  font-variant-numeric: tabular-nums; }
.post h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.post .sum { font-size: var(--text-sm); color: var(--c-text-muted); }
.post .pbody { margin-top: var(--space-5); padding-top: var(--space-5);
  border-top: 1px solid var(--c-border); font-size: var(--text-sm); line-height: 1.75;
  color: var(--c-text); }
.post .pbody .tlink { margin-top: var(--space-4); }
.pmore { margin-top: var(--space-4); padding: 0; background: none; border: 0; cursor: pointer;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c-accent); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: var(--text-xs);
  font-weight: 600; color: var(--c-text-muted); background: var(--c-surface-3);
  border: 1px solid var(--c-border); }
.chip.pin { color: var(--c-accent); border-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
  background: color-mix(in srgb, var(--c-accent) 12%, transparent); }

.doclist .dtitle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 240px; }
.doclist .dsum, .dsum { font-size: var(--text-xs); color: var(--c-text-muted); }
.doclist .fname { display: block; font-size: var(--text-sm); }
.doclist .fsize { font-size: var(--text-xs); color: var(--c-text-faint); }
.doclist .nowrap, .nowrap { white-space: nowrap; }
.btn-sm { padding: 7px 14px; font-size: var(--text-xs); }

/* ---------- 관리자 : 등급 · 자료실 권한 · 콘텐츠 편집 ---------- */
.admin-side h4 + ul { margin-bottom: var(--space-5); }
.rolesel { padding: 6px 10px; font-size: var(--text-xs); border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text); }
.docs-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.modal-box.wide { max-width: 640px; max-height: 88vh; overflow-y: auto; }
.f-row { margin-bottom: var(--space-4); }
.f-row > label { display: block; margin-bottom: 6px; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; color: var(--c-text-muted); }
.f-row input[type='text'], .f-row input[type='url'], .f-row input[type='date'],
.f-row input[type='file'], .f-row textarea { width: 100%; padding: 11px 14px;
  font: inherit; font-size: var(--text-sm); color: var(--c-text);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); transition: border-color var(--d-fast) var(--ease-out); }
.f-row textarea { resize: vertical; line-height: 1.7; }
.f-row input:focus-visible, .f-row textarea:focus-visible { outline: none;
  border-color: var(--c-accent); }
.f-row .hint { margin-top: 6px; font-size: var(--text-xs); color: var(--c-text-faint); }
.f-grid { display: grid; grid-template-columns: 1fr 200px; gap: var(--space-4); }
#c-form .check { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm);
  color: var(--c-text-muted); margin-bottom: var(--space-2); cursor: pointer; }
#c-form .check input { width: 16px; height: 16px; accent-color: var(--c-accent); }

@media (max-width: 1000px) {
  .pcards { grid-template-columns: 1fr; }
  .precs { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal-tabs ul { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .portal-tabs a { padding: 8px 14px; }
  .toolbar .p-total { margin-left: 0; }
}

/* 라이트 테마에서 히어로 위 투명 헤더는 배경이 어둡기 때문에 밝은 로고를 사용합니다.
   (모바일 메뉴가 열리면 헤더 배경이 밝아지므로 어두운 로고로 되돌립니다.) */
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .logo-img.on-light { display: none; }
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .logo-img.on-dark { display: block; }

/* ==========  계열사(DYNAMICS TOTAL SOLUTION) 블록  ========== */
.logo-dts { width: 260px; height: auto; }
.logo-dts .logo-img { width: 100%; height: auto; }
.logo-dts.logo-dts-lg { width: min(420px, 82%); }

.aff-plate {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 6vw, 64px) var(--space-6);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); min-height: 260px;
}

.aff {
  margin-top: var(--space-10);
  display: grid; gap: var(--space-8);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  padding: var(--space-8);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.aff-logo {
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); border-radius: var(--r-md);
  background: var(--c-bg-deep); border: 1px solid var(--c-border);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.aff-logo:hover, .aff-logo:focus-visible { border-color: var(--c-accent); transform: translateY(-2px); }
.aff-body h3 { margin-top: var(--space-2); }
.aff-body p { margin-top: var(--space-3); max-width: 62ch; }
.aff-body .btn { margin-top: var(--space-5); }
@media (max-width: 860px) {
  .aff { grid-template-columns: 1fr; padding: var(--space-6); }
  .logo-dts { width: 220px; }
}

/* 계열사 개요 표 */
.spec { margin-top: var(--space-8); display: grid; gap: 0; }
.spec-row {
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: var(--space-4); padding: var(--space-4) 0;
  border-top: 1px solid var(--c-hairline);
}
.spec-row:last-child { border-bottom: 1px solid var(--c-hairline); }
.spec-row dt { font-size: var(--text-xs); letter-spacing: .04em; color: var(--c-text-muted); text-transform: uppercase; }
.spec-row dd { font-size: var(--text-sm); color: var(--c-text); }
@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}
.fineprint { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--c-text-faint); }

.purpose-list {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--space-8);
}
.ent td.nm .tlink { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }

/* 라이트 테마 + 히어로 위 투명 헤더: 언어 선택 메뉴 글자색은 패널(밝은 배경) 기준으로 유지 */
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .header-actions .lang-menu button,
[data-theme='light'] body.nav-open .site-header .header-actions .lang-menu button {
  color: var(--c-text-muted);
}
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .header-actions .lang-menu button:hover,
[data-theme='light'] body.nav-open .site-header .header-actions .lang-menu button:hover {
  color: var(--c-text);
}
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .header-actions .lang-menu button[aria-selected='true'],
[data-theme='light'] body.nav-open .site-header .header-actions .lang-menu button[aria-selected='true'] {
  color: var(--c-accent);
}
[data-theme='light'] body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) .header-actions .lang-menu .code,
[data-theme='light'] body.nav-open .site-header .header-actions .lang-menu .code {
  color: var(--c-text-faint);
}

/* 테마 전환 순간 강제 재렌더 (iOS Safari 에서 색이 바로 안 바뀌는 문제 방지) */
html.theme-switching body { opacity: 0.999; }

/* 게시물 대표 이미지 (관리자에서 등록) */
.post .post-img { margin: calc(-1 * var(--space-2)) 0 var(--space-5); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2, #141A1D); }
.post .post-img img { width: 100%; max-height: 380px; object-fit: cover; }

/* 문의 폼 자동등록 방지 칸 (사람에게는 보이지 않음) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 문의 폼 필수 표시 */
#contact-form .field:has(> [required]) > label::after { content: " *"; color: var(--c-accent); font-weight: 700; }
#contact-form .check:has(> input[required]) span::after { content: " *"; color: var(--c-accent); font-weight: 700; }
#contact-err a.btn-mail { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: underline; color: inherit; }
#contact-err:has(a.btn-mail) { flex-direction: column; align-items: flex-start; gap: 6px; }
#contact-err a.btn-mail { margin-top: 4px; padding: 8px 16px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; }

/* 상단 메뉴는 어떤 언어에서도 한 줄 */
.nav-link, .header-actions .btn, .lang-btn { white-space: nowrap; }
.header-inner { min-width: 0; }

/* ==========  다국어 · 모바일 · 태블릿 보정  ========== */
/* 첫 화면 글이 길어도 상단 메뉴 아래에서 시작 */
.hero { padding-top: clamp(104px, 13vh, 150px); }
/* 러시아어는 단어가 길어 제목 크기를 한 단계 줄이고, 긴 단어는 줄 끝에서 나눔 */
html[lang='ru'] .hero h1 { font-size: clamp(2.25rem, 0.9rem + 5.2vw, 5.6rem); max-width: 22ch; }
html[lang='ru'] h1, html[lang='ru'] h2, html[lang='ru'] h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
html[lang='ru'] .btn { white-space: normal; text-align: center; }
html[lang='ru'] .header-actions .btn { white-space: nowrap; }
/* 긴 단어·주소가 화면 밖으로 밀리지 않게 */
p, li, dd, td, .card, .alert { overflow-wrap: break-word; }
@media (max-width: 640px) {
  .hero h1 { letter-spacing: -0.025em; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
/* 첫 화면 하단 4개 지표 : 태블릿은 2×2, 넓은 화면은 한 줄 */
@media (min-width: 560px) and (max-width: 1023px) {
  .hero-meta { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-8); }
}

/* ==========  공지 팝업  ========== */
html.pop-open { overflow: hidden; }
.pop-ov { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px;
  background: rgba(3,5,6,0.62); opacity: 0; transition: opacity 200ms ease; }
.pop-ov.in { opacity: 1; }
.pop-box { width: min(440px, 100%); max-height: calc(100svh - 40px); display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.45); transform: translateY(10px) scale(0.98); transition: transform 220ms ease; }
.pop-ov.in .pop-box { transform: none; }
.pop-img { display: block; background: #0A0E0F; flex-shrink: 0; }
.pop-img img { display: block; width: 100%; height: auto; max-height: 56svh; object-fit: contain; }
.pop-body { padding: 22px 24px 20px; overflow-y: auto; }
.pop-body h3 { font-size: 1.25rem; line-height: 1.35; margin-bottom: 10px; overflow-wrap: break-word; }
.pop-body p { color: var(--c-text-muted); line-height: 1.7; font-size: 0.98rem; overflow-wrap: break-word; word-break: keep-all; }
html[lang=zh] .pop-body p, html[lang=ja] .pop-body p { word-break: normal; }
.pop-body .pop-go { margin-top: 16px; }
.pop-foot { display: flex; border-top: 1px solid var(--c-border); flex-shrink: 0; }
.pop-foot button { flex: 1; padding: 15px 12px; font-size: 0.95rem; color: var(--c-text-muted); background: transparent; }
.pop-foot button + button { border-left: 1px solid var(--c-border); color: var(--c-text); font-weight: 700; }
.pop-foot button:hover { background: var(--c-surface-2); }
@media (max-width: 480px) { .pop-ov { padding: 14px; } .pop-body { padding: 18px 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .pop-ov, .pop-box { transition: none; } }

/* ==========  공개 뉴스  ========== */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
.press-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden; color: inherit; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.press-card:hover { border-color: var(--c-accent-line, var(--c-accent)); transform: translateY(-2px); }
.press-card .ph { aspect-ratio: 16/9; background: var(--c-surface-2) center/cover no-repeat; }
.press-card .bd { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.press-card .meta { font-size: var(--text-xs); color: var(--c-text-faint); letter-spacing: 0.04em; display: flex; gap: 10px; flex-wrap: wrap; }
.press-card .meta .cat { color: var(--c-accent); font-weight: 600; }
.press-card h3 { font-size: var(--text-lg); line-height: 1.4; overflow-wrap: break-word; }
.press-card p { color: var(--c-text-muted); font-size: var(--text-sm); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.press-card .pin { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); margin-right: 6px; vertical-align: 2px; }
.press-empty { text-align: center; padding: var(--space-16) var(--space-4); color: var(--c-text-muted); border: 1px dashed var(--c-border); border-radius: var(--r-lg); }
.press-article { max-width: 760px; margin-inline: auto; }
.press-article .back { display: inline-flex; gap: 8px; align-items: center; color: var(--c-text-muted); margin-bottom: var(--space-6); font-size: var(--text-sm); }
.press-article .back:hover { color: var(--c-accent); }
.press-article h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.3; margin: 10px 0 var(--space-6); overflow-wrap: break-word; }
html[lang='ru'] .press-article h2 { hyphens: auto; }
.press-article .hero-img { width: 100%; border-radius: var(--r-lg); margin-bottom: var(--space-8); }
.press-article .txt p { color: var(--c-text-muted); line-height: 1.85; margin-bottom: 1.1em; font-size: var(--text-base); overflow-wrap: break-word; }
.press-article .lnk { margin-top: var(--space-6); }
.home-press-more { margin-top: var(--space-8); text-align: center; }
.pop-foot button:focus-visible{outline:2px solid var(--c-accent);outline-offset:-3px}.pop-foot button:focus:not(:focus-visible){outline:none}

/* ---------- 다이나믹스 → B300 브로슈어 안내 ---------- */
.br-promo { padding-block: clamp(1rem, 3vw, 2rem) clamp(3.5rem, 7vw, 6rem); }
.br-promo-card { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 4vw, 3rem); border-radius: 26px; color: #e8edf6;
  background: radial-gradient(circle at 85% 30%, rgba(63,125,255,.35), transparent 55%), linear-gradient(135deg, #070b15, #0f1830);
  border: 1px solid rgba(120,166,255,.28); overflow: hidden; position: relative; transition: transform .6s var(--ease-out), box-shadow .6s; }
.br-promo-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(63,125,255,.6); }
@media (min-width: 860px) { .br-promo-card { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; } }
.br-promo-card .sec-label { color: #78a6ff; }
.br-promo-card h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem); letter-spacing: .02em; color: #fff; line-height: 1.1; margin: .4rem 0 1rem; overflow-wrap: anywhere; }
.br-promo-card p { color: #aab5ca; line-height: 1.75; max-width: 54ch; }
.br-promo-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 1.6rem; }
.br-promo-tags li { font-size: .8rem; padding: .38rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #dfe6f3; }
.br-promo-btn { pointer-events: none; }
.br-promo-media img { width: 100%; height: auto; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: brPromoFloat 7s ease-in-out infinite; }
@keyframes brPromoFloat { 50% { transform: translateY(-12px) rotate(-.8deg); } }
@media (max-width: 859px) { .br-promo-media { order: -1; } }
@media (prefers-reduced-motion: reduce) { .br-promo-media img { animation: none; } }

/* 푸터 : 주요 서비스 · 그룹사 링크 */
.footer-seo { display: grid; gap: .55rem; padding: var(--space-5) 0; border-top: 1px solid var(--c-hairline); font-size: var(--text-xs, .78rem); line-height: 1.6; }
.footer-seo > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; }
.footer-seo span { color: var(--c-text-faint); font-family: var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; min-width: 6.5rem; }
.footer-seo a { color: var(--c-text-muted, inherit); text-decoration: none; transition: color .2s; }
.footer-seo a:hover { color: var(--c-accent); }
@media (max-width: 640px) { .footer-seo span { width: 100%; min-width: 0; } }

/* 공급 가능 서버 모델 (B300 · R200) */
.br-promo .sec-head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.br-promo-list { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.br-promo-next { background: radial-gradient(circle at 85% 30%, rgba(31,214,180,.32), transparent 55%), linear-gradient(135deg, #04110f, #0b2420); border-color: rgba(79,224,200,.3); }
.br-promo-next:hover { box-shadow: 0 30px 70px -30px rgba(31,214,180,.55); }
.br-promo-next .sec-label { color: #5fe6cf; }
