/* EMENC site main styles
   Fonts: Pretendard + Poppins for KR/EN, Noto Sans JP for JP, Noto Sans SC for CN
   Loaded via header.php (Google Fonts + CDN Pretendard)                       */

:root {
  --c-bg: #ffffff;
  --c-fg: #1a1f2e;
  --c-muted: #6c7383;
  --c-line: #e6e8ee;
  --c-line-2: #f2f4f8;
  --c-primary: #e71111;
  --c-primary-2: #b00d0d;
  --c-accent: #f5a623;
  --c-danger: #d9333f;
  --c-ok: #2faa6c;
  --c-card: #ffffff;
  --c-tag: #fdecec;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(10,20,40,.06), 0 1px 2px rgba(10,20,40,.04);
  --shadow-md: 0 10px 30px rgba(10,20,40,.08), 0 2px 6px rgba(10,20,40,.04);
  --header-h: 64px;
  --max-w: 1400px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--c-fg);
  background: #fbfcfe;
  font-family: "Poppins", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Language-specific fonts — most-used safe family per region */
body.lang-jp {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-cn {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-kr {
  font-family: "Pretendard", "Poppins", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
body.lang-th {
  font-family: "Noto Sans Thai", "Sarabun", "Tahoma", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-ru {
  font-family: "Pretendard", "Roboto", "Inter", "PT Sans", "Segoe UI", system-ui, sans-serif;
}
body.lang-vi {
  /* Vietnamese needs full Latin-Extended-Additional + tone marks support */
  font-family: "Pretendard", "Be Vietnam Pro", "Roboto", "Inter", system-ui, sans-serif;
}
body.lang-fr, body.lang-de, body.lang-es {
  /* Latin-script European languages — Pretendard handles diacritics well */
  font-family: "Pretendard", "Poppins", "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
.muted { color: var(--c-muted); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; }

/* Top utility bar */
.topbar { background: #15171c; color: #fff; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact a { color: rgba(255,255,255,.82); }
.topbar-contact a:hover { color: #fff; text-decoration: none; }
.topbar .lang-switcher .lang-btn { color: rgba(255,255,255,.92); background: transparent; border: 0; cursor: pointer; font: inherit; padding: 0; }

/* Main bar */
.mainbar { background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--c-line); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mainbar .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

/* Quote CTA */
.btn-quote { background: var(--c-primary); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn-quote:hover { background: var(--c-primary-2); color: #fff; text-decoration: none; }

/* HOME: transparent header over hero → solid on scroll */
body.home .site-header { position: fixed; top: 0; left: 0; right: 0; }
body.home .topbar { background: rgba(0,0,0,.22); }
body.home .mainbar { background: transparent; backdrop-filter: none; border-bottom-color: rgba(255,255,255,.18); }
body.home .mainbar .logo img { filter: brightness(0) invert(1); }
body.home .mainbar .primary-nav a, body.home .mainbar .nav-item > a { color: #fff; }
body.home .mainbar .nav-toggle span { background: #fff; }
body.home #siteHeader.scrolled .topbar { background: #15171c; }
body.home #siteHeader.scrolled .mainbar { background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(12px); border-bottom-color: var(--c-line); box-shadow: var(--shadow-sm); }
body.home #siteHeader.scrolled .mainbar .logo img { filter: none; }
body.home #siteHeader.scrolled .mainbar .primary-nav a, body.home #siteHeader.scrolled .mainbar .nav-item > a { color: var(--c-fg); }
body.home #siteHeader.scrolled .mainbar .nav-toggle span { background: var(--c-fg); }
.topbar-tag { color: rgba(255,255,255,.55); font-size: 13px; }
body.home .mainbar .lang-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
body.home #siteHeader.scrolled .mainbar .lang-btn { background: var(--c-line-2); border-color: var(--c-line); color: var(--c-fg); }
/* dropdown panel is white → keep its links dark even on home (transparent header) */
body.home .mainbar .nav-item .dropdown a { color: var(--c-fg); }
body.home .mainbar .nav-item .dropdown a:hover { color: var(--c-primary); }
.logo {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  color: var(--c-fg) !important;
}
.logo img { height: 38px; width: auto; display: block; }
.primary-nav { display: flex; gap: 52px; align-items: center; }
.site-header .container { max-width: 1680px; }
.primary-nav a {
  color: var(--c-fg);
  font-weight: 600;
  font-size: 19px;
}
.primary-nav a:hover { color: var(--c-primary); text-decoration: none; }

/* Dropdown nav */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 5px; padding: 20px 0; }
.has-dropdown > a::after { content: "\25BE"; font-size: 10px; color: var(--c-muted); }
.nav-item .dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 184px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility .16s;
  z-index: 200;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.nav-item .dropdown a {
  display: block; padding: 10px 18px; font-size: 14px; font-weight: 500;
  white-space: nowrap; color: var(--c-fg);
}
.nav-item .dropdown a:hover { background: var(--c-tag); color: var(--c-primary); }
.nav-item .dropdown .dd-head {
  display: block; padding: 10px 18px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted);
}
.nav-item .dropdown .dd-head:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--c-line-2); padding-top: 12px; }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { position: relative; }
.lang-btn {
  background: var(--c-line-2); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 500;
  font-size: 14px; cursor: pointer; color: var(--c-fg);
}
.lang-switcher ul {
  position: absolute; right: 0; top: 100%; margin-top: 6px;
  list-style: none; padding: 6px; min-width: 140px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: none;
}
.lang-switcher:hover ul, .lang-switcher:focus-within ul { display: block; }
.lang-switcher li a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--c-fg); }
.lang-switcher li a:hover { background: var(--c-line-2); text-decoration: none; }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 36px; height: 36px; padding: 8px; flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--c-fg); border-radius: 2px; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, #f1f5fd 0%, #fafbfe 60%);
  border-bottom: 1px solid var(--c-line);
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--c-muted); max-width: 640px; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Buttons */
.btn, .btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn { background: #fff; border-color: var(--c-line); color: var(--c-fg); }
.btn:hover { background: var(--c-line-2); text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-2); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #b8262f; }
.btn.small { padding: 5px 10px; font-size: 12px; }

/* Cards / sections */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 56px 20px;
}
.card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h2 { font-size: 20px; margin: 0; }
.link { color: var(--c-primary); font-size: 14px; font-weight: 500; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--c-line-2);
}
.post-list li:last-child { border-bottom: 0; }
.post-list a { color: var(--c-fg); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list time { color: var(--c-muted); font-size: 13px; flex-shrink: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  padding: 56px 20px 80px;
}
.feature-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 12px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  color: var(--c-fg); transition: all .2s;
}
.feature-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.ft-icon { font-size: 28px; }
.ft-title { font-size: 13px; font-weight: 500; }

/* Footer */
.site-footer { margin-top: 80px; background: #15171c; color: rgba(255,255,255,.6); font-size: 14px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 20px; }
.footer-logo img { height: 70px; width: auto; max-width: 100%; }
.footer-company { text-align: right; }
.footer-company p { margin: 7px 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.6; }
.footer-company a { color: rgba(255,255,255,.88); }
.footer-company a:hover { color: #fff; text-decoration: none; }
.footer-sitemap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.fcol h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.fcol h4 a { color: #fff; }
.fcol h4 a:hover { color: var(--c-primary); text-decoration: none; }
.fcol ul { list-style: none; padding: 0; margin: 0; }
.fcol li { margin: 7px 0; }
.fcol li a { color: rgba(255,255,255,.55); font-size: 13px; }
.fcol li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; }
.footer-links a { color: rgba(255,255,255,.55); margin: 0 4px; }
.footer-links a:hover { color: #fff; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-sitemap { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .footer-sitemap { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Board */
.board-page { padding: 40px 20px 80px; }
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 2px solid var(--c-fg);
}
.board-title { font-size: 28px; margin: 0; font-weight: 700; }
.board-desc { margin: 0; color: var(--c-muted); }
.board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-page .board-tools { margin-left: auto; }
.search { display: flex; gap: 4px; }
.search input { padding: 7px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.search button {
  padding: 7px 14px; background: var(--c-fg); color: #fff; border: 0;
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
}
/* 제품 게시판 상단 도구 — 높이 통일(선택삭제 버튼 크기 기준) */
.board-page .board-tools { gap: 8px; }
.board-page .board-tools .search { gap: 6px; }
.board-page .board-tools .search input,
.board-page .board-tools .search button,
.board-page .board-tools .btn-primary,
.board-page .board-tools .btn {
  height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border-radius: 9px;
}
.board-page .board-tools .search input { padding: 0 14px; font-weight: 400; border: 1.5px solid var(--c-line); }
.board-page .board-tools .search button { padding: 0 20px; }
.board-page .board-tools .btn-primary, .board-page .board-tools .btn { padding: 0 22px; }
.board-page .board-tools .btn-danger { background: #fff; color: var(--c-danger, #d9333f); border: 1.5px solid var(--c-danger, #d9333f); }
.board-page .board-tools .btn-danger:hover { background: var(--c-danger, #d9333f); color: #fff; }

/* 목록형 게시판(견적·공지·문의 등)은 폭을 약간 좁게 (제품 그리드 게시판 제외) */
.board-page:not(.photo-board) { max-width: 1100px; margin-left: auto; margin-right: auto; }
.board-table { width: 100%; border-collapse: collapse; }
.board-table thead th {
  background: var(--c-line-2); padding: 14px 14px; text-align: left;
  font-weight: 700; font-size: 15.5px; color: var(--c-muted); letter-spacing: .01em;
  border-bottom: 2px solid var(--c-line); white-space: nowrap;
}
.board-table td { padding: 19px 14px; border-bottom: 1px solid var(--c-line); font-size: 18px; color: var(--c-fg); vertical-align: middle; }
.board-table tbody tr:hover { background: #fafbfd; }
.board-table .num-col, .board-table .meta-col, .board-table .adm-col { width: 1%; white-space: nowrap; text-align: center; }
.board-table td.num-col, .board-table td.meta-col { color: var(--c-muted); font-size: 16px; }
.board-table .subj { padding-left: 6px; }
.board-table .subj a { color: var(--c-fg); font-weight: 600; }
.board-table .subj a:hover { color: var(--c-primary); }
.board-table tr.notice-row { background: #fff8e8; }
.board-table tr.notice-row:hover { background: #fff3d6; }
.board-table .empty { text-align: center; color: var(--c-muted); padding: 48px 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--c-tag); font-size: 11px; color: var(--c-primary); margin-left: 4px; }

.admin-bulk { margin-top: 14px; padding: 10px 14px; background: #fff8e8; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  color: var(--c-fg); font-size: 14px;
}
.pager a.on { background: var(--c-fg); color: #fff; border-color: var(--c-fg); }
.pager a:hover { background: var(--c-line-2); text-decoration: none; }

/* Photo grid */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.photo-check { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px 4px; }
.photo-thumb {
  width: 100%; aspect-ratio: 3/2; box-sizing: border-box; padding: 18px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  background-origin: content-box;
  background-color: #fff; border-bottom: 1px solid var(--c-line);
}
.photo-meta { padding: 14px 16px 16px; }
.photo-title { font-weight: 700; font-size: 18px; color: var(--c-fg); margin-bottom: 6px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-sub { color: var(--c-muted); font-size: 12.5px; }

/* Calendar */
.calendar { width: 100%; border-collapse: separate; border-spacing: 2px; }
.calendar th { background: var(--c-line-2); padding: 8px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.calendar th.sun { color: var(--c-danger); }
.calendar th.sat { color: var(--c-primary); }
.calendar td { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); vertical-align: top; padding: 6px; min-height: 90px; height: 90px; position: relative; }
.calendar td.empty { background: var(--c-line-2); border: 0; }
.calendar td.today { background: #f0f6ff; border-color: var(--c-primary); }
.calendar td .d { display: inline-block; font-size: 13px; color: var(--c-muted); font-weight: 600; margin-bottom: 4px; }
.calendar td.sun .d { color: var(--c-danger); }
.calendar td.sat .d { color: var(--c-primary); }
.cal-event { display: block; background: var(--c-primary); color: #fff !important; padding: 2px 6px; border-radius: 3px; font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: var(--c-primary-2); text-decoration: none; }
.cal-nav { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Post view */
.post-view { padding: 40px 20px 80px; max-width: 900px; }
.crumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { color: var(--c-muted); }
.post-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid var(--c-fg); }
.post-head h1 { font-size: 30px; }
.post-meta { color: var(--c-muted); font-size: 14px; }
.event-bar { background: #fff8e8; padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-weight: 500; }
.post-body { font-size: 16px; line-height: 1.8; padding: 24px 0; min-height: 220px; }
.post-body img { border-radius: var(--radius-sm); margin: 12px 0; }
.post-body h3 { font-size: 19px; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 20px; }
.post-body li { margin: 6px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.post-body table th, .post-body table td { border: 1px solid var(--c-line); padding: 12px 14px; text-align: left; vertical-align: top; }
.post-body table th { background: var(--c-line-2); width: 160px; white-space: nowrap; font-weight: 600; }
.post-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body figure { margin: 20px 0 0; }
.attachments-block { background: var(--c-line-2); padding: 16px; border-radius: var(--radius); margin: 24px 0; }
.attachments-block h3 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.att-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.att-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.att-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* Image gallery at top of post body */
.post-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
}
.post-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-line-2);
  border: 1px solid var(--c-line);
}
.post-image a {
  display: block;
  text-decoration: none;
}
.post-image a:hover { text-decoration: none; }
.post-image img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  transition: transform .25s;
}
.post-image a:hover img { transform: scale(1.005); }
.post-image figcaption {
  font-size: 13px;
  color: var(--c-muted);
  padding: 8px 14px;
  background: #fff;
  border-top: 1px solid var(--c-line);
  text-align: center;
}

/* Download cards for non-image attachments */
.download-block { background: var(--c-line-2); padding: 18px; border-radius: var(--radius); margin: 24px 0; }
.download-block h3 { font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-fg) !important;
  text-decoration: none !important;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.download-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.download-card .dl-icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.download-card .dl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.download-card .dl-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download-card .dl-meta {
  font-size: 12px;
  color: var(--c-muted);
}
.download-card .dl-ext {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--c-tag);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .02em;
}
.download-card .dl-action {
  font-size: 18px;
  color: var(--c-muted);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.download-card:hover .dl-action {
  color: var(--c-primary);
  transform: translateY(2px);
}

@media (max-width: 520px) {
  .download-cards { grid-template-columns: 1fr; }
  .post-images { gap: 10px; }
}
.post-actions { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.prev-next a { color: var(--c-fg); font-size: 14px; }
.comments { margin-top: 40px; }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comments li { padding: 14px 0; border-bottom: 1px solid var(--c-line-2); }
.comments li strong { margin-right: 8px; }
.comments p { margin: 8px 0 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
}

/* Write form */
.post-write { padding: 40px 20px 84px; max-width: 1100px; }
.post-write .board-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.post-write .board-title { display: block !important; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--c-fg); margin: 0; }

/* ===== 카드형 글쓰기 폼 ===== */
.write-form {
  display: flex; flex-direction: column; gap: 22px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  padding: 36px 40px; box-shadow: 0 6px 28px rgba(20,30,60,.06);
}
@media (max-width: 600px) { .write-form { padding: 24px 18px; border-radius: 14px; } }
.write-form > label { display: flex; flex-direction: column; gap: 9px; font-weight: 700; font-size: 17.5px; color: var(--c-fg); }
.write-form input[type=text],
.write-form input[type=password],
.write-form input[type=email],
.write-form input[type=tel],
.write-form input[type=url],
.write-form input[type=datetime-local],
.write-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px; border: 1.5px solid var(--c-line); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--c-fg); background: #fafbfd;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.write-form input:focus, .write-form textarea:focus { outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(231,17,17,.12); }
.write-form input[name=subject] { font-size: 17px; font-weight: 600; padding: 14px 16px; }
.write-form input::placeholder, .write-form textarea::placeholder { color: #aab1bd; }
.write-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.write-form .cresc-editor { border: 1.5px solid var(--c-line); border-radius: 12px; overflow: hidden; }

.write-form fieldset { border: 1.5px dashed var(--c-line); padding: 22px 24px; border-radius: 14px; background: #fafbfd; margin: 0; }
.write-form fieldset legend { font-weight: 800; font-size: 18.5px; padding: 0 8px; color: var(--c-fg); }
.write-form .cresc-attach-hint { font-weight: 500; color: var(--c-muted); font-size: 12px; margin-left: 8px; }
.write-form #fileInputs { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
/* 커스텀 첨부 슬롯 */
.write-form .file-slot {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border: 1.5px solid var(--c-line); border-radius: 11px;
  background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.write-form .file-slot:hover { border-color: var(--c-primary); box-shadow: 0 2px 10px rgba(231,17,17,.06); }
.write-form .file-slot .fs-btn {
  flex: none; padding: 8px 18px; background: var(--c-primary); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.write-form .file-slot:hover .fs-btn { background: #c50d0d; }
.write-form .file-slot .fs-name { color: var(--c-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.write-form .file-slot.has-file { border-color: var(--c-primary); background: #fff7f7; }
.write-form .file-slot.has-file .fs-name { color: var(--c-fg); font-weight: 600; }
/* 파일/링크 구분선 */
.write-form fieldset > small.muted { margin-top: 10px; }
.write-form .attach-link-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--c-muted); font-size: 12.5px; font-weight: 700; }
.write-form .attach-link-sep::before, .write-form .attach-link-sep::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
/* 링크 슬롯 */
.write-form .link-slot { display: flex; align-items: center; gap: 14px; margin-top: 0;
  padding: 8px 14px; border: 1.5px solid var(--c-line); border-radius: 11px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.write-form .link-slot:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(231,17,17,.1); }
.write-form .link-slot .fs-btn { flex: none; padding: 8px 18px; background: #1c346c; color: #fff; border-radius: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.write-form .link-slot .fs-link { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--c-fg); font-family: inherit; }
.write-form .link-slot .fs-link::placeholder { color: #aab1bd; }
.write-form fieldset > small.muted { display: block; margin-top: 12px; color: var(--c-muted); font-size: 12.5px; }

.write-form .form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.write-form .form-actions .btn-primary { padding: 13px 34px; background: var(--c-primary); color: #fff; border: 0; border-radius: 99px;
  font-weight: 700; font-size: 15.5px; cursor: pointer; box-shadow: 0 8px 20px rgba(231,17,17,.22); transition: background .15s ease, transform .15s ease; }
.write-form .form-actions .btn-primary:hover { background: #c50d0d; transform: translateY(-2px); }
.write-form .form-actions .btn { padding: 13px 26px; border: 1.5px solid var(--c-line); border-radius: 99px; font-weight: 600; color: var(--c-muted); background: #fff; }
.write-form .form-actions .btn:hover { border-color: var(--c-fg); color: var(--c-fg); text-decoration: none; }
@media (max-width: 600px) {
  .write-form .row { grid-template-columns: 1fr; }
  .write-form .form-actions { flex-direction: column-reverse; }
  .write-form .form-actions .btn, .write-form .form-actions .btn-primary { width: 100%; text-align: center; }
}

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 14px; }
.alert.ok  { background: #e6f7ee; color: #145a36; }
.alert.err { background: #fde6e8; color: #921c25; }

/* ====================================================================
   Webzine (웹진) — magazine-style skin
   ==================================================================== */
.webzine-page { padding: 32px 20px 80px; }

/* Masthead */
.wz-masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 28px;
  border-bottom: 3px double var(--c-fg);
}
.wz-masthead-text { flex: 1 1 300px; }
.wz-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: 8px;
}
.wz-title {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 800;
  letter-spacing: -.025em; margin: 0 0 8px;
  font-family: "Pretendard", "Playfair Display", Georgia, serif;
}
.wz-tagline { color: var(--c-muted); margin: 0; font-size: 15px; max-width: 640px; }
.wz-masthead-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wz-search input { min-width: 220px; }

/* Hero cover story */
.wz-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 48px; color: var(--c-fg);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .15s;
}
.wz-hero:hover { box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }
.wz-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.wz-hero-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--c-fg); color: #fff;
  padding: 6px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.wz-hero-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.wz-hero-title {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 700;
  margin: 0; line-height: 1.25; letter-spacing: -.02em;
  font-family: "Pretendard", "Playfair Display", Georgia, serif;
}
.wz-hero-excerpt { color: var(--c-muted); font-size: 15px; line-height: 1.7; margin: 0; }
.wz-meta { display: flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: 13px; flex-wrap: wrap; }
.wz-meta strong { color: var(--c-fg); font-weight: 600; }
.wz-meta-small { display: flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: 12px; flex-wrap: wrap; }
.wz-dot { opacity: .5; }

/* Section heading */
.wz-section { margin: 0 0 56px; }
.wz-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.wz-section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-fg); margin: 0;
  white-space: nowrap;
}
.wz-section-rule { flex: 1; height: 1px; background: var(--c-line); }

/* Tags */
.wz-tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.wz-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--c-tag); color: var(--c-primary);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}

/* Editor's picks — horizontal scroller on mobile, grid on desktop */
.wz-picks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.wz-pick {
  display: flex; flex-direction: column; color: var(--c-fg);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: all .15s;
}
.wz-pick:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: var(--c-primary); box-shadow: var(--shadow-md);
}
.wz-pick-thumb {
  width: 100%; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.wz-pick-body { padding: 14px 14px 16px; }
.wz-pick-title {
  font-size: 15px; font-weight: 600; line-height: 1.35;
  margin: 0 0 8px; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article grid */
.wz-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.wz-card {
  position: relative;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: all .18s;
}
.wz-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.wz-card--notice { border-color: var(--c-accent); }
.wz-card-link { display: block; color: var(--c-fg); }
.wz-card-link:hover { text-decoration: none; }
.wz-card-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.wz-card-flag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  border-radius: 4px; background: rgba(255,255,255,.95); color: var(--c-fg);
  letter-spacing: .04em;
}
.wz-card-flag--notice { background: var(--c-accent); color: #fff; }
.wz-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.wz-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.3;
  letter-spacing: -.015em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Pretendard", "Playfair Display", Georgia, serif;
}
.wz-card-excerpt {
  font-size: 13.5px; color: var(--c-muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.wz-check {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(255,255,255,.95); border-radius: 4px; padding: 2px 6px;
}

.wz-empty {
  text-align: center; color: var(--c-muted);
  padding: 80px 20px; border: 1px dashed var(--c-line); border-radius: var(--radius);
  background: var(--c-line-2);
}

/* Stack hero on tablet & below */
@media (max-width: 860px) {
  .wz-hero { grid-template-columns: 1fr; }
  .wz-hero-image { aspect-ratio: 16 / 9; }
  .wz-hero-body { padding: 24px 22px 26px; }
  .wz-grid { gap: 22px; }
}
@media (max-width: 520px) {
  .wz-masthead { gap: 14px; padding-bottom: 16px; margin-bottom: 22px; }
  .wz-search input { min-width: 0; flex: 1; }
  .wz-section { margin-bottom: 40px; }
  .wz-picks { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .wz-grid { grid-template-columns: 1fr; }
}

/* ===== Akribis-style homepage (HRS) ===== */
.hero-akr {
  position: relative; min-height: 650px; display: flex; align-items: center;
  background: #14171c; color: #fff; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-akr::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.08) 38%, rgba(0,0,0,0) 65%); }
.hero-akr-inner { position: relative; z-index: 2; padding: 84px 20px; }
.hero-akr-title { text-shadow: 0 2px 20px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.5); }
.hero-akr-sub, .hero-eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: background .2s ease, width .2s ease; }
.hero-dot.active { background: #fff; width: 26px; border-radius: 6px; }

/* Brand value band (coded, below hero) */
.brand-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(90deg, #04060a 0%, #162f5d 28%, #071635 64%, #1d2c48 100%);
  background-size: 240% 240%;
  animation: bbGrad 18s ease-in-out infinite;
}
.brand-band::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 38%, rgb(23 42 85 / 22%), #00000000 55%);
  animation: bbGlow 14s ease-in-out infinite;
}
@keyframes bbGrad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes bbGlow { 0% { transform: translate(0,0); } 50% { transform: translate(14%, 9%); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) { .brand-band, .brand-band::before, .bb-img { animation: none; } }
.brand-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 2vw; align-items: center; padding: 0; }
.bb-right { padding-right: 5vw; }
.bb-left { position: relative; }
.bb-hsr { position: relative; width: 100%; max-width: 840px; aspect-ratio: 807 / 642; }
.bb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform; animation: bbFloat 6s ease-in-out infinite; }
.bb-img:nth-of-type(1) { animation-duration: 5.4s; animation-delay: -0.2s; }
.bb-img:nth-of-type(2) { animation-duration: 7s; animation-delay: -2.6s; }
.bb-img:nth-of-type(3) { animation-duration: 6.2s; animation-delay: -4.1s; }
@keyframes bbFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(4px, -11px, 0); } }
.bb-logo { position: absolute; left: 3%; bottom: 20%; display: flex; flex-direction: column; align-items: flex-start; z-index: 2; }
.bb-logo-name { display: block; font-family: Arial, "Helvetica Neue", sans-serif; font-weight: 800; font-size: 72px; color: #fff; line-height: 1; letter-spacing: -.02em; }
.bb-logo-tag { display: block; color: var(--c-primary); font-weight: 700; font-size: clamp(12px, 1.3vw, 16px); line-height: 1.3; margin-top: 7px; }
.bb-vertical { position: absolute; right: 7%; top: 70%; transform: translateY(-50%); writing-mode: vertical-rl; color: #fff; font-size: clamp(13px, 1.05vw, 17px); font-weight: 300; letter-spacing: .08em; opacity: .95; z-index: 3; white-space: nowrap; }
.bb-item { padding: 16px 0; }
.bb-item h3 { display: flex; align-items: center; gap: 18px; color: var(--c-primary); font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(20px, 2.1vw, 30px); margin: 0 0 9px; white-space: nowrap; }
.bb-item h3::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary) 55%, transparent 100%); }
.bb-item p { color: rgba(255,255,255,.85); font-size: 16px; margin: 0; }
@media (max-width: 860px) {
  .brand-band-inner { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px; }
  .bb-hsr { max-width: 380px; margin: 0 auto; }
  .bb-logo-name { font-size: 32px; }
  .bb-vertical { display: none; }
  .bb-item h3 { font-size: 22px; white-space: normal; }
  .bb-item h3::after { display: none; }
  .bb-item p { font-size: 15px; }
}
.hero-eyebrow { color: #ff8a8a; letter-spacing: .18em; font-size: 12px; font-weight: 700; margin: 0 0 16px; }
.hero-akr-title { font-size: clamp(34px, 6vw, 64px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; color: #fff; }
.hero-akr-sub { font-size: clamp(15px, 2.2vw, 20px); color: rgba(255,255,255,.82); max-width: 640px; margin: 0 0 32px; line-height: 1.6; }
.hero-akr-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

.home-sec { padding: 72px 0; }
.home-sec--dark { background: #14171c; color: #fff; }
.home-sec--soft { background: #fbfcfe; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0; display: inline-block; padding-bottom: 14px; position: relative; }
.sec-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 48px; height: 3px; background: var(--c-primary); }
.sec-title--light { color: #fff; }
.sec-sub { color: var(--c-muted); margin: 14px 0 0; font-size: 16px; }

.prod-series { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin: 28px 0 14px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 8px; }
.prod-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-primary); text-decoration: none; }
.prod-name { font-size: 22px; font-weight: 800; color: var(--c-fg); letter-spacing: -.01em; }
.prod-note { font-size: 14px; color: var(--c-muted); flex: 1; }
.prod-link { font-size: 13px; font-weight: 600; color: var(--c-primary); margin-top: 8px; }

/* ===== Product category bands (image band + red model buttons, ref style) ===== */
.prod-bands { background: #fff; }
.sec-head--band { padding-top: 72px; }
.prod-band { position: relative; overflow: hidden; background-size: cover; background-position: center;
  border-top: 1px solid rgba(0,0,0,.05); }
.prod-band::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* dark-title bands sit over the light gradient → no dark scrim */
.prod-band.darktext::before { background: none; }
/* light-title band (photo bg) → directional scrim for legibility */
.prod-band.lighttext.align-left::before  { background: linear-gradient(90deg,  rgba(8,10,16,.62) 0%, rgba(8,10,16,.25) 42%, transparent 66%); }
.prod-band.lighttext.align-right::before { background: linear-gradient(270deg, rgba(8,10,16,.62) 0%, rgba(8,10,16,.25) 42%, transparent 66%); }
.prod-band-inner { position: relative; z-index: 1; min-height: 470px; display: flex; align-items: center;
  padding-top: 56px; padding-bottom: 56px; }
.prod-band.align-right .prod-band-inner { justify-content: flex-end; }
.prod-band.align-center .prod-band-inner { justify-content: center; }
.pb-text { max-width: 640px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
/* center band (e.g. Linear Robot): centered title + single-row buttons */
.prod-band.align-center .pb-text { max-width: 1040px; text-align: center; align-items: center; }
.prod-band.align-center .pb-btns { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; }
.prod-band.align-center .pb-btn { min-width: 148px; }
.prod-band.lighttext.align-center::before { background: radial-gradient(60% 72% at 50% 46%, rgba(8,10,16,.5) 0%, rgba(8,10,16,.18) 56%, transparent 76%); }

/* title: bold + red top-left corner bracket */
.pb-title { position: relative; display: inline-block; font-size: clamp(40px, 5.4vw, 66px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.01em; margin: 0; padding: 18px 0 0 16px; }
.pb-corner { position: absolute; left: -10px; top: -5px; width: 45px; height: 45px;
  border-top: 10px solid var(--c-primary); border-left: 11px solid var(--c-primary); }
.darktext .pb-title { color: #16181d; }
.lighttext .pb-title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.45); }

/* red model buttons grid (3 cols) with power icon */
.pb-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; max-width: 600px; }
.pb-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px;
  padding: 0 20px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 16px; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(231,17,17,.22); transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.pb-btn:hover { background: #c50d0d; color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(231,17,17,.3); }
.pb-btn .pb-pw { flex: none; opacity: .92; }

.pb-more { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; min-height: 50px; padding: 0 28px;
  background: var(--c-primary); color: #fff; border-radius: 4px; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 20px rgba(231,17,17,.22); transition: background .15s ease, transform .15s ease; }
.pb-more:hover { background: #c50d0d; transform: translateY(-2px); text-decoration: none; color: #fff; }
.pb-more .pb-pw { flex: none; opacity: .92; }

/* Linear Stage band → white bg, HRS lettermark graphic on LEFT, text on RIGHT */
.prod-band--light { background: #fff; }
.prod-band--light .prod-band-inner { min-height: 560px; /* padding-top: 70px; */ padding-bottom: 70px; }
.prod-band--light .pb-graphic { position: absolute; left: 18%; top: 50%; transform: translateY(-50%); z-index: 0;
  height: 84%; width: auto; max-width: 30%; object-fit: contain; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-num { font-size: 14px; font-weight: 700; color: var(--c-primary); letter-spacing: .1em; margin-bottom: 12px; }
.value-item h4 { font-size: 20px; margin: 0 0 10px; color: #fff; }
.value-item p { color: rgba(255,255,255,.72); margin: 0; line-height: 1.7; }

.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.app-item { text-align: center; padding: 26px 10px; background: var(--c-line-2); border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: background .15s ease, color .15s ease; }
.app-item:hover { background: var(--c-primary); color: #fff; }

/* ===== Applications (dark icon-card section) ===== */
.apps-sec { position: relative; overflow: hidden; padding: 88px 0;
  background: radial-gradient(120% 120% at 80% 0%, #1d2740 0%, #141b27 45%, #0c1018 100%); color: #fff; }
.apps-sec::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, rgba(231,17,17,0) 60%); }
.apps-eyebrow { display: block; font-family: "Poppins", Arial, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .24em; color: var(--c-primary); margin-bottom: 12px; }
.apps-sec .sec-title { color: #fff; font-size: clamp(34px, 4.6vw, 52px); padding-bottom: 18px; }
.apps-sec .sec-title::after { width: 56px; height: 4px; }
.apps-sub { color: rgba(255,255,255,.62); margin: 16px 0 0; font-size: 16px; }
.apps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 48px; }
.apps-card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 14px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.apps-card:hover { transform: translateY(-5px); border-color: var(--c-primary); background: rgba(231,17,17,.1); }
.apps-ico { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px;
  border-radius: 50%; background: rgba(231,17,17,.12); color: var(--c-primary); transition: background .2s ease, color .2s ease; }
.apps-ico svg { width: 30px; height: 30px; }
.apps-card:hover .apps-ico { background: var(--c-primary); color: #fff; }
.apps-name { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88); text-align: center; line-height: 1.4; }
.apps-card:hover .apps-name { color: #fff; }

/* ===== Home board section (Notice + Board latest posts) ===== */
.home-board { position: relative; overflow: hidden; padding: 86px 0; background-color: #f4f7fb;
  background-image:
    linear-gradient(rgba(28,52,108,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,52,108,.055) 1px, transparent 1px),
    radial-gradient(720px 440px at 94% -12%, rgba(231,17,17,.07), transparent 62%),
    radial-gradient(660px 460px at 2% 112%, rgba(28,52,108,.07), transparent 60%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%; }
/* decorative outlined circles peeking from corners */
.home-board::before, .home-board::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.home-board::before { width: 360px; height: 360px; right: -100px; top: -120px; border: 1.5px solid rgba(231,17,17,.2); }
.home-board::after  { width: 260px; height: 260px; left: -80px; bottom: -90px; border: 1.5px solid rgba(28,52,108,.2); }
.home-board .container { position: relative; z-index: 1; }
/* homepage: remove footer's top margin so the section meets the footer (no white gap) */
body:has(.home-board) .site-footer { margin-top: 0; }
.home-board .sec-head { margin-bottom: 40px; }
.home-board .sec-title { font-size: clamp(34px, 4.6vw, 52px); padding-bottom: 18px; }
.home-board .sec-title::after { width: 56px; height: 4px; }
.sec-eyebrow { display: block; font-family: "Poppins", Arial, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .22em; color: var(--c-primary); margin-bottom: 12px; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.board-card { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 30px 34px;
  box-shadow: 0 8px 26px rgba(20,30,50,.05); transition: box-shadow .2s ease, transform .2s ease; }
.board-card:hover { box-shadow: 0 16px 38px rgba(20,30,50,.1); transform: translateY(-3px); }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; margin-bottom: 6px; border-bottom: 2px solid var(--c-line); }
.bc-head h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; position: relative; padding-left: 16px; }
.bc-head h3::before { content: ""; position: absolute; left: 0; top: 52%; transform: translateY(-50%); width: 5px; height: 20px; background: var(--c-primary); border-radius: 3px; }
.bc-more { flex: none; font-size: 13px; font-weight: 700; color: var(--c-muted); display: inline-flex; align-items: center; gap: 5px; transition: color .15s ease; }
.bc-more:hover { color: var(--c-primary); text-decoration: none; }
.bc-more span { transition: transform .15s ease; }
.bc-more:hover span { transform: translateX(3px); }
.bc-list { list-style: none; margin: 0; padding: 0; }
.bc-list li { border-bottom: 1px solid var(--c-line-2); }
.bc-list li:last-child { border-bottom: 0; }
.bc-list li a { display: flex; align-items: center; gap: 14px; padding: 15px 0; color: var(--c-fg);
  transition: color .15s ease, padding-left .15s ease; }
.bc-list li a:hover { color: var(--c-primary); text-decoration: none; padding-left: 8px; }
.bc-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15.5px; position: relative; padding-left: 16px; }
.bc-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-line); transition: background .15s ease; }
.bc-list li a:hover .bc-title::before { background: var(--c-primary); }
.bc-list time { flex: none; font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.bc-empty { padding: 44px 0; text-align: center; color: var(--c-muted); font-size: 14px; }

/* icon animations — gentle idle float + fun distinct hover motion per card */
.apps-ico svg { transform-origin: center; animation: appsFloat 3.6s ease-in-out infinite; }
.apps-card:nth-child(2) .apps-ico svg { animation-delay: -.6s; }
.apps-card:nth-child(3) .apps-ico svg { animation-delay: -1.2s; }
.apps-card:nth-child(4) .apps-ico svg { animation-delay: -1.8s; }
.apps-card:nth-child(5) .apps-ico svg { animation-delay: -2.4s; }
.apps-card:nth-child(6) .apps-ico svg { animation-delay: -3s; }
@keyframes appsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes appsSpin  { to { transform: rotate(360deg); } }
@keyframes appsWiggle{ 0%,100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(16deg); } }
@keyframes appsBeat  { 0%,100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
@keyframes appsBob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes appsFlick { 0%,100% { opacity: 1; } 20% { opacity: .25; } 40% { opacity: 1; } 60% { opacity: .4; } 80% { opacity: 1; } }
@keyframes appsPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.24); } }
.apps-card:hover .apps-ico svg { animation-iteration-count: infinite; }
.apps-card:nth-child(1):hover .apps-ico svg { animation: appsPulse  .9s ease-in-out infinite; }
.apps-card:nth-child(2):hover .apps-ico svg { animation: appsFlick  1s   steps(1,end) infinite; }
.apps-card:nth-child(3):hover .apps-ico svg { animation: appsSpin   1.1s linear infinite; }
.apps-card:nth-child(4):hover .apps-ico svg { animation: appsWiggle .6s  ease-in-out infinite; }
.apps-card:nth-child(5):hover .apps-ico svg { animation: appsBob    .7s  ease-in-out infinite; }
.apps-card:nth-child(6):hover .apps-ico svg { animation: appsBeat   1s   ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .apps-ico svg, .apps-card:hover .apps-ico svg { animation: none; }
}

@media (max-width: 768px) {
  .hero-akr { min-height: 440px; }
  .hero-akr-inner { padding: 60px 16px; }
  .home-sec { padding: 52px 0; }
  .values-grid { grid-template-columns: 1fr; gap: 22px; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .apps-sec { padding: 60px 0; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
  .apps-card { padding: 26px 10px; gap: 14px; }
  .apps-ico { width: 52px; height: 52px; }
  .apps-name { font-size: 14px; }
  .home-board { padding: 56px 0; }
  .board-cols { grid-template-columns: 1fr; gap: 18px; }
  .board-card { padding: 24px 22px; }
  /* product bands → stack, left-align all */
  .sec-head--band { padding-top: 52px; }
  .prod-band-inner { min-height: 340px; padding-top: 40px; padding-bottom: 40px; }
  .prod-band.align-right .prod-band-inner { justify-content: flex-start; }
  /* lighttext (photo) bands → top→bottom scrim on mobile for legibility */
  .prod-band.lighttext.align-left::before,
  .prod-band.lighttext.align-right::before { background: linear-gradient(180deg, rgba(8,10,16,.4) 0%, rgba(8,10,16,.7) 100%); }
  /* corner bracket aligned to content left edge (no overflow past padding) */
  .pb-title { padding: 13px 0 0 14px; }
  .pb-corner { left: 0; top: -3px; width: 30px; height: 30px; border-top-width: 7px; border-left-width: 7px; }
  /* center title + content on mobile */
  .pb-text { max-width: 100%; align-items: center; text-align: center; }
  /* model buttons → 2 columns, fill full width → symmetric L/R margins */
  .pb-btns { grid-template-columns: repeat(2, 1fr); max-width: none; width: 100%; }
  /* light stage band: graphic stacks on top (centered), text below */
  .prod-band--light .prod-band-inner { flex-direction: column; align-items: center;
    min-height: 0; /* padding-top: 72px; */ padding-bottom: 48px; }
  .prod-band--light .pb-graphic { position: static; transform: none; display: block;
    height: auto; width: 160px; max-width: 52%; margin: 0 auto 24px; }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== In-page section header (banner + breadcrumb + sub-nav tabs) ===== */
.page-banner {
  background: linear-gradient(rgba(18,20,25,.60), rgba(18,20,25,.72)), url('/assets/images/site/home-slider-01.jpg') center/cover no-repeat #14171c;
  color: #fff; padding: 56px 0;
}
.page-banner .pb-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 10px; color: #fff; letter-spacing: -.01em; }
.page-banner .pb-crumbs { font-size: 13px; color: rgba(255,255,255,.8); }
.page-banner .pb-crumbs a { color: rgba(255,255,255,.8); }
.page-banner .pb-crumbs a:hover { color: #fff; text-decoration: none; }
.page-banner .pb-crumbs span { margin: 0 7px; opacity: .55; }
.page-banner .pb-crumbs em { font-style: normal; color: #fff; font-weight: 600; }

/* ===== Sub-page section nav → vertical dropdown ===== */
.subnav { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 102px; z-index: 90; }
.subnav .container { display: flex; }
.subnav-bar { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.subnav-group { font-size: 16px; font-weight: 800; color: var(--c-fg); position: relative; padding-left: 15px; white-space: nowrap; }
.subnav-group::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 17px; background: var(--c-primary); border-radius: 2px; }
.subnav-group:hover { color: var(--c-primary); text-decoration: none; }
.subnav-sep { color: var(--c-line); font-size: 18px; font-weight: 400; }
.subnav-dd { position: relative; }
.subnav-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-width: 230px;
  padding: 13px 18px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; cursor: pointer;
  font-size: 15.5px; font-weight: 700; color: var(--c-fg); transition: border-color .15s ease, box-shadow .15s ease; }
.subnav-toggle:hover { border-color: var(--c-primary); }
.subnav-dd.open .subnav-toggle { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(231,17,17,.1); }
.st-arrow { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted);
  margin-top: -4px; transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease; }
.subnav-dd.open .st-arrow { margin-top: 3px; transform: rotate(-135deg); border-color: var(--c-primary); }
.subnav-list { position: absolute; left: 0; top: calc(100% + 6px); min-width: 100%; background: #fff;
  border: 1px solid var(--c-line); border-radius: 10px; box-shadow: var(--shadow-md); list-style: none; margin: 0; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 5; }
.subnav-dd.open .subnav-list { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav-list li a { display: block; padding: 12px 16px; border-radius: 6px; font-size: 15px; font-weight: 600;
  color: var(--c-fg); white-space: nowrap; transition: background .12s ease, color .12s ease; }
.subnav-list li a:hover { background: var(--c-line-2); color: var(--c-primary); text-decoration: none; }
.subnav-list li a.active { color: var(--c-primary); background: rgba(231,17,17,.07); }
/* board skins: hide duplicate title/crumbs (banner shows them now) */
.board-head .board-title, .board-head .board-desc { display: none; }
.board-head { margin-top: 8px; }
.post-view .crumbs { display: none; }

/* ===== Page head (eyebrow + title + subtitle) ===== */
.page-head { text-align: center; margin: 6px 0 46px; position: relative; z-index: 1; }
.ph-eyebrow { display: block; font-family: "Poppins", Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .28em; color: var(--c-primary); margin-bottom: 14px; }
.ph-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; color: var(--c-fg); margin: 0; line-height: 1.2; }
.ph-sub { margin: 16px 0 0; font-size: 16px; color: var(--c-muted); line-height: 1.6; }
@media (max-width: 768px) { .page-head { margin-bottom: 34px; } .ph-sub { font-size: 15px; } }

/* ===== CE certificate page ===== */
.container.narrow:has(.ce) { max-width: 1100px; }
.ce { word-break: keep-all; }
.ce-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.ce-lead { font-size: 21px; font-weight: 700; color: var(--c-fg); line-height: 1.6; margin: 0 0 18px; }
.ce-lead strong { color: var(--c-primary); }
.ce-desc { font-size: 17px; color: #4a515f; line-height: 1.9; margin: 0 0 30px; }
.ce-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-fg); }
.ce-list li { display: flex; gap: 18px; padding: 17px 4px; border-bottom: 1px solid var(--c-line); align-items: baseline; }
.ce-list li span { flex: none; width: 96px; font-size: 14px; font-weight: 700; color: var(--c-muted); }
.ce-list li b { font-size: 16px; font-weight: 600; color: var(--c-fg); }
.ce-cert { margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 22px; box-shadow: 0 16px 44px rgba(20,30,50,.12); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.ce-cert:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(20,30,50,.16); }
.ce-cert a { display: block; }
.ce-cert img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; border: 1px solid var(--c-line-2); }
.ce-cert figcaption { margin-top: 16px; font-family: "Poppins", Arial, sans-serif; font-size: 13px; letter-spacing: .12em; color: var(--c-muted); font-weight: 600; }
@media (max-width: 768px) {
  .ce-inner { grid-template-columns: 1fr; gap: 30px; }
  .ce-cert { order: -1; }
  .ce-lead { font-size: 19px; }
  .ce-desc { font-size: 16px; }
}

/* ===== Organization chart (CSS) ===== */
.container.narrow:has(.org) { max-width: 1060px; position: relative; }
.org { padding: 16px 0 30px; position: relative; }
.org-node { display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; }
/* circular nodes with red gradient ring */
.org-ceo, .org-dept { border-radius: 50%; font-weight: 700; color: var(--c-fg);
  background: linear-gradient(#fff,#fff) padding-box, linear-gradient(140deg, #e71111, #ffa0a0) border-box;
  border: 3px solid transparent; box-shadow: 0 10px 28px rgba(20,30,50,.09);
  transition: transform .18s ease, box-shadow .18s ease; }
.org-ceo:hover, .org-dept:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(231,17,17,.16); }
.org-ceo { width: 190px; height: 190px; font-size: 21px; margin: 0 auto; }
.org-dept { width: 156px; height: 156px; font-size: 17px; }
/* CEO → bus connector */
.org-ceo-wrap { display: flex; justify-content: center; position: relative; padding-bottom: 54px; }
.org-ceo-wrap::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0.5px; height: 54px; background: #000000; transform: translateX(-50%); }
/* department row + horizontal bus */
.org-depts { display: flex; position: relative; }
.org-col { flex: 1; position: relative; padding-top: 54px; display: flex; flex-direction: column; align-items: center; }
.org-col::before { content: ""; position: absolute; top: 0; left: 50%; width: 0.5px; height: 54px; background: #000000; transform: translateX(-50%); }
.org-col::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 0.5px; background: #000000; }
.org-col:first-child::after { left: 50%; }
.org-col:last-child::after { right: 50%; }
/* team boxes */
.org-team { position: relative; margin-top: 40px; width: 220px; box-sizing: border-box; text-align: center;
  background: #fff; border: 1px solid var(--c-line); border-bottom: 3px solid var(--c-primary);
  border-radius: 10px; padding: 15px 14px; font-size: 16px; font-weight: 600; color: var(--c-fg); white-space: normal; line-height: 1.3;
  box-shadow: 0 4px 14px rgba(20,30,50,.05); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.org-team::before { content: ""; position: absolute; top: -40px; left: 50%; width: 0.5px; height: 40px; background: #000000; transform: translateX(-50%); }
.org-team:hover { transform: translateY(-2px); border-color: var(--c-primary); box-shadow: 0 8px 20px rgba(231,17,17,.12); }

/* ===== Location page ===== */
.container.narrow:has(.loc) { max-width: 1200px; }
.loc-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 8px 26px rgba(20,30,50,.06); margin-bottom: 30px; }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Kakao roughmap embed → full width */
.loc-map .root_daum_roughmap { width: 100% !important; }
.loc-map .root_daum_roughmap .wrap_map { position: relative !important; overflow: hidden !important; height: 440px !important; }
/* hide the widget's address/phone footer (duplicated by the info cards) */
.loc-map .root_daum_roughmap .section_address { display: none !important; }
@media (max-width: 768px) { .loc-map .root_daum_roughmap .wrap_map { height: 300px !important; } }
.loc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loc-card { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 26px 16px; text-align: center;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.loc-card:hover { transform: translateY(-4px); border-color: var(--c-primary); box-shadow: 0 10px 24px rgba(20,30,50,.08); }
.loc-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(231,17,17,.1); color: var(--c-primary); margin-bottom: 14px; }
.loc-ico svg { width: 26px; height: 26px; }
.loc-card b { display: block; font-size: 13px; color: var(--c-muted); font-weight: 700; letter-spacing: .02em; margin-bottom: 7px; }
.loc-card p { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-fg); line-height: 1.5; word-break: keep-all; }
.loc-card p.brk { word-break: break-all; }
.loc-access { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.loc-acc-item { display: flex; align-items: center; gap: 16px; background: #f7f9fc; border: 1px solid var(--c-line); border-radius: 14px; padding: 20px 24px; }
.loc-acc-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(231,17,17,.1); color: var(--c-primary); }
.loc-acc-ico svg { width: 24px; height: 24px; }
.loc-acc-item b { display: block; font-size: 13px; color: var(--c-muted); font-weight: 700; margin-bottom: 4px; }
.loc-acc-item p { margin: 0; font-size: 16px; font-weight: 600; color: var(--c-fg); }
@media (max-width: 768px) { .loc-access { grid-template-columns: 1fr; gap: 12px; } }
.loc-actions { text-align: center; margin-top: 32px; }
.loc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; background: var(--c-primary); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 16px; box-shadow: 0 8px 20px rgba(231,17,17,.22); transition: background .15s ease, transform .15s ease; }
.loc-btn:hover { background: #c50d0d; transform: translateY(-2px); text-decoration: none; color: #fff; }
@media (max-width: 768px) {
  .loc-map { height: 300px; }
  .loc-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .loc-card { padding: 20px 12px; }
}
@media (max-width: 480px) { .loc-cards { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .org-depts { flex-direction: column; align-items: center; }
  .org-col { width: 100%; padding-top: 32px; }
  .org-col::after { display: none; }
  .org-col::before { height: 32px; }
  .org-ceo-wrap { padding-bottom: 32px; }
  .org-ceo-wrap::after { height: 32px; }
  .org-ceo { width: 128px; height: 128px; font-size: 18px; }
  .org-dept { width: 108px; height: 108px; font-size: 16px; }
  .org-team { margin-top: 26px; }
  .org-team::before { top: -26px; height: 26px; }
}

/* ===== CEO greeting page ===== */
/* widen the page container just for the greeting (default .narrow is 720px) */
.container.narrow:has(.greeting) { max-width: 1200px; }
.greeting { color: var(--c-fg); word-break: keep-all; overflow-wrap: break-word; }
.g-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; margin-bottom: 8px; }
.g-eyebrow { display: block; font-family: "Poppins", Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--c-primary); margin-bottom: 16px; }
.g-headline { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.34; letter-spacing: -.02em; margin: 0 0 20px; }
.g-headline em { font-style: normal; color: var(--c-primary); }
.g-lead { font-size: 20px; font-weight: 600; color: var(--c-fg); margin: 0; line-height: 1.6; }
.g-hero-img { margin: 0; }
.g-hero-img img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-md); display: block; }
.g-message { font-size: 18px; line-height: 1.95; color: #4a515f; margin-top: 40px; }
.g-message p { margin: 0 0 20px; }
.g-message strong { color: var(--c-fg); font-weight: 700; }
.g-quote { position: relative; margin: 30px 0 8px; padding: 26px 30px 26px 34px; background: #f6f8fc;
  border-left: 4px solid var(--c-primary); border-radius: 0 12px 12px 0; font-size: 22px; font-weight: 700; line-height: 1.6; color: var(--c-fg); }
.g-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0; }
.g-value { padding: 26px 22px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.g-value:hover { border-color: var(--c-primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.g-vn { display: inline-block; font-family: "Poppins", Arial, sans-serif; font-weight: 800; font-size: 38px; color: var(--c-primary); letter-spacing: .02em; line-height: 1; margin-bottom: 16px; transform-origin: left center; will-change: transform; }
.g-value b { display: block; font-size: 22px; margin-bottom: 10px; color: var(--c-fg); }
.g-vd { display: block; font-size: 16px; color: var(--c-muted); line-height: 1.65; }
/* hover → pulse the number */
.g-value:hover .g-vn { animation: gvnPulse .9s ease-in-out infinite; }
@keyframes gvnPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .g-value:hover .g-vn { animation: none; } }
.g-sign { text-align: right; padding-top: 18px; border-top: 1px solid var(--c-line); }
.g-sign-co { display: block; font-size: 16px; color: var(--c-muted); margin-bottom: 6px; }
.g-sign-name { font-size: 28px; font-weight: 800; letter-spacing: .14em; color: var(--c-fg); }
@media (max-width: 768px) {
  .g-hero { grid-template-columns: 1fr; gap: 22px; }
  .g-hero-img { order: -1; }
  .g-values { grid-template-columns: 1fr; gap: 12px; }
  .g-quote { font-size: 17px; padding: 20px 22px; }
  .g-message { margin-top: 28px; }
}

/* ===== History / timeline page ===== */
.container.narrow:has(.history) { max-width: 980px; position: relative; }
body:has(.history), body:has(.org) { overflow-x: clip; }
.container.narrow:has(.history) > *, .container.narrow:has(.org) > * { position: relative; z-index: 1; }
/* full-bleed grid backdrop, fading left → right */
.container.narrow:has(.history)::before, .container.narrow:has(.org)::before { content: ""; position: absolute; top: -20px; bottom: 0;
  left: calc(-50vw + 50%); width: 100vw; z-index: 0; pointer-events: none;
  background-color: #f7f9fc;
  background-image:
    linear-gradient(rgba(28,52,108,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,52,108,.07) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  /* grid strong on the left, plus a soft patch peeking at the bottom-right */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 72%), radial-gradient(34% 40% at 100% 100%, rgba(0,0,0,.72), transparent 72%);
  mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 72%), radial-gradient(34% 40% at 100% 100%, rgba(0,0,0,.72), transparent 72%); }
/* remove footer top margin on history/org pages (kills white gap) */
body:has(.history) .site-footer, body:has(.org) .site-footer { margin-top: 0; }
.history { position: relative; }
.hist-intro { position: relative; z-index: 1; text-align: center; font-size: 18px; font-weight: 600; color: var(--c-fg); margin: 14px 0 84px; line-height: 1.6; }

/* centered, left/right alternating timeline */
.hist-track { position: relative; z-index: 1; margin-top: 80px; }
.hist-track::before { content: ""; position: absolute; left: 50%; top: 0px; bottom: 122px; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--c-primary) 0%, #000000 100%); }
/* origin node (oldest / last) — filled red, sits at the end of the line */
.hist-row:last-child::before { background: var(--c-primary); }
.hist-row { position: relative; width: 50%; box-sizing: border-box; padding-bottom: 30px; }
.hist-row:nth-child(odd)  { left: 0;   padding-right: 48px; text-align: right; }
.hist-row:nth-child(even) { left: 50%; padding-left: 48px; text-align: left; }
.hist-row::before { content: ""; position: absolute; top: 18px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary); z-index: 2; box-shadow: 0 0 0 4px #fff;
  transition: transform .15s ease; }
.hist-row:nth-child(odd)::before  { right: 0; transform: translateX(50%); }
.hist-row:nth-child(even)::before { left: 0; transform: translateX(-50%); }
/* radiating pulse — only while hovering the row (year/card) */
@keyframes histPulse {
  0%   { box-shadow: 0 0 0 4px #fff, 0 0 0 2px rgba(231,17,17,.4); }
  70%  { box-shadow: 0 0 0 4px #fff, 0 0 0 16px rgba(231,17,17,0); }
  100% { box-shadow: 0 0 0 4px #fff, 0 0 0 0 rgba(231,17,17,0); }
}
.hist-row:hover::before { animation: histPulse 1.3s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hist-row:hover::before { animation: none; } }
.hist-row::after { content: ""; position: absolute; top: 28px; width: 40px; height: 1px; background: #000000; z-index: 1; }
.hist-row:nth-child(odd)::after  { right: 8px; }
.hist-row:nth-child(even)::after { left: 8px; }
.hist-card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  padding: 18px 24px; box-shadow: 0 4px 16px rgba(20,30,50,.05); box-sizing: border-box;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.hist-card:hover { border-color: var(--c-primary); box-shadow: 0 12px 28px rgba(20,30,50,.1); transform: translateY(-3px); }
.hist-when b { font-family: "Poppins", Arial, sans-serif; font-size: 32px; font-weight: 800; color: var(--c-primary); }
.hist-when span { font-size: 23px; font-weight: 700; color: var(--c-muted); margin-left: 8px; }
.hist-what { margin: 7px 0 0; font-size: 16px; font-weight: 600; color: var(--c-fg); line-height: 1.5; }
@media (max-width: 768px) {
  .container.narrow:has(.history)::before, .container.narrow:has(.org)::before { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 88%); mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 88%); }
  .hist-track { margin-top: 48px; }
  .hist-track::before { left: 9px; transform: none; bottom: 110px; }
  .hist-row, .hist-row:nth-child(odd), .hist-row:nth-child(even) { width: 100%; left: 0; padding: 0 0 22px 42px; text-align: left; }
  .hist-row::before, .hist-row:nth-child(odd)::before, .hist-row:nth-child(even)::before { left: 9px; right: auto; transform: translateX(-50%); top: 15px; }
  .hist-row::after, .hist-row:nth-child(odd)::after, .hist-row:nth-child(even)::after { left: 18px; right: auto; width: 18px; top: 22px; }
  .hist-when b { font-size: 25px; }
  .hist-when span { font-size: 18px; }
  .hist-what { font-size: 15px; }
}

@media (max-width: 768px) {
  .page-banner { padding: 36px 0; }
  .subnav { position: static; }
  .subnav-bar { gap: 8px; }
  .subnav-group { font-size: 14px; padding-left: 12px; }
  .subnav-dd { flex: 1; min-width: 0; }
  .subnav-toggle { width: 100%; min-width: 0; gap: 12px; }
  .subnav-list { width: 100%; }
}
