/* ===== SQ그룹 미래기술연구원 · 1단계 시제품 스타일 ===== */
:root {
  --navy-950: #050b18;
  --navy-900: #0a1628;
  --navy-800: #11223d;
  --navy-700: #1b3357;
  --accent: #3fb6c9;
  /* 로고 색: S=빨강, Q=파랑 (실제 CI 색상 코드를 받으면 여기만 바꾸면 됨) */
  --brand-s: #e60012;
  --brand-q: #0057b8;
  --brand-s-on-dark: #ff3b47;
  --brand-q-on-dark: #3d8bff;
  --accent-strong: #1f8fa3;
  --text: #1a2233;
  --text-muted: #5b6577;
  --line: #e2e7ef;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent-strong); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.patent-table td.mono { white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ----- 헤더 / 내비게이션 ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 22, 40, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9ff0ff, var(--accent) 45%, #0d4c5a 100%); box-shadow: 0 0 12px rgba(63,182,201,.6); flex: none; }
.brand-text { font-size: 1.02rem; white-space: nowrap; }
/* SQ 로고 글자 */
/* SQ 로고 글자: Bahnschrift(Windows 기본 글꼴). 없는 환경(Mac·모바일)에서는 Barlow(Google Fonts) → 시스템 글꼴 */
.sq { font-family: 'Bahnschrift', 'Barlow', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; letter-spacing: 0; font-variation-settings: 'wght' 700; display: inline-block; line-height: 1; vertical-align: baseline; }
.sq-s, .sq-q { display: inline-block; vertical-align: baseline; line-height: 1; }
/* Bahnschrift의 Q는 꼬리 때문에 S보다 아래로 처져 보임 → Q를 살짝 올려 시각적으로 맞춤 */
.sq-q { position: relative; top: -.045em; }
.sq-s { color: var(--brand-s); }
.sq-q { color: var(--brand-q); }
/* 어두운 배경에서는 같은 계열의 밝은 색을 써서 잘 보이게 */
.site-header .sq-s, .hero .sq-s, .intro .sq-s, .site-footer .sq-s { color: var(--brand-s-on-dark); }
.site-header .sq-q, .hero .sq-q, .intro .sq-q, .site-footer .sq-q { color: var(--brand-q-on-dark); }
.hero-eyebrow .sq { letter-spacing: inherit; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: #c9d4e5; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--navy-900); background: #fff; }

.sample-notice { background: #fff7e0; border-bottom: 1px solid #f1dfa6; color: #6b5100; font-size: .875rem; padding: 8px 0; }
.sample-notice strong { display: inline-block; background: #e8b73a; color: #3d2e00; border-radius: 4px; padding: 0 6px; margin-right: 6px; font-size: .78rem; }
.sheet-alert { background: #fdecec; border-bottom: 1px solid #f3c2c2; color: #8a1f1f; font-size: .875rem; padding: 8px 0; }
.sheet-alert strong { display: inline-block; background: #c62828; color: #fff; border-radius: 4px; padding: 0 6px; margin-right: 4px; font-size: .78rem; }
.sheet-alert a { color: #8a1f1f; font-weight: 700; }
.footer-link { color: #9fb3d1; }
.sample-inline { background: #fff7e0; border: 1px solid #f1dfa6; color: #6b5100; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }

/* ----- 홈 스크롤 영상 (film-track: 긴 스크롤 구간 / film-stage: 화면에 붙는 캔버스) ----- */
:root { --film-head: 60px; }
.film-track { position: relative; height: 260vh; background: #03070f; color: #fff; }
.film-stage { position: sticky; top: var(--film-head); height: calc(100vh - var(--film-head)); height: calc(100svh - var(--film-head)); overflow: hidden; background: #03070f; }
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3,7,15,.9) 0%, rgba(3,7,15,.6) 45%, rgba(3,7,15,.15) 100%); }
.film-track.film-loading .film-canvas { opacity: .6; }
.film-cap { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.film-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.film-box { max-width: 600px; }
.film-eyebrow { margin: 0 0 14px; color: #7fd6e3; font-size: .78rem; letter-spacing: .3em; font-weight: 600; font-family: 'Bahnschrift', 'Barlow', var(--font); text-transform: uppercase; }
.film-eyebrow .sq { letter-spacing: inherit; }
.film-title { margin: 0 0 18px; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; line-height: 1.18; letter-spacing: -.02em; color: #f4f8fc; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.film-title .sq { font-size: 1.1em; margin-right: .06em; }
.film-lead { margin: 0 0 26px; max-width: 34em; color: #d4dcea; font-size: clamp(1rem, 1.4vw, 1.12rem); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.film-big { display: block; margin-bottom: 8px; font-family: 'Bahnschrift', 'Barlow', var(--font); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.film-big small { font-size: .3em; color: var(--accent); letter-spacing: .12em; margin-left: 10px; font-weight: 600; }
.film-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.film-btns .btn-primary { background: var(--accent); border-color: var(--accent); color: #04121a; box-shadow: 0 8px 24px rgba(63,182,201,.35); padding: 12px 22px; }
.film-btns .btn-primary:hover { background: #5ccbdc; border-color: #5ccbdc; }
.film-btns .btn-ghost-dark { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(5,11,24,.35); backdrop-filter: blur(6px); padding: 12px 22px; }
.film-btns .btn-ghost-dark:hover { border-color: #fff; background: rgba(5,11,24,.55); }
.film-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.film-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.film-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: #dff6fa; transition: opacity .4s; pointer-events: none; }
.film-hint span { font-size: .9rem; letter-spacing: .18em; font-weight: 600; margin-bottom: 6px; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.film-arrow { width: 48px; height: 48px; color: #9ff0ff; filter: drop-shadow(0 0 10px rgba(63,182,201,1)); animation: film-arrow 1.6s ease-in-out infinite; margin-top: -22px; }
.film-arrow-2 { animation-delay: .25s; opacity: .55; }
@keyframes film-arrow { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(10px); opacity: 1; } }
/* 마지막 구간: 큰 입구 카드 */
.film-box-wide { max-width: 760px; }
.film-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
.film-door { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 26px 22px; border-radius: 18px; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, rgba(63,182,201,.22), rgba(10,22,40,.55)); border: 1px solid rgba(127,227,240,.55); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(63,182,201,.15), 0 18px 48px rgba(0,0,0,.45), 0 0 36px rgba(63,182,201,.25); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.film-door::after { content: ''; position: absolute; top: -60%; left: -40%; width: 60%; height: 220%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); animation: film-sheen 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes film-sheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.film-door:hover, .film-door:focus-visible { transform: translateY(-4px); border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 24px 60px rgba(0,0,0,.5), 0 0 56px rgba(63,182,201,.5); }
.film-door-icon { width: 40px; height: 40px; color: #9ff0ff; filter: drop-shadow(0 0 8px rgba(63,182,201,.8)); }
.film-door-label { font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.film-door-meta { color: #c7d2e3; font-size: .92rem; }
.film-door-go { position: absolute; right: 22px; bottom: 18px; font-size: 1.6rem; color: var(--accent); font-weight: 700; transition: transform .25s; }
.film-door:hover .film-door-go { transform: translateX(6px); }
.film-cap-final .replay-intro { margin-top: 22px; }
/* 움직임 줄이기: 스크롤 구간 없이 첫 프레임 위에 대문 문구만 */
.film-track.film-static { height: auto; }
.film-track.film-static .film-stage { position: relative; height: auto; min-height: 520px; }
.film-track.film-static .film-cap { position: relative; display: none; padding: 80px 0; }
.film-track.film-static .film-cap:first-of-type { display: flex; opacity: 1; transform: none; pointer-events: auto; }
.film-track.film-static .film-hint, .film-track.film-static .film-prog { display: none; }
.hero-compact { padding: 56px 0 64px; }
.hero-sub-title { margin: 0 0 22px; font-size: 1.05rem; font-weight: 500; color: #8fa0bb; letter-spacing: .08em; text-align: left; }
.hero-compact .choice-grid { margin-top: 0; max-width: none; }

/* ----- 홈 히어로 ----- */
/* 인트로와 같은 톤(어두운 남색 + 빛의 입자·선)을 대문에 그대로 이어 줌 */
.hero { position: relative; overflow: hidden; color: #fff; padding: 76px 0 84px;
  background: radial-gradient(120% 90% at 50% 40%, #0b1a30 0%, #060d1b 55%, #03070f 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,.18) 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,.18) 100%); }
.hero-bg .hero-dot { fill: #d8fbff; }
.hero-bg .hero-dot-glow { fill: rgba(120, 225, 245, .12); }
.hero-bg .hero-link { stroke: rgba(140, 220, 240, .13); stroke-width: .8; fill: none; }
.hero-bg .hero-drift { animation: hero-drift var(--d, 9s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes hero-drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 6px), var(--dy, -10px)); } }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 260px at 50% 38%, rgba(63,182,201,.12), transparent 70%); }
.hero-inner { position: relative; text-align: center; }
.hero-eyebrow { margin: 0 0 14px; color: #7fd6e3; font-size: .78rem; letter-spacing: .3em; padding-left: .3em; font-weight: 600; }
.hero-title { margin: 0; font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; line-height: 1.2; color: #f4f8fc; text-shadow: 0 0 24px rgba(127,227,240,.18); }
.hero-rule-wrap { position: relative; display: block; width: min(520px, 78vw); height: 1px; margin: 20px auto 0; }
.hero-rule { display: block; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,227,240,.9) 20%, #e8fdff 50%, rgba(127,227,240,.9) 80%, transparent);
  box-shadow: 0 0 12px rgba(127,227,240,.65), 0 0 2px rgba(255,255,255,.8); animation: hero-rule-breathe 3.6s ease-in-out infinite; }
@keyframes hero-rule-breathe { 0%, 100% { box-shadow: 0 0 12px rgba(127,227,240,.65), 0 0 2px rgba(255,255,255,.8); } 50% { box-shadow: 0 0 26px rgba(127,227,240,.95), 0 0 4px rgba(255,255,255,1); } }
.hero-spark { position: absolute; top: 50%; left: -90px; width: 90px; height: 3px; margin-top: -1.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #ffffff, rgba(160,240,255,.7) 45%, transparent); filter: blur(.4px); box-shadow: 0 0 18px 4px rgba(127,227,240,.45);
  animation: hero-spark-run 5.2s ease-in-out 1.2s infinite; }
@keyframes hero-spark-run { 0% { left: -90px; opacity: 0; } 8% { opacity: .85; } 32% { opacity: .85; } 40% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-bg .hero-drift, .hero-rule, .hero-spark { animation: none; } .hero-spark { display: none; } }
.hero-lead { margin: 22px auto 0; max-width: 640px; color: #c7d2e3; font-size: clamp(1rem, 2vw, 1.12rem); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; margin: 44px auto 0; }
.choice-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; padding: 30px 28px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); transition: transform .2s, border-color .2s, background .2s; min-height: 210px; }
.choice-card:hover { transform: translateY(-3px); border-color: var(--accent); background: linear-gradient(160deg, rgba(63,182,201,.22), rgba(255,255,255,.04)); }
.choice-icon { width: 46px; height: 46px; color: var(--accent); }
.choice-label { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.choice-desc { color: #c7d2e3; font-size: .97rem; }
.choice-meta { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }
.br-desktop { display: inline; }

.home-extra { padding: 36px 20px 56px; }
.chatbot-placeholder { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px dashed #b9c4d6; border-radius: var(--radius); padding: 20px 22px; }
.chatbot-placeholder h2 { margin: 0 0 4px; font-size: 1.05rem; }
.chatbot-placeholder p { margin: 0; color: var(--text-muted); font-size: .93rem; }
.chatbot-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #8a95a8; background: #eef1f6; }

.replay-intro { margin-top: 28px; background: none; border: 0; color: #8fa0bb; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.replay-intro:hover { color: #fff; }

/* ----- 인트로 (모션 그래픽: 오로라 배경 + 슬로건 → SQ 타이틀) ----- */
.intro { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: #02040c; cursor: pointer;
  --i-red: #ff2b45; --i-blue: #2f7bff; --i-c1: #00e5ff; --i-c3: #a64dff;
  --i-en: 'Bahnschrift', 'Barlow', var(--font); --i-ko: 'Noto Sans KR', var(--font); }
.intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.75) 100%); }
body.intro-playing { overflow: hidden; }
/* 세로로 아주 긴 프레임 안(미리보기 뷰어)에서는 인트로를 화면 높이에 맞추고 그 아래 본문은 가림 */
body.intro-playing.intro-tall { background: #02040c; }
body.intro-playing.intro-tall > :not(main), body.intro-playing.intro-tall main > :not(#intro) { visibility: hidden; }
.intro-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px; text-align: center; opacity: 0; visibility: hidden; font-family: var(--i-ko); }
.intro-scene.active { opacity: 1; visibility: visible; }
.intro-scene.leave { animation: intro-scene-out .7s ease forwards; }
@keyframes intro-scene-out { to { opacity: 0; transform: scale(1.04); } }
.intro .sq-s, .intro .sq-q { font-family: 'Bahnschrift', 'Barlow', var(--font); font-weight: 700; }
.intro .sq-s { color: var(--i-red); } .intro .sq-q { color: var(--i-blue); }

/* 장면 1: 슬로건 */
.intro-slogan { font-size: clamp(30px, 5.5vw, 76px); font-weight: 900; line-height: 1.35; color: #fff; word-break: keep-all; }
.intro-slogan .w { display: inline-block; opacity: 0; filter: blur(14px); transform: scale(1.4); }
.intro-slogan .hl { background: linear-gradient(90deg, var(--i-c1), var(--i-blue), var(--i-c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-keywords { margin-top: 44px; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-family: var(--i-en); font-weight: 600; font-size: clamp(12px, 1.3vw, 17px); letter-spacing: .45em; color: #9fb0e0; }
.intro-keywords span { opacity: 0; }
.intro-keywords i { width: 4px; height: 4px; border-radius: 50%; background: #5b7bd6; opacity: 0; }
.active .intro-slogan .w { animation: intro-unblur .7s forwards; }
.active .intro-slogan .w.d1 { animation-delay: .2s; }
.active .intro-slogan .w.d2 { animation-delay: .5s; }
.active .intro-slogan .w.d3 { animation-delay: .9s; }
.active .intro-slogan .w.d4 { animation-delay: 1.2s; }
.active .intro-keywords span, .active .intro-keywords i { animation: intro-fade-up .7s ease forwards; }
.active .intro-keywords :nth-child(1) { animation-delay: 1.9s; }
.active .intro-keywords :nth-child(2) { animation-delay: 2.0s; }
.active .intro-keywords :nth-child(3) { animation-delay: 2.1s; }
.active .intro-keywords :nth-child(4) { animation-delay: 2.2s; }
.active .intro-keywords :nth-child(5) { animation-delay: 2.3s; }
@keyframes intro-unblur { to { opacity: 1; filter: none; transform: none; } }

/* 장면 2: 타이틀 */
.intro-markwrap { position: relative; display: flex; align-items: center; justify-content: center; }
.intro-halo { position: absolute; width: min(70vw, 760px); height: min(40vw, 420px); background: radial-gradient(ellipse closest-side, rgba(120,110,255,.26), rgba(120,110,255,0)); opacity: 0; }
.intro-mark { position: relative; font-size: clamp(96px, 13vw, 190px); line-height: .9; letter-spacing: -.02em; display: flex; }
.intro-mark .sq-s, .intro-mark .sq-q { display: inline-block; opacity: 0; }
.intro-mark .sq-s { transform: translateX(-70px); text-shadow: 0 0 40px rgba(255,43,69,.45); }
.intro-mark .sq-q { transform: translateX(70px); text-shadow: 0 0 40px rgba(47,123,255,.55); }
.active .intro-mark .sq-s, .active .intro-mark .sq-q { animation: intro-mark-in 1.1s cubic-bezier(.16,1,.3,1) .2s forwards; }
.active .intro-halo { animation: intro-halo 1.6s .8s ease forwards; }
@keyframes intro-mark-in { to { opacity: 1; transform: none; } }
@keyframes intro-halo { to { opacity: 1; } }
.intro-title { margin: 30px 0 0; font-size: clamp(26px, 4.4vw, 62px); font-weight: 700; color: #f3f6ff; white-space: nowrap; opacity: 0; transform: translateY(16px); }
.intro-title .sq { letter-spacing: 0; }
.intro-title .sq-s, .intro-title .sq-q { font-size: 1.06em; }
.active .intro-title { animation: intro-fade-up 1.1s cubic-bezier(.16,1,.3,1) 1.3s forwards; }
.intro-sub { margin-top: 22px; font-family: var(--i-en); font-weight: 600; font-size: clamp(11px, 1.25vw, 16px); letter-spacing: .5em; padding-left: .5em; color: #a9b8e8; opacity: 0; }
.active .intro-sub { animation: intro-fade-up .9s 2.1s forwards; }
@keyframes intro-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.intro-auto-hint { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font-size: .75rem; color: #6f7f98; letter-spacing: .04em; opacity: 0; transition: opacity .5s; pointer-events: none; }
.intro-skip { position: absolute; right: 24px; bottom: 24px; z-index: 2; background: transparent; color: #9fb0c8; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: .85rem; letter-spacing: .02em; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.intro-skip:hover, .intro-skip:focus-visible { color: #fff; border-color: rgba(127,227,240,.6); background: rgba(255,255,255,.05); }

/* ----- 일반 페이지 ----- */
.page { padding: 24px 20px 64px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; font-size: .85rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: #a0a9b8; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.back-link { display: inline-block; margin: 4px 0 8px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.page-header h1 { margin: 6px 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-lead { margin: 0 0 12px; color: var(--text-muted); }
.detail-header .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-header .muted { margin: 0 0 8px; }

/* 배지 */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.badge-sample { background: #fff1c7; color: #7a5a00; border: 1px solid #efd88e; }
.badge-soon { background: #eef1f6; color: #5b6577; }
.badge-cert { background: #e3f3f6; color: #146a7a; border: 1px solid #b9e2ea; }
.badge-year { background: #eef1f6; color: #5b6577; }
.block { display: block; }
.sub-title { margin: 18px 0 6px; font-size: .95rem; color: var(--text-muted); font-weight: 700; }
.tech-card.is-rec { border: 1px solid rgba(0,87,184,.25); }
.tech-tile-rec { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-q), #1f8fa3); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tech-group { margin-top: 28px; }
.tech-group:first-of-type { margin-top: 8px; }
.tech-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--line); font-size: 1.15rem; }
.tech-group-co { display: inline-block; padding: 2px 12px; border-radius: 8px; background: var(--co, var(--navy-900)); color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: .04em; }
/* 법인별 상징색: SQ 빨강, KCDR 초록, AISI 하늘색, HD 주황 */
[data-co="SQ"] { --co: #e60012; --co-soft: #fde8ea; --co-text: #9b0010; }
[data-co="KCDR"] { --co: #1b9e4b; --co-soft: #e4f5ea; --co-text: #0f6b31; }
[data-co="AISI"] { --co: #2aa7e0; --co-soft: #e3f3fb; --co-text: #0f6f9c; }
[data-co="HD"] { --co: #f08a1d; --co-soft: #fdeedd; --co-text: #9a5200; }
.tech-group-title { border-bottom-color: var(--co, var(--line)); }

.tech-card-fullname { margin: 2px 0 0; font-size: .82rem; color: var(--text-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tech-card-body .badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tech-card-body .badges .rec-badge { margin: 0; vertical-align: middle; }
.status-registered { background: #e3f6ec; color: #13703f; }
.status-pending { background: #e5efff; color: #2350b0; }
.status-lapsed { background: #f0f1f4; color: #5d6472; }
.status-expired { background: #fbecec; color: #a13a3a; }
.status-other { background: #f3eefb; color: #5b3d8a; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { border-color: #b8c3d4; }
.btn-primary { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { background: #eef1f5; color: #8a93a3; border-color: #e2e6ec; cursor: not-allowed; }

/* 필터 바 */
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--card); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 0 14px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.field input, .field select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 44px; width: 100%; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(63,182,201,.25); }
.field-actions { flex-direction: row; gap: 8px; }
.result-count { margin: 0 0 10px; font-size: .93rem; }

/* 특허 표 */
.table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.patent-table { width: 100%; border-collapse: collapse; }
.patent-table th { text-align: left; font-size: .8rem; color: var(--text-muted); font-weight: 700; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.patent-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .94rem; }
.patent-row { position: relative; cursor: pointer; }
.patent-row:hover { background: #f4f9fb; }
.patent-row:last-child td { border-bottom: 0; }
.cell-title { min-width: 260px; }
.row-link { color: var(--text); font-weight: 700; text-decoration: none; }
.row-link::after { content: ''; position: absolute; inset: 0; } /* 행 전체 클릭 */
.patent-row:hover .row-link { color: var(--accent-strong); text-decoration: underline; }
.mgmt { display: block; font-size: .8rem; }
.co-owners { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

.empty-state { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 48px 20px; }
.empty-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.empty-state .btn { margin-top: 12px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.pagination a, .pagination span { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* 상세 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; min-width: 0; }
.card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.detail-grid.two { grid-template-columns: 1fr 1fr; }
.detail-grid > .card { margin-bottom: 16px; }
.info-list { margin: 0; }
.info-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.info-row dd { margin: 0; }
.placeholder-box { border: 1px dashed #c3ccda; background: #fafbfd; border-radius: 10px; padding: 14px 16px; }
.placeholder-box p { margin: 0 0 4px; }
.link-list { margin: 0; padding-left: 18px; }
.link-list li { margin: 4px 0; }
.bullet-list { margin: 0; padding-left: 20px; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #eef4fb; color: #274a7a; padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.prose { margin: 0; white-space: pre-line; }
.page-footer-nav { margin-top: 8px; }

/* 이미지 */
.img-frame { position: relative; background: #e9edf3; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8a95a8; font-size: .9rem; background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 10px, #e7ebf1 10px, #e7ebf1 20px); }
.img-fallback svg { width: 44px; height: 44px; }
.gallery.gallery-panel { grid-template-columns: 1fr; }
.gallery-panel figure { max-width: 860px; margin: 0 auto; }
.gallery-panel .img-frame.tech-panel-img { aspect-ratio: auto; max-height: none; padding: 0; background: #0f2a7a; border: 0; border-radius: 12px; }
.gallery-panel .img-frame img { object-fit: contain; height: auto; padding: 0; }
.tech-panel-card { padding-bottom: 14px; }
.chip-site { background: #e3f3f6; color: #146a7a; }
.tech-hero-img { margin: 12px 0 16px; aspect-ratio: auto; max-height: 520px; background: #fff; border: 1px solid var(--line); }
.tech-hero-img img { height: auto; max-height: 520px; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--text-muted); margin-top: 8px; text-align: center; }
.gallery figure[data-lightbox] .img-frame { cursor: zoom-in; transition: box-shadow .2s, transform .2s; }
.gallery figure[data-lightbox] .img-frame:hover { box-shadow: 0 6px 18px rgba(16,24,40,.14); transform: translateY(-2px); }
/* 사진 확대 보기 */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(5,11,24,.92); padding: 56px 16px 24px; opacity: 0; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-cap { margin-top: 14px; color: #dfe7f2; font-size: .95rem; text-align: center; max-width: 900px; }
.lightbox-count { color: #8fa0bb; font-size: .8rem; margin-top: 4px; letter-spacing: .05em; }
.lightbox-btn { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; cursor: pointer; font: inherit; display: grid; place-items: center; transition: background .15s; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: rgba(255,255,255,.2); outline: none; }
.lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.4rem; }
.lightbox-prev { left: 14px; } .lightbox-next { right: 14px; }
.lightbox[data-single] .lightbox-prev, .lightbox[data-single] .lightbox-next { display: none; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) { .lightbox { padding: 60px 8px 20px; } .lightbox-prev, .lightbox-next { width: 40px; height: 40px; top: auto; bottom: 18px; transform: none; } }
/* 실물 사진·도면은 잘리지 않게 전체 표시 (흰 배경 도면이 많음) */
.gallery .img-frame { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); }
.gallery .img-frame img { object-fit: contain; padding: 6px; }
.prose-lg { font-size: 1.04rem; line-height: 1.8; }
.prose-lg b { color: var(--navy-800); background: linear-gradient(transparent 62%, rgba(63,182,201,.22) 62%); }
.use-note { padding: 12px 14px; border-left: 3px solid var(--accent); background: #f0f9fb; border-radius: 0 10px 10px 0; }
.use-note b { color: var(--accent-strong); margin-right: 6px; }

/* 신기술 카드 */
.tech-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tech-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.tech-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,24,40,.12); }
.tech-card .img-frame { border-radius: 0; }
/* 대표 이미지가 없는 신기술 카드 타일 */
.img-frame.tech-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #eafcff;
  background: radial-gradient(120% 90% at 50% 40%, #0b1a30 0%, #060d1b 60%, #03070f 100%); }
.tech-tile-label { font-size: .72rem; letter-spacing: .3em; padding-left: .3em; color: #7fd6e3; font-weight: 600; }
.tech-tile-no { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 0 18px rgba(127,227,240,.35); }
.tech-tile-year { font-size: .78rem; color: #8fa0bb; letter-spacing: .04em; }
.tech-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tech-card-title { margin: 6px 0 0; font-size: 1.08rem; line-height: 1.4; }
.tech-card-body .muted { margin: 0; font-size: .88rem; }
.tech-card-summary { margin: 6px 0 10px; font-size: .93rem; color: #3b4558; }
.tech-card-more { margin-top: auto; color: var(--accent-strong); font-weight: 700; font-size: .9rem; }

/* 푸터 */
.site-footer { background: var(--navy-900); color: #b6c2d6; padding: 24px 0; font-size: .85rem; }
.site-footer p { margin: 2px 0; }
.site-footer .muted { color: #7f8ca3; }

/* ----- 반응형 (태블릿·모바일) ----- */
@media (max-width: 900px) {
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .field-actions { grid-column: 1 / -1; }
  .field-actions .btn { flex: 1; }
  .detail-grid, .detail-grid.two { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .page { padding: 16px 16px 48px; }
  .brand-text { font-size: .92rem; }
  .main-nav a { padding: 7px 10px; font-size: .9rem; }
  .hero { padding: 48px 0 56px; }
  .film-track { height: 230vh; }
  .film-shade { background: linear-gradient(rgba(3,7,15,.3), rgba(3,7,15,.88)); }
  .film-cap { align-items: flex-end; padding-bottom: 72px; }
  .film-hint { bottom: 14px; }
  .film-doors { grid-template-columns: 1fr; gap: 12px; }
  .film-door { padding: 18px 20px; }
  .film-door-label { font-size: 1.4rem; }
  .film-door-icon { width: 32px; height: 32px; }
  .film-cap-final .film-title { font-size: 1.6rem; margin-bottom: 12px; }
  .br-desktop { display: none; }
  .choice-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .choice-card { min-height: 0; padding: 22px 20px; }
  .choice-label { font-size: 1.6rem; }
  .filter-bar { grid-template-columns: 1fr; }
  /* 표를 카드 형태로 */
  .table-wrap { background: transparent; box-shadow: none; }
  .patent-table thead { display: none; }
  .patent-table, .patent-table tbody, .patent-table tr, .patent-table td { display: block; width: 100%; }
  .patent-table tr { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 12px 14px; }
  .patent-table td { border: 0; padding: 4px 0; display: flex; gap: 10px; font-size: .9rem; }
  .patent-table td[data-label="회사"] { flex-wrap: wrap; }
  .patent-table td[data-label="회사"] .co-owners { flex-basis: 100%; padding-left: 82px; margin-top: 0; }
  .patent-table td::before { content: attr(data-label); flex: none; width: 72px; color: var(--text-muted); font-size: .8rem; font-weight: 600; padding-top: 2px; }
  .patent-table td.cell-title { display: block; min-width: 0; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .patent-table td.cell-title::before { display: none; }
  .row-link { font-size: 1rem; }
  .info-row { grid-template-columns: 96px 1fr; }
  .intro-skip { right: 50%; transform: translateX(50%); bottom: 24px; }
  .intro-title { white-space: normal; line-height: 1.3; }
}
@media (max-width: 380px) {
  .brand-text { font-size: .82rem; }
}

/* 움직임 줄이기 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .film-arrow, .film-door::after { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 마지막 장면에서는 '건너뛰기' 대신 자동 입장 안내만 표시 */
.intro.is-ready .intro-skip { display: none; }
/* 정지 화면 (애니메이션을 쓸 수 없을 때): 타이틀 장면을 그대로 표시 */
.intro-static .intro-bg { display: none; }
.intro-static #intro-s2 { opacity: 1 !important; visibility: visible !important; }
.intro-static .intro-mark .sq-s, .intro-static .intro-mark .sq-q, .intro-static .intro-halo, .intro-static .intro-title, .intro-static .intro-sub { opacity: 1 !important; transform: none !important; animation: none !important; }
/* 인트로 건너뛰기 버튼: 자동 포커스 시 테두리를 은은하게 */
.intro-skip:focus { outline: none; }
.intro-skip:focus-visible { outline: 1px solid rgba(127,227,240,.55); outline-offset: 3px; }
.error-box { margin-top: 14px; border-color: #f0b4b4; background: #fff6f6; color: #7a1d1d; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-table th, .mini-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mini-table th { font-size: .8rem; color: var(--text-muted); background: #f8fafc; }
.table-wrap.plain { box-shadow: none; border: 1px solid var(--line); }
.warn-list li { margin: 4px 0; font-size: .92rem; }
code { background: #eef1f6; padding: 1px 6px; border-radius: 4px; font-size: .88em; }

/* ===== 추천 특허 (D안: 목록 위 카드 모음 + 목록 배지) ===== */
.rec-badge { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--brand-q), #1f8fa3); vertical-align: 2px; white-space: nowrap; }
.detail-header .badges .rec-badge { margin: 0 0 0 6px; vertical-align: middle; font-size: .78rem; padding: 2px 10px; }
.rec-showcase { margin: 4px 0 18px; padding: 16px 18px 18px; border-radius: var(--radius); background: linear-gradient(180deg, #eef6fb, #ffffff 70%); border: 1px solid #d6e8f1; box-shadow: var(--shadow); }
.rec-showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.rec-showcase-head::-webkit-details-marker { display: none; }
.rec-showcase-title { margin: 0; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.rec-showcase-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-q), var(--accent)); }
.rec-count { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.rec-toggle { font-size: .85rem; font-weight: 700; color: var(--accent-strong); padding: 6px 12px; border-radius: 999px; border: 1px solid #cfe3ec; background: #fff; }
.rec-showcase:not([open]) .when-open, .rec-showcase[open] .when-closed { display: none; }
.rec-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.rec-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.rec-card:hover, .rec-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.08); }
.rec-card-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 8px, #e7ebf1 8px, #e7ebf1 16px); color: #8a95a8; font-size: .78rem; margin-bottom: 6px; }
.rec-card-photo.has-photo { background: #fff; border: 1px solid var(--line); }
.rec-card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.rec-card-co { font-size: .75rem; font-weight: 800; color: var(--accent-strong); }
.rec-card-title { font-size: .92rem; font-weight: 700; line-height: 1.4; }
.rec-card-no { margin-top: auto; font-size: .78rem; color: var(--text-muted); }
/* 목록 순번 칸 */
.patent-table .col-no, .patent-table .cell-no { width: 64px; text-align: center; color: var(--text-muted); }
.patent-row.is-rec { background: #f7fbfd; }
@media (max-width: 640px) {
  .rec-showcase { padding: 14px 0 14px 14px; }
  .rec-showcase-head { padding-right: 14px; }
  .rec-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 2px 14px 6px 0; -webkit-overflow-scrolling: touch; }
  .rec-cards > li { flex: 0 0 62%; scroll-snap-align: start; }
  .patent-table .cell-no { width: 100%; text-align: left; color: var(--text); }
}
/* 실물 사진 준비 중 */
.photo-pending { max-width: 520px; }
