/* 대승무역 — 업계 표준형 기업 사이트 (승인 시안 comp-b + comp-c 띠) */
:root {
  --navy: #0b1c44;
  --text: #1f2937;
  --muted: #4f5b6b;
  --blue: #0b63d6;
  --blue-dark: #0a52b2;
  --line: #e2e6eb;
  --soft: #f3f5f8;
  --white: #ffffff;
  --radius: 8px;
  --gutter: clamp(16px, 3.5vw, 56px);
  --wide: 1600px;
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header: clamp(60px, 5.3vw, 85px);
}
.lang-zh { --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); word-break: keep-all; overflow-wrap: anywhere; }
.lang-zh { word-break: normal; }
.lang-zh .menu { gap: clamp(12px, 1.6vw, 28px); font-size: clamp(14px, 1.08vw, 17px); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.i-sm { width: .9em; height: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 14px; z-index: 30; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ── header ─────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; height: var(--header); display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.logo { display: flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo > span { display: flex; flex-direction: column; }
.logo .mark { height: clamp(34px, 3vw, 50px); width: auto; flex: none; }
.logo b { font-size: clamp(18px, 1.75vw, 28px); font-weight: 800; letter-spacing: .01em; }
.logo small { font-size: clamp(9px, .75vw, 12px); font-weight: 600; letter-spacing: .38em; color: var(--muted); margin-top: 6px; }
.menu { display: flex; gap: clamp(14px, 1.9vw, 32px); margin-right: auto; font-size: clamp(15px, 1.15vw, 18px); font-weight: 600; color: var(--navy); }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--navy); border-bottom-color: var(--navy); }
/* desktop: the nav is a plain row; the popover attribute only matters on small screens */
.menu[popover] { position: static; inset: auto; width: auto; height: auto; margin: 0 auto 0 0; padding: 0; border: 0; background: none; color: var(--navy); overflow: visible; }
.menu-close, .menu-langs, .menu-btn { display: none; }
.langs { display: flex; gap: 8px; align-items: center; font-size: clamp(13px, 1vw, 16px); color: #9aa3ae; }
.langs a { text-decoration: none; color: var(--muted); padding: 10px 2px; }
.langs a[aria-current] { color: var(--navy); font-weight: 700; }
.call-pill { display: inline-flex; align-items: center; gap: 8px; background: #0a3466; color: var(--white); text-decoration: none; border-radius: 999px; padding: 0 clamp(14px, 1.2vw, 19px); height: clamp(40px, 2.65vw, 42px); font-size: clamp(13px, .98vw, 16px); font-weight: 500; letter-spacing: -.005em; font-weight: 600; white-space: nowrap; transition: background-color .2s; }
/* header pieces never wrap; long menus switch to the menu button instead */
.logo, .langs, .call-pill, .menu a { flex: none; white-space: nowrap; }
.call-pill:hover { background: #142b63; }
.call-pill .i { display: none; }

/* ── hero: full-bleed photo, copy on a navy fade ── */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 46vw, 760px); overflow: hidden; color: var(--white); background: var(--navy); }
.hero picture { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 52, .9) 0%, rgba(8, 20, 52, .78) 34%, rgba(8, 20, 52, .25) 66%, rgba(8, 20, 52, .05) 100%); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 64px var(--gutter); }
.hero h1 { font-size: clamp(34px, 4.1vw, 66px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; color: var(--white); text-wrap: balance; }
.lang-ko .hero h1 { white-space: nowrap; }
.lang-en .hero h1 { font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -.02em; max-width: 14em; }
.lang-zh .hero h1 { font-weight: 900; letter-spacing: 0; }
.nw { white-space: nowrap; }
.facts { text-wrap: balance; max-width: 34em; margin-top: clamp(18px, 1.6vw, 26px); padding-top: clamp(18px, 1.6vw, 26px); border-top: 1px solid rgba(255, 255, 255, .28); font-size: clamp(16px, 1.35vw, 22px); font-weight: 500; color: rgba(255, 255, 255, .88); letter-spacing: -.01em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 2.4vw, 40px); }
.hero .btn { min-height: clamp(50px, 3.4vw, 56px); font-size: clamp(15px, 1.15vw, 18px); font-weight: 700; padding: 0 30px; border-radius: 6px; }
.hero .btn-line { border: 1.5px solid rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.hero .btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: clamp(48px, 3.5vw, 56px); padding: 0 clamp(22px, 2.5vw, 40px); border-radius: 6px; font-size: clamp(15px, 1.15vw, 18px); font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--blue-dark); }
.btn-line { border: 1.5px solid var(--blue); color: var(--blue); background: var(--white); }
.btn-line:hover { background: #eef4fd; }
.btn-lg { font-size: 18px; min-height: 58px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }

/* ── section heads ──────────────────── */
.eyebrow, .greeting .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.sec-head .lede, .process .lede { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.15vw, 19px); max-width: 40em; }

