/* ============================================================
   BIOSTREAM 브랜드 소개 랜딩 — style.css
   톤: 동국제약 그린 신뢰 + 모던 바이오 (권위형)
   모바일 퍼스트 (375/390 → md 768 → lg 1024)
   ============================================================ */

:root {
  --green: #0E7A52;          /* 메인 그린 */
  --green-deep: #0A5C3E;     /* 딥 그린 */
  --green-light: #16A06A;    /* 액센트 */
  --green-soft: #E8F3EE;     /* 연한 배경 */
  --ink: #0F2A22;            /* 헤드라인 */
  --navy: #0B231C;           /* 다크 섹션 */
  --text: #2B3B35;           /* 본문 */
  --muted: #6A7A74;          /* 보조 텍스트 */
  --line: #E1EAE6;           /* 라인 */
  --bg: #FFFFFF;
  --bg-soft: #F5F8F6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 34, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 34, 0.12);
  --maxw: 1160px;
  --gnb-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--gnb-h); }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; }
sup { font-size: 0.55em; vertical-align: super; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: none;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(14,122,82,.28); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* ===== GNB ===== */
.gnb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--gnb-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.gnb.is-scrolled { box-shadow: 0 4px 20px rgba(14,42,34,.06); border-color: var(--line); }
.gnb__inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.gnb__logo { display: flex; align-items: center; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.gnb__logo-mark { color: var(--green); }
.gnb__logo-text { color: var(--ink); }
.gnb__logo-img { height: 26px; width: auto; display: block; }
.gnb__nav { display: none; gap: 30px; }
.gnb__nav a {
  font-size: 15px; font-weight: 600; color: var(--text); position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.gnb__nav a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--green); transition: width .25s ease; }
.gnb__nav a:hover { color: var(--green); }
.gnb__nav a:hover::after { width: 100%; }

.gnb__toggle { display: flex; flex-direction: column; gap: 5px; width: 30px; height: 30px; justify-content: center; background: none; border: none; cursor: pointer; }
.gnb__toggle span { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.gnb__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnb__toggle.is-open span:nth-child(2) { opacity: 0; }
.gnb__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gnb__mobile {
  position: absolute; top: var(--gnb-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  box-shadow: var(--shadow);
}
.gnb__mobile.is-open { max-height: 360px; }
.gnb__mobile a { padding: 16px 24px; font-weight: 600; border-bottom: 1px solid var(--bg-soft); }
.gnb__mobile a:active { background: var(--green-soft); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: url('../images/hero-factory.jpg') center/cover no-repeat; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* 히어로 배경 줌인/줌아웃 교차 슬라이드쇼 (5장 · 35초 루프) */
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; will-change: opacity, transform; backface-visibility: hidden; }
.hero-slide:nth-child(1) { animation: heroZoomIn 35s infinite; animation-delay: 0s; }
.hero-slide:nth-child(2) { animation: heroZoomOut 35s infinite; animation-delay: 7s; }
.hero-slide:nth-child(3) { animation: heroZoomIn 35s infinite; animation-delay: 14s; }
.hero-slide:nth-child(4) { animation: heroZoomOut 35s infinite; animation-delay: 21s; }
.hero-slide:nth-child(5) { animation: heroZoomIn 35s infinite; animation-delay: 28s; }
@keyframes heroZoomIn {
  0%   { opacity: 0; transform: scale(1.0); }
  3%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes heroZoomOut {
  0%   { opacity: 0; transform: scale(1.12); }
  3%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none !important; opacity: 0; transform: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,40,28,.88) 0%, rgba(10,70,48,.6) 50%, rgba(10,50,38,.35) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: calc(var(--gnb-h) + 40px) 20px 80px; }
.hero__tag {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.hero__title { font-size: 38px; font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero__title em { color: #6FE3AE; }
.hero__sub { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 18px; }
.hero__sub b { color: #fff; font-weight: 700; }
.hero__conclusion { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform: translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform: translate(-50%,14px);} 100%{opacity:0;} }

/* ===== 섹션 공통 ===== */
.section { padding: 80px 0; }
.facility { background: var(--bg-soft); }
.service { background: var(--bg-soft); }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-head__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--green); margin-bottom: 14px; }
.sec-head__title { font-size: 30px; font-weight: 800; line-height: 1.32; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 16px; }
.sec-head__desc { font-size: 16px; color: var(--muted); line-height: 1.7; }

/* ===== BRAND STORY ===== */
/* 브랜드 히어로 (기획서 예시안: 좌측 카피 박스 + 우측 인물) */
.brand { padding-top: 0; }
/* 모바일 기본: 모델 이미지 위 + 텍스트 아래(하단 정렬), 하단 스크림 (클라 수정요청 #28) */
.brand-hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 56px; background: var(--green-soft); }
.brand-hero__inner { padding-bottom: 40px; }
.brand-hero__bg { position: absolute; inset: 0; z-index: 0; }
.brand-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 18%; }
/* 모바일: 하단 스크림(위쪽 투명=모델 노출 → 아래 흰색=텍스트 가독) */
.brand-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.8) 56%, rgba(255,255,255,.97) 100%); }
.brand-hero__inner { position: relative; z-index: 1; }
.brand-hero__box { max-width: 580px; }
.brand-hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--green); margin-bottom: 14px; }
.brand-hero__title { font-size: 30px; font-weight: 800; line-height: 1.32; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 22px; }
.brand-hero__desc { font-size: 16px; line-height: 1.85; color: var(--text); }
.brand-lead { text-align: center; font-size: 15px; color: var(--muted); margin-bottom: 40px; }
.mo-only { display: none; }
/* 제조 파트너(바이오스트림) — 서브 위상으로 작게 */
.brand-sub { color: var(--green-deep); font-weight: 700; }

