/* ==========================================================================
   HBN GLOBAL — Website stylesheet
   Design: warm off-white + logo navy + steel-blue accent
   Fonts : Cormorant Garamond (display) · Pretendard (text, KO/EN)
   ========================================================================== */

:root {
  --navy: #031C44;            /* logo navy — headings, primary buttons      */
  --navy-2: #0A2550;          /* hover                                       */
  --deep: #061A38;            /* dark sections                               */
  --night: #04132B;           /* footer                                      */
  --ink: #142238;             /* strong text                                 */
  --text: #3A4455;            /* body text                                   */
  --muted: #6B7383;           /* secondary text                              */
  --faint: #A2A7AF;           /* numbers / meta                              */
  --line: #DCD8CF;            /* hairlines on light                          */
  --line-soft: #E7E4DD;
  --bg: #F7F6F2;              /* base background                             */
  --bg-alt: #EFEDE7;          /* alternate section                           */
  --paper: #FCFBF8;           /* cards                                       */
  --accent: #2A6496;          /* steel blue accent                           */
  --accent-2: #1F4F7A;
  --on-dark: #F3F2EE;
  --on-dark-2: rgba(243, 242, 238, .66);
  --on-dark-3: rgba(243, 242, 238, .42);
  --on-dark-line: rgba(243, 242, 238, .14);
  --accent-on-dark: #A9C6E2;
  --logo-hbn: #031C44;
  --logo-global: #353535;

  --serif: "Cormorant Garamond", "Pretendard Variable", Pretendard, Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4.6vw, 56px);
  --section-y: clamp(88px, 10.5vw, 156px);
  --header-h: 88px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: rgba(42, 100, 150, .18); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[lang="ko"] { word-break: keep-all; overflow-wrap: break-word; }
/* Hangul inside letter-spaced UPPERCASE labels: tighter tracking */
.eyebrow .hg, .mini-label .hg, .nav .hg, .btn .hg, .link-arrow .hg, .field label .hg, .info-list dt .hg,
.footer-nav .hg, .marquee-list .hg, .float-cta .hg, .index-label .hg { letter-spacing: .04em; }
/* Hangul typed into a display (serif) title falls back to Pretendard, set for Korean */
.display .hg, .cta-band h2 .hg, .footer-tag .hg, .contact-info h2 .hg, .form-card h2 .hg, .info-list dd .hg, .mobile-menu nav .hg {
  font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -0.035em; line-height: 1.22; }

/* ---------- Language visibility (KR / EN) ---------- */
html[data-lang="ko"] body [lang="en"] { display: none !important; }
html[data-lang="en"] body [lang="ko"] { display: none !important; }
/* a line that exists only in one language is hidden in the other */
html[data-lang="ko"] [data-k]:has(> [lang="ko"]:empty) { display: none; }
html[data-lang="en"] [data-k]:has(> [lang="en"]:empty) { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.section { position: relative; padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--deep); color: var(--on-dark-2); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); line-height: 1.2; margin-bottom: 28px;
}
.eyebrow .diamond, .diamond {
  width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); flex: none; display: inline-block;
}
.hero--home .eyebrow .diamond { animation: pulse 2.6s var(--ease-io) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,100,150,.35); } 50% { box-shadow: 0 0 0 7px rgba(42,100,150,0); } }
.section--dark .eyebrow, .cta-band .eyebrow { color: var(--accent-on-dark); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-synthesis: none;
}
.display .line { display: block; }
.display .line--accent { font-style: italic; color: var(--accent); }
.display--xl { font-size: clamp(2.5rem, 6.5vw, 6.05rem); }
.display--lg { font-size: clamp(2.55rem, 5vw, 4.55rem); }
.display--md { font-size: clamp(2.1rem, 3.5vw, 3.35rem); line-height: 1.08; }
.display--sm { font-size: clamp(1.75rem, 2.6vw, 2.35rem); line-height: 1.12; }
.section--dark .display { color: var(--on-dark); }
.section--dark .display .line--accent { color: var(--accent-on-dark); }
@supports (text-wrap: balance) { .display, .cta-band h2 { text-wrap: balance; } }

