@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
/* 다국어 글리프 보강: KR 우선 → 간체(SC)·일본어(JP) 폴백. 유니코드 범위별 서브셋이라 한글 페이지는 SC/JP를 내려받지 않는다. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap");
/* TheMiracleSoft - modern bento B2B landing, light */

:root {
  --bg: #ffffff;
  --soft: #ecf2fe;
  --ink: #211E19;
  --muted: #556074;
  --faint: #8a94a6;
  --line: #e8ebf2;
  --line-2: #d6dced;
  --brand: #3e89ff;
  --brand-2: #0144b2;
  --brand-soft: #ecf2fe;
  --brand-glow: rgba(62, 137, 255, 0.12);
  --amber: #3d87ff;
  --ico: #3d87ff;   /* 작은 글씨 강조·아이콘 */
  --num: "Noto Sans KR", "Noto Sans SC", "Noto Sans JP", sans-serif; /* 숫자(지표·인덱스·연도) 통일 폰트 */
  --grad: linear-gradient(135deg, #0144b2, #3e89ff);
  --on-brand: #ffffff;

  --r: 18px;
  --r-sm: 12px;
  --sh: 0 2px 4px rgba(15,21,34,0.04), 0 22px 44px -26px rgba(15,21,34,0.22);
  --sh-sm: 0 1px 2px rgba(15,21,34,0.04), 0 10px 24px -18px rgba(15,21,34,0.14);
  --maxw: 1180px;

  --sans: "Pretendard", "Noto Sans KR", "Noto Sans SC", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Pretendard", "Noto Sans KR", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 106.25%; scroll-behavior: smooth; scrollbar-gutter: stable; scrollbar-width: none; -ms-overflow-style: none; } /* 기준 폰트 16→17px, 전체 소폭 확대 */
/* 스크롤바 숨김(휠 전용 섹션 스냅 애니메이션 우회 방지, section-scroll.js 참고) — 스크롤 기능 자체는 유지 */
html::-webkit-scrollbar { display: none; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; word-break: keep-all; }
/* 문단 끝에 몇 글자만 다음 줄로 넘어가는 위도우 방지 + 한글 어절 보존 */
p, li, dd, .lead, .fs-lead, .desc, .sub, .section-head p { text-wrap: pretty; word-break: keep-all; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; font-weight: 700; }
.skip:focus { left: 0; top: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ico); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ico); background: var(--brand-soft); border: 1px solid #cfe0ff; padding: 7px 14px; border-radius: 999px; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ico); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 솔루션 완성도 상태 배지 (TRL 단계 노출) */
.status-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; margin-bottom: 14px; }
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-badge.live { color: #0f7a3d; background: #e6f7ec; border-color: #bfe8cd; }
.status-badge.live .dot { background: #1fa155; }
.status-badge.early { color: #1b4fd6; background: #eaf1ff; border-color: #cfe0ff; }
.status-badge.early .dot { background: #3d87ff; }
.status-badge.poc { color: #b5590a; background: #fff1e0; border-color: #ffd8a8; }
.status-badge.poc .dot { background: #f2994a; }
.status-badge.dev { color: #5b6472; background: #eef0f3; border-color: #dde1e6; }
.status-badge.dev .dot { background: #8a94a3; }
.tile .status-badge { margin-bottom: 10px; }

/* chip icon */
.chip { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--ico); display: grid; place-items: center; flex-shrink: 0; }
.chip svg { width: 22px; height: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn .arw { transition: transform 0.15s; }
.btn:hover .arw { transform: translateX(3px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand .logo-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
/* tubelight nav — adapted from 21st.dev "tubelight-navbar" (ayushmxxn) */
.nav { position: relative; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 999px; padding: 5px; backdrop-filter: blur(10px); box-shadow: var(--sh-sm); }
.nav a { position: relative; z-index: 1; font-size: 16px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 999px; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }

/* moving tubelight lamp — slides between tabs (replicates framer-motion layoutId="lamp") */
.nav-lamp { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 999px; background: rgba(15,21,34,0.06); opacity: 0; pointer-events: none; transform: translateX(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease; }
.nav-lamp.show { opacity: 1; }
.nav-lamp__tube { position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 32px; height: 4px; background: var(--ink); border-radius: 999px 999px 0 0; }
.nav-lamp__tube .g { position: absolute; background: rgba(15,21,34,0.32); border-radius: 999px; }
.nav-lamp__tube .g1 { width: 48px; height: 24px; top: -10px; left: -8px; filter: blur(12px); }
.nav-lamp__tube .g2 { width: 32px; height: 24px; top: -6px;  left: 0;   filter: blur(12px); }
.nav-lamp__tube .g3 { width: 16px; height: 16px; top: -2px;  left: 8px; filter: blur(6px); }

.nav .nav-cta { margin-left: 6px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: none; }
.nav .nav-cta:hover { background: #000; color: #fff; }
.nav .nav-cta.active { background: var(--ink); color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* hero CTA row (used inside sol-hero) */
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* trust */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.trust .container { padding-top: 28px; padding-bottom: 28px; }
.trust p { text-align: center; font-size: 12.5px; color: var(--faint); margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.trust li { font-weight: 700; color: var(--muted); font-size: 1rem; }

/* section */
.section { padding: clamp(48px, 6.5vw, 84px) 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 700px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.1rem; }

/* ---------- BENTO (solutions) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s; }
.tile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; background: radial-gradient(circle, var(--brand-glow), transparent 70%); pointer-events: none; }
.tile:hover { box-shadow: var(--sh); transform: translateY(-4px); border-color: var(--line-2); }
.tile .chip { margin-bottom: 18px; }
.tile .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ico); }
.tile h3 { font-size: 1.4rem; font-weight: 800; margin: 8px 0 4px; }
.tile .sub { color: var(--ico); font-weight: 600; font-size: 0.95rem; }
.tile p { color: var(--muted); margin-top: 12px; font-size: 0.98rem; }
.tile .more { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 0.95rem; color: var(--ico); display: inline-flex; gap: 6px; align-items: center; }
.tile ul { margin-top: 16px; display: grid; gap: 8px; }
.tile li { font-size: 0.92rem; color: var(--ink); padding-left: 20px; position: relative; }
.tile li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ico); }
/* 4개 솔루션 카드 = 2×2 균일 크기 (grid-auto-rows:1fr 로 높이 동일) */

/* split (vision) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-panel { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.split-panel::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; background: radial-gradient(circle, var(--brand-glow), transparent 70%); pointer-events: none; }
.split-panel .chip { margin-bottom: 16px; }
.split-panel .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ico); }
.split-panel h3 { font-size: 1.35rem; font-weight: 800; margin: 8px 0 10px; }
.split-panel p { color: var(--muted); font-size: 0.98rem; }
.split-panel .items { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.split-panel .items span { font-size: 0.86rem; font-weight: 600; color: var(--ico); background: var(--brand-soft); padding: 6px 13px; border-radius: 999px; }

/* features / tech bento (2x2) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.feature:hover { box-shadow: var(--sh-sm); transform: translateY(-3px); border-color: var(--line-2); }
.feature .chip { margin-bottom: 16px; }
.feature .num { font-family: var(--num); font-weight: 800; font-size: 1.05rem; color: var(--ico); background: var(--brand-soft); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; }
.features.cols3 { grid-template-columns: repeat(3, 1fr); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-align: center; }
.stat .n { font-family: var(--num); font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; color: var(--amber); }
.stat .l { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* references */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 22px 14px; text-align: center; font-weight: 700; color: var(--muted); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.case .m { font-family: var(--disp); font-weight: 800; font-size: 1.4rem; color: var(--amber); }
.case h3 { font-size: 1.12rem; font-weight: 800; margin: 14px 0 8px; }
.case p { color: var(--muted); font-size: 0.94rem; }

/* tech list (solution detail pages) */
.tech-list { display: grid; gap: 14px; }
.tech-row { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 24px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: baseline; }
.tech-row .k { font-weight: 800; color: var(--ico); font-size: 0.95rem; }
.tech-row .v { color: var(--muted); font-size: 0.96rem; }
.tech-row .v b { color: var(--ink); font-weight: 700; }

/* news */
.news { max-width: 880px; margin: 0 auto; }
.news a { display: grid; grid-template-columns: 108px 1fr auto; gap: 20px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; margin-bottom: 12px; transition: box-shadow 0.15s, transform 0.15s; }
.news a:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.news .date { color: var(--faint); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.news .t { font-weight: 600; color: var(--ink); }
.news .cat { font-size: 0.76rem; font-weight: 700; color: var(--ico); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.news-more { text-align: center; margin-top: 24px; }

/* form */
.form { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-sm); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 0.85rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: 0.82rem; color: var(--faint); }

/* solution detail hero */
.sol-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 56px); }
.sol-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 25% -10%, var(--brand-glow), transparent 70%); pointer-events: none; }
.sol-hero .container { position: relative; }
.sol-hero .pill { margin-bottom: 16px; }
.sol-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; }
.sol-hero .lead { color: var(--muted); font-size: 1.14rem; max-width: 54ch; margin: 16px 0 0; }
.sol-hero .hero-cta { justify-content: flex-start; margin-top: 28px; }

/* figure */
.figure { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--soft); box-shadow: var(--sh-sm); }
.figure img { width: 100%; display: block; }
.figure figcaption { font-size: 12px; color: var(--faint); padding: 13px 18px; background: #fff; border-top: 1px solid var(--line); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.step .n { font-family: var(--num); font-weight: 800; color: var(--ico); font-size: 0.9rem; letter-spacing: 0.05em; }
.step h4 { font-size: 1.1rem; font-weight: 800; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* cta band */
.cta-band { background: #0145b4; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(255,255,255,0.12), transparent 70%); }
.cta-band .container { position: relative; padding: clamp(52px, 7vw, 88px) 24px; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 900; }
.cta-band p { color: rgba(255,255,255,0.86); margin: 16px auto 30px; max-width: 46ch; font-size: 1.08rem; }
.cta-band .btn-primary { background: #fff; color: #0145b4; box-shadow: none; }
.cta-band .btn-primary:hover { background: #e8f0ff; }

/* footer */
.site-footer { background: #202020; color: #c4cad6; padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .desc { font-size: 0.92rem; color: #8c95a6; max-width: 34ch; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7b859a; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: #c4cad6; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 24px; font-size: 0.82rem; color: #7b859a; line-height: 1.7; }
.footer-bottom p { margin: 0 0 4px; }
.footer-bottom p:last-child { margin-bottom: 0; }

/* reveal */
.rev { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.rev.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; backdrop-filter: none; padding: 8px 0; transform: translateY(-160%); transition: transform 0.3s; box-shadow: var(--sh); }
  .nav.open { transform: none; }
  .nav a { padding: 15px 24px; border-radius: 0; }
  .nav a.active { background: var(--soft); }
  .nav a.active::after { display: none; }
  .nav .nav-cta { margin: 10px 24px; text-align: center; justify-content: center; border-radius: 8px; }
  .burger { display: flex; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .split, .tech-row, .footer-grid { grid-template-columns: 1fr; }
  .features, .features.cols3, .stats, .cases, .logos, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 28px; }
}
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .features, .features.cols3, .stats, .cases, .logos, .steps { grid-template-columns: 1fr; }
  .news a { grid-template-columns: 1fr auto; }
  .news .date { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rev { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; }
}

/* 모바일(≤900px)에서는 스크롤 등장(reveal) 애니메이션 비활성 — 콘텐츠 즉시 표시 */
@media (max-width: 900px) {
  .rev, .rev.in,
  .split.rev > *, .features.rev > *, .bento.rev > *, .stats.rev > *, .cases.rev > *, .tech-list.rev > *, .logos.rev > *,
  .ed-rows.rev > *, .ed-stats.rev > *, .ed-cases.rev > *, .ed-about-grid.rev > *,
  .flow-section .rev, .fs-rows.rev > *, .fs-cols.rev > *, .fs-stats.rev > *, .fs-cases.rev > *,
  .tl-year, .tl-ev {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* hero badge sparkle */
.sol-hero .pill svg { width: 14px; height: 14px; fill: currentColor; }

/* hero CTA pills (21st style) */
.hero-cta .btn { border-radius: 999px; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--sh-sm); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s, border-color 0.2s, color 0.2s; z-index: 90; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }

.hero-cta .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -14px var(--brand); }
.hero-cta .btn-primary:hover { background: var(--brand-2); }
.hero-cta .btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.hero-cta .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* floating elegant shapes */
.geo { position: absolute; z-index: 1; pointer-events: none; }
.geo span { display: block; position: relative; border-radius: 999px; border: 2px solid rgba(255,255,255,0.14); background: linear-gradient(to right, var(--c), transparent); backdrop-filter: blur(2px); box-shadow: 0 8px 32px rgba(255,255,255,0.08); animation: floaty 12s ease-in-out infinite; }
.geo span::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.16), transparent 70%); }
@keyframes floaty { 50% { transform: translateY(16px); } }
.geo-1 { left: -7%; top: 15%; transform: rotate(12deg); }
.geo-1 span { width: clamp(260px, 42vw, 520px); height: 116px; --c: rgba(99,102,241,0.18); }
.geo-2 { right: -6%; top: 66%; transform: rotate(-15deg); }
.geo-2 span { width: clamp(220px, 34vw, 440px); height: 100px; --c: rgba(244,63,94,0.18); animation-delay: -3s; }
.geo-3 { left: 4%; bottom: 6%; transform: rotate(-8deg); }
.geo-3 span { width: clamp(160px, 22vw, 280px); height: 74px; --c: rgba(139,92,246,0.18); animation-delay: -5s; }
.geo-4 { right: 14%; top: 10%; transform: rotate(20deg); }
.geo-4 span { width: clamp(120px, 16vw, 200px); height: 56px; --c: rgba(245,158,11,0.16); animation-delay: -2s; }
.geo-5 { left: 20%; top: 6%; transform: rotate(-25deg); }
.geo-5 span { width: clamp(90px, 12vw, 150px); height: 42px; --c: rgba(34,211,238,0.16); animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .geo span { animation: none; } }

/* ===== History timeline (scroll-animated) ===== */
.timeline { position: relative; max-width: 760px; margin: 8px auto 0; padding-left: 46px; }
.tl-track { position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--brand), var(--brand-2)); box-shadow: 0 0 12px 1px rgba(62, 137, 255,0.35); transition: height 0.1s linear; }
.tl-group { position: relative; padding-bottom: 26px; }
.tl-group:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--num); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.tl-year.in { opacity: 1; transform: none; }
.tl-ev { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 14px; padding: 11px 0; opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.tl-ev.in { opacity: 1; transform: none; }
.tl-ev + .tl-ev { border-top: 1px solid var(--line); }
.tl-dot { position: absolute; left: -40px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--faint); transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease; }
.tl-ev.in .tl-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(62, 137, 255,0.14); }
.tl-mon { font-family: var(--num); font-weight: 700; font-size: 0.9rem; color: var(--brand); padding-top: 2px; }
.tl-mon::after { content: "월"; font-family: var(--num); font-weight: 500; font-size: 0.72rem; color: var(--faint); margin-left: 1px; }
.tl-txt .tl-t { font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.45; word-break: keep-all; }
.tl-txt .tl-d { font-size: 0.88rem; color: var(--muted); margin-top: 3px; word-break: keep-all; }
.tl-cat { align-self: center; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--amber); background: var(--brand-soft); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
@media (max-width: 620px) {
  .timeline { padding-left: 34px; }
  .tl-track { left: 7px; }
  .tl-ev { grid-template-columns: 30px 1fr; }
  .tl-dot { left: -31px; }
  .tl-cat { grid-column: 2; justify-self: start; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-year, .tl-ev { opacity: 1; transform: none; transition: none; }
  .tl-fill { transition: none; }
}

/* ===== Headless board (소식/공지) ===== */
.board-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.board-tabs .tab { font-weight: 700; font-size: 0.95rem; color: var(--muted); padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.board-tabs .tab:hover { color: var(--brand); border-color: var(--line-2); }
.board-tabs .tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.board-wrap { max-width: 860px; margin: 0 auto; }
.board-empty { text-align: center; color: var(--faint); padding: 46px 0; }
.news .t .cmt { color: var(--brand); font-style: normal; font-weight: 700; font-size: 0.85em; }
.post { max-width: 820px; margin: 0 auto; }
.post-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 0.9rem; }
.post-body { font-size: 1.04rem; line-height: 1.8; color: var(--ink); word-break: keep-all; }
.post-body img { border-radius: var(--r-sm); margin: 14px 0; }
.board-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-weight: 700; color: var(--muted); }
.board-back:hover { color: var(--brand); }

/* 본문 기본 굵기 상향 — Pretendard Medium(500)로 소형 텍스트도 또렷하게 */
body{font-weight:700}

/* 한글 줄바꿈 — 어절(단어) 단위로만 개행 (전 요소 상속) */
body { word-break: keep-all; overflow-wrap: break-word; }

/* ============================================================
   섹션 스크롤 (스토리 페이지: 랜딩/회사소개)
   · 휠 이동은 js/section-scroll.js 가 담당(한 번 = 다음 섹션)
   · 각 flow-section 을 전체화면 슬라이드로 만들어 섹션 경계를 명확히
   · scroll-snap 은 키보드/스크롤바용 부드러운 폴백(proximity)
   · 데스크톱 폭에서만
   ============================================================ */
@media (min-width: 901px) {
  /* 스토리 페이지(랜딩/회사소개) 섹션 = 100vh 슬라이드. 스냅 이동은 js/section-scroll.js 가 전담
     (CSS scroll-snap 은 JS 스무스 스크롤과 충돌해 어긋남을 유발하므로 사용하지 않음) */
  .flow-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  /* 연혁(타임라인) 섹션은 롤백: 전체화면 슬라이드 해제 → 자연 높이·자연 스크롤(스크롤 리빌) */
  .flow-section:has(.timeline) { min-height: 0; display: block; }
}

/* ===== 언어 전환 드롭다운 (헤더) ===== */
.lang-switch { position: relative; margin-left: 6px; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: color .15s, border-color .15s; }
.lang-btn:hover { color: var(--ink); border-color: var(--line-2); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn .lang-caret { width: 13px; height: 13px; opacity: .7; transition: transform .2s; }
.lang-switch.open .lang-btn .lang-caret { transform: rotate(180deg); }
.lang-btn .lang-cur { letter-spacing: .01em; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 132px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s, transform .16s; z-index: 120; }
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li { list-style: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.lang-menu button:hover { background: var(--brand-soft); color: var(--brand); }
.lang-menu button.on { color: var(--brand); }
.lang-menu button.on::after { content: "✓"; font-weight: 800; }
/* .site-header 배경은 hdr-dark 여부와 무관하게 항상 반투명 흰색(rgba(255,255,255,.82))으로 고정된다.
   과거 .hdr-dark 시 .lang-btn 을 흰 텍스트로 바꾸는 규칙이 있었으나, 헤더 배경이 실제로는 어두워지지
   않아 흰 배경 위에 흰 텍스트가 겹쳐 버튼이 안 보이는 버그였다(내비 링크는 이 색 전환이 없어 항상 정상).
   나머지 nav 링크처럼 기본 스타일(밝은 배경 기준)을 상태와 무관하게 유지한다. */
@media (max-width: 860px) { .lang-menu { right: auto; left: 0; } }