.brand-cat { margin-bottom: 48px; }
.brand-cat:last-child { margin-bottom: 0; }
/* 카테고리 타이틀 바 — 기획서 예시안: 중앙 풀폭 박스 */
.brand-cat__label { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, var(--green-soft), #DFEFE8); border: 1px solid #D2E6DC; border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; }
.brand-cat__label h3 { font-size: 21px; font-weight: 800; letter-spacing: 0; color: var(--green-deep); }
.brand-cat__label span { font-size: 13px; color: var(--green); font-weight: 600; }

/* 제품 — 제품 이미지를 선명하게 위에, 슬로건+제품명+설명은 아래 / 카드 간격 분리 (클라 수정요청 260624) */
.prod-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.prod-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-card__thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #f5f8f6; overflow: hidden; }
.prod-card__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform .5s ease; }
.prod-card:hover .prod-card__thumb img { transform: scale(1.04); }
.prod-card__body { position: relative; z-index: 1; text-align: center; padding: 22px 22px 26px; }
.prod-card__tags { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 8px; letter-spacing: -0.01em; }
.prod-card__body h4 { font-size: 21px; font-weight: 800; color: var(--ink); margin-bottom: 12px; line-height: 1.34; letter-spacing: -0.02em; }
.prod-card__body h4 em { display: block; margin-top: 2px; color: var(--green); }
/* 강조색 — 제품별 지정색(--prod-accent 인라인). 클라 지정 6종 */
.prod-card--accent .prod-card__tags { color: var(--prod-accent); }
.prod-card--accent .prod-card__body h4 em { color: var(--prod-accent); }
/* 제품 슬로건 — 설명 위 한 줄 (클라 제공) */
/* 슬로건 띠지(밴드) — 카드 최상단 풀폭, 제품 강조색 배경에 흰 텍스트 */
.prod-card__slogan { display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--prod-accent, var(--green)); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -0.005em; text-align: center; padding: 9px 18px; margin: 0; position: relative; }
.prod-card__slogan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(0, 0, 0, 0.08); }
.prod-card__desc { font-size: 14px; color: var(--text); line-height: 1.7; max-width: 420px; margin: 0 auto; }