.lead { font-size: clamp(1.1rem, 1.35vw, 1.27rem); line-height: 1.68; color: var(--ink); font-weight: 400; letter-spacing: -0.008em; }
.lead > [lang="ko"] { line-height: 1.85; letter-spacing: -0.02em; }
.body { font-size: 1rem; line-height: 1.8; color: var(--text); }
.body > [lang="ko"] { letter-spacing: -0.012em; }
.muted { color: var(--muted); }
.mini-label { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.num { font-family: var(--serif); font-weight: 500; color: var(--faint); font-variant-numeric: lining-nums; letter-spacing: 0; }

.tagline { color: var(--accent); line-height: 1.45; }
.tagline > [lang="en"] { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.32em; letter-spacing: -0.005em; }
.tagline > [lang="ko"] { font-family: var(--sans); font-weight: 500; font-size: 1.02em; letter-spacing: -0.02em; }
.section--dark .tagline { color: var(--accent-on-dark); }

/* ---------- Buttons & links ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 28px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform .45s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid::before { background: var(--accent-2); }
.btn--line { border-color: rgba(3, 28, 68, .28); color: var(--navy); }
.btn--line::before { background: var(--navy); }
.btn--line:hover { color: #fff; border-color: var(--navy); }
.btn--light { border-color: rgba(243, 242, 238, .42); color: var(--on-dark); }
.btn--light::before { background: var(--on-dark); }
.btn--light:hover { color: var(--navy); border-color: var(--on-dark); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 11.5px; letter-spacing: .18em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
  padding: 6px 0; border-bottom: 1px solid currentColor;
  transition: color .3s, gap .45s var(--ease);
}
.link-arrow .icon { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--accent); gap: 18px; }
.section--dark .link-arrow { color: var(--on-dark); }
.section--dark .link-arrow:hover { color: var(--accent-on-dark); }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: height .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease), top .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 246, 242, .82);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.site-header.is-scrolled { --header-h: 72px; box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand .logo { height: 40px; width: auto; transition: height .45s var(--ease); }
.is-scrolled .brand .logo { height: 34px; }
.logo { aspect-ratio: 301 / 144; }

.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--navy);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta[aria-current="page"] { background: var(--accent-2); }

.lang-switch {
  position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255, 255, 255, .45);
}
.lang-switch button {
  position: relative; z-index: 1; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
  transition: color .35s var(--ease);
}
.lang-switch button[aria-pressed="true"] { color: #fff; }
.lang-switch .knob {
  position: absolute; z-index: 0; top: 3px; left: 3px; height: 32px; width: 40px; border-radius: 999px;
  background: var(--navy); transition: transform .45s var(--ease), width .45s var(--ease);
}
html[data-lang="en"] .lang-switch .knob { transform: translateX(100%); }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy); margin-right: -10px; }
.menu-toggle .icon { width: 26px; height: 26px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__overlay { position: absolute; inset: 0; background: rgba(4, 19, 43, .42); opacity: 0; transition: opacity .4s var(--ease); }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px);
  background: var(--bg); display: flex; flex-direction: column; padding: 22px 28px calc(32px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform .55s var(--ease); overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.mobile-menu__top .logo { height: 34px; width: auto; }
.mobile-menu__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); margin-right: -10px; }
.mobile-menu nav li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--navy); letter-spacing: -0.005em; line-height: 1.2;
}
.mobile-menu nav a .num { font-size: 15px; }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 18px; }
.mobile-menu__foot a { color: var(--navy); font-weight: 500; }

/* ---------- Views, transitions & reveal ---------- */
.js .view { display: none; }
.js .view.is-active { display: block; animation: viewIn .7s var(--ease) both; }
.js .view.is-leaving { display: block; animation: viewOut .22s ease both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes viewOut { to { opacity: 0; } }

.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-line { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal-line.is-in { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 8vw, 112px); }
.hero--home { min-height: min(100vh, 1080px); display: flex; align-items: center; padding-bottom: clamp(56px, 6vw, 88px); }
.hero--home > .container { width: 100%; }
.hero h1 { margin-bottom: clamp(36px, 4.6vw, 64px); }
.hero-rule { height: 1px; background: var(--line); margin-bottom: clamp(32px, 4vw, 52px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hero-copy > * + * { margin-top: 20px; }
.hero-copy .lead { max-width: 40em; }
.hero-copy .body { max-width: 44em; color: var(--muted); }
.hero-tagline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.32rem; color: var(--navy); line-height: 1.4; }
.hero-copy .btn-row { margin-top: 36px; }
.hero--page { padding-bottom: clamp(64px, 7vw, 104px); }
.hero--page .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* Index list (right column of heroes) */
.index-label { margin-bottom: 14px; }
.index ol { border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  position: relative; display: grid; grid-template-columns: 44px 1fr 20px; gap: 12px; align-items: start;
  padding: 17px 4px 17px 0; transition: padding .45s var(--ease), background-color .45s var(--ease);
}
.index a:hover { padding-left: 10px; background: rgba(3, 28, 68, .028); }
.index .num { font-size: 20px; line-height: 1.2; }
.index strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.4; letter-spacing: -0.01em; transition: color .3s; }
.index small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.index .icon { width: 18px; height: 18px; color: var(--faint); margin-top: 2px; transition: color .3s, transform .45s var(--ease); }
.index a:hover strong { color: var(--accent); }
.index a:hover .icon { color: var(--accent); transform: translate(2px, -2px); }
.index--plain a { grid-template-columns: 44px 1fr 20px; align-items: center; padding: 13px 4px 13px 0; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; background: var(--deep); color: var(--on-dark-2); padding: 22px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.marquee-list li::after { content: ""; width: 5px; height: 5px; background: var(--accent-on-dark); transform: rotate(45deg); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__aside > * + * { margin-top: 26px; }
.section-head--stack { display: block; }
.section-head--stack .display { margin-bottom: clamp(28px, 3vw, 40px); }
.section-head--stack .section-head__aside { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.section-head--stack .section-head__aside > * + * { margin-top: 0; }
.section-head--stack .section-head__aside .body { max-width: 46em; }
.section-head--stack .link-arrow { flex: none; }

/* ---------- Home: industries tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon no" "name name" "tag tag";
  gap: 6px 0; height: 100%; padding: 34px 32px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease);
}
.tile::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tile:hover { background: var(--paper); }
.tile:hover::before { transform: scaleX(1); }
.tile-icon { grid-area: icon; color: var(--navy); margin-bottom: 30px; transition: transform .6s var(--ease), color .3s; }
.tile-icon .icon { width: 34px; height: 34px; }
.tile:hover .tile-icon { transform: translateY(-3px); color: var(--accent); }
.tile .num { grid-area: no; justify-self: end; font-size: 18px; }
.tile strong { grid-area: name; font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: -0.012em; line-height: 1.35; }
.tile small { grid-area: tag; font-size: 14px; color: var(--muted); line-height: 1.55; }
.tile .go { position: absolute; right: 26px; bottom: 30px; width: 18px; height: 18px; color: var(--accent); opacity: 0; transform: translate(-6px, 6px); transition: opacity .4s, transform .5s var(--ease); }
.tile:hover .go { opacity: 1; transform: none; }

/* ---------- Steps (home dark + process page) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--line); transform-origin: left; }
.section--dark .steps::before { background: var(--on-dark-line); }
.js .steps::before { transform: scaleX(0); transition: transform 1.8s var(--ease) .15s; }
.js .steps.is-in::before { transform: none; }
.step { position: relative; padding-top: 44px; }
.step-node { position: absolute; top: 3px; left: 0; width: 11px; height: 11px; transform: rotate(45deg); background: var(--bg); border: 1px solid var(--accent); transition: background-color .5s; }
.section--alt .step-node { background: var(--bg-alt); }
.section--dark .step-node { background: var(--deep); border-color: var(--accent-on-dark); }
.step:hover .step-node, .steps.is-in .step-node { background: var(--accent); }
.section--dark .steps.is-in .step-node { background: var(--accent-on-dark); }
.steps.is-in .step:nth-child(1) .step-node { transition-delay: .3s; }
.steps.is-in .step:nth-child(2) .step-node { transition-delay: .7s; }
.steps.is-in .step:nth-child(3) .step-node { transition-delay: 1.1s; }
.steps.is-in .step:nth-child(4) .step-node { transition-delay: 1.5s; }
.step .num { display: block; font-size: 15px; letter-spacing: .08em; margin-bottom: 14px; }
.step h3, .step h2 { font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: -0.012em; line-height: 1.35; margin-bottom: 10px; }
.section--dark .step h3 { color: var(--on-dark); }
.step .tagline { font-size: 14.5px; margin-bottom: 14px; }
.step .body { font-size: 15px; color: var(--muted); }
.section--dark .step .body { color: var(--on-dark-2); }
.section--dark .section-head .body { color: var(--on-dark-2); }
.home-process .steps { margin-top: 8px; }

/* ---------- Home: vision ---------- */
.home-vision { text-align: center; }
.home-vision .eyebrow { justify-content: center; }
.home-vision .display { margin: 0 auto 30px; }
.home-vision .lead { max-width: 36em; margin: 0 auto 40px; color: var(--text); }

/* ---------- Business: service rows ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(48px, 5.5vw, 76px) 0; border-bottom: 1px solid var(--line);
}
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service .num { font-size: clamp(54px, 6vw, 84px); line-height: .9; color: rgba(3, 28, 68, .16); transition: color .6s var(--ease); }
.service:hover .num { color: var(--accent); }
.service-title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 14px; }
.service .tagline { font-size: 16px; margin-bottom: 22px; }
.service-areas .mini-label { margin-bottom: 14px; }
.areas { border-top: 1px solid var(--line); }
.areas li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); line-height: 1.5; }
.areas li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--accent); transform: rotate(45deg); opacity: .8; }

/* ---------- Industries grid ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industry {
  position: relative; padding: clamp(32px, 3.4vw, 48px) clamp(26px, 2.8vw, 40px) clamp(36px, 3.6vw, 52px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent;
  transition: background-color .5s var(--ease);
}
.industry::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.industry:hover { background: var(--paper); }
.industry:hover::before { transform: scaleX(1); }
.industry-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.industry-top .icon { width: 40px; height: 40px; color: var(--navy); transition: color .3s, transform .6s var(--ease); }
.industry:hover .industry-top .icon { color: var(--accent); transform: translateY(-3px); }
.industry-top .num { font-size: 20px; }
.industry h2 { font-size: 21px; font-weight: 600; color: var(--navy); letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.industry .tagline { font-size: 15px; margin-bottom: 18px; }
.industry .body { font-size: 15px; color: var(--muted); }

/* ---------- About ---------- */
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.strength { display: grid; grid-template-columns: 64px 1fr; gap: 0 28px; padding: clamp(40px, 4.4vw, 60px) clamp(0px, 3vw, 44px) clamp(40px, 4.4vw, 60px) 0; border-bottom: 1px solid var(--line); }
.strength:nth-child(even) { padding-left: clamp(24px, 3.4vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
.strength-icon { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--navy); transition: background-color .5s var(--ease), color .5s, border-color .5s; }
.strength-icon .icon { width: 24px; height: 24px; }
.strength:hover .strength-icon { background: var(--navy); color: #fff; border-color: var(--navy); }
.strength .num { display: block; font-size: 16px; margin-bottom: 6px; }
.strength h2 { font-size: 20px; font-weight: 600; color: var(--navy); letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 10px; }
.strength .tagline { font-size: 15px; margin-bottom: 16px; }
.strength .body { font-size: 15.5px; color: var(--muted); }

.vision { text-align: center; overflow: hidden; }
.vision .eyebrow { justify-content: center; }
.vision .display { font-size: clamp(2.8rem, 6vw, 5.6rem); margin-bottom: 34px; }
.vision .lead { color: var(--on-dark-2); max-width: 34em; margin: 0 auto; }
.vision-mark { position: absolute; inset: auto 0 -2px 0; display: flex; justify-content: center; opacity: .035; pointer-events: none; }
.vision-mark svg { width: min(92vw, 1100px); height: auto; --logo-hbn: #fff; --logo-global: #fff; }

.info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.info-list { border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.info-list dt { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info-list dd { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; color: var(--navy); line-height: 1.3; }
.info-list dd > [lang="ko"] { font-family: var(--serif); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: var(--on-dark-2); padding: clamp(64px, 7vw, 104px) 0; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -8%; top: -60%; width: 46%; aspect-ratio: 1; border: 1px solid rgba(243, 242, 238, .08); border-radius: 50%; pointer-events: none; }
.cta-band::before { content: ""; position: absolute; right: 4%; top: -20%; width: 30%; aspect-ratio: 1; border: 1px solid rgba(243, 242, 238, .06); border-radius: 50%; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; color: var(--on-dark); letter-spacing: -0.01em; margin-bottom: 14px; }
.cta-band p { font-size: 1.05rem; max-width: 40em; }
.cta-band .eyebrow { margin-bottom: 20px; }

/* ---------- Contact ---------- */
.hero--contact .display { margin-bottom: 18px; }
.contact-sub { margin-bottom: clamp(36px, 4.6vw, 60px); color: var(--accent); }
.contact-sub > [lang="en"] { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; }
.contact-sub > [lang="ko"] { font-weight: 500; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.5; }
.hero--contact .hero-copy { max-width: 46em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-info h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 2.8vw, 2.5rem); color: var(--navy); line-height: 1.1; margin-bottom: 18px; }
.contact-info > .body { color: var(--muted); margin-bottom: 40px; }
.contact-rows { border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-row__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.contact-row__icon .icon { width: 21px; height: 21px; }
.contact-row .mini-label { margin-bottom: 6px; }
.contact-row a.mail { font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; border-bottom: 1px solid rgba(3, 28, 68, .25); transition: color .3s, border-color .3s; }
.contact-row a.mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-row .addr { font-size: 16px; color: var(--ink); line-height: 1.6; }

.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); position: relative; }
.form-card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 2.8vw, 2.5rem); color: var(--navy); line-height: 1.1; margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.field label .req { color: var(--accent); margin-left: 3px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  height: 54px; padding: 0 16px; font-size: 16px; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { height: auto; min-height: 176px; padding: 14px 16px; resize: vertical; line-height: 1.65; }
.field input:hover, .field textarea:hover { border-color: #C9C4B8; }
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(42, 100, 150, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B4483C; box-shadow: 0 0 0 3px rgba(180, 72, 60, .08); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.form-foot .btn { min-width: 230px; }
.form-foot .btn[disabled] { opacity: .65; pointer-events: none; }
.form-status { font-size: 14.5px; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2F6B4F; }
.form-status.is-err { color: #A23C31; }
.form-status a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-msg { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: clamp(64px, 7vw, 96px) 0 0; --logo-hbn: #F3F2EE; --logo-global: rgba(243, 242, 238, .78); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
.footer-brand .logo { height: 52px; width: auto; margin-bottom: 26px; }
.footer-tag { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.35; color: var(--on-dark); font-weight: 500; }
.footer-tag .line { display: block; }
.footer-tag .line--accent { font-style: italic; color: var(--accent-on-dark); }
.footer-nav ul { display: grid; gap: 12px; }
.footer-nav a { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); transition: color .3s; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-contact { display: grid; gap: 22px; align-content: start; }
.footer-contact .mini-label { color: var(--on-dark-3); margin-bottom: 6px; }
.footer-contact a, .footer-contact p:not(.mini-label) { color: var(--on-dark); font-size: 15px; line-height: 1.6; }
.footer-contact a:hover { color: var(--accent-on-dark); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--on-dark-line); font-size: 12.5px; color: var(--on-dark-3); letter-spacing: .02em; }
.footer-bottom .domain { letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; }
.to-top { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--on-dark-line); border-radius: 50%; color: var(--on-dark-2); transition: border-color .3s, color .3s, transform .45s var(--ease); }
.to-top:hover { color: var(--on-dark); border-color: var(--on-dark-3); transform: translateY(-3px); }
.to-top .icon { width: 17px; height: 17px; }
.footer-bottom__right { display: flex; align-items: center; gap: 22px; }

/* ---------- Floating contact ---------- */
.float-cta {
  position: fixed; right: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-right, 0px)); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 22px;
  background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 12px 32px -12px rgba(3, 28, 68, .55);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .55s var(--ease), background-color .3s;
}
.float-cta .diamond { width: 6px; height: 6px; background: var(--accent-on-dark); }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .nav-cta { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .hero--page .hero-grid, .section-head, .info, .contact-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section-head--stack .section-head__aside { flex-direction: column; align-items: flex-start; }
  .tiles, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .service-areas { grid-column: 2 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  }
@media (max-width: 680px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .site-header.is-scrolled { --header-h: 62px; }
  .brand .logo { height: 34px; }
  .is-scrolled .brand .logo { height: 30px; }
  .hero--home { min-height: auto; }
  .industry-grid, .strengths { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 22px 18px 24px; }
  .tile-icon { margin-bottom: 18px; }
  .tile-icon .icon { width: 28px; height: 28px; }
  .tile strong { font-size: 15.5px; }
  .tile small { font-size: 12.5px; }
  .tile .num { font-size: 15px; }
  .tile .go { display: none; }
  .strength, .strength:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; grid-template-columns: 52px 1fr; gap: 0 20px; }
  .strength-icon { width: 48px; height: 48px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 26px; }
  .steps::before { display: block; left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; transform-origin: top; }
  .js .steps::before { transform: scaleY(0); }
  .js .steps.is-in::before { transform: none; }
  .step { padding: 0 0 40px 18px; }
  .step-node { left: -26px; top: 6px; }
  .service { grid-template-columns: 1fr; gap: 18px; }
  .service-areas { grid-column: auto; }
  .service .num { font-size: 52px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .info-list > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .float-cta { height: 46px; padding: 0 18px; }
  .lang-switch button { min-width: 36px; height: 30px; padding: 0 8px; }
  .lang-switch .knob { width: 36px; height: 30px; }
    .marquee { padding: 18px 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}


/* ---------- Consent (개인정보 수집·이용 동의) ---------- */
.consent { margin-top: 28px; padding: 22px 22px 20px; border: 1px solid var(--line); background: #fff; }
.consent__title { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 14px; }
.consent__table { border-top: 1px solid var(--line-soft); }
.consent__table > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.6; }
.consent__table dt { color: var(--muted); font-weight: 600; }
.consent__table dd { color: var(--ink); }
.consent__note { margin-top: 12px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.consent__check { flex-direction: row; align-items: flex-start; gap: 12px; margin-top: 16px; }
.consent__check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #B9B4A8; background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.consent__check input[type="checkbox"]::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: opacity .15s; }
.consent__check input[type="checkbox"]:checked { background: var(--navy); border-color: var(--navy); }
.consent__check input[type="checkbox"]:checked::after { opacity: 1; }
.consent__check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent__check label { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); line-height: 1.55; cursor: pointer; }
.consent__check.is-invalid input[type="checkbox"] { border-color: #B4483C; box-shadow: 0 0 0 3px rgba(180, 72, 60, .1); }
.consent__link { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 34px; font-size: 13px; font-weight: 600; color: var(--accent); border-bottom: 1px solid rgba(42, 100, 150, .35); }
.consent__link .icon { width: 14px; height: 14px; }
.consent__link:hover { color: var(--navy); border-color: var(--navy); }

/* ---------- Privacy policy page ---------- */
.hero--legal .display { font-size: clamp(2.3rem, 4.6vw, 4rem); }
.legal-date { margin-top: 18px; }
.legal { max-width: 880px; }
.legal-sec { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal-sec h2 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; color: var(--navy); letter-spacing: -0.015em; line-height: 1.4; margin-bottom: 14px; }
.legal-sec .body + .body, .legal-sec .body + .legal-list, .legal-sec .body + .vendors, .legal-sec .body + .officer { margin-top: 16px; }
.legal-list li { position: relative; padding: 6px 0 6px 20px; line-height: 1.75; color: var(--text); }
.legal-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.vendors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vendor { background: #fff; border: 1px solid var(--line); padding: 20px 20px 14px; }
.vendor h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.01em; }
.vendor dl > div, .officer > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.6; }
.vendor dt, .officer dt { color: var(--muted); font-weight: 600; }
.vendor dd, .officer dd { color: var(--ink); overflow-wrap: anywhere; }
.legal-note { margin-top: 16px; font-size: 14.5px; }
.officer { max-width: 560px; border-bottom: 1px solid var(--line-soft); }
.officer > div { grid-template-columns: 160px 1fr; font-size: 15px; }
.officer a { color: var(--navy); font-weight: 600; border-bottom: 1px solid rgba(3, 28, 68, .25); }
.footer-privacy { margin-left: 18px; color: var(--on-dark); font-weight: 600; border-bottom: 1px solid var(--on-dark-3); }
.footer-privacy:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
@media (max-width: 980px) { .vendors { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .consent { padding: 18px 16px 16px; }
  .consent__table > div { grid-template-columns: 1fr; gap: 2px; }
  .consent__link { margin-left: 34px; }
  .officer > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-privacy { display: table; margin: 8px 0 0; }
}

/* ==========================================================================
   EDIT MODE (only visible when editing — see 수정방법 guide)
   ========================================================================== */
.editbar { display: none; }
html.is-editing { --editbar-h: 60px; }
html.is-editing body { padding-top: var(--editbar-h); }
html.is-editing .site-header { top: var(--editbar-h); }
html.is-editing .progress, html.is-editing .float-cta { display: none; }
html.is-editing .marquee-track { animation-play-state: paused; }
html.is-editing .reveal { opacity: 1 !important; transform: none !important; }
html.is-editing [data-k]:has(> [lang]:empty) { display: revert !important; }
html.is-editing .display .line:has(> [lang]:empty) { display: block !important; }
html.is-editing [data-k]:not([data-mirror]):not([data-list]) > [lang] { outline: 1px dashed rgba(42, 100, 150, .42); outline-offset: 3px; border-radius: 2px; cursor: text; transition: outline-color .2s, background-color .2s; }
html.is-editing [data-k]:not([data-mirror]):not([data-list]) > [lang]:hover { outline-color: var(--accent); background: rgba(42, 100, 150, .07); }
html.is-editing [data-k] > [lang][contenteditable]:focus { outline: 2px solid var(--accent); background: rgba(255, 255, 255, .9); color: var(--navy); }
html.is-editing .section--dark [data-k] > [lang][contenteditable]:focus, html.is-editing .cta-band [data-k] > [lang][contenteditable]:focus, html.is-editing .site-footer [data-k] > [lang][contenteditable]:focus { background: rgba(255, 255, 255, .12); color: #fff; }
html.is-editing [data-k] > [lang]:empty::before { content: "＋ 내용 입력 (비어 있음)"; font: 500 13px/1.4 var(--sans); letter-spacing: 0; color: var(--accent); opacity: .75; font-style: normal; }
html.is-editing [data-k] > [lang].is-changed { outline-color: #C9822B; outline-style: solid; }
html.is-editing ul[data-list] { outline: 1px dashed rgba(42, 100, 150, .42); outline-offset: 6px; cursor: pointer; }
html.is-editing ul[data-list]:hover { outline-color: var(--accent); background: rgba(42, 100, 150, .05); }
html.is-editing ul[data-list].is-changed { outline: 1px solid #C9822B; }
html.is-editing .field input, html.is-editing .field textarea { pointer-events: none; }

html.is-editing .editbar {
  display: flex; position: fixed; inset: 0 0 auto 0; height: var(--editbar-h); z-index: 300; align-items: center; gap: 14px;
  padding: 0 18px; background: #0B1424; color: #E8ECF2; font: 500 13px/1.3 var(--sans); letter-spacing: 0; box-shadow: 0 6px 24px -10px rgba(0,0,0,.5);
}
.editbar__badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: #C9822B; color: #fff; font-weight: 700; white-space: nowrap; }
.editbar__badge .icon { width: 15px; height: 15px; }
.editbar__hint { color: #9AA6B8; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.editbar__spacer { flex: 1; }
.editbar__group { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.editbar__group > span { color: #9AA6B8; font-size: 12px; }
.editbar select, .editbar .seg button, .editbar .ebtn { height: 34px; border-radius: 8px; border: 1px solid #2A3850; background: #131F33; color: #E8ECF2; padding: 0 12px; font: 600 12.5px/1 var(--sans); }
.editbar .seg { display: inline-flex; border: 1px solid #2A3850; border-radius: 8px; overflow: hidden; }
.editbar .seg button { border: 0; border-radius: 0; background: transparent; color: #9AA6B8; }
.editbar .seg button[aria-pressed="true"] { background: #2A6496; color: #fff; }
.editbar .ebtn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.editbar .ebtn .icon { width: 15px; height: 15px; }
.editbar .ebtn:hover { border-color: #3D5070; }
.editbar .ebtn--primary { background: #2A6496; border-color: #2A6496; color: #fff; }
.editbar .ebtn--primary:hover { background: #3474AA; }
.editbar__count { color: #F0B56A; font-weight: 700; }
.edit-fab { position: fixed; left: 18px; bottom: 18px; z-index: 95; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: #0B1424; color: #fff; font: 600 12.5px/1 var(--sans); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.edit-fab .icon { width: 15px; height: 15px; }
html.is-editing .edit-fab { display: none; }
.edit-toast { position: fixed; left: 50%; top: calc(var(--editbar-h, 0px) + 16px); transform: translate(-50%, -12px); z-index: 320; max-width: min(92vw, 560px); padding: 16px 20px; border-radius: 12px; background: #0B1424; color: #E8ECF2; font: 500 13.5px/1.6 var(--sans); box-shadow: 0 16px 40px -16px rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.edit-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.edit-toast b { color: #F0B56A; }
.edit-toast .row { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.list-editor { position: absolute; z-index: 310; background: #fff; border: 2px solid var(--accent); box-shadow: 0 18px 40px -18px rgba(3, 28, 68, .45); padding: 12px; border-radius: 6px; }
.list-editor p { font: 600 12px/1.4 var(--sans); color: var(--muted); margin-bottom: 8px; letter-spacing: 0; }
.list-editor textarea { width: 100%; min-height: 150px; border: 1px solid var(--line); padding: 10px 12px; font: 400 15px/1.7 var(--sans); color: var(--ink); resize: vertical; outline: none; }
.list-editor .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.list-editor button { height: 34px; padding: 0 14px; border-radius: 6px; font: 600 12.5px/1 var(--sans); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.list-editor button.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 1100px) { .editbar__hint { display: none; } }
@media (max-width: 760px) { html.is-editing { --editbar-h: 104px; } html.is-editing .editbar { flex-wrap: wrap; height: auto; min-height: var(--editbar-h); padding: 10px 12px; gap: 8px; } .editbar__spacer { display: none; } }
html.is-editing [contenteditable] { white-space: pre-wrap; }
html.is-editing .form-msg { display: grid; gap: 10px; margin-top: 28px; padding: 18px 18px 16px; border: 1px dashed rgba(42, 100, 150, .5); font-size: 13.5px; color: var(--muted); }
html.is-editing .form-msg::before { content: "폼 안내 문구 — 전송 중 / 전송 완료 / 전송 실패 / 필수 항목 누락 (문서에 없는 기능용 문구)"; font: 600 11.5px/1.4 var(--sans); color: var(--accent); }
html.is-editing .skip-link, html.is-editing .mobile-menu { display: none; }