/* ── business ───────────────────────── */
.business { display: grid; grid-template-columns: 62fr 29.5fr; gap: 0 2%; max-width: var(--wide); margin: 0 auto; padding: clamp(64px, 7vw, 112px) var(--gutter) 0; }
.sec-head { grid-column: 1 / -1; margin-bottom: clamp(28px, 3vw, 48px); }
.features { grid-column: 1; grid-row: 2; min-width: 0; }
.feature { display: none; }
.feature.is-active, .feature:target { display: block; }
.features:has(.feature:target) .feature.is-active:not(:target) { display: none; }
.feature h3:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .feature.is-active { animation: feat-in .45s var(--ease); }
}
@keyframes feat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.oem-visual { position: relative; border-radius: 10px; overflow: hidden; }
/* keeps the caption readable over the photo: the plate's own white fade, extended */
.oem-visual::after { content: ""; position: absolute; inset: 0 55% 0 0; background: linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,.55) 70%, rgba(255,255,255,0)); pointer-events: none; }
.oem-copy { z-index: 1; }
.oem-visual img { width: 100%; height: clamp(240px, 25.3vw, 405px); object-fit: cover; }
.oem-copy { position: absolute; left: 3.9%; top: 28.5%; max-width: 40%; }
.oem-copy h3 { font-size: clamp(24px, 2.75vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.oem-copy p { max-width: 22em; margin-top: clamp(8px, .8vw, 13px); font-size: clamp(14px, 1.2vw, 19px); line-height: 1.5; color: var(--muted); }
.oem-more { grid-column: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; padding: 28px 4px 8px; }
.oem-more > p { color: var(--text); max-width: 34em; font-size: 17px; }
.specs div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--navy); font-weight: 700; }
.lang-en .specs div { grid-template-columns: 9em 1fr; }
.specs dd { color: var(--text); }

.biz-list { grid-column: 2; grid-row: 2; list-style: none; padding: 0; align-self: start; }
.biz-list li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
.biz-list li[hidden] { display: none; }

