/* =========================================================
   하위 페이지 디자인 (2026-10-24 2차): 어두운 히어로(홈과 같은 건물 사진 + 설계도 격자), 드롭다운, 등장 애니메이션
   v71.css 다음에 불러옵니다.
   ========================================================= */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

/* ----- 읽기 진행선 ----- */
.v-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #4263EB, #91A7FF); pointer-events: none; }

/* ----- 드롭다운 메뉴 ----- */
.main-nav li.has-dd { position: relative; }
.main-nav li.has-dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; transition: transform .25s; }
.main-nav li.has-dd:hover > a::after, .main-nav li.has-dd:focus-within > a::after { transform: translateY(0) rotate(225deg); }
.dd-panel { position: absolute; top: calc(100% + 16px); left: 50%; min-width: 292px; padding: 8px; border-radius: 16px; background: #0F1A2E; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .22s, transform .22s, visibility .22s; z-index: 130; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.main-nav li.has-dd:hover .dd-panel, .main-nav li.has-dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .dd-panel a { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.88); box-shadow: none; white-space: nowrap; }
.main-nav .dd-panel a b { font-family: Inter, sans-serif; font-weight: 700; font-size: .78rem; color: #91A7FF; min-width: 1.5em; letter-spacing: .04em; }
.main-nav .dd-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav .dd-panel a.dd-all { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0 0 10px 10px; padding-top: 13px; color: #91A7FF; font-weight: 700; }
@media (max-width: 860px) {
    .main-nav li.has-dd > a::after { display: none; }
    .dd-panel { position: static; min-width: 0; padding: 0 0 10px 14px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .dd-panel::before { display: none; }
    .main-nav .dd-panel a { padding: .55rem .25rem; font-size: 1rem; color: rgba(255,255,255,.7); border-bottom: 0; }
}

/* ----- 페이지 히어로 ----- */
.page-hero { --hero-img: none; position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #0B1423; padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); }
.page-hero::before { content: ""; position: absolute; inset: -6% 0; z-index: -3; background: var(--hero-img) 70% 40% / cover no-repeat; transform: translate3d(0, var(--py, 0px), 0) scale(1.06); animation: v-kenburns 22s ease-in-out infinite alternate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(rgba(145,167,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(145,167,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(11,20,35,.95) 0%, rgba(11,20,35,.82) 42%, rgba(11,20,35,.42) 100%),
        linear-gradient(0deg, #0B1423 0%, transparent 28%); }
@keyframes v-kenburns { from { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); } to { transform: translate3d(-1.5%, var(--py, 0px), 0) scale(1.14); } }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; letter-spacing: -.035em; }
.page-hero p.lead { color: rgba(255,255,255,.8); }
.page-hero strong { color: #fff; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .note-small { color: rgba(255,255,255,.55); }
.page-hero .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.page-hero .btn-secondary:hover { background: #fff; color: #101827; }
.page-hero .container > * { animation: v-up .9s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .container > :nth-child(2) { animation-delay: .08s; }
.page-hero .container > :nth-child(3) { animation-delay: .16s; }
.page-hero .container > :nth-child(4) { animation-delay: .24s; }
.page-hero .container > :nth-child(5) { animation-delay: .32s; }
.page-hero .container > :nth-child(6) { animation-delay: .4s; }
@keyframes v-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body[data-page="services"], body[data-page^="service-"] { --hero-img: url(/videos/hero-render.jpg); }
body[data-page="about"], body[data-page="contact"], body[data-page="thanks"] { --hero-img: url(/videos/hero-sunrise.jpg); }
body[data-page="cases"], body[data-page="insights"] { --hero-img: url(/videos/hero-dawn.jpg); }
body[data-page="diagnosis"] { --hero-img: url(/videos/hero-edge.jpg); }
@media (max-width: 767px) {
    body[data-page="services"], body[data-page^="service-"] { --hero-img: url(/videos/hero-render-m.jpg); }
    body[data-page="about"], body[data-page="contact"], body[data-page="thanks"] { --hero-img: url(/videos/hero-sunrise-m.jpg); }
    body[data-page="cases"], body[data-page="insights"] { --hero-img: url(/videos/hero-dawn-m.jpg); }
    body[data-page="diagnosis"] { --hero-img: url(/videos/hero-edge-m.jpg); }
    .page-hero::after { background: linear-gradient(rgba(145,167,255,.06) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(145,167,255,.06) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(180deg, rgba(11,20,35,.88), rgba(11,20,35,.7) 60%, #0B1423 100%); }
}
/* 서비스 상세: 큰 아이콘 표식 */
body[data-page^="service-"] .page-hero .container::before { position: absolute; right: 2%; top: 50%; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: clamp(120px, 20vw, 260px); line-height: 1; color: rgba(145,167,255,.16); transform: translateY(-50%); animation: v-float 7s ease-in-out infinite; pointer-events: none; z-index: -1; }
@keyframes v-float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 12px)); } }
body[data-page="service-programs"] .page-hero .container::before { content: "\f573"; }
body[data-page="service-certification"] .page-hero .container::before { content: "\f0a3"; }
body[data-page="service-marketing"] .page-hero .container::before { content: "\f0a1"; }
body[data-page="service-funding"] .page-hero .container::before { content: "\f51e"; }
body[data-page="service-global"] .page-hero .container::before { content: "\f57e"; }
body[data-page="service-growth"] .page-hero .container::before { content: "\f201"; }

/* ----- 섹션·카드 ----- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #4263EB; font-weight: 700; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-navy .eyebrow { color: #91A7FF; }
.section-ivory { background: #F1F5F9; }
.section-navy { background: radial-gradient(900px 420px at 88% -10%, rgba(66,99,235,.28), transparent 70%), radial-gradient(700px 360px at 0% 110%, rgba(145,167,255,.12), transparent 70%), #101827; }
.card, .service-card, .brief-card, .work-card, .cred-item { border-radius: 16px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.card:hover, .service-card:hover, .brief-card:hover, .work-card:hover, .cred-item:hover { transform: translateY(-5px); border-color: #91A7FF; box-shadow: 0 18px 40px rgba(16,24,39,.10), 0 0 0 1px rgba(145,167,255,.35); }
.svc-no, .w-no { font-family: Inter, sans-serif; letter-spacing: .06em; }
.site-footer { border-top: 3px solid #4263EB; }

/* ----- 스크롤 등장 ----- */
html.v-js .v-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.v-js .v-rv.v-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.v-js .v-rv { opacity: 1; transform: none; transition: none; }
    .page-hero::before, .page-hero .container > *, body[data-page^="service-"] .page-hero .container::before { animation: none; }
    .v-progress { display: none; }
}

/* 대표 인사말 */
#greeting .section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.15; }
#greeting .greeting > p:first-child { font-size: 1.3rem; font-weight: 700; color: #0B1423; }
#greeting .greeting-more p { margin-top: 1.1rem; }

/* ----- 추가 애니메이션 (10/24 2차) ----- */
.v-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.v-orb.o1 { width: 420px; height: 420px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(66,99,235,.7), transparent 70%); animation: v-drift1 16s ease-in-out infinite alternate; }
.v-orb.o2 { width: 340px; height: 340px; left: 38%; bottom: -160px; background: radial-gradient(circle, rgba(145,167,255,.5), transparent 70%); animation: v-drift2 19s ease-in-out infinite alternate; }
@keyframes v-drift1 { to { transform: translate(-120px, 90px) scale(1.2); } }
@keyframes v-drift2 { to { transform: translate(140px, -60px) scale(.85); } }
.page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.page-hero h1 .w > i { display: inline-block; font-style: normal; transform: translateY(110%); animation: v-word .85s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes v-word { to { transform: none; } }
.page-hero h1 { animation: none !important; opacity: 1 !important; }
html.v-js .section-head.v-rv .eyebrow::before { transform: scaleX(0); transform-origin: left center; transition: transform .8s cubic-bezier(.2,.7,.2,1) .35s; }
html.v-js .section-head.v-rv.v-in .eyebrow::before { transform: none; }
html.v-js .v-rv.v-sc { transform: translateY(30px) scale(.94); }
html.v-js .v-rv.v-sc.v-in { transform: none; }
html.v-js .v-rv.v-l { transform: translateX(-44px); }
html.v-js .v-rv.v-r { transform: translateX(44px); }
html.v-js .v-rv.v-l.v-in, html.v-js .v-rv.v-r.v-in { transform: none; }
.v-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(66,99,235,.13), transparent 62%); z-index: 0; }
.v-has-glow:hover > .v-glow { opacity: 1; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s; pointer-events: none; }
.btn-primary:hover::after { left: 130%; }
.btn { transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.page-hero .btn-primary { animation: v-pulse 3.2s ease-in-out 1.6s infinite; }
@keyframes v-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(66,99,235,.45); } 50% { box-shadow: 0 0 0 12px rgba(66,99,235,0); } }
html.v-js .v-rv.v-row { transform: translateX(-18px); }
html.v-js .v-rv.v-row.v-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .v-orb, .page-hero .btn-primary { animation: none; }
    .page-hero h1 .w > i { animation: none; transform: none; }
    html.v-js .v-rv.v-sc, html.v-js .v-rv.v-l, html.v-js .v-rv.v-r, html.v-js .v-rv.v-row { transform: none; }
    .btn-primary::after { display: none; }
}
