/* =========================================================
   AVATARMECHA — 공통 디자인 규칙
   색, 글자 크기, 간격, 모서리는 아래 변수만 바꾸면 전체에 적용됩니다.
   ========================================================= */
:root {
  /* 브랜드 색 (로고 기준) */
  --navy: #343c62;
  --navy-deep: #1e2440;
  --green: #25d560;
  --green-dark: #17a84a;

  /* 기본 색 */
  --ink: #111318;
  --ink-2: #4a4f5c;
  --ink-3: #8a8f9c;
  --line: #e6e8ee;
  --surface: #f5f6f8;
  --white: #ffffff;

  /* 글자 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fs-hero: clamp(36px, 5.2vw, 68px);
  --fs-h2: clamp(30px, 3.6vw, 46px);
  --fs-h3: clamp(19px, 1.6vw, 22px);
  --fs-body: 16px;
  --fs-small: 14px;

  /* 간격·모서리 */
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --section: clamp(88px, 11vw, 150px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --header-h: 72px;
  --shadow: 0 12px 40px rgba(17, 19, 24, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- 버튼 (모든 버튼은 알약 모양 하나로 통일) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: var(--navy); border-color: var(--navy); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--green { background: var(--green); border-color: var(--green); color: var(--navy-deep); }
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 헤더 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 16px; color: var(--navy); flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.gnb { display: flex; gap: 34px; margin-left: auto; }
.gnb a { font-size: 15px; font-weight: 600; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.gnb a:hover, .gnb a.is-active { color: var(--ink); }
.gnb a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green); border-radius: 2px; }
.header-cta { display: flex; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, background .25s; content: ""; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 섹션 공통 ---------- */
.section { padding: var(--section) 0; }
.section--gray { background: var(--surface); }
.section--dark { background: var(--navy-deep); color: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--green-dark); text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--green); }
.sec-title { font-size: var(--fs-h2); line-height: 1.22; font-weight: 800; letter-spacing: -.03em; }
.sec-desc { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 640px; }
.section--dark .sec-desc { color: rgba(255, 255, 255, .7); }

/* ---------- 히어로 (슬라이드) ---------- */
.hero { padding-top: var(--header-h); background: var(--white); }
.hero-viewport { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.slide { flex: 0 0 100%; min-height: min(760px, calc(100svh - var(--header-h))); display: flex; align-items: center; padding: 56px 0 104px; }
.slide--a { background: linear-gradient(135deg, #eef1f8 0%, #f7f8fb 55%, #e8f9ee 100%); }
.slide--b { background: linear-gradient(135deg, #1e2440 0%, #343c62 100%); color: #fff; }
.slide--c { background: linear-gradient(135deg, #f4f5f7 0%, #fff 60%, #eef6ff 100%); }
.slide .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.slide-kicker { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 18px; letter-spacing: .02em; }
.slide--b .slide-kicker { color: var(--green); }
.slide h1, .slide h2 { font-size: var(--fs-hero); line-height: 1.14; font-weight: 800; letter-spacing: -.035em; }
.slide p { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 520px; }
.slide--b p { color: rgba(255, 255, 255, .75); }
.slide .actions { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.slide-visual { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(17, 19, 24, .16); aspect-ratio: 16 / 10; }
.slide-visual img { width: 100%; height: 100%; object-fit: cover; }
.slide-visual--contain img { object-fit: contain; padding: 4%; }
.hero-ui { position: absolute; left: 0; right: 0; bottom: 36px; }
.hero-ui .wrap { display: flex; align-items: center; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(17, 19, 24, .2); transition: width .3s, background .3s; }
.dot.is-active { width: 34px; background: var(--ink); }
.hero.on-dark .dot { background: rgba(255, 255, 255, .35); }
.hero.on-dark .dot.is-active { background: #fff; }
.hero-ctrl { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(17, 19, 24, .2); display: grid; place-items: center; font-size: 14px; transition: border-color .2s, color .2s; }
.hero.on-dark .hero-ctrl { border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-ctrl:hover { border-color: currentColor; }
.hero-count { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hero.on-dark .hero-count { color: rgba(255, 255, 255, .6); }

/* ---------- 회사 소개 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; font-weight: 700; letter-spacing: -.02em; }
.about-lead em { font-style: normal; color: var(--green-dark); }
.about-text { margin-top: 24px; color: var(--ink-2); font-size: 17px; }
.about-text + .about-text { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; }
.stat b { display: block; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.stat b small { font-size: .5em; margin-left: 2px; font-weight: 700; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.tech-strip { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tech-strip strong { font-size: 14px; color: var(--ink-3); margin-right: 8px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- 사업 분야 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.biz {
  background: #fff; border-radius: var(--radius); padding: 36px 32px 34px; min-height: 280px;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.biz:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.biz-num { font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.biz-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: var(--green); display: grid; place-items: center; margin: 22px 0 24px; }
.biz-icon svg { width: 26px; height: 26px; }
.biz h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.02em; }
.biz p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.biz .tags { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.biz .tags span { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--surface); padding: 4px 10px; border-radius: 999px; }

/* ---------- 제품 ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); margin-bottom: 16px;
}
.feature-media { display: grid; gap: 12px; }
.feature-media img { border-radius: var(--radius); background: #fff; width: 100%; }
.feature-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green-dark); background: rgba(37, 213, 96, .12); padding: 6px 12px; border-radius: 999px; }
.feature h3 { margin-top: 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.feature > div > p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.spec-list { margin-top: 26px; display: grid; gap: 14px; }
.spec-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.spec-list li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231e2440' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.spec-list b { color: var(--ink); font-weight: 700; }
.feature .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.app-row { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.app-row img { width: 76px; height: 76px; border-radius: 12px; background: #fff; }
.app-row span { font-size: 14px; color: var(--ink-2); }
.app-row b { display: block; color: var(--ink); font-size: 15px; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-img { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod:hover .prod-img img { transform: scale(1.04); }
.prod-body { padding: 22px 22px 26px; }
.prod-cat { font-size: 13px; font-weight: 700; color: var(--green-dark); }
.prod h3 { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.prod p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- 솔루션 ---------- */
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sol { border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; }
.sol-media { aspect-ratio: 16 / 9; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; overflow: hidden; }
.sol-media img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; padding: 6% 4%; }
.sol-media--photo { grid-template-columns: 1fr 1fr; }
.sol-media--photo img { object-fit: cover; padding: 0; }
.sol-body { padding: clamp(28px, 3.4vw, 44px); }
.sol-body h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.sol-body > p { margin-top: 12px; color: rgba(255, 255, 255, .72); }
.sol-points { margin-top: 24px; display: grid; gap: 10px; }
.sol-points li { padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); font-size: 15px; color: rgba(255, 255, 255, .88); }
.sol-points li b { color: var(--green); margin-right: 8px; }

/* ---------- 포트폴리오 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .2s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pf { text-align: left; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pf:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pf-img { aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.pf-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s; }
.pf:hover .pf-img img { transform: scale(1.04); }
.pf-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pf-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--green-dark); }
.pf-meta span:last-child { color: var(--ink-3); font-weight: 600; }
.pf h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.45; }
.pf p { font-size: 14px; color: var(--ink-2); }
.pf-more { display: flex; justify-content: center; margin-top: 40px; }
.pf[hidden] { display: none; }

/* 확대 보기 */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 20, .86); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #fff; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; margin-top: 16px; font-size: 17px; font-weight: 700; text-align: center; }
.lightbox figcaption span { display: block; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }

/* ---------- 소식 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news { background: #fff; border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news time { font-size: 13px; font-weight: 700; color: var(--green-dark); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.news h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.news p { color: var(--ink-2); font-size: 15px; }
.news .link-arrow { margin-top: auto; align-self: flex-start; font-size: 14px; }

/* ---------- 연혁 ---------- */
.history { display: grid; gap: 0; }
.year { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.year:last-child { border-bottom: 1px solid var(--line); }
.year-head b { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--navy); }
.year-head span { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--green-dark); background: rgba(37, 213, 96, .12); padding: 4px 10px; border-radius: 999px; }
.year ul { display: grid; gap: 14px; padding-top: 6px; }
.year li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-size: 16px; color: var(--ink-2); }
.year li b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.refs { margin-top: 64px; border-radius: var(--radius-lg); background: var(--surface); padding: clamp(28px, 4vw, 48px); }
.refs summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; list-style: none; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary::after { content: "+"; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: transform .25s; }
.refs[open] summary::after { transform: rotate(45deg); }
.refs summary small { display: block; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-top: 4px; letter-spacing: 0; }
.refs ul { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.refs li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.refs li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- 문의 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.contact-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.contact-card > p { margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.form { margin-top: 28px; display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .2s;
}
.form select option { color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--green); }
.form .btn { margin-top: 8px; justify-self: start; }
.form-note { font-size: 13px; color: rgba(255, 255, 255, .55); }
.attach-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 700; cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.attach-btn:hover, .attach-btn:focus-within { border-color: var(--green); background: rgba(255, 255, 255, .06); }
.form .attach-btn { display: inline-flex; }   /* .form label 의 grid 설정 때문에 전체 폭으로 늘어나던 것을 막음 */
.attach-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.attach-hint { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.attach-list { margin-top: 10px; display: grid; gap: 6px; }
.attach-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.attach-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-list li small { color: rgba(255, 255, 255, .55); margin-left: 6px; }
.attach-list button { flex-shrink: 0; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.attach-list button:hover { background: rgba(255, 255, 255, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 500; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .65); }
.form .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); padding: 0; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-actions .btn { margin-top: 8px; }
.form-status { font-size: 14px; color: var(--green); min-height: 1.5em; }
.form-status.is-error { color: #ffb4a8; }
.form input:user-invalid, .form textarea:user-invalid { border-color: #ff8a7a; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.info-list li > .copy-row { color: rgba(255, 255, 255, .85); font-weight: 400; }
.copy { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); transition: background .2s; }
.copy:hover { background: rgba(255, 255, 255, .12); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-search { display: block; margin-top: 20px; max-width: 420px; }
.pf-search input { width: 100%; height: 46px; padding: 0 18px; font: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.pf-search input:focus { outline: none; border-color: var(--green-dark); }
.pf-empty { margin-top: 32px; text-align: center; color: var(--ink-3); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px; box-shadow: var(--shadow); transition: background .2s, transform .2s; }
.to-top:hover { background: var(--green-dark); transform: translateY(-2px); }
.to-top[hidden] { display: none; }
.info-list { margin-top: 28px; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; color: rgba(255, 255, 255, .85); }
.info-list li span { color: rgba(255, 255, 255, .55); font-weight: 600; }
.info-list a { color: var(--green); font-weight: 700; }
.map { margin-top: 24px; display: block; border-radius: var(--radius); overflow: hidden; position: relative; }
.map img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.map::after { content: "네이버 지도에서 보기 ↗"; position: absolute; right: 14px; bottom: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }

/* ---------- 푸터 ---------- */
.footer { background: #0e1120; color: rgba(255, 255, 255, .6); padding: 64px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer .brand { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: rgba(255, 255, 255, .85); font-weight: 600; }
.footer-nav a:hover { color: var(--green); }
.footer-info { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-copy { margin-top: 20px; color: rgba(255, 255, 255, .4); }

/* ---------- 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .gnb { gap: 22px; }
  .header-cta .btn--line { display: none; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .gnb, .header-cta { display: none; }
  .menu-btn { display: block; }
  /* 헤더의 blur 효과가 있으면 안쪽 고정 메뉴가 헤더 높이에 갇히므로 메뉴를 열 때는 끔 */
  .menu-open { overflow: hidden; }
  .menu-open .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }
  .menu-open .gnb {
    display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 12px var(--gutter) 40px; overflow-y: auto;
  }
  .menu-open .gnb a { font-size: 22px; font-weight: 800; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line); }
  .menu-open .gnb a.is-active::after { display: none; }
  .menu-open .header-cta { display: flex; position: fixed; left: var(--gutter); right: var(--gutter); bottom: 24px; }
  .menu-open .header-cta .btn { flex: 1; display: inline-flex; }
  .slide .wrap { grid-template-columns: 1fr; }
  .slide { align-items: flex-start; padding-top: 40px; }
  .slide-visual { order: -1; }
  .about-grid, .feature, .sol-grid, .contact-grid { grid-template-columns: 1fr; }
  .biz-grid, .pf-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .year { grid-template-columns: 1fr; gap: 18px; }
  .refs ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .biz-grid, .pf-grid, .prod-grid, .news-grid { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 22px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 80px 1fr; }
  .lb-nav { display: none; }
  .btn { height: 46px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 접근성 보정: 손가락으로 누르기 쉬운 크기 (최소 44px) ---------- */
.brand { min-height: 44px; }
.info-list a { display: inline-flex; align-items: center; min-height: 44px; }
.pf-more .btn, .filter { min-height: 44px; }
.menu-open .to-top { display: none; }   /* 모바일 메뉴가 열려 있을 때 '맨 위로' 버튼이 메뉴 버튼을 가리지 않게 */

/* ---------- 언어 선택 메뉴 (자바스크립트 없이도 열리는 details) ---------- */
.lang { position: relative; flex-shrink: 0; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: #fff; transition: border-color .2s, color .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--ink); color: var(--ink); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 176px; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 70; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lang-menu a:hover { background: var(--surface); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--ink); }
.lang-menu a[aria-current="true"]::after { content: "✓"; color: var(--green-dark); font-weight: 800; }
@media (max-width: 960px) {
  .lang { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}

/* ---------- 언어 안내 (브라우저 언어가 지원 언어일 때 한국어 첫 화면 아래에 한 번 보임) ---------- */
.lang-suggest { position: fixed; left: 16px; bottom: 16px; z-index: 65; display: flex; align-items: center; gap: 12px; max-width: min(540px, calc(100vw - 32px)); padding: 10px 8px 10px 18px; background: var(--navy-deep); color: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); font-size: 14px; line-height: 1.5; }
.lang-suggest span { flex: 1; }
.lang-suggest .btn { flex-shrink: 0; }
.lang-suggest-x { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; color: rgba(255, 255, 255, .8); font-size: 16px; }
.lang-suggest-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.menu-open .lang-suggest { display: none; }

/* ---------- 언어별 글꼴과 줄바꿈 ---------- */
:root:lang(ja) { --font: "Pretendard Variable", Pretendard, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:root:lang(zh-CN) { --font: "Pretendard Variable", Pretendard, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif; }
:root:lang(vi) { --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
:root:lang(ja) body, :root:lang(zh-CN) body { word-break: normal; line-break: strict; }   /* 한국어용 keep-all 은 일본어·중국어에서 줄이 넘치므로 끔 */
:root:lang(en) body, :root:lang(vi) body { word-break: normal; }
/* 한국어에 맞춘 좁은 글자 간격은 라틴 문자·성조 기호·일본어·중국어에서는 답답해 보여서 완화 */
:root:not(:lang(ko)) :is(.sec-title, .slide h1, .slide h2, .feature h3, .sol-body h3, .biz h3, .prod h3, .pf h3, .news h3, .res h3, .steps3 h3, .about-lead) { letter-spacing: -.01em; }
:root:lang(ja) :is(.sec-title, .slide h1, .slide h2, .feature h3, .sol-body h3, .biz h3, .prod h3, .pf h3, .news h3), :root:lang(zh-CN) :is(.sec-title, .slide h1, .slide h2, .feature h3, .sol-body h3, .biz h3, .prod h3, .pf h3, .news h3) { letter-spacing: 0; }
:root:not(:lang(ko)) .slide h1, :root:not(:lang(ko)) .slide h2 { line-height: 1.2; }

/* ---------- 긴 언어(영어·베트남어)에서 상단 메뉴가 두 줄로 꺾이거나 넘치지 않게 ---------- */
.gnb a { white-space: nowrap; }
:root:not(:lang(ko)) .gnb { gap: 22px; }
:root:not(:lang(ko)) .gnb a { font-size: 14px; }
:root:not(:lang(ko)) .header .wrap { gap: 24px; }
@media (max-width: 1240px) {
  :root:not(:lang(ko)) .header-cta .btn--line { display: none; }   /* 스토어 버튼은 좁은 화면에서 숨겨 메뉴 공간 확보 */
  :root:not(:lang(ko)) .gnb { gap: 18px; }
}
@media (max-width: 1100px) {
  :root:not(:lang(ko)) .header .wrap { gap: 16px; }
  :root:not(:lang(ko)) .gnb { gap: 14px; }
  :root:not(:lang(ko)) .gnb a { font-size: 13.5px; }
}

/* ---------- 모바일 헤더: 로고 + 언어 + 메뉴 버튼이 한 줄에 들어가도록 ---------- */
@media (max-width: 960px) {
  .header .wrap { gap: 12px; }
}
@media (max-width: 420px) {
  .header .brand { font-size: 14px; letter-spacing: .1em; gap: 8px; }
  .header .brand svg { width: 28px; height: 28px; }
  .lang summary { padding: 0 10px; gap: 4px; }
}

/* ---------- 문의 폼의 개인정보 처리방침 링크 ---------- */
.form .consent-link { margin: -4px 0 0 30px; font-size: 13px; }
.form .consent-link a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