/* ===== 제조시설 ===== */
.facility__main { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
.facility__visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.facility__visual img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 15px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 110px; background: var(--green-soft); color: var(--green-deep); font-weight: 700; }
.spec-table td b { color: var(--ink); font-size: 17px; }
.spec-table td span { color: var(--muted); font-size: 13px; }
.facility__quote { margin-top: 20px; padding: 22px 24px; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 16px; line-height: 1.7; }
.facility__quote b { color: #6FE3AE; }

.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 32px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .2s ease, box-shadow .2s ease; }
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert__mark {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: #fff; font-weight: 800; font-size: 13px; line-height: 1.1; text-align: center;
}
/* 실제 인증 로고 이미지 (클라 제공/기획서 추출) — 크게 + 중앙 정렬 */
.cert__logo { height: 100px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.cert__logo img { max-height: 96px; max-width: min(170px, 100%); width: auto; height: auto; object-fit: contain; }
.cert p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ===== 연구소 ===== */
.research__top { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
.research__visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.research__visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.research__fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field-card { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px; border-left: 3px solid var(--green); }
.field-card h4 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.field-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.research__timeline-title { font-size: 20px; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 32px; letter-spacing: -0.02em; }
.timeline { position: relative; padding-left: 24px; margin-bottom: 36px; }
.timeline::before { content:""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--green-soft); }
.tl-item { position: relative; padding: 0 0 22px 18px; }
.tl-item::before { content:""; position: absolute; left: -24px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { display: inline-block; font-size: 15px; font-weight: 800; color: var(--green); margin-bottom: 2px; }
.tl-item p { font-size: 14.5px; color: var(--text); line-height: 1.6; }

.patent-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.patent-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.patent-card strong { display: block; font-size: 42px; font-weight: 800; color: #6FE3AE; line-height: 1; margin-bottom: 8px; }
.patent-card span { font-size: 14px; color: rgba(255,255,255,.85); }

/* ===== 탭 공통 ===== */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tabs__btn {
  height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  background: #fff; color: var(--muted); border: 1.5px solid var(--line); cursor: pointer;
  transition: all .2s ease;
}
.tabs__btn:hover { border-color: var(--green); color: var(--green); }
.tabs__btn.is-active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 6px 16px rgba(14,122,82,.25); }
.tabs__panel { display: none; animation: fadeUp .4s ease; }
.tabs__panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tabs__lead { text-align: center; font-size: 16px; color: var(--text); max-width: 720px; margin: 0 auto 32px; line-height: 1.7; }

/* 소개 3카드 */
.card-3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
.info-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.info-card h4 { font-size: 17px; font-weight: 800; color: var(--ink); padding: 20px 20px 8px; letter-spacing: -0.02em; }
.info-card p { font-size: 14px; color: var(--muted); padding: 0 20px 22px; line-height: 1.6; }

/* 품질검사 장비 */
.equip-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.equip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.equip:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.equip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); margin-bottom: 14px; }
.equip__name { font-size: 16px; font-weight: 800; color: var(--green); padding: 0 18px; }
.equip p { font-size: 14px; color: var(--muted); padding: 0 18px 18px; margin-top: 4px; }

/* 생산 시스템 */
.sys-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.sys-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sys-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sys-card h4 { font-size: 18px; font-weight: 800; color: var(--ink); padding: 18px 20px 6px; }
.sys-card ul { padding: 0 20px 22px 38px; }
.sys-card li { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 4px; }

/* 제형 & 포장 */
.form-block { margin-bottom: 28px; }
.form-block__title { font-size: 18px; font-weight: 800; color: var(--ink); padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--green-soft); }
.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.chip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.chip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chip-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); margin-bottom: 10px; }
.chip-card b { display: block; font-size: 15px; font-weight: 800; color: var(--green); margin-bottom: 4px; padding: 0 10px; }
.chip-card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; padding: 0 10px 16px; }

/* 생산이력 */
.history-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; text-align: center; padding-bottom: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.hist:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hist img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 12px; background: var(--green-soft); }
.hist b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); padding: 0 10px; }
.hist span { font-size: 12px; color: var(--muted); }

