/* ==========================================================================
   OpenNexus — Design System (2026-10 renewal)
   ========================================================================== */

:root {
  --black: #06070a;
  --ink: #0c0e13;
  --ink-2: #13161d;
  --ink-3: #1b1f29;
  --paper: #f4f5f7;
  --white: #ffffff;
  --text: #0c0e13;
  --text-2: #4a505c;
  --text-3: #8a909c;
  --on-dark: #f2f4f8;
  --on-dark-2: #a7adba;
  --on-dark-3: #6c7280;
  --line: rgba(12, 14, 19, .1);
  --line-dark: rgba(255, 255, 255, .1);

  --blue: #3355ff;
  --blue-2: #5b7bff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --lime: #c6f432;
  --grad: linear-gradient(100deg, #3355ff 0%, #8b5cf6 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(51,85,255,.18), rgba(139,92,246,.12) 50%, rgba(34,211,238,.14));

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[data-font="jp"] { --font: "Pretendard Variable", Pretendard, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
html[data-font="sc"] { --font: "Pretendard Variable", Pretendard, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  word-break: keep-all; overflow-wrap: anywhere;
}
html[lang="ja"] body, html[lang="zh-Hans"] body { word-break: normal; line-break: strict; }
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3 { hyphens: auto; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 999; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 11vw, 168px) 0; position: relative; }
.section--tight { padding: clamp(64px, 7vw, 104px) 0; }
.section--dark { background: var(--black); color: var(--on-dark); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--paper { background: var(--paper); }
.section--line { border-top: 1px solid var(--line); }
.section--dark.section--line, .section--ink.section--line { border-top-color: var(--line-dark); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split__sticky { position: static; } }

/* ── Type ─────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.section--dark .eyebrow, .section--ink .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--cyan); }

.d1 { font-size: clamp(46px, 8.2vw, 132px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.d2 { font-size: clamp(36px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.d3 { font-size: clamp(28px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; }
.h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.02em; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--text-2); letter-spacing: -.01em; }
.section--dark .lead, .section--ink .lead, .page-hero .lead, .hero .lead { color: var(--on-dark-2); }
.muted { color: var(--text-3); }
.section--dark .muted, .section--ink .muted { color: var(--on-dark-3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ja"] .d1, html[lang="zh-Hans"] .d1 { letter-spacing: -.02em; line-height: 1.08; }
html[lang="ja"] .d2, html[lang="zh-Hans"] .d2, html[lang="ja"] .d3, html[lang="zh-Hans"] .d3 { letter-spacing: -.015em; line-height: 1.18; }
html[lang="de"] .d1 { font-size: clamp(40px, 7vw, 112px); }

.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 64px; margin-bottom: clamp(40px, 5vw, 72px); }
.head__text { max-width: 820px; display: grid; gap: 20px; }
.head .lead { max-width: 640px; }
.head--center { justify-content: center; text-align: center; }
.head--center .head__text { justify-items: center; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --bh: 56px; display: inline-flex; align-items: center; gap: 12px; height: var(--bh); padding: 0 26px;
  border-radius: 999px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; border: 1px solid transparent;
  cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2443e8; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e6e9f0; }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { --bh: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--blue); }
.section--dark .link-arrow, .section--ink .link-arrow { color: var(--cyan); }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #fff;
  transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open { background: rgba(6, 7, 10, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-dark); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.site-header nav { margin-left: auto; height: 100%; }
.gnb { display: flex; align-items: center; gap: 4px; height: 100%; }
.gnb > li { height: 100%; display: flex; align-items: center; }
.gnb__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.82); border-radius: 999px; transition: color .2s, background .2s; background: none; border: 0; cursor: pointer;
}
.gnb__link:hover, .gnb__link[aria-expanded="true"], .gnb__link.is-current { color: #fff; }
.gnb__link.is-current::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); margin-left: 6px; }
.gnb__link .ic { width: 15px; height: 15px; transition: transform .25s; }
.gnb__link[aria-expanded="true"] .ic { transform: rotate(180deg); }
.header-tools { display: flex; align-items: center; gap: 10px; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h); background: rgba(8, 9, 13, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line-dark);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 40px; padding: 44px 0 52px; }
.mega__group h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 700; margin-bottom: 18px; }
.mega__group ul { display: grid; gap: 4px; }
.mega__group a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; color: var(--on-dark); font-weight: 600; font-size: 15.5px; transition: background .2s; }
.mega__group a:hover { background: rgba(255,255,255,.06); }
.mega__group a .ic { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.mega__group a small { display: block; font-size: 13px; color: var(--on-dark-3); font-weight: 500; margin-top: 2px; }
.mega__feature { border-radius: var(--radius); padding: 28px; background: var(--grad-soft), var(--ink-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 14px; color: var(--on-dark); }
.mega__feature p { color: var(--on-dark-2); font-size: 15px; }
.mega__feature .link-arrow { margin-top: auto; }

/* language */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.lang__btn:hover { border-color: rgba(255,255,255,.5); }
.lang__btn .ic { width: 17px; height: 17px; }
.lang__list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 8px; border-radius: 16px; background: #10131a; border: 1px solid var(--line-dark); box-shadow: 0 24px 60px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); }
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--on-dark); }
.lang__list a:hover { background: rgba(255,255,255,.06); }
.lang__list a[aria-current="true"] { color: var(--cyan); }
.lang__list a span { color: var(--on-dark-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: none; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic { width: 20px; height: 20px; }

/* mobile drawer */
.drawer { position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--black); color: var(--on-dark); overflow-y: auto; padding: 24px var(--gutter) 48px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__nav > li { border-bottom: 1px solid var(--line-dark); }
.drawer__nav > li > a, .drawer__nav summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav summary .ic { width: 20px; height: 20px; transition: transform .25s; }
.drawer__nav details[open] summary .ic { transform: rotate(45deg); }
.drawer__sub { display: grid; gap: 2px; padding: 0 0 18px; }
.drawer__sub a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--on-dark-2); font-size: 16px; font-weight: 600; }
.drawer__sub a .ic { width: 18px; height: 18px; color: var(--cyan); }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.drawer__langs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; }
.drawer__langs a[aria-current="true"] { border-color: var(--cyan); color: var(--cyan); }
.drawer .btn { margin-top: 28px; width: 100%; justify-content: center; }