.biz-row picture { display: block; }
.biz-row { text-decoration: none; padding: clamp(4px, .4vw, 6px) 0; display: grid; grid-template-columns: minmax(96px, 10vw) 1fr auto; align-items: center; gap: clamp(14px, 1.1vw, 18px); cursor: pointer; border-radius: var(--radius); }
.biz-row img { width: 100%; aspect-ratio: 160 / 86; object-fit: cover; border-radius: var(--radius); }
.lang-en .biz-name { font-size: clamp(15px, 1.4vw, 23px); }
.biz-name { font-size: clamp(16px, 1.6vw, 26px); font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.biz-row .i { color: var(--navy); transition: transform .3s var(--ease); margin-right: 4px; }
.biz-row:hover .biz-name { color: var(--blue); }
.biz-row:hover .i { transform: translateX(4px); }

/* ── numbers band ───────────────────── */
.stats { margin-top: clamp(64px, 7vw, 112px); background: var(--navy); color: var(--white); }
.stats ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: clamp(36px, 3.6vw, 60px) clamp(16px, 2vw, 32px); }
.stats li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.stats b { display: flex; align-items: baseline; gap: 6px; font-size: clamp(44px, 4.4vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats small { font-size: clamp(16px, 1.3vw, 22px); font-weight: 600; letter-spacing: 0; color: #9cc0f5; }
.stats span { display: block; margin-top: 14px; font-size: clamp(14px, 1.05vw, 17px); color: #c9d4e8; }

/* ── process band (comp-c) ──────────── */
.process { background: var(--soft); padding: clamp(64px, 7vw, 112px) 0; }
.process h2, .sec-head h2, .company h2, .contact h2 { font-size: clamp(28px, 2.7vw, 44px); font-weight: 800; color: var(--navy); letter-spacing: -.025em; line-height: 1.25; }
.lang-zh .process h2, .lang-zh .sec-head h2, .lang-zh .company h2, .lang-zh .contact h2, .lang-zh .oem-copy h3 { font-weight: 900; letter-spacing: 0; }
.steps { list-style: none; padding: 0; margin-top: clamp(36px, 3.6vw, 56px); display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.2vw, 20px); }
.steps li { background: var(--white); border-top: 3px solid var(--navy); padding: clamp(20px, 1.8vw, 28px) clamp(16px, 1.4vw, 24px) clamp(24px, 2vw, 32px); }
.step-no { display: block; font-size: clamp(30px, 2.6vw, 42px); font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 18px; font-size: clamp(18px, 1.3vw, 21px); font-weight: 700; color: var(--navy); }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .steps li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
  .js .steps.in li { opacity: 1; transform: none; }
}

/* ── company ────────────────────────── */
.company { padding: clamp(64px, 7vw, 112px) 0; }
.company .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); }
.greeting p { margin-top: 1em; max-width: 38em; color: var(--text); }
.greeting h2 + p { margin-top: 28px; }
.greeting .sign { font-weight: 700; color: var(--navy); }
.history { padding-top: 40px; }
.history h3 { font-size: 19px; font-weight: 700; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.history ol { list-style: none; padding: 0; }
.history li { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.history time { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }

/* ── contact ────────────────────────── */
.contact { background: var(--soft); padding: clamp(64px, 7vw, 112px) 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-copy > p:not([class]) { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 28em; }
.big-tel { margin-top: clamp(28px, 2.6vw, 40px); }
.big-tel span { display: block; font-size: 15px; font-weight: 700; color: var(--muted); }
.big-tel a { display: inline-block; margin-top: 4px; font-size: clamp(36px, 3.6vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.big-tel a:hover { color: var(--blue); }
.contact-copy .note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; min-height: 44px; font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; color: var(--blue); }
.contact-list { border-top: 2px solid var(--navy); }
.contact-list div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #d5dbe3; }
.contact-list dt { color: var(--navy); font-weight: 700; font-size: 15px; }
.desk { display: block; }
.desk + .desk { margin-top: 4px; }
.desk b { color: var(--navy); margin-right: 6px; }
.contact-list dd a { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; min-height: 44px; }

/* ── footer ─────────────────────────── */
.foot { background: var(--navy); color: #c9d2e3; padding: 40px 0 48px; font-size: 14px; }
.foot b { color: var(--white); font-size: 15px; }
.foot p + p { margin-top: 6px; }
.foot .note { color: #9fb0cf; }

/* ── responsive ─────────────────────── */
@media (max-width: 1279px) {
  .menu { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); border-radius: var(--radius); cursor: pointer; }
  .menu-btn .i { width: 26px; height: 26px; }
  .langs { display: none; }
  .menu:popover-open { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 0 0 auto auto; width: min(360px, 100vw); height: 100dvh; margin: 0; padding: 72px 28px 28px; border: 0; background: var(--white); box-shadow: -20px 0 40px -20px rgba(11, 28, 68, .3); font-size: 18px; }
  .menu:popover-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu::backdrop { background: rgba(11, 28, 68, .35); }
  .menu-close { display: inline-flex; position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: var(--navy); cursor: pointer; }
  .menu-langs { display: flex; gap: 10px; margin-top: 20px; color: #9aa3ae; }
  .menu-langs a { border: 0 !important; padding: 10px 6px !important; }
  .menu-langs a[aria-current] { color: var(--navy); font-weight: 700; }
  .business { grid-template-columns: 1fr; }
  .biz-list { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero { min-height: 560px; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(8, 20, 52, .94) 0%, rgba(8, 20, 52, .8) 45%, rgba(8, 20, 52, .2) 100%); }
  .hero-copy { padding: 48px var(--gutter) 40px; }
  .lang-ko .hero h1 { white-space: normal; }
  .oem-copy { position: static; max-width: none; padding: 20px 4px 0; }
  .oem-visual::after { display: none; }
  .oem-visual { overflow: visible; }
  .oem-visual img { border-radius: 10px; height: 52vw; }
  .oem-more { grid-template-columns: 1fr; gap: 18px; }
  .company .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .history { padding-top: 0; }
  .stats ul { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}
@media (max-width: 560px) {
  :root { --header: 60px; }
  body { font-size: 16px; }
  .call-pill { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .call-pill > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .call-pill .i { display: block; width: 20px; height: 20px; }
  .top { gap: 6px; }
  .logo b { font-size: 17px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── products (품목 타일) ───────────── */
.products { padding-top: clamp(64px, 7vw, 112px); }
.items { list-style: none; padding: 0; margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.items li { background: var(--soft); border-radius: 10px; overflow: hidden; }
.items img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.items span { display: block; padding: 12px 16px 14px; font-weight: 700; color: var(--navy); font-size: clamp(15px, 1.1vw, 18px); }

/* ── map (오시는 길) ───────────────── */
.map { grid-column: 1 / -1; margin-top: clamp(8px, 1vw, 16px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #e9edf3; }
.map iframe { display: block; width: 100%; height: clamp(300px, 28vw, 420px); border: 0; }

/* ── footer, 3단 ────────────────────── */
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr .7fr; gap: 28px clamp(24px, 4vw, 64px); }
.foot .mark { display: block; height: 52px; width: auto; color: var(--white); margin-bottom: 14px; }
.foot a { color: #c9d2e3; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-h { color: var(--white); font-weight: 700; margin-bottom: 8px; }
.foot-nav a, .foot-lang a { display: block; padding: 3px 0; }
.foot-nav p + a, .foot-lang p + a { margin-top: 0; }
.foot-lang a[aria-current] { color: var(--white); font-weight: 700; }
.foot-note { grid-column: 1 / -1; margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); color: #9fb0cf; }
.copy { grid-column: 1 / -1; margin-top: 0 !important; }
@media (max-width: 860px) {
  .items { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ── materials (CERAVIDA): 탭마다 색·분위기가 바뀌는 어두운 띠 ── */
.materials { position: relative; overflow: hidden; margin-top: clamp(64px, 7vw, 112px); padding: clamp(64px, 7vw, 112px) 0; background: #070f24; color: #e6ecf7; --c1: #1d5fd0; --c2: #3bb8e8; }
[data-cat="fabric"] { --c1: #138a72; --c2: #5bd3b0; }
[data-cat="batting"] { --c1: #d99a00; --c2: #ffcf4d; }
[data-cat="fiber"] { --c1: #e8532c; --c2: #ff9d3c; }
[data-cat="fresh"] { --c1: #15a35f; --c2: #4de3a8; }
.mat-bg { position: absolute; inset: 0; pointer-events: none; }
/* 색 변수를 등록해 두면 탭이 바뀔 때 그라데이션 색도 부드럽게 넘어간다 (blur 필터 대신 그라데이션: 훨씬 가볍다) */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #1d5fd0; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #3bb8e8; }
.glow { position: absolute; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; border-radius: 50%; background: radial-gradient(closest-side, var(--c1), transparent); opacity: .5; transition: --c1 1.2s ease, --c2 1.2s ease; will-change: transform; }
.g1 { left: -15%; top: -25%; animation: drift1 18s ease-in-out infinite alternate; }
.g2 { right: -20%; bottom: -35%; background: radial-gradient(closest-side, var(--c2), transparent); opacity: .38; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14%, 12%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12%, -14%) scale(.9); } }
.strands { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c2); opacity: .35; transition: color 1.2s ease; }
.strands path { stroke-dasharray: 16 30; animation: flow 18s linear infinite; }
.strands .s2 { animation-duration: 26s; stroke-dasharray: 8 40; }
.strands .s3 { animation-duration: 22s; animation-direction: reverse; }
.strands .s4 { animation-duration: 30s; stroke-dasharray: 24 36; }
.strands .s5 { animation-duration: 20s; animation-direction: reverse; stroke-dasharray: 10 24; }
@keyframes flow { to { stroke-dashoffset: -460; } }
.materials .wrap { position: relative; }
.mat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.materials .eyebrow { color: var(--c2); transition: color .8s; }
.materials h2 { font-size: clamp(28px, 2.7vw, 44px); font-weight: 800; color: #fff; letter-spacing: -.025em; line-height: 1.25; }
.materials .lede { margin-top: 14px; color: #b7c3da; font-size: clamp(16px, 1.15vw, 19px); max-width: 38em; }
.mat-logo { flex: none; display: block; background: #fff; border-radius: 12px; padding: 14px 18px; width: clamp(200px, 22vw, 320px); }
.mat-logo img { width: 100%; height: auto; }
.mat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 3vw, 44px); }
.mat-tabs button { appearance: none; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #dbe4f5; border-radius: 999px; padding: 10px 20px; font: inherit; font-size: clamp(15px, 1.05vw, 17px); font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.mat-tabs button:hover { background: rgba(255, 255, 255, .14); }
.mat-tabs button[aria-selected="true"] { background: var(--c2); color: #07122b; border-color: var(--c2); }
.mat-panel[hidden] { display: none; }
.mat-panel { display: grid; min-height: 250px; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(28px, 3vw, 44px); }
@media (prefers-reduced-motion: no-preference) { .mat-panel:not([hidden]) { animation: feat-in .5s var(--ease); } }
.mat-kicker { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--c2); font-weight: 700; transition: color .8s; }
.mat-panel h3 { margin-top: 10px; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.25; letter-spacing: -.02em; color: #fff; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { border: 1px solid var(--c2); color: var(--c2); border-radius: 6px; padding: 6px 12px; font-size: 14px; font-weight: 600; transition: color .8s, border-color .8s; }
.mat-points { list-style: none; padding: 0; margin: 0; }
.mat-copy .mat-points { margin-top: 24px; }
.mat-points li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid rgba(255, 255, 255, .14); color: #dfe6f3; font-size: clamp(15px, 1.1vw, 17px); }
.mat-points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mat-points li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--c2); transition: background-color .8s; }
.mat-note { margin-top: 32px; color: #8f9db8; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .glow, .strands path { animation: none; } }
@media (max-width: 860px) {
  .mat-head { flex-direction: column; align-items: flex-start; }
  .mat-logo { width: 200px; }
  .mat-panel { grid-template-columns: 1fr; gap: 20px; }
  .glow { width: 90vw; height: 90vw; }
}

/* 메인 띠의 '자세히 보기' */
.mat-more { margin-top: 22px; border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; gap: 8px; }
.mat-more:hover { background: rgba(255, 255, 255, .12); }

/* ── 기능성 소재 전용 페이지: 페이지 전체가 어두운 분위기, body[data-cat] 으로 색이 바뀐다 ── */
.theme-dark { background: #070f24; color: #e6ecf7; }
[data-cat="yarn"] { --c1: #d63a2a; --c2: #ff6a4d; }   /* 발열 원사: 붉은 주황 (냉감 원사의 얼음빛과 대비) */
[data-cat="cool"] { --c1: #3b62d9; --c2: #9cc2ff; }
.theme-dark .mat-bg.fixed { position: fixed; inset: 0; z-index: 0; }
.theme-dark main, .theme-dark .foot { position: relative; z-index: 1; }
.theme-dark .top { background: rgba(7, 15, 36, .82); border-bottom-color: rgba(255, 255, 255, .12); }
.theme-dark .logo, .theme-dark .menu, .theme-dark .menu a, .theme-dark .menu-btn, .theme-dark .menu-close { color: #fff; }
.theme-dark .logo small { color: #9fb0cf; }
.theme-dark .menu a:hover, .theme-dark .menu a[aria-current] { border-bottom-color: var(--c2); color: #fff; }
.theme-dark .menu:popover-open { background: #0b1735; }
.theme-dark .menu:popover-open a { border-bottom-color: rgba(255, 255, 255, .12); }
.theme-dark .langs a, .theme-dark .menu-langs a { color: #9fb0cf; }
.theme-dark .langs a[aria-current], .theme-dark .menu-langs a[aria-current] { color: #fff; }
.theme-dark .call-pill { background: var(--c2); color: #07122b; transition: background-color .8s; }
.theme-dark .call-pill:hover { filter: brightness(1.1); }
.theme-dark .eyebrow { color: var(--c2); transition: color .8s; }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: #fff; }
.theme-dark .lede { color: #b7c3da; }
.theme-dark .foot { background: rgba(4, 9, 24, .88); }
.mhero { padding: clamp(56px, 6vw, 96px) 0 0; }
.mhero h1 { font-size: clamp(34px, 4vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.mhero .lede { max-width: 40em; margin-top: 16px; font-size: clamp(16px, 1.2vw, 20px); }
.mpanels { padding: clamp(8px, 1vw, 16px) 0 clamp(48px, 5vw, 80px); }
.mcerts, .mhow, .mcta { padding: clamp(56px, 6vw, 96px) 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.theme-dark .mcerts h2, .theme-dark .mhow h2, .theme-dark .mcta h2 { font-size: clamp(28px, 2.7vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.theme-dark .mcerts .lede, .theme-dark .mhow .lede, .theme-dark .mcta .lede { margin-top: 14px; font-size: clamp(16px, 1.15vw, 19px); max-width: 40em; }
.cert-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.cert { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 22px 22px 24px; }
.cert b { display: block; color: #fff; font-size: 18px; line-height: 1.3; }
.cert .line { display: block; margin-top: 10px; color: var(--c2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; transition: color .8s; }
.cert p { margin-top: 8px; color: #c3cde0; font-size: 15px; }
.how-steps { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-steps li { border-top: 3px solid var(--c2); padding: 18px 4px 0; transition: border-color .8s; }
.how-steps .step-no { color: var(--c2); transition: color .8s; }
.how-steps h3 { margin-top: 12px; font-size: 20px; }
.how-steps p { margin-top: 6px; color: #c3cde0; font-size: 15px; }
.mcta .big-tel span { color: #9fb0cf; }
.mcta .big-tel a { color: #fff; }
.mcta .big-tel a:hover { color: var(--c2); }
.mcta .note { margin-top: 8px; color: #9fb0cf; font-size: 15px; }
.mcta .mail-link { color: var(--c2); transition: color .8s; }
.mcta .back { margin-top: 36px; }
.mcta .back a { color: #b7c3da; }
@media (max-width: 860px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* 로고 카드: 항균·소취제(fresh) 탭에서는 downce 로고(검정 바탕) */
.mat-logo { transition: background-color .8s; }
.mat-logo picture { display: block; }
.mat-logo .logo-downce { display: none; }
[data-cat="fresh"] .mat-logo { background: #000; }
[data-cat="fresh"] .mat-logo .logo-cera { display: none; }
[data-cat="fresh"] .mat-logo .logo-downce { display: block; }

/* ── 메인 페이지의 소재 소개(밝은 톤). 어두운 분위기는 전용 페이지에서만 ── */
.materials-teaser { padding-top: clamp(64px, 7vw, 112px); }
.materials-teaser h2 { font-size: clamp(28px, 2.7vw, 44px); font-weight: 800; color: var(--navy); letter-spacing: -.025em; line-height: 1.25; }
.materials-teaser .lede { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.15vw, 19px); max-width: 40em; }
.teaser-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.teaser-logos { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: clamp(14px, 1.4vw, 22px); }
.teaser-logos picture { display: block; }
.teaser-logos img { width: clamp(200px, 22vw, 320px); height: auto; }
.teaser-logos .downce img { width: clamp(150px, 16vw, 236px); }
.teaser-more { margin-top: 22px; gap: 8px; }
.mat-cats { list-style: none; padding: 0; margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }   /* 소재 6개: 3×2 */
.mat-cats a { display: block; height: 100%; background: var(--soft); border-radius: 10px; border-top: 4px solid var(--c2); padding: 18px 18px 20px; text-decoration: none; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s; }
.mat-cats a:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(11, 28, 68, .4); }
.mat-cats b { display: block; color: var(--navy); font-size: clamp(16px, 1.2vw, 19px); }
.mat-cats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-logos { justify-self: start; align-items: flex-start; }
  .teaser-logos img { width: 220px; }
  .teaser-logos .downce img { width: 160px; }
  .mat-cats { grid-template-columns: 1fr 1fr; }
}

/* 전용 페이지 배경: 캔버스(실 가닥·빛 알갱이) + 옅은 도면 격자 + 느린 광택 */
.mat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.theme-dark .mat-bg.fixed .strands { display: none; }
.theme-dark .mat-bg.fixed::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%); }
.theme-dark .mat-bg.fixed::after { content: ""; position: absolute; inset: -60% -60%; background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, .05) 50%, transparent 56%); animation: sheen 18s linear infinite; will-change: transform; }
@keyframes sheen { from { transform: translate(-25%, -25%); } to { transform: translate(25%, 25%); } }
@media (prefers-reduced-motion: reduce) { .theme-dark .mat-bg.fixed::after { animation: none; } }

/* 탭 설명 그림 (캔버스) */
.mat-scene { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(2, 8, 24, .5); border: 1px solid rgba(255, 255, 255, .1); }
.mat-scene canvas { display: block; width: 100%; height: 100%; }

/* 2D/3D 설명 그림 겹치기: WebGL 이 되면 .is3d 가 붙고 3D 캔버스만 보인다 */
.mat-scene { position: relative; }
.mat-scene canvas { position: absolute; inset: 0; }
.mat-scene .c3d { display: none; }
.mat-scene.is3d .c2d { display: none; }
.mat-scene.is3d .c3d { display: block; }

/* ── 소재 패널: PC 에서는 3D 장면이 패널 전체를 채우고 글이 왼쪽에 얹힌다 (피사체는 오른쪽으로 비켜 그림) ── */
@media (min-width: 861px) {
  .mat-panel { display: block; position: relative; min-height: clamp(520px, 40vw, 640px); border-radius: 18px; overflow: hidden; background: #060c1c; border: 1px solid rgba(255, 255, 255, .08); }
  .mat-panel[hidden] { display: none; }
  .mat-panel .mat-scene { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: none; }
  .mat-panel .mat-copy { position: relative; z-index: 3; max-width: 44%; padding: clamp(28px, 3vw, 44px) 0 clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px); }
  .mat-scene::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6, 12, 28, .95) 0%, rgba(6, 12, 28, .88) 30%, rgba(6, 12, 28, .5) 48%, rgba(6, 12, 28, 0) 64%); }
}
@media (prefers-reduced-motion: no-preference) {
  .mat-panel:not([hidden]) .mat-scene { animation: scene-in 1s var(--ease); }
}
@keyframes scene-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* 이름표: 3D 점에서 가는 선이 올라가고 끝에 글자. 위치는 scenes3d.js 가 매 프레임 잡는다 */
.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.callout { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .6s; color: #fff; font-size: 13px; letter-spacing: .01em; will-change: transform; }
.callout i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 0 14px var(--c2); transition: background-color .8s; }
.callout b { position: absolute; left: 0; top: 0; width: 66px; height: 1px; background: linear-gradient(90deg, var(--c2), rgba(255, 255, 255, .55)); transform-origin: 0 50%; transform: rotate(-32deg); }
.callout span { position: absolute; left: 56px; top: -48px; white-space: nowrap; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; background: rgba(6, 12, 28, .74); backdrop-filter: blur(4px); font-weight: 600; }
.callout.l b { transform: rotate(-148deg); }
.callout.l span { left: auto; right: 56px; }
.callout.down b { transform: rotate(32deg); }
.callout.down span { top: 22px; }
.callout.l.down b { transform: rotate(148deg); }
@media (max-width: 860px) {
  .callout { font-size: 11px; }
  .callout b { width: 46px; }
  .callout span { left: 39px; top: -38px; padding: 3px 7px; }
  .callout.l span { right: 39px; }
  .callout.down span { top: 16px; }
}

/* 이름표를 밀어낸 만큼(--dy) 선도 같이 늘어난다 */
.callout span { top: calc(-48px + var(--dy, 0px)); }
.callout.down span { top: calc(22px + var(--dy, 0px)); }
.callout b { height: 1px; }
@media (max-width: 860px) {
  .callout span { top: calc(-38px + var(--dy, 0px)); }
  .callout.down span { top: calc(16px + var(--dy, 0px)); }
}

/* 사전 렌더 영상 장면: 영상이 상자를 채우고(피사체는 오른쪽 72% 지점), 이름표는 영상 시간에 맞춰 올라간다 */
.mat-scene .cvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: none; background: #060c1c; }
.mat-scene.isvid .cvid { display: block; }
.mat-scene.isvid .c2d, .mat-scene.isvid .c3d { display: none; }

/* CERAVIDA 대한민국 총판 배지 (메인 티저 · 소재 페이지 머리) */
.dist-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .01em; background: rgba(15, 52, 110, .07); color: #0f346e; border: 1px solid rgba(15, 52, 110, .18); }
.dist-pill .mark { width: 30px; height: auto; flex: none; }
.theme-dark .dist-pill { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.theme-dark .dist-pill .mark { color: #fff; }

/* 글로벌 네트워크: 왼쪽 한국 총판 카드, 오른쪽 거점 목록 */
.mnet { padding: clamp(56px, 6vw, 96px) 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.theme-dark .mnet h2 { font-size: clamp(28px, 2.7vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.theme-dark .mnet .lede { margin-top: 14px; font-size: clamp(16px, 1.15vw, 19px); max-width: 44em; }
.net-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-top: 32px; align-items: stretch; }
.net-kr { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; border-radius: 16px; padding: clamp(24px, 2.6vw, 40px); color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 34%, transparent), transparent 60%), linear-gradient(160deg, #0f2a5c, #08142e);
  border: 1px solid color-mix(in srgb, var(--c2) 55%, rgba(255, 255, 255, .2)); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--c2) 70%, transparent); transition: border-color .8s, box-shadow .8s; }
.net-badge { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--c2); color: #06142c; font-size: 13px; font-weight: 800; letter-spacing: .02em; transition: background .8s; }
.net-name { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.net-name .mark { width: 54px; height: auto; color: #fff; flex: none; }
.net-name b { font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.net-desc { margin-top: 16px; margin-bottom: 20px; font-size: 16px; color: #dfe7f5; }
.net-scope { margin-top: auto; align-self: stretch; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: #aebbd3; }
.net-regions h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c2); font-weight: 800; transition: color .8s; }
.net-list { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.net-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 16px 18px; border-radius: 12px; background: rgba(9, 18, 40, .82); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.net-code { grid-row: span 3; align-self: start; min-width: 38px; padding: 5px 0; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgba(255, 255, 255, .1); }
.net-list b { color: #fff; font-size: 17px; }
.net-city { color: #c3cde0; font-size: 14px; }
.net-list p { color: #93a3bf; font-size: 13px; }
.net-src { margin-top: 18px; font-size: 13px; color: #8a98b3; }
@media (max-width: 960px) { .net-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .net-list { gap: 10px; } .net-list li { grid-template-columns: 1fr; align-content: start; padding: 12px 14px; } .net-code { grid-row: auto; justify-self: start; min-width: 0; padding: 3px 7px; margin-bottom: 8px; font-size: 11px; } .net-list b { font-size: 16px; } }

/* 애니메이션 밑 작은 안내문 (이해를 돕기 위한 연출 이미지) */
.mat-cap { margin: -12px 2px 0; text-align: right; font-size: 12px; color: #8f9db8; letter-spacing: .01em; }
@media (min-width: 861px) { .mat-panel .mat-cap { position: absolute; right: 22px; bottom: 16px; z-index: 3; margin: 0; color: rgba(255, 255, 255, .5); } }