/* OEM & ODM 프로세스 */
.odm-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.odm-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.odm-hero p { position: absolute; inset: 0; display: flex; align-items: center; padding: 24px; background: linear-gradient(90deg, rgba(11,35,28,.85), rgba(11,35,28,.35)); color: #fff; font-size: 17px; font-weight: 700; line-height: 1.5; }
.odm-hero p b { color: #6FE3AE; }
.process { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
.process--4 { margin-bottom: 28px; }
.process__step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; position: relative; }
.process__step span { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: var(--green); width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; margin-bottom: 8px; }
.process__step b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.process__step p { font-size: 13.5px; color: var(--muted); }
.depts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.depts span { font-size: 13px; font-weight: 600; color: var(--green-deep); background: var(--green-soft); padding: 8px 14px; border-radius: 999px; }
.depts__caption { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0 12px; }
/* OEM/ODM 상세 프로세스 (기획안 반영) */
.odm-modes { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.odm-mode { background: var(--green-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.odm-mode b { display: block; font-size: 15px; font-weight: 800; color: var(--green-deep); margin-bottom: 4px; }
.odm-mode span { font-size: 13px; color: var(--text); line-height: 1.55; }
.odm-mode em { font-style: normal; font-weight: 700; color: var(--green); }
.process__step i { font-style: normal; color: var(--green); font-weight: 700; }
.process__dept { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--green-deep); background: var(--green-soft); padding: 3px 11px; border-radius: 999px; margin-top: 10px; }
@media (min-width: 768px) {
  .process--detail { grid-template-columns: repeat(2, 1fr); }
  .odm-modes { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 패치 사업본부 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 18px; text-align: center; }
.stat strong { display: block; font-size: 36px; font-weight: 800; color: #6FE3AE; line-height: 1; margin-bottom: 8px; }
.stat__unit { font-size: 18px; }
.stat span { font-size: 13px; color: rgba(255,255,255,.85); }
.patch-intro__text { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.patch-intro__text img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.patch-intro__text p { font-size: 15.5px; color: var(--text); line-height: 1.7; }

.tech-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.tech-card h4 { font-size: 18px; font-weight: 800; color: var(--green); margin-bottom: 10px; }
.tech-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.tech-card b { color: var(--ink); }
.lineup { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.lineup__visual { border-radius: var(--radius-sm); overflow: hidden; }
.lineup__visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lineup__list h4 { font-size: 18px; font-weight: 800; color: var(--ink); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--green-soft); }
.lineup__list ul { padding-left: 1.15em; }
.lineup__list li { font-size: 15px; color: var(--text); padding: 6px 0; }
.lineup__list li b { color: var(--green); }

.keystrength { background: var(--ink); border-radius: var(--radius); padding: 28px 24px; color: #fff; }
.keystrength h4 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.keystrength__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.keystrength__grid div { font-size: 14.5px; color: rgba(255,255,255,.9); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.keystrength__grid b { color: #6FE3AE; margin-right: 8px; }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(160deg, var(--navy) 0%, #06160F 100%); color: #fff; padding: 64px 0 40px; }
.footer__cta { text-align: center; padding-bottom: 44px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; }
.footer__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer__info { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
.footer__brand .gnb__logo-mark { color: #6FE3AE; font-size: 22px; font-weight: 800; }
.footer__brand .gnb__logo-text { color: #fff; font-size: 22px; font-weight: 800; }
/* 푸터 BIOSTREAM 로고: 다크 배경 가독성 위해 흰색 칩 */
.footer__logo-chip { display: inline-block; background: #fff; border-radius: 8px; padding: 10px 14px; }
.footer__logo-chip img { height: 24px; width: auto; display: block; }
.footer__brand p { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 12px; }
.footer__meta p { font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.footer__meta b { color: #fff; }
.footer__maker { font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 8px; }
.footer__copy { font-size: 12.5px; color: rgba(255,255,255,.45); text-align: center; }

/* reveal 애니메이션 */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   반응형 — md (768px) 이상
   ============================================================ */
@media (min-width: 768px) {
  .section { padding: 100px 0; }
  .hero__title { font-size: 52px; }
  .hero__sub { font-size: 17px; }
  .sec-head__title { font-size: 38px; }

  .gnb__nav { display: flex; }
  .gnb__toggle { display: none; }
  .gnb__mobile { display: none; }

  /* 브랜드 히어로 — 데스크탑: 우측 인물 노출 + 좌측 가로 그라데이션 (모바일 하단정렬 복원) */
  .brand-hero { min-height: 580px; align-items: center; }
  .brand-hero__inner { padding-bottom: 0; }
  .brand-hero__bg img { object-position: right center; }
  .brand-hero__bg::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 36%, rgba(255,255,255,.35) 62%, rgba(255,255,255,0) 100%); }
  .brand-hero__title { font-size: 40px; }
  .brand-hero__desc { font-size: 17px; }

  /* 제품 — 데스크탑 2열 (카드 간격 분리 유지) */
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .prod-card__body h4 { font-size: 23px; }
  .cert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facility__main { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .research__top { grid-template-columns: 1fr 1fr; align-items: start; }
  .research__fields { grid-template-columns: 1fr; }
  .patent-cards { max-width: 520px; margin: 0 auto; }

  .card-3 { grid-template-columns: repeat(3, 1fr); }
  .equip-grid { grid-template-columns: repeat(3, 1fr); }
  .equip-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .sys-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-grid { grid-template-columns: repeat(4, 1fr); }
  .history-grid { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(5, 1fr); }
  .process--4 { grid-template-columns: repeat(4, 1fr); }

  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .patch-intro__text { grid-template-columns: 1.2fr 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .lineup { grid-template-columns: 1fr 1fr; padding: 32px; }
  .keystrength__grid { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }

  .footer { padding: 80px 0 48px; }
  .footer__cta h2 { font-size: 32px; }
  .footer__info { grid-template-columns: 1fr 1.4fr; align-items: center; }
  .footer__meta { text-align: right; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 58px; }
  .research__fields { gap: 16px; }
}

/* ============================================================
   서브페이지 (제조시설 등)
   ============================================================ */
.subhero { position: relative; padding-top: var(--gnb-h); min-height: 300px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.subhero__bg { position: absolute; inset: 0; z-index: 0; }
.subhero__bg img { width: 100%; height: 100%; object-fit: cover; }
.subhero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8,40,28,.92), rgba(10,60,42,.58)); }
.subhero__inner { position: relative; z-index: 1; padding-top: 36px; padding-bottom: 36px; }
.subhero__crumb { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 16px; }
.subhero__crumb a { color: rgba(255,255,255,.72); }
.subhero__crumb a:hover { color: #fff; }
.subhero__crumb span { margin: 0 6px; }
.subhero__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #6FE3AE; margin-bottom: 10px; }
.subhero__title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.subhero__desc { font-size: 16px; color: rgba(255,255,255,.9); }

/* GNB 활성 메뉴 */
.gnb__nav a.is-active { color: var(--green); }
.gnb__nav a.is-active::after { width: 100%; }
.gnb__mobile a.is-active { color: var(--green); background: var(--green-soft); }

/* 제조시설 헤드라인 — 바이오스트림 강조 */
.brand-strong { color: var(--green); font-weight: 800; }

/* 서브페이지 하단 네비 버튼 */
.facility__back { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 48px; margin-bottom: 80px; }
/* facility는 back이 섹션 안에 있어 섹션 패딩으로 충분 → 중복 여백 제거 */
.section .facility__back { margin-bottom: 0; }
.btn--ghost-dark { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green); }
.btn--ghost-dark:hover { background: var(--green-soft); }

@media (min-width: 768px) {
  .subhero { min-height: 360px; }
  .subhero__title { font-size: 42px; }
}

/* 서브페이지 하단 문의 메일 band */
.contact-band { background: var(--green-soft); padding: 56px 0; }
.contact-band .container { text-align: center; }
.contact-band h3 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em; }
.contact-band p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

/* ===== 모바일(폰) 전용 줄바꿈 미세조정 (클라 #33/#34) ===== */
@media (max-width: 540px) {
  /* 히어로 본문: 지정 줄바꿈이 모바일에서도 한 줄씩 유지되도록 폰트 축소 */
  .hero__sub { font-size: 12.5px; line-height: 1.7; }
  /* 브랜드스토리 헤드라인: 모바일에서도 한 줄 */
  .brand-hero__title { font-size: 23px; line-height: 1.3; }
}