@media (max-width: 1120px) {
  .site-header nav, .gnb, .header-tools .btn, .header-tools .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .header-tools { margin-left: auto; }
}
body.no-scroll { overflow: hidden; }

/* ── Hero (home) ──────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; background: var(--black); color: #fff; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 80% 20%, rgba(51,85,255,.28), transparent 70%),
  radial-gradient(40% 40% at 10% 90%, rgba(139,92,246,.18), transparent 70%),
  linear-gradient(180deg, rgba(6,7,10,.2) 0%, rgba(6,7,10,.05) 40%, rgba(6,7,10,.9) 100%); }
.hero .container { padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__title { max-width: 14ch; }
html[lang="ja"] .hero__title, html[lang="zh-Hans"] .hero__title { max-width: 12em; }
html[lang="de"] .hero__title, html[lang="en"] .hero__title { max-width: 15ch; }
.hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
.hero__lead { max-width: 560px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 32px; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-3); display: flex; align-items: center; gap: 12px; }
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--on-dark-3), transparent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .hero__scroll { display: none; } }

.word-rotate { display: inline-grid; vertical-align: bottom; }
.word-rotate > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.word-rotate > span.is-on { opacity: 1; transform: none; }
.word-rotate > span.is-off { opacity: 0; transform: translateY(-40%); }

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--black); color: var(--on-dark-2); padding: 28px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 56px; padding-right: 56px; font-size: clamp(20px, 2vw, 28px); font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-dark-3); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--light { background: var(--white); color: var(--text-3); border-color: var(--line); }

/* ── Statement ────────────────────────────────────────────────────────── */
.statement { font-size: clamp(28px, 3.8vw, 58px); line-height: 1.22; letter-spacing: -.035em; font-weight: 750; max-width: 22ch; }
html[lang="ja"] .statement, html[lang="zh-Hans"] .statement { max-width: 20em; letter-spacing: -.01em; line-height: 1.35; }
html[lang="de"] .statement, html[lang="en"] .statement { max-width: 26ch; }
.statement em { font-style: normal; color: var(--text-3); }
.section--dark .statement em, .section--ink .statement em { color: var(--on-dark-3); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.pillar { padding: 32px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar__num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.pillar p { color: var(--text-2); font-size: 15.5px; }
.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.pillars--3 .pillar:nth-child(3) { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 960px) { .pillars, .pillars--3 { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(3), .pillars--3 .pillar:nth-child(3) { padding-left: 0; border-left: 0; } .pillar { border-bottom: 1px solid var(--line); padding-bottom: 28px; } }
@media (max-width: 560px) { .pillars, .pillars--3 { grid-template-columns: 1fr; } .pillar + .pillar, .pillars--3 .pillar:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--black); padding: clamp(28px, 3vw, 44px); display: grid; gap: 10px; align-content: start; position: relative; }
.section--ink .stat { background: var(--ink); }
.stat__num { font-size: clamp(44px, 5vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.stat__num small { font-size: .36em; font-weight: 700; letter-spacing: -.01em; color: var(--on-dark-2); }
.stat__label { color: var(--on-dark-2); font-size: 15.5px; }
.stats--light { background: var(--line); border-color: var(--line); }
.stats--light .stat { background: #fff; }
.stats--light .stat__num small, .stats--light .stat__label { color: var(--text-2); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ── Service cards ────────────────────────────────────────────────────── */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: .2s; display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.section--dark .chip, .section--ink .chip { background: transparent; border-color: var(--line-dark); color: var(--on-dark-2); }
.section--dark .chip.is-active, .section--ink .chip.is-active { background: #fff; color: var(--ink); border-color: #fff; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid transparent; overflow: hidden; transition: transform .4s var(--ease), background .4s, color .4s, border-color .4s; isolation: isolate;
}
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .4s var(--ease); }
.svc-card:hover { transform: translateY(-4px); color: #fff; }
.svc-card:hover::before { opacity: 1; }
.svc-card__top { display: flex; justify-content: space-between; align-items: start; }
.svc-card__icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--blue); transition: .4s; }
.svc-card__icon .ic { width: 26px; height: 26px; }
.svc-card:hover .svc-card__icon { background: rgba(255,255,255,.16); color: #fff; }
.svc-card__num { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .08em; transition: color .4s; }
.svc-card:hover .svc-card__num { color: rgba(255,255,255,.7); }
.svc-card__en { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-top: auto; transition: color .4s; }
.svc-card:hover .svc-card__en { color: rgba(255,255,255,.75); }
.svc-card h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; font-weight: 750; line-height: 1.2; }
.svc-card p { color: var(--text-2); font-size: 15.5px; transition: color .4s; }
.svc-card:hover p { color: rgba(255,255,255,.85); }
.svc-card__go { position: absolute; right: 28px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transform: scale(.8) rotate(-45deg); opacity: 0; transition: .4s var(--ease); }
.svc-card__go .ic { width: 20px; height: 20px; }
.svc-card:hover .svc-card__go { opacity: 1; transform: none; }
.svc-card.is-hidden { display: none; }
.section--dark .svc-card, .section--ink .svc-card { background: var(--ink-2); border-color: var(--line-dark); color: var(--on-dark); }
.section--dark .svc-card p, .section--ink .svc-card p { color: var(--on-dark-2); }
.section--dark .svc-card__icon, .section--ink .svc-card__icon { background: rgba(255,255,255,.06); color: var(--cyan); }

/* ── Feature band (NexaAI) ────────────────────────────────────────────── */
.feature-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .feature-band { grid-template-columns: 1fr; } }
.check-list { display: grid; gap: 14px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 14px; align-items: start; }
.check-list .ic { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 2px; }
.check-list--dark .ic { color: var(--blue); }

/* mock dashboard */
.mock { border-radius: 24px; background: linear-gradient(180deg, #121622, #0b0d14); border: 1px solid var(--line-dark); box-shadow: 0 40px 120px rgba(51,85,255,.25), inset 0 1px 0 rgba(255,255,255,.06); padding: 20px; color: var(--on-dark); font-size: 13px; }
.mock__bar { display: flex; gap: 6px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); margin-bottom: 16px; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3b; }
.mock__bar b { margin-left: 12px; font-weight: 600; color: var(--on-dark-2); }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__kpi { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.mock__kpi span { color: var(--on-dark-3); font-size: 12px; }
.mock__kpi strong { font-size: 22px; letter-spacing: -.03em; }
.mock__kpi em { font-style: normal; font-size: 12px; color: var(--lime); }
.mock__chart { grid-column: 1 / -1; background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); border-radius: 14px; padding: 16px; height: 200px; position: relative; overflow: hidden; }
.mock__chart svg { width: 100%; height: 100%; }
.mock__insight { grid-column: 1 / -1; display: flex; gap: 12px; align-items: start; background: var(--grad-soft); border: 1px solid rgba(91,123,255,.35); border-radius: 14px; padding: 14px 16px; color: var(--on-dark); }
.mock__insight .ic { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.mock__chart path.line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.is-in .mock__chart path.line { animation: draw 2.4s var(--ease) forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Cases ────────────────────────────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--on-dark); border: 1px solid var(--line-dark); position: relative; }
.case__visual { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.case__visual::before { content: ""; position: absolute; inset: 0; background: var(--case-bg, var(--grad)); transition: transform .8s var(--ease); }
.case:hover .case__visual::before { transform: scale(1.06); }
.case__visual span { position: relative; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; color: rgba(255,255,255,.95); text-align: center; padding: 0 24px; }
.case__body { padding: 26px 26px 30px; display: grid; gap: 12px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-2); }
.case h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.02em; font-weight: 700; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line-dark); }
.case__metrics strong { display: block; font-size: 22px; letter-spacing: -.03em; color: #fff; }
.case__metrics span { font-size: 12px; color: var(--on-dark-3); line-height: 1.35; display: block; }
.case.is-hidden { display: none; }

/* ── Industries ───────────────────────────────────────────────────────── */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ind { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background .3s; }
.ind:hover { background: var(--paper); }
.ind__k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.ind h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ind p { font-size: 15px; color: var(--text-2); }
@media (max-width: 960px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ind-grid { grid-template-columns: 1fr; } }

/* ── Steps / process ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.section--dark .steps::before, .section--ink .steps::before { background: var(--line-dark); }
.step { position: relative; padding-right: 24px; display: grid; gap: 12px; align-content: start; }
.step__dot { width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--blue); position: relative; z-index: 1; margin-bottom: 12px; }
.section--dark .step__dot, .section--ink .step__dot { background: var(--black); border-color: var(--line-dark); color: var(--cyan); }
.step h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
.step p { font-size: 15px; color: var(--text-2); }
.section--dark .step p, .section--ink .step p { color: var(--on-dark-2); }
.step small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--text-3); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .step { grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0; } .step__dot { grid-row: span 3; margin: 0; } }

/* ── Global band ──────────────────────────────────────────────────────── */
.global-band { position: relative; overflow: hidden; background: var(--black); color: #fff; isolation: isolate; }
.global-band__bg { position: absolute; inset: 0; z-index: -1; background: url(../img/legacy-illustration.webp) center / cover no-repeat; opacity: .55; }
.global-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,7,10,.95) 25%, rgba(6,7,10,.35)); }
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 48px; }
.market { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);  display: grid; gap: 4px; }
.market strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.market span { color: var(--on-dark-2); font-size: 14px; }
@media (max-width: 860px) { .markets { grid-template-columns: repeat(2, 1fr); } }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; background: var(--blue); color: #fff; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 85% 20%, rgba(34,211,238,.55), transparent 60%), radial-gradient(50% 80% at 60% 100%, rgba(139,92,246,.6), transparent 65%), linear-gradient(120deg, #2443e8, #3355ff 50%, #4a3df0); }
.cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta .d2 { max-width: 14ch; }
html[lang="ja"] .cta .d2, html[lang="zh-Hans"] .cta .d2 { max-width: 13em; }
.cta p { color: rgba(255,255,255,.85); font-size: clamp(17px, 1.4vw, 20px); }
.cta__side { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } }

.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.22); border-radius: var(--radius); overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
.channel { background: rgba(10, 16, 60, .42); padding: 26px 26px 24px; display: grid; gap: 6px; transition: background .25s; }
.channel:hover { background: rgba(10, 16, 60, .6); }
.channel span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }
.channel strong { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.channel em { font-style: normal; font-size: 14px; font-weight: 650; color: rgba(255,255,255,.8); margin-top: 6px; }
.cta__mail { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 16px; color: rgba(255,255,255,.85); flex-wrap: wrap; }
.cta__mail .ic { width: 20px; height: 20px; }
.cta__mail a { font-weight: 750; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }

/* ── Page hero (sub pages) ────────────────────────────────────────────── */
.page-hero { position: relative; background: var(--black); color: #fff; padding: calc(var(--header-h) + clamp(72px, 10vw, 150px)) 0 clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.page-hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 10%, rgba(51,85,255,.32), transparent 70%), linear-gradient(180deg, transparent 50%, rgba(6,7,10,.85)); }
.page-hero__inner { display: grid; gap: 28px; max-width: 1100px; }
.page-hero .lead { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--on-dark-3); font-weight: 600; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #3c414d; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.page-hero__meta .tag { color: var(--on-dark); border-color: rgba(255,255,255,.2); font-size: 13.5px; padding: 6px 14px; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 18px 16px; font-size: 15px; font-weight: 600; color: var(--text-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--blue); }

/* ── Feature tiles ────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 32px; border-radius: var(--radius); background: var(--paper); display: grid; gap: 14px; align-content: start; position: relative; }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--blue); }
.tile__icon .ic { width: 24px; height: 24px; }
.tile__num { position: absolute; top: 28px; right: 30px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.tile h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 700; line-height: 1.3; }
.tile p { color: var(--text-2); font-size: 15.5px; }
.tile ul { display: grid; gap: 6px; margin-top: 4px; }
.tile li { font-size: 14.5px; color: var(--text-2); padding-left: 16px; position: relative; }
.tile li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: var(--blue); }
.section--dark .tile, .section--ink .tile { background: var(--ink-2); border: 1px solid var(--line-dark); }
.section--dark .tile p, .section--ink .tile p, .section--dark .tile li, .section--ink .tile li { color: var(--on-dark-2); }
.section--dark .tile__icon, .section--ink .tile__icon { background: rgba(255,255,255,.06); color: var(--cyan); }
.section--dark .tile li::before, .section--ink .tile li::before { background: var(--cyan); }

/* rows (numbered list) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row__n { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: .06em; padding-top: 6px; }
.row h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; font-weight: 750; line-height: 1.25; }
.row p { color: var(--text-2); }
.section--dark .rows, .section--ink .rows, .section--dark .row, .section--ink .row { border-color: var(--line-dark); }
.section--dark .row p, .section--ink .row p { color: var(--on-dark-2); }
.section--dark .row__n, .section--ink .row__n { color: var(--cyan); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 10px; } }

/* KPI / deliverables */
.kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.kpi { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 650; font-size: 15px; background: #fff; }
.section--dark .kpi, .section--ink .kpi { border-color: var(--line-dark); background: rgba(255,255,255,.03); }

/* media chips */
.media-cats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.media-cat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.media-cat h3 { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.media-cat p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.media-list { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.media-list li { padding: 12px 20px; border-radius: 12px; background: var(--paper); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
@media (max-width: 860px) { .media-cat { grid-template-columns: 1fr; gap: 16px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease); color: var(--blue); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .faq__a { padding: 0 48px 28px 0; color: var(--text-2); }
.section--dark .faq, .section--dark .faq details { border-color: var(--line-dark); }
.section--dark .faq .faq__a { color: var(--on-dark-2); }

/* prev/next service */
.svc-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.svc-pager a { padding: clamp(32px, 4vw, 56px) 0; display: grid; gap: 8px; transition: color .25s; }
.svc-pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 32px; }
.svc-pager a:first-child { padding-right: 32px; }
.svc-pager small { font-size: 13px; color: var(--text-3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.svc-pager strong { font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.03em; }
.svc-pager a:hover { color: var(--blue); }

/* value cards / quote */
.quote { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.35; letter-spacing: -.03em; font-weight: 700; max-width: 30ch; }
html[lang="ja"] .quote, html[lang="zh-Hans"] .quote { max-width: 26em; letter-spacing: -.01em; }
.quote-by { margin-top: 24px; color: var(--text-3); font-weight: 600; }

/* org chart */
.org { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.org__unit { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); display: grid; gap: 10px; align-content: start; }
.org__unit small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--cyan); }
.org__unit h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.org__unit p { color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 1000px) { .org { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .org { grid-template-columns: 1fr; } }

/* ── Contact form ─────────────────────────────────────────────────────── */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form legend, .form label:not(.opt):not(.consent) > span { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: block; }
.form legend { padding: 0; }
.req { color: var(--blue); margin-left: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; transition: border-color .2s, background .2s; }
textarea.field { height: auto; min-height: 180px; padding: 16px 18px; resize: vertical; }
.field:focus { outline: none; border-color: var(--blue); background: #fff; }
.field.is-error { border-color: #e5484d; }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1; color: var(--text-2); cursor: pointer; transition: .2s; white-space: nowrap; }
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: start; font-size: 14.5px; color: var(--text-2); padding: 18px; border-radius: 14px; background: var(--paper); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.consent a { text-decoration: underline; }
.form-msg { padding: 16px 18px; border-radius: 14px; font-weight: 600; display: none; }
.form-msg.is-ok { display: block; background: #e8f7ee; color: #146c3a; }
.form-msg.is-err { display: block; background: #fdecec; color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-cards { display: grid; gap: 12px; margin-top: 36px; }
.contact-card { display: flex; gap: 16px; align-items: start; padding: 20px; border-radius: 16px; border: 1px solid var(--line); }
.contact-card .ic { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-card strong { display: block; font-size: 15px; }
.contact-card a, .contact-card span { color: var(--text-2); font-size: 15px; }
.contact-card a:hover { color: var(--blue); }

/* prose (privacy) */
.prose { max-width: 860px; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 48px 0 14px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--black); color: var(--on-dark-2); padding: clamp(72px, 8vw, 120px) 0 40px; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; padding-bottom: 64px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 15px; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--on-dark); transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-word { font-size: clamp(64px, 15.5vw, 260px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); user-select: none; white-space: nowrap; overflow: hidden; margin: 0 0 40px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13.5px; }
.footer-info { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Reveal ───────────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.js-off [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__scroll::after { animation: none; }
}

/* ── 확인 필요(tbd) — 검토 모드에서만 보인다 ─────────────────────────── */
.is-tbd { outline: 2px dashed #ffc400 !important; outline-offset: 4px; position: relative; }
.is-tbd::after { content: "확인 필요 · TBD"; position: absolute; top: -12px; right: 8px; z-index: 5; background: #ffc400; color: #111; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.preview-bar { position: fixed; left: 16px; bottom: 16px; z-index: 200; background: #ffc400; color: #111; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; }
.preview-bar a { text-decoration: underline; }

/* 404 */
.nf { min-height: 80svh; display: grid; place-items: center; text-align: center; background: var(--black); color: #fff; padding-top: var(--header-h); }
.nf .d1 { font-size: clamp(96px, 18vw, 240px); }

/* ==========================================================================
   2026-10-16 v2 — 광고대행사 정체성 강화 + 한국어 우선 조판
   ========================================================================== */

/* ── Hero: 카피 + 광고 소재 월 ───────────────────────────────────────── */
.hero { align-items: center; }
.hero .container.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding-top: calc(var(--header-h) + 56px); padding-bottom: 72px; }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__title { max-width: none; font-size: clamp(48px, 7.4vw, 116px); }
.hero__rotate { font-size: clamp(20px, 1.9vw, 27px); font-weight: 700; letter-spacing: -.02em; line-height: 1.4; color: #fff; display: flex; flex-wrap: wrap; gap: 0 .35em; align-items: baseline; }
.hero__rotate .word-rotate { color: var(--cyan); }
.hero__lead { max-width: 560px; }
.hero__badges { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 28px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line-dark); width: 100%; }
.hero__badges li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.hero__badges .ic { width: 18px; height: 18px; color: var(--cyan); flex: none; }
@media (max-width: 1080px) {
  .hero .container.hero__grid { grid-template-columns: 1fr; padding-bottom: 56px; }
}
@media (max-width: 560px) { .hero__badges { grid-template-columns: 1fr; } }

/* ad wall */
.ad-wall { position: relative; height: 600px; color: #111; font-size: 14px; }
.adc { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; animation: adFloat 7s ease-in-out infinite; line-height: 1.45; }
@keyframes adFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.adc b { font-weight: 800; }

.adc--search { top: 0; left: 0; width: 76%; padding: 18px 20px; animation-delay: -1s; }
.adc__meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #5f6368; }
.adc__meta b { font-size: 11px; color: #1a7f37; border: 1px solid #1a7f37; border-radius: 4px; padding: 0 5px; }
.adc--search h4 { font-size: 17px; color: #1a0dab; font-weight: 700; margin: 6px 0 4px; letter-spacing: -.02em; }
.adc--search p { color: #4d5156; font-size: 13.5px; }
.adc__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adc__links span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #f1f3f4; color: #1a0dab; font-weight: 600; }

.adc--feed { top: 120px; right: 0; width: 44%; animation-delay: -3s; z-index: 2; }
.adc__head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.adc__head i { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#f58529, #dd2a7b, #8134af, #515bd4, #f58529); flex: none; box-shadow: inset 0 0 0 2px #fff; }
.adc__head div { display: grid; line-height: 1.25; flex: 1; }
.adc__head b { font-size: 13px; }
.adc__head small { font-size: 11px; color: #737373; }
.adc__head > span { color: #999; letter-spacing: 1px; }
.adc__img { aspect-ratio: 1 / 1; background: linear-gradient(135deg, #ffb199 0%, #ff0844 45%, #8b5cf6 100%); display: grid; place-items: center; }
.adc__img strong { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 900; line-height: .95; letter-spacing: -.04em; text-align: center; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.adc__cta { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #3355ff; color: #fff; font-weight: 700; font-size: 13px; }
.adc__icons { display: flex; gap: 14px; padding: 9px 12px 11px; font-size: 16px; color: #222; }

.adc--video { bottom: 40px; left: 4%; width: 58%; background: #000; animation-delay: -5s; z-index: 1; }
.adc__screen { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(80% 90% at 30% 30%, #3355ff 0%, #1b1f3a 55%, #05060a 100%); display: block; }
.adc__play { position: absolute; left: 50%; top: 46%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.adc__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.adc__vtitle { position: absolute; left: 14px; top: 12px; color: #fff; font-weight: 700; font-size: 13px; }
.adc__vtag { position: absolute; left: 12px; bottom: 16px; background: #ffd400; color: #111; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 4px; }
.adc__skip { position: absolute; right: 0; bottom: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-right: 0; }
.adc__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.adc__bar i { display: block; height: 100%; width: 100%; background: #ffd400; transform-origin: left; animation: adBar 6s linear infinite; }
@keyframes adBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.adc--shop { bottom: 0; right: 3%; width: 40%; display: grid; grid-template-columns: 92px 1fr; animation-delay: -2s; z-index: 3; }
.adc__thumb { background: linear-gradient(160deg, #e6ecff, #b9c6ff); position: relative; min-height: 112px; }
.adc__thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #1b1f29; box-shadow: 18px 0 0 -4px #1b1f29; }
.adc__thumb b { position: absolute; left: 6px; top: 6px; font-size: 10.5px; background: rgba(0,0,0,.55); color: #fff; border-radius: 4px; padding: 0 5px; z-index: 1; }
.adc__body { padding: 10px 12px; display: grid; gap: 3px; align-content: center; }
.adc__body p { font-size: 13px; font-weight: 600; line-height: 1.35; }
.adc__body em { font-style: normal; color: #e5193c; font-weight: 800; margin-right: 6px; }
.adc__body strong { font-size: 16px; font-weight: 800; }
.adc__body small { font-size: 11.5px; color: #3355ff; font-weight: 700; }

.adc-live { position: absolute; left: 30%; top: 47%; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(12, 14, 19, .82); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0,0,0,.4); white-space: nowrap; }
.adc-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,244,50,.7); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(198,244,50,0); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }

@media (max-width: 1080px) {
  .ad-wall { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .ad-wall::-webkit-scrollbar { display: none; }
  .adc { position: relative; inset: auto; flex: 0 0 auto; scroll-snap-align: start; animation: none; align-self: flex-start; }
  .adc--search { width: 300px; } .adc--feed { width: 220px; } .adc--video { width: 300px; } .adc--shop { width: 280px; }
  .adc-live { display: none; }
}
@media (prefers-reduced-motion: reduce) { .adc, .adc__bar i, .adc-live i { animation: none; } }

/* ── 서비스 리스트 (홈) ─────────────────────────────────────────────── */
.svc-list { border-top: 1px solid var(--ink); counter-reset: none; }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) 56px; gap: 24px; align-items: center; padding: 28px 12px; position: relative; isolation: isolate; transition: color .3s; }
.svc-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.svc-row:hover { color: #fff; }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row__n { font-size: 14px; font-weight: 800; color: var(--blue); }
.svc-row:hover .svc-row__n { color: var(--cyan); }
.svc-row__name strong { display: block; font-size: clamp(26px, 3vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.svc-row__name small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.svc-row__desc { color: var(--text-2); font-size: 16px; display: grid; gap: 10px; transition: color .3s; }
.svc-row:hover .svc-row__desc { color: var(--on-dark-2); }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-row__tags em { font-style: normal; font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); transition: .3s; }
.svc-row:hover .svc-row__tags em { border-color: var(--line-dark); color: var(--on-dark); }
.svc-row__go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .35s var(--ease); }
.svc-row__go .ic { width: 22px; height: 22px; }
.svc-row:hover .svc-row__go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(45deg); }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 40px 1fr 44px; gap: 8px 16px; padding: 22px 4px; }
  .svc-row__desc { grid-column: 2 / 3; grid-row: 2; font-size: 15px; }
  .svc-row__go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
}

/* ── 한국어 우선 조판 ────────────────────────────────────────────────
   한글은 라틴보다 글자 높이가 크고 네모꼴이라, 자간을 덜 좁히고 행간을 넓힌다.
   줄바꿈은 어절 단위(keep-all) + balance 로 마지막 줄 외톨이를 막는다. */
h1, h2, h3, .statement, .quote, .hero__rotate { text-wrap: balance; }
p, li, .lead, .faq__a { text-wrap: pretty; }
html[lang="ko"] body { line-height: 1.75; letter-spacing: -.005em; }
html[lang="ko"] .d1 { letter-spacing: -.04em; line-height: 1.1; }
html[lang="ko"] .d2 { letter-spacing: -.035em; line-height: 1.2; }
html[lang="ko"] .d3 { letter-spacing: -.03em; line-height: 1.3; }
html[lang="ko"] .h3, html[lang="ko"] .tile h3, html[lang="ko"] .row h3, html[lang="ko"] .step h3 { letter-spacing: -.025em; line-height: 1.4; }
html[lang="ko"] .lead { line-height: 1.75; letter-spacing: -.015em; }
html[lang="ko"] .statement { font-size: clamp(26px, 3.3vw, 50px); letter-spacing: -.035em; line-height: 1.42; max-width: 28em; }
html[lang="ko"] .quote { line-height: 1.5; max-width: 26em; }
html[lang="ko"] .hero__title, html[lang="ko"] .cta .d2, html[lang="ko"] .page-hero .d1 { max-width: none; }
html[lang="ko"] .page-hero .d1 { font-size: clamp(42px, 6.8vw, 104px); }
html[lang="ko"] .svc-row__name strong { letter-spacing: -.04em; }
html[lang="ko"] .faq summary { line-height: 1.5; }
html[lang="ko"] .eyebrow { letter-spacing: .12em; }
html[lang="ko"] .btn { letter-spacing: -.02em; }
html[lang="ja"] .hero__rotate, html[lang="zh-Hans"] .hero__rotate { gap: 0; }

/* 광고 소재 예시 표기 — 소재 목록 밖에 둔다(모바일 가로 스크롤 목록 끝에 붙지 않게) */
.ad-wall-wrap { position: relative; min-width: 0; }
.ad-wall__note { position: absolute; right: 0; bottom: -28px; font-size: 12px; color: var(--on-dark-3); letter-spacing: .02em; margin: 0; }
@media (max-width: 1080px) {
  .ad-wall__note { position: static; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
  .ad-wall__note::before { content: ""; width: 16px; height: 1px; background: var(--on-dark-3); }
}

/* ==========================================================================
   회사소개서 /<lang>/profile — 화면에서는 슬라이드 미리보기, 인쇄하면 A4 가로 9장
   ========================================================================== */
.profile-bar { padding: calc(var(--header-h) + 20px) 0 20px; background: var(--black); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.profile-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-bar strong { font-size: 18px; margin-right: 14px; }
.profile-bar span { color: var(--on-dark-2); font-size: 14px; }
.deck { background: #1b1f29; padding: 40px 16px 80px; display: grid; gap: 32px; justify-items: center; }
.slide {
  width: min(100%, 1123px); aspect-ratio: 297 / 210; background: #fff; color: var(--text); position: relative; overflow: hidden;
  padding: 56px 64px 72px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4); border-radius: 6px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.slide--dark { background: radial-gradient(70% 80% at 90% 10%, rgba(51,85,255,.35), transparent 60%), var(--black); color: var(--on-dark); }
.slide .eyebrow { font-size: 12px; }
.slide__logo { height: 34px; width: auto; align-self: flex-start; }
.slide__h1 { font-size: 64px; line-height: 1.1; letter-spacing: -.04em; font-weight: 800; margin-top: 14px; }
.slide__h2 { font-size: 38px; line-height: 1.2; letter-spacing: -.035em; font-weight: 800; }
.slide__lead { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 860px; }
.slide--dark .slide__lead { color: var(--on-dark-2); }
.slide__grid { display: grid; gap: 12px; margin-top: auto; }
.slide__grid--2 { grid-template-columns: repeat(2, 1fr); }
.slide__grid--3 { grid-template-columns: repeat(3, 1fr); }
.slide__grid--4 { grid-template-columns: repeat(4, 1fr); }
.slide__grid--tight .slide__card { padding: 14px 16px; }
.slide__card { background: var(--paper); border-radius: 14px; padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.slide--dark .slide__card { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.slide__card h3 { font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.35; }
.slide__card p { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.slide--dark .slide__card p { color: var(--on-dark-2); }
.slide__card small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.slide__card--svc p { font-size: 12.5px; }
.slide__card--accent { background: var(--blue); color: #fff; align-content: space-between; }
.slide__card--accent p { color: rgba(255,255,255,.88); }
.slide__card--accent strong { font-size: 13px; }
.slide__n, .slide__k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; }
.slide--dark .slide__n, .slide--dark .slide__k { color: var(--cyan); }
.slide__big { font-size: 19px !important; line-height: 1.5 !important; font-weight: 700; color: var(--text) !important; letter-spacing: -.02em; }
.slide__cover-meta { display: flex; gap: 28px; margin-top: auto; font-size: 14px; color: var(--on-dark-2); font-weight: 600; }
.slide--cover { justify-content: space-between; }
.slide__markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.slide__markets div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; }
.slide__markets strong { font-size: 22px; font-weight: 800; color: var(--blue); }
.slide__markets span { font-size: 12.5px; color: var(--text-2); }
.slide__report { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.slide__report div { border-top: 2px solid var(--blue); padding-top: 8px; display: grid; }
.slide__report strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.slide__report span { font-size: 13.5px; font-weight: 700; }
.slide__info { display: grid; gap: 12px; margin: auto 0 0; }
.slide__info div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.slide__info dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 700; }
.slide__info dd { margin: 0; font-size: 15px; color: var(--on-dark); }
.slide__foot { position: absolute; left: 64px; right: 64px; bottom: 26px; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.slide--dark .slide__foot { color: var(--on-dark-3); }
html[lang="ko"] .slide__h1, html[lang="ko"] .slide__h2 { letter-spacing: -.035em; line-height: 1.22; }
@media (max-width: 900px) {
  .slide { aspect-ratio: auto; padding: 32px 24px 56px; }
  .slide__grid--3, .slide__grid--4, .slide__markets, .slide__report { grid-template-columns: repeat(2, 1fr); }
  .slide__grid--2 { grid-template-columns: 1fr; }
  .slide__h1 { font-size: 40px; } .slide__h2 { font-size: 28px; }
  .slide__foot { left: 24px; right: 24px; bottom: 18px; }
  .slide__info div { grid-template-columns: 1fr; gap: 4px; }
}
@page { size: A4 landscape; margin: 0; }
@media print {
  .site-header, .drawer, .site-footer, .profile-bar, .skip, .preview-bar { display: none !important; }
  html, body { background: #fff !important; }
  .deck { padding: 0; gap: 0; background: none; display: block; }
  .slide { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; page-break-after: always; break-after: page; margin: 0; }
  .slide:last-child { page-break-after: auto; break-after: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   홈페이지 챗봇 (스크립트형, 2026-10-16) — partials/chat.php · js/chat.js
   ========================================================================== */
.onx-chat { position: fixed; right: 24px; bottom: 24px; z-index: 150; font-size: 15px; }
.onx-chat__fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--grad); box-shadow: 0 14px 36px rgba(51,85,255,.45); display: grid; place-items: center; transition: transform .25s var(--ease); }
.onx-chat__fab:hover { transform: translateY(-2px) scale(1.04); }
.onx-chat__fab svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .2s, transform .25s; }
.onx-chat__fab .i-x { opacity: 0; transform: rotate(-45deg); }
.onx-chat.is-open .onx-chat__fab .i-chat { opacity: 0; transform: rotate(45deg); }
.onx-chat.is-open .onx-chat__fab .i-x { opacity: 1; transform: none; }
.onx-chat__dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid #fff; }
.onx-chat.is-open .onx-chat__dot { display: none; }
.onx-chat__panel { position: absolute; right: 0; bottom: 76px; width: 380px; height: min(740px, calc(100svh - 110px)); background: #fff; color: var(--text); border-radius: 22px; box-shadow: 0 30px 80px rgba(6,7,10,.35), 0 0 0 1px rgba(12,14,19,.06); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.onx-chat.is-open .onx-chat__panel { opacity: 1; transform: none; }
.onx-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: var(--black); color: #fff; }
.onx-chat__avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--ink-2); padding: 5px; }
.onx-chat__head div { display: grid; line-height: 1.3; flex: 1; }
.onx-chat__head strong { font-size: 15.5px; }
.onx-chat__head span { font-size: 12.5px; color: var(--on-dark-2); display: flex; align-items: center; gap: 6px; }
.onx-chat__head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.onx-chat__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.onx-chat__close .ic { width: 18px; height: 18px; }
.onx-chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); overscroll-behavior: contain; }
.onx-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; line-height: 1.6; font-size: 14.5px; word-break: keep-all; overflow-wrap: anywhere; }
.onx-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-top-left-radius: 6px; }
.onx-msg--bot a { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.onx-msg--user { align-self: flex-end; background: var(--blue); color: #fff; border-top-right-radius: 6px; white-space: pre-wrap; }
.onx-msg.is-typing { display: flex; gap: 4px; padding: 14px 16px; }
.onx-msg.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: onxDot 1s infinite ease-in-out; }
.onx-msg.is-typing span:nth-child(2) { animation-delay: .15s; } .onx-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes onxDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.onx-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 10px; background: var(--paper); flex: none; }
.onx-chat__chips:empty { display: none; }
.onx-chip { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2; transition: .15s; }
.onx-chip:hover { border-color: var(--blue); color: var(--blue); }
.onx-chip--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.onx-chip--primary:hover { color: #fff; background: #2443e8; }
.onx-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.onx-chat__form input { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font-size: 15px; background: var(--paper); min-width: 0; }
.onx-chat__form input:focus { outline: none; border-color: var(--blue); background: #fff; }
.onx-chat__form button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.onx-chat__form button .ic { width: 18px; height: 18px; }
body.no-scroll .onx-chat { display: none; }
/* 닫힌 창은 반드시 숨긴다 — display:flex 가 [hidden] 을 덮어써서 투명한 창이 화면(모바일은 전체)을 덮고 버튼 탭을 가로챘다 (2026-10-16) */
.onx-chat__panel[hidden] { display: none; }
.onx-chat:not(.is-open) .onx-chat__panel { pointer-events: none; }
.onx-chat__scrim { display: none; }
@media (max-width: 640px) {
  .onx-chat { right: 16px; bottom: 16px; }
  .onx-chat__fab { width: 54px; height: 54px; }
  .onx-chat.is-open .onx-chat__fab { display: none; }
  /* 모바일: 아래에서 올라오는 바텀시트 */
  .onx-chat__scrim { display: block; position: fixed; inset: 0; background: rgba(6,7,10,.5); opacity: 0; transition: opacity .25s; pointer-events: none; }
  .onx-chat.is-open .onx-chat__scrim { opacity: 1; pointer-events: auto; }
  .onx-chat__panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: min(88svh, 720px); border-radius: 22px 22px 0 0; transform: translateY(100%); transform-origin: bottom center; transition: transform .3s var(--ease), opacity .2s; padding-bottom: env(safe-area-inset-bottom); }
  .onx-chat.is-open .onx-chat__panel { transform: none; }
  .onx-chat__head { position: relative; padding-top: 22px; }
  .onx-chat__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255,255,255,.35); }
  .onx-chat__form input { font-size: 16px; }  /* iOS 확대 방지 */
}
@media print { .onx-chat { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .onx-msg.is-typing span { animation: none; } }

/* 챗봇 AI 안내 문구 (2026-10-16) */
.onx-chat__notice { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.onx-chat__notice a { color: var(--text-2); text-decoration: underline; }

/* 챗봇 AI 답변 속 페이지 링크 (2026-10-16) */
.onx-msg--bot a.onx-link { display: inline-flex; align-items: center; gap: 2px; padding: 2px 10px; margin: 2px 0; border-radius: 999px; background: rgba(51,85,255,.08); color: var(--blue); font-weight: 650; text-decoration: none; white-space: nowrap; }
.onx-msg--bot a.onx-link:hover { background: rgba(51,85,255,.16); }

/* 챗봇 「새 대화 시작」 버튼 (2026-10-16) */
.onx-chat__reset { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .35s var(--ease); }
.onx-chat__reset:hover { background: rgba(255,255,255,.16); transform: rotate(-90deg); }
.onx-chat__reset .ic { width: 17px; height: 17px; }

/* CTA 하단 「Nexa 챗봇으로 바로 문의」 (2026-10-18 — 사이트에서 이메일 주소를 뺐다) */
.cta__mail a{display:inline-flex;align-items:center;gap:10px;color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.cta__mail .ic{width:20px;height:20px}

/* 셀렉트 박스 화살표 (2026-10-18 2차) — 화살표를 <select> 에 배경으로 넣으면 브라우저에 따라 펼친 목록 안에도 다시 그려진다.
   ⇒ <select> 는 기본 화살표만 끄고 배경 없이 두고, 감싸는 <span class="select"> 의 ::after 에 그린다(목록과 무관). 오른쪽 18px = 왼쪽 글자 여백과 같음 */
select.field { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: none; padding-right: 52px; cursor: pointer; }
select.field::-ms-expand { display: none; }
.select { position: relative; display: block; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a505c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}
.select:focus-within::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233355ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
