/* =========================================================
   BBCOMPANY — style.css
   ========================================================= */
:root {
  --bg: #0b0d10;
  --bg-2: #111419;
  --surface: #151920;
  --line: rgba(200, 169, 106, .18);
  --line-soft: rgba(236, 230, 218, .08);
  --gold: #c8a96a;
  --gold-2: #e3cc97;
  --ivory: #ece6da;
  --text: #d9d4ca;
  --muted: #8a8f98;
  --jade: #4fa38f;
  --jade-2: #8fd1bf;
  --paper: #f3efe7;
  --ink: #15181d;

  --serif: "Cormorant Garamond", "Noto Serif KR", "Times New Roman", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; font-family: var(--serif); color: var(--gold); font-weight: 500; }
::selection { background: var(--gold); color: var(--bg); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 14vw, 180px); }
.section--line { border-top: 1px solid var(--line-soft); }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .line { width: 40px; height: 1px; background: currentColor; }
.eyebrow--jade { color: var(--jade); }
.h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 500; line-height: 1.12; letter-spacing: -.02em;
  color: var(--ivory);
}
.h2 em { font-weight: 500; }
:lang(ko) .h2 { font-family: var(--sans); font-weight: 300; letter-spacing: -.04em; }
.h2 em { font-family: var(--serif); }
.lead { margin: 0 0 48px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.8; color: var(--ivory); font-weight: 300; }
.body { margin: 0; font-size: 16px; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: var(--bg);
  transition: transform 1.1s var(--ease) .1s;
}
.preloader__mark { width: 72px; height: 72px; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; }
.preloader__mark * { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) forwards; }
.preloader__mark .ghost { opacity: .55; animation-delay: .3s; }
.preloader__word {
  font-family: var(--serif); font-size: 18px; letter-spacing: .6em; color: var(--ivory);
  opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards;
}
.preloader.is-done { transform: translateY(-100%); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Progress & cursor ---------- */
.progress {
  position: fixed; top: 0; left: 0; z-index: 200; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform-origin: 0 50%; transform: scaleX(0);
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--gold); border-radius: 50%;
  opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(200, 169, 106, .15); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  transition: padding .5s var(--ease), background .5s, backdrop-filter .5s, transform .5s var(--ease);
}
.header.is-scrolled {
  padding-block: 16px;
  background: rgba(11, 13, 16, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo__mark { width: 34px; height: 34px; stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round; }
.logo__mark .ghost { opacity: .55; }
.logo__word { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .32em; color: var(--ivory); }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  position: relative; font-size: 14px; letter-spacing: .04em; color: var(--text);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover { color: var(--gold-2); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { padding: 10px 22px; border: 1px solid var(--line); border-radius: 100px; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 34px; border-radius: 100px; overflow: hidden;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--gold); cursor: pointer; background: none;
  transition: color .45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold::before { background: var(--ivory); }
.btn--ghost { color: var(--ivory); border-color: rgba(236, 230, 218, .3); }
.btn--ghost::before { background: var(--ivory); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost:hover { color: var(--bg); }
.btn--lg { padding: 22px 48px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-block: 140px 160px;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 40%;
  margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(200, 169, 106, .16), transparent 60%);
  transition: transform 1.2s var(--ease);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; pointer-events: none; }
.hero__skyline .bld { fill: rgba(11, 13, 16, .85); stroke: rgba(200, 169, 106, .45); stroke-width: 1; }
.hero__skyline .bld--far { fill: rgba(17, 20, 25, .6); stroke: rgba(200, 169, 106, .18); }
.hero__skyline .win { fill: var(--gold); opacity: 0; }
.hero__skyline .win.lit { animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 40%, 70% { opacity: .8; } }
.hero__skyline::after { content: ""; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { opacity: 0; transform: translateY(10px); transition: all 1s var(--ease) .3s; }
.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.hero__title {
  margin: 0 0 40px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 9vw, 132px); line-height: .98; letter-spacing: -.03em; color: var(--ivory);
}
.hero__title .mask { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .mask > span { display: block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero__title .mask:nth-child(2) > span { transition-delay: .12s; padding-left: clamp(0px, 8vw, 140px); }
.hero__title .mask:nth-child(3) > span { transition-delay: .24s; }
.is-ready .hero__title .mask > span { transform: none; }
.hero__sub { margin: 0 0 48px; max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 26px; background: var(--bg-2); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); font-style: italic; color: var(--ivory); white-space: nowrap; }
.marquee b { color: var(--gold); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; position: relative; z-index: 1; }
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.pillars li {
  display: grid; grid-template-columns: 64px 1fr; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft);
  transition: padding .5s var(--ease), background .5s;
}
.pillars li:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(200,169,106,.06), transparent); }
.pillars__no { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--gold); }
.pillars strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ivory); letter-spacing: .01em; }
.pillars p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.bigtype {
  position: absolute; left: 0; bottom: -0.15em; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(120px, 22vw, 340px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(200, 169, 106, .1); letter-spacing: -.02em;
}

/* ---------- GBD map ---------- */
.gbd { background: var(--bg-2); }
.gbd__wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.axis-legend { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.axis-legend li { display: flex; align-items: center; gap: 14px; color: var(--ivory); font-size: 15px; }
.axis-legend span { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 16px; }
.axis-legend i { width: 28px; height: 2px; }
.axis-legend .c1, .road--1 { --c: #e3cc97; }
.axis-legend .c2, .road--2 { --c: #c8a96a; }
.axis-legend .c3, .road--3 { --c: #8c7444; }
.axis-legend i { background: var(--c); }
.gbd__map { margin: 0; color: var(--gold); border: 1px solid var(--line-soft); border-radius: 4px; padding: clamp(12px, 2vw, 28px); background: var(--bg); }
.road { stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2s var(--ease); }
.road--2 { transition-delay: .3s; }
.road--1 { transition-delay: .6s; stroke-width: 5; }
.is-in .road { stroke-dashoffset: 0; }
.station { opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease) var(--d), transform .8s var(--ease) var(--d); }
.is-in .station { opacity: 1; transform: none; }
.station circle { fill: var(--bg); stroke: var(--gold-2); stroke-width: 2; }
.station text { fill: var(--ivory); font-family: var(--sans); font-size: 15px; font-weight: 500; }
.map-note { fill: var(--muted); font-size: 11px; font-family: var(--sans); }

/* ---------- Services ---------- */
.service__head {
  display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px); padding-bottom: 48px; border-bottom: 1px solid var(--line-soft);
}
.service__head .h2 { margin: 0; }
.service__index { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 9vw, 140px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.service__intro { align-self: end; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; padding: 44px 36px 48px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px;
  transition: transform .6s var(--ease), border-color .6s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(200,169,106,.14), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--line); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__no { display: block; margin-bottom: 56px; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--gold); }
.card__title { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; color: var(--ivory); }
.card__ko { margin: 0 0 24px; font-size: 14px; color: var(--gold-2); }
.card__body { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.85; }

/* Band */
.band { position: relative; overflow: hidden; padding-block: clamp(120px, 16vw, 220px); text-align: center; }
.band__bg {
  position: absolute; inset: -20% 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(200,169,106,.06) 79px 80px),
    radial-gradient(ellipse at 50% 50%, rgba(200,169,106,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), #14120d 50%, var(--bg));
}
.band__inner { position: relative; }
.band__quote { margin: 0 auto; max-width: 960px; font-size: clamp(24px, 3.4vw, 46px); line-height: 1.5; font-weight: 300; color: var(--ivory); letter-spacing: -.03em; }

/* Strategy rows */
.strategy { border-top: 1px solid var(--line-soft); }
.strategy__row {
  position: relative; display: grid; grid-template-columns: 180px 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: 48px 0; border-bottom: 1px solid var(--line-soft);
}
.strategy__row::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.strategy__row:hover::before { transform: scaleX(1); }
.strategy__tag {
  justify-self: start; padding: 6px 16px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.strategy__main h3 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.2; color: var(--ivory); transition: color .4s, transform .6s var(--ease); }
.strategy__row:hover h3 { color: var(--gold-2); transform: translateX(8px); }
.strategy__ko { margin: 0; font-size: 14px; color: var(--muted); }
.strategy__body { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Bocheon ---------- */
.bocheon {
  background: var(--paper); color: #3b4048;
  --line-soft: rgba(21, 24, 29, .1);
}
.bocheon .h2 { color: var(--ink); }
.bocheon .h2 em, .bocheon em { color: var(--jade); }
.bocheon .body { color: #5b616b; max-width: 720px; }
.bocheon__head { max-width: 860px; margin-bottom: 72px; }
.bocheon__tagline { margin: -12px 0 24px; font-size: 18px; color: var(--ink); font-weight: 500; }

.bridge { display: flex; align-items: center; gap: 20px; margin-bottom: 72px; }
.bridge__node {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(79,163,143,.4);
  font-family: var(--serif); font-size: 22px; letter-spacing: .2em; color: var(--ink); font-weight: 600;
}
.bridge__node small { font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: #7a808a; font-weight: 400; margin-top: 4px; }
.bridge__node:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bridge__node:last-child small { color: var(--jade-2); }
.bridge__line { flex: 1 1 0; min-width: 0; width: 0; height: 60px; overflow: visible; }
.bridge__line path { fill: none; stroke: var(--jade); stroke-width: 1.5; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

.biz { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(21,24,29,.1); border: 1px solid rgba(21,24,29,.1); }
.biz__item { position: relative; padding: 48px 44px; background: var(--paper); transition: background .5s; overflow: hidden; }
.biz__item:hover { background: #fff; }
.biz__item--wide { grid-column: 1 / -1; background: var(--ink); color: #b9bec6; }
.biz__item--wide:hover { background: #1b1f25; }
.biz__item--wide h3 { color: var(--paper) !important; }
.biz__no { display: block; margin-bottom: 28px; font-family: var(--serif); font-size: 44px; font-style: italic; line-height: 1; color: var(--jade); }
.biz__item h3 { margin: 0 0 14px; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.biz__item p { margin: 0; font-size: 15px; line-height: 1.85; max-width: 720px; }
.wave { width: 100%; height: 70px; margin-top: 36px; }
.wave path { fill: none; stroke: var(--jade-2); stroke-width: 1.6; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.is-in .wave path, .wave.is-in path { animation: pulse 3.4s var(--ease) infinite; }
@keyframes pulse { 0% { stroke-dashoffset: 1400; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1400; } }

.vision { margin-top: 96px; padding: clamp(40px, 6vw, 80px); border: 1px solid rgba(79,163,143,.35); border-radius: 4px; text-align: center; }
.vision .eyebrow { justify-content: center; }
.vision__title { margin: 0 0 24px; font-size: clamp(24px, 3vw, 40px); line-height: 1.45; font-weight: 300; color: var(--ink); letter-spacing: -.03em; }
.vision .body { margin: 0 auto; }

/* ---------- Contact ---------- */
.contact { text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 80px; background: linear-gradient(var(--gold), transparent);
}
.contact .eyebrow { justify-content: center; }
.contact__title { margin: 0 0 64px; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.3; font-weight: 300; color: var(--ivory); letter-spacing: -.04em; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; text-align: left; }
.contact__box { padding: 40px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface); }
.contact__box h3 { margin: 0 0 10px; font-size: 20px; color: var(--ivory); font-weight: 600; }
.contact__box p { margin: 0 0 6px; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 56px calc(56px + env(safe-area-inset-bottom, 0px)); }
.footer__wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__sub, .footer__copy { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Chat (RAG placeholder) ---------- */
.chat-fab {
  position: fixed; z-index: 150; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(200, 169, 106, .35);
  transform: scale(0); transition: transform .6s var(--ease);
}
.is-ready .chat-fab { transform: scale(1); transition-delay: 2s; }
.chat-fab:hover { transform: scale(1.08); transition-delay: 0s; }
.chat-fab svg { width: 26px; height: 26px; position: relative; }
.chat-fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.chat {
  position: fixed; z-index: 160; right: 28px; bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 160px));
  display: flex; flex-direction: column;
  background: rgba(17, 20, 25, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.97); transform-origin: bottom right;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.chat.is-open { opacity: 1; visibility: visible; transform: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.chat__head strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .14em; color: var(--ivory); }
.chat__head span { font-size: 12px; color: var(--muted); }
.chat__close { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.chat__close:hover { color: var(--ivory); }
.chat__body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.msg--bot { background: var(--surface); color: var(--text); border-top-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--gold); color: var(--bg); border-top-right-radius: 4px; }
.chat__form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line-soft); }
.chat__form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 100px; border: 1px solid var(--line-soft); background: var(--bg); color: var(--ivory); font: inherit; font-size: 14px; }
.chat__form button { width: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--bg); font-size: 18px; cursor: pointer; }
.chat__form :disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr; }
  .service__head { grid-template-columns: auto 1fr; }
  .service__intro { grid-column: 1 / -1; }
  .strategy__row { grid-template-columns: 1fr 1fr; }
  .strategy__tag { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(11, 13, 16, .97);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav a { font-size: 22px; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .about__wrap, .gbd__wrap, .contact__grid { grid-template-columns: 1fr; }
  .biz { grid-template-columns: 1fr; }
  .strategy__row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .br-pc { display: none; }
  .bridge__node { width: 110px; height: 110px; font-size: 16px; }
  .biz__item { padding: 40px 28px; }
  .hero__skyline { height: 34%; }
}
@media (max-width: 480px) {
  .logo__word { font-size: 17px; letter-spacing: .24em; }
  .logo__mark { width: 28px; height: 28px; }
  .bridge { gap: 8px; }
  .bridge__node { width: 92px; height: 92px; font-size: 13px; }
  .bridge__node small { font-size: 9px; }
  .card { padding: 36px 26px 40px; }
  .chat-fab { right: 18px; width: 56px; height: 56px; }
  .chat { right: 16px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
