@charset "utf-8";

:root {
    --black: #1d2024;
    --text: #22262a;
    --muted: #43484e;
    --gold: #d0b34f;
    --header: 54px;
    --side: clamp(40px, 2.55vw, 50px);
    --wide-pad: clamp(40px, 2.5vw, 48px);
    --content-max: 1880px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
    letter-spacing: -0.035em;
    word-break: keep-all;
    overflow-x: hidden;
}

body.is-lock {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: #111;
    border-radius: 6px;
}

.skip-link:focus {
    top: 16px;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scroll {
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.header-inner {
    width: 100%;
    height: var(--header);
    padding: 0 var(--side);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 132px;
    margin: 0;
    position: relative;
    z-index: 102;
}

.logo a {
    display: block;
}

.gnb {
    position: absolute;
    left: 50%;
    top: 0;
    height: var(--header);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 44px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.gnb a {
    position: relative;
    padding: 18px 0;
}

.gnb a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 13px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .25s ease;
}

.gnb a:hover::after,
.gnb a.is-active::after {
    width: 100%;
}

.menu-btn {
    display: none;
}

/* Common */
.section {
    position: relative;
    overflow: hidden;
}

.section-inner {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--wide-pad);
}

.center {
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.045em;
}

h2,
h3,
p {
    margin: 0;
}

h2 {
    color: #1c1f23;
    font-size: clamp(42px, 3.1vw, 58px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.075em;
}

.section-desc {
    margin-top: 28px;
    color: #333940;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: -0.04em;
}

.lead {
    margin-top: 25px;
    color: #202326;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.75;
}

/* Hero */
.hero {
    min-height: 745px;
    padding-top: var(--header);
    background:
        url("../img/curve-bg.svg") center top / cover no-repeat,
        #fff;
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: calc(745px - var(--header));
    min-height: 691px;
    margin: 0 auto;
    padding: 0 var(--side);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: var(--side);
    top: 154px;
    width: 760px;
}

.hero-copy .eyebrow {
    margin-bottom: 28px;
}

.hero-copy h2 {
    font-size: clamp(56px, 4.55vw, 86px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.085em;
}

.summary {
    margin-top: 27px;
    color: #2b3035;
    font-size: clamp(22px, 1.55vw, 30px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.07em;
}

.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 185px;
    margin-top: 54px;
    padding: 0 0 12px 6px;
    border-bottom: 1px solid #1b1d20;
    color: #1c1f23;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.text-link::after {
    content: "→";
    font-size: 24px;
    line-height: 1;
    transition: transform .25s ease;
}

.text-link:hover::after {
    transform: translateX(6px);
}

.hero-visual {
    position: absolute;
    z-index: 1;
    right: var(--side);
    top: 10px;
    width: calc(100% - 760px);
    max-width: 1154px;
    height: 640px;
    border-radius: 22px;
    background: url("../img/hero-lab.jpg") center / cover no-repeat;
}

/* Intro */
.intro {
    min-height: 660px;
    padding: 144px 0 158px;
    background: linear-gradient(180deg, #edf6f9 0%, #f8fcfd 100%);
}

.intro-dna {
    position: absolute;
    right: 0;
    top: -28px;
    width: min(55vw, 760px);
    height: 100%;
    background: url("../img/dna-bg.jpg") right top / contain no-repeat;
    opacity: .74;
}

.intro .section-inner {
    position: relative;
    z-index: 1;
}

.intro h2,
.about h2,
.research h2 {
    font-size: clamp(38px, 3.25vw, 56px);
}

.marquee-word {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeFlow 28s linear infinite;
}

.marquee-track span {
    flex: 0 0 auto;
    padding-right: .18em;
    color: rgba(255,255,255,.68);
    font-size: clamp(86px, 11.8vw, 210px);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 1;
    white-space: nowrap;
}

@keyframes marqueeFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* About */
.about {
    padding: 138px 0 118px;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(60px, 7vw, 135px);
    align-items: center;
}

.about-visual {
    height: 424px;
    border-radius: 16px;
    background: url("../img/about-lab.jpg") center / cover no-repeat;
}

.about-copy {
    text-align: center;
    padding-right: 20px;
}

.chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.chips span {
    min-height: 34px;
    padding: 7px 18px;
    border-radius: 999px;
    color: #5d646b;
    background: #f1f3f4;
    font-size: 13px;
    font-weight: 500;
}

/* Research */
.research {
    padding: 84px 0 150px;
}

.research-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.research-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 274px;
    padding: 30px;
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    background-color: #153577;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .35s ease, box-shadow .35s ease;
}

.research-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(to top, rgba(7,17,30,.58), rgba(7,17,30,.08));
    transition: opacity .35s ease;
}

.research-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #153577;
    opacity: 0;
    transition: opacity .35s ease;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(20, 32, 48, .18);
}

.research-card:hover::after {
    opacity: .96;
}

.card-01 { background-image: url("../img/research01.jpg"); }
.card-02 { background-image: url("../img/research02.jpg"); }
.card-03 { background-image: url("../img/research02.jpg"); }
.card-04 { background-image: url("../img/research04.jpg"); }

.research-card h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.06em;
}

.research-card p {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.6;
    transition: max-height .35s ease, margin-top .35s ease, opacity .35s ease;
}

.research-card:hover p {
    max-height: 70px;
    margin-top: 12px;
    opacity: 1;
}

/* Vision */
.vision {
    min-height: 560px;
    padding: 155px 0 164px;
    background: linear-gradient(180deg, #edf6f9 0%, #e8f3f7 100%);
}

.vision .section-inner {
    position: relative;
    z-index: 1;
}

.vision-molecule {
    position: absolute;
    right: 0;
    top: 0;
    width: min(56vw, 760px);
    height: 100%;
    background: url("../img/molecule-bg.jpg") right top / contain no-repeat;
    opacity: .76;
}

.vision h2 {
    font-size: clamp(42px, 3.35vw, 60px);
}

/* Footer */
.site-footer {
    padding: 48px var(--side) 54px;
    color: rgba(255,255,255,.56);
    background: #202326;
    text-align: center;
    font-size: 13px;
    line-height: 1.75;
}

.footer-inner {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.footer-logo {
    width: 132px;
    filter: brightness(0) invert(1);
    opacity: .96;
    margin-bottom: 8px;
}

/* Effects */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .85s ease, transform .85s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual.reveal {
    transform: translateY(26px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 1440px) {
    .hero-copy {
        width: 670px;
        top: 156px;
    }

    .hero-visual {
        width: calc(100% - 680px);
        height: 610px;
    }

    .hero-copy h2 {
        font-size: clamp(52px, 4.35vw, 70px);
    }

    .summary {
        font-size: clamp(20px, 1.45vw, 25px);
    }
}

@media (max-width: 1180px) {
    :root {
        --header: 64px;
        --side: 28px;
        --wide-pad: 28px;
    }

    .header-inner {
        padding-inline: var(--side);
    }

    .gnb {
        gap: 30px;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header) + 38px) 0 76px;
    }

    .hero-inner {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 44px;
        padding-inline: var(--side);
    }

    .hero-copy,
    .hero-visual {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: none;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero-copy h2 {
        font-size: clamp(44px, 7vw, 68px);
    }

    .hero-visual {
        height: auto;
        min-height: 470px;
        border-radius: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .about-copy {
        text-align: left;
        padding-right: 0;
    }

    .chips {
        justify-content: flex-start;
    }

    .research-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .logo {
        width: 128px;
    }

    .menu-btn {
        position: relative;
        z-index: 102;
        display: grid;
        place-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
    }

    .menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #111;
        transition: transform .25s ease, opacity .25s ease;
    }

    .menu-btn em {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
    }

    .is-menu-open .menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .is-menu-open .menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .is-menu-open .menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .gnb {
        position: fixed;
        z-index: 101;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 96px 24px 48px;
        transform: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 28px;
        background: #fff;
        font-size: 24px;
        font-weight: 700;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .gnb a {
        display: block;
        width: 100%;
        max-width: 280px;
        padding: 12px 0;
        color: #1c1f23;
        text-align: center;
    }

    .gnb a::after {
        display: none;
    }

    .is-menu-open .gnb {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        background:
            linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
            url("../img/curve-bg.svg") center top / cover no-repeat,
            #fff;
    }

    .hero-copy .eyebrow {
        margin-bottom: 18px;
    }

    .hero-copy h2 {
        font-size: clamp(38px, 9vw, 54px);
    }

    .summary {
        font-size: 17px;
    }

    .hero-visual {
        min-height: 360px;
        border-radius: 18px;
    }

    .intro,
    .about,
    .vision {
        padding: 100px 0;
    }

    .research {
        padding: 70px 0 105px;
    }

    .intro-dna,
    .vision-molecule {
        width: 90vw;
        opacity: .32;
    }

    .section-desc {
        font-size: 15px;
        line-height: 1.85;
    }

    .marquee-word {
        bottom: -5px;
    }

    .marquee-track span {
        font-size: 68px;
    }
}

@media (max-width: 560px) {
    :root {
        --side: 18px;
        --wide-pad: 18px;
    }

    body {
        font-size: 15px;
    }

    h2,
    .hero-copy h2 {
        font-size: 35px;
        letter-spacing: -.075em;
    }

    .eyebrow {
        font-size: 13px;
    }

    .hero {
        padding-bottom: 60px;
    }

    .hero-inner {
        gap: 34px;
    }

    .hero-visual {
        min-height: 245px;
        border-radius: 14px;
    }

    .summary {
        margin-top: 18px;
    }

    .text-link {
        width: 150px;
        margin-top: 34px;
        font-size: 14px;
    }

    .about-visual {
        height: 260px;
    }

    .research-list {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .research-card {
        min-height: 220px;
        padding: 24px;
    }

    .research-card h3 {
        font-size: 21px;
    }

    .site-footer {
        font-size: 12px;
    }
}


@media (max-width: 860px) {
    .research-card::after {
        opacity: .72;
    }

    .research-card p {
        max-height: 70px;
        margin-top: 12px;
        opacity: 1;
    }
}


/* ==================================================
   FULLPAGE SMOOTH VERSION
   - JS 제어형 부드러운 풀페이지 스크롤
   - 헤더는 섹션 위에 얹히는 overlay 구조
================================================== */

html {
    scroll-behavior: auto;
    scroll-snap-type: none !important;
}

body {
    overflow-y: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    width: 165px;
    height: 35px;
}

.logo img {
    width: 165px;
    height: 35px;
}

.gnb {
    font-size: 20px;
    gap: 54px;
}

/* Fullpage sections */
.section {
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

.hero,
.intro,
.about,
.research,
.vision {
    height: 100vh;
    min-height: 100vh;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hero center correction */
.hero-inner {
    height: 100vh;
    min-height: 100vh;
}

.hero-copy {
    top: 50%;
    transform: translateY(-50%);
    width: min(1060px, 68vw);
}

.hero-copy.reveal {
    transform: translateY(calc(-50% + 36px));
}

.hero-copy.reveal.is-visible {
    transform: translateY(-50%);
}

.hero-copy h2 {
    position: relative;
    z-index: 3;
    font-size: clamp(56px, 4.35vw, 84px);
}

.hero-title-line {
    white-space: nowrap;
}

.hero-visual {
    top: 50%;
    transform: translateY(-50%);
    width: min(1120px, 63vw);
    height: min(640px, 72vh);
}

.hero-visual.reveal {
    transform: translateY(calc(-50% + 26px));
}

.hero-visual.reveal.is-visible {
    transform: translateY(-50%);
}

/* Other sections vertically centered */
.intro,
.about,
.research,
.vision {
    display: flex;
    align-items: center;
}

/* Footer is a fullpage target too, but shorter content stays centered */
.site-footer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: natural scroll */
@media (max-width: 860px) {
    html {
        scroll-behavior: smooth;
    }

    .gnb {
        font-size: 24px;
        gap: 28px;
    }

    .section,
    .hero,
    .intro,
    .about,
    .research,
    .vision {
        height: auto;
        min-height: auto;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-inner {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-copy,
    .hero-copy.reveal,
    .hero-copy.reveal.is-visible,
    .hero-visual,
    .hero-visual.reveal,
    .hero-visual.reveal.is-visible {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-visual {
        height: auto;
        min-height: 360px;
    }

    .site-footer {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .logo,
    .logo img {
        width: 142px;
        height: 30px;
    }

    .hero-visual {
        min-height: 245px;
    }
}


/* ==================================================
   FOOTER NORMAL SCROLL FIX v6
   - 푸터는 fullpage 대상 아님
   - 마지막 섹션에서 한 번 더 내리면 일반 사이트처럼 푸터가 이어서 보임
================================================== */

.site-footer {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    padding: 48px var(--side) 54px;
}


/* ==================================================
   HEADER SPACING + HERO LINE ANIMATION v7
================================================== */

/*
    기본 상태:
    로고/메뉴 위아래 여백 45px
    로고 높이 35px 기준 header 높이 = 35 + 45 + 45 = 125px
*/
:root {
    --header-space: 45px;
    --header-logo-h: 35px;
    --header-active-space: 30px;
}

/* 헤더 높이/여백 */
.site-header {
    height: calc(var(--header-logo-h) + (var(--header-space) * 2)) !important;
    transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}

/* 스크롤 후 헤더 여백 30px */
.site-header.is-scroll {
    height: calc(var(--header-logo-h) + (var(--header-active-space) * 2)) !important;
}

/* 로고와 메뉴를 같은 수직 기준으로 정렬 */
.header-inner {
    height: 100% !important;
    padding-top: var(--header-space);
    padding-bottom: var(--header-space);
    align-items: flex-start;
    transition: padding .35s ease;
}

.site-header.is-scroll .header-inner {
    padding-top: var(--header-active-space);
    padding-bottom: var(--header-active-space);
}

/* 메뉴도 로고와 같은 상단 기준 */
.gnb {
    top: var(--header-space);
    height: var(--header-logo-h);
    align-items: center;
    transition: top .35s ease;
}

.site-header.is-scroll .gnb {
    top: var(--header-active-space);
}

/* 모바일 버튼도 같은 높이 기준 */
.menu-btn {
    margin-top: -3px;
}

/* 히어로 백그라운드 라인 애니메이션 */
.hero {
    position: relative;
    background: #fff !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -8% -12%;
    z-index: 0;
    background: url("../img/curve-bg.svg") center top / 115% auto repeat-x;
    opacity: .95;
    animation: heroLineFlow 18s linear infinite;
    pointer-events: none;
    will-change: background-position, transform;
}

/* 기존 콘텐츠는 라인 위로 */
.hero-inner {
    position: relative;
    z-index: 1;
}

@keyframes heroLineFlow {
    0% {
        background-position: 0 0;
        transform: translate3d(0,0,0);
    }
    50% {
        background-position: 80px 18px;
        transform: translate3d(-18px, 0, 0);
    }
    100% {
        background-position: 160px 0;
        transform: translate3d(0,0,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}

@media (max-width: 860px) {
    :root {
        --header-space: 24px;
        --header-active-space: 18px;
    }

    .site-header {
        height: calc(var(--header-logo-h) + (var(--header-space) * 2)) !important;
    }

    .site-header.is-scroll {
        height: calc(var(--header-logo-h) + (var(--header-active-space) * 2)) !important;
    }

    .gnb {
        top: 0;
        height: 100vh;
        height: 100dvh;
    }

    .site-header.is-scroll .gnb {
        top: 0;
    }

    .hero::before {
        background-size: 220% auto;
        animation-duration: 24s;
    }
}

@media (max-width: 560px) {
    :root {
        --header-logo-h: 30px;
        --header-space: 20px;
        --header-active-space: 14px;
    }
}


/* ==================================================
   v8 REQUEST FIXES
   1. 메인 백그라운드 이미지 교체
   2. 메뉴 링크 2~5섹션 기준
   3. 2섹션 흐르는 텍스트 여백/속도/문구 수정
   4. 4섹션 카드 460x470 비율 적용
   5. 레이아웃 모바일화 시 햄버거 메뉴 적용
   6. 모바일 섹션 여백/패딩 보정
   7. 오른쪽 섹션 페이지네이션 도트 추가
================================================== */

/* 1. 메인 섹션 백그라운드 이미지 */
.hero {
    background:
        url("../img/hero-bg-new.jpg") center center / cover no-repeat,
        #fff !important;
}

/* 기존 라인 애니메이션은 새 백그라운드 이미지 위에 너무 겹치지 않게 제거 */
.hero::before {
    display: none !important;
}

/* 3. 2번째 섹션 하단 흐르는 텍스트 */
.marquee-word {
    bottom: 50px !important;
}

.marquee-track {
    animation-duration: 46s !important;
}

.marquee-track span {
    text-transform: uppercase;
}

/* 4. 연구영역 카드 460x470 비율 */
.research-list {
    grid-template-columns: repeat(4, minmax(0, 460px));
    justify-content: center;
    gap: clamp(14px, 1.35vw, 24px);
}

.research-card {
    width: 100%;
    aspect-ratio: 460 / 470;
    min-height: auto !important;
    height: auto;
}

/* 7. 오른쪽 페이지네이션 도트 */
.page-dots {
    position: fixed;
    right: clamp(22px, 2.2vw, 42px);
    top: 50%;
    z-index: 998;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-dots a {
    position: relative;
    display: block;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(25, 28, 32, .45);
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.page-dots a::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.page-dots a.is-active,
.page-dots a:hover {
    background: #202326;
    border-color: #202326;
    transform: scale(1.18);
}

.page-dots span {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 22, 24, .78);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.page-dots a:hover span {
    opacity: 1;
}

/* 5. 레이아웃이 모바일화되는 구간부터 햄버거 */
@media (max-width: 1180px) {
    .menu-btn {
        position: relative;
        z-index: 1001;
        display: grid;
        place-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
    }

    .menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #111;
        transition: transform .25s ease, opacity .25s ease;
    }

    .menu-btn em {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
    }

    .is-menu-open .menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .is-menu-open .menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .is-menu-open .menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .gnb {
        position: fixed;
        z-index: 1000;
        inset: 0;
        left: auto;
        top: 0 !important;
        transform: none;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 120px 24px 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 28px;
        background: #fff;
        color: #1c1f23;
        font-size: 24px;
        font-weight: 700;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .gnb a {
        display: block;
        width: 100%;
        max-width: 320px;
        padding: 12px 0;
        text-align: center;
    }

    .gnb a::after {
        display: none;
    }

    .is-menu-open .gnb {
        opacity: 1;
        visibility: visible;
    }

    .research-list {
        grid-template-columns: repeat(2, minmax(0, 460px));
        max-width: 960px;
        margin-inline: auto;
    }
}

/* 6. 모바일 섹션 여백/패딩 */
@media (max-width: 860px) {
    .page-dots {
        display: none;
    }

    .section,
    .hero,
    .intro,
    .about,
    .research,
    .vision {
        height: auto !important;
        min-height: auto !important;
    }

    .hero {
        min-height: 100vh !important;
        padding: 110px 0 70px !important;
    }

    .intro,
    .about,
    .research,
    .vision {
        padding: 96px 0 !important;
    }

    .section-inner,
    .hero-inner {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-inner {
        min-height: auto !important;
        height: auto !important;
        gap: 42px;
    }

    .about-grid {
        gap: 42px;
    }

    .section-desc {
        margin-top: 22px;
    }

    .marquee-word {
        bottom: 24px !important;
    }

    .marquee-track span {
        font-size: 72px;
    }

    .research-list {
        grid-template-columns: 1fr;
        max-width: 460px;
        gap: 18px;
    }

    .research-card {
        aspect-ratio: 460 / 470;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 96px 0 58px !important;
    }

    .intro,
    .about,
    .research,
    .vision {
        padding: 78px 0 !important;
    }

    .section-inner,
    .hero-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .marquee-track span {
        font-size: 56px;
    }
}


/* ==================================================
   v9 HAMBURGER BREAKPOINT FIX
   - 1180px 이하부터 원페이지 효과 해제
   - 1180px 이하부터 오른쪽 도트 숨김
   - 연구영역 카드: 1180~481px 2열 유지
   - 480px 이하 1열
================================================== */

@media (max-width: 1180px) {
    html {
        scroll-behavior: smooth;
        scroll-snap-type: none !important;
    }

    body {
        overflow-y: auto;
    }

    .page-dots {
        display: none !important;
    }

    .section,
    .hero,
    .intro,
    .about,
    .research,
    .vision {
        height: auto !important;
        min-height: auto !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    .hero {
        min-height: 100vh !important;
        padding: 120px 0 80px !important;
    }

    .intro,
    .about,
    .research,
    .vision {
        display: block !important;
        padding: 110px 0 !important;
    }

    .hero-inner {
        height: auto !important;
        min-height: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 48px;
    }

    .hero-copy,
    .hero-copy.reveal,
    .hero-copy.reveal.is-visible,
    .hero-visual,
    .hero-visual.reveal,
    .hero-visual.reveal.is-visible {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-visual {
        height: auto;
        min-height: 430px;
    }

    .research-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 960px;
        margin-inline: auto;
    }

    .research-card {
        aspect-ratio: 460 / 470;
    }
}

@media (max-width: 860px) {
    .intro,
    .research,
    .vision {
        padding: 96px 0 !important;
    }
    .about{
        padding: 80px 0 !important;
    }

    .research-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .research-list {
        grid-template-columns: 1fr !important;
        max-width: 460px;
    }
}


/* ==================================================
   v10 MOBILE GAP + HERO BACKGROUND MOTION
   - 모바일화 구간에서 3번/4번 섹션 사이 간격 절반 축소
   - 메인 줄 배경에 부드러운 흐름 애니메이션 적용
================================================== */

/* 메인 줄 배경 애니메이션 */
.hero {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: 0;
    background: url("../img/hero-bg-new.jpg") center center / 108% auto no-repeat;
    animation: heroBgFlow 22s ease-in-out infinite alternate;
    transform-origin: center;
    pointer-events: none;
    will-change: background-position, transform;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

@keyframes heroBgFlow {
    0% {
        background-position: 48% 50%;
        transform: scale(1);
    }

    50% {
        background-position: 54% 49%;
        transform: scale(1.025);
    }

    100% {
        background-position: 46% 51%;
        transform: scale(1.01);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}

/*
    햄버거 메뉴가 나오는 구간:
    3번 섹션(.about) 아래 여백 + 4번 섹션(.research) 위 여백만 줄여서
    두 흰색 섹션 사이가 과하게 벌어져 보이는 문제 수정
*/
@media (max-width: 1180px) {
    .about {
        padding-bottom: 55px !important;
    }

    .research {
        padding-top: 55px !important;
    }
}

@media (max-width: 860px) {
    .about {
        padding-bottom: 48px !important;
    }

    .research {
        padding-top: 48px !important;
    }

    .hero::before {
        inset: -6%;
        background-size: auto 100%;
        animation-duration: 26s;
    }
}

@media (max-width: 560px) {
    .about {
        padding-bottom: 39px !important;
    }

    .research {
        padding-top: 39px !important;
    }
}


/* ==================================================
   v11 IMAGE ASSET + SCROLL FIX
   - 업로드 이미지 순서대로 각 섹션/카드 적용
   - 메인 줄 배경 복구 + 부드러운 애니메이션
================================================== */

/* 1섹션: 메인 줄 백그라운드 복구 */
.hero {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

.hero::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: -6%;
    z-index: 0;
    background-image: url("../img/hero-line-bg.jpg") !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 112% auto;
    opacity: 1;
    pointer-events: none;
    animation: heroLineMotion 24s ease-in-out infinite alternate;
    will-change: background-position, transform;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

@keyframes heroLineMotion {
    0% {
        background-position: 47% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 53% 49%;
        transform: scale(1.025);
    }
    100% {
        background-position: 49% 51%;
        transform: scale(1.012);
    }
}

/* 2섹션 배경 */
.intro {
    background:
        linear-gradient(rgba(237,246,249,.78), rgba(248,252,253,.78)),
        url("../img/bg_02.jpg") right top / cover no-repeat !important;
}

/* 기존 DNA 레이어는 업로드 배경과 중복되므로 비활성화 */
.intro-dna {
    display: none !important;
}

/* 3섹션 왼쪽 이미지 */
.about-visual {
    background-image: url("../img/m03.jpg") !important;
    background-position: center center;
    background-size: cover;
}

/* 4섹션 카드 이미지 */
.card-01 { background-image: url("../img/m04_01.jpg") !important; }
.card-02 { background-image: url("../img/m04_02.jpg") !important; }
.card-03 { background-image: url("../img/m04_03.jpg") !important; }
.card-04 { background-image: url("../img/m04_04.jpg") !important; }

/* 5섹션 배경 */
.vision {
    background:
        linear-gradient(rgba(237,246,249,.72), rgba(232,243,247,.72)),
        url("../img/bg_05.jpg") right top / cover no-repeat !important;
}

/* 기존 molecule 레이어는 업로드 배경과 중복되므로 비활성화 */
.vision-molecule {
    display: none !important;
}

@media (max-width: 860px) {
    .hero::before {
        inset: -8%;
        background-size: auto 100%;
        animation-duration: 28s;
    }

    .intro,
    .vision {
        background-position: center top !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none !important;
    }
}


/* ==================================================
   v12 REQUEST FIXES
   - 2/5섹션 배경 이미지 오파시티/그라데이션 제거
   - 3섹션 왼쪽 이미지 원본 비율 유지
   - 메인 줄 배경 애니메이션 강화
   - 우측 하단 top 버튼 추가
================================================== */

/* 2번째 섹션: 업로드 이미지 그대로 */
.intro {
    background-image: url("../img/bg_02.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

/* 5번째 섹션: 업로드 이미지 그대로 */
.vision {
    background-image: url("../img/bg_05.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

/* 3번째 섹션 왼쪽 이미지: 원본 비율 유지 */
.about-visual {
    aspect-ratio: 950 / 700;
    height: auto !important;
    min-height: 0 !important;
    background-image: url("../img/m03.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border-radius: 16px;
}

/* 메인 섹션 줄 배경 애니메이션 */
.hero {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

.hero::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: -10%;
    z-index: 0;
    background-image: url("../img/hero-line-bg.jpg") !important;
    background-repeat: repeat-x;
    background-position: 0 50%;
    background-size: auto 100%;
    opacity: 1 !important;
    pointer-events: none;
    animation: heroLineSlide 32s linear infinite;
    will-change: background-position, transform;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

@keyframes heroLineSlide {
    0% {
        background-position: 0 50%;
        transform: scale(1.02);
    }
    50% {
        background-position: 260px 50%;
        transform: scale(1.045);
    }
    100% {
        background-position: 520px 50%;
        transform: scale(1.02);
    }
}

/* 우측 하단 상단 이동 버튼 */
.top-btn {
    position: fixed;
    right: clamp(22px, 2.2vw, 42px);
    bottom: clamp(22px, 2.2vw, 42px);
    z-index: 1002;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(32,35,38,.22);
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    color: #202326;
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease;
}

.top-btn span {
    display: block;
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}

.top-btn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-btn:hover {
    background: #202326;
    color: #fff;
}

@media (max-width: 860px) {
    .about-visual {
        width: 100%;
        background-size: contain !important;
    }

    .hero::before {
        inset: -12%;
        background-size: auto 100%;
        animation-duration: 38s;
    }

    .top-btn {
        width: 46px;
        height: 46px;
        right: 18px;
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none !important;
    }
}


/* ==================================================
   v13 MOBILE HERO TITLE + LOGO IMAGE
================================================== */

/* 첨부 로고 이미지 적용 */
.logo,
.logo img {
    width: 165px;
    height: 35px;
    object-fit: contain;
}

.footer-logo {
    width: 165px;
    height: 35px;
    object-fit: contain;
}

/* 히어로 타이틀 PC/모바일 문장 분리 */
.title-mobile {
    display: none;
}

.title-desktop {
    display: inline;
}

@media (max-width: 860px) {
    .hero-copy h2 {
        font-size: clamp(34px, 6.8vw, 48px) !important;
        line-height: 1.22;
    }
}

@media (max-width: 572px) {
    .title-desktop {
        display: none;
    }

    .title-mobile {
        display: inline;
    }

    .hero-copy h2 {
        font-size: clamp(30px, 8.2vw, 40px) !important;
        line-height: 1.24;
        letter-spacing: -0.075em;
    }
}

@media (max-width: 420px) {
    .hero-copy h2 {
        font-size: clamp(28px, 8.4vw, 34px) !important;
    }
}


/* ==================================================
   v14 HERO SVG CURVE + SUBTLE PARTICLES
   - 기존 배경 이미지 이동 방식 제거
   - SVG 곡선 stroke 애니메이션
   - 매우 약한 바이오 입자 플로팅
================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

/* 기존 hero::before 이미지 배경 애니메이션 완전 제거 */
.hero::before {
    content: none !important;
    display: none !important;
}

/* SVG 모션 백그라운드 */
.hero-motion-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #fff;
}

.hero-motion-bg svg {
    position: absolute;
    inset: -6% -4%;
    width: 108%;
    height: 112%;
}

.curve-set {
    fill: none;
    stroke: #dfe5e9;
    stroke-width: 1.05;
    stroke-linecap: round;
    opacity: .68;
}

.curve-set path {
    stroke-dasharray: 1700;
    stroke-dashoffset: 1700;
    animation: curveDraw 9.5s ease-in-out infinite alternate;
}

.curve-set-01 path:nth-child(2),
.curve-set-02 path:nth-child(2),
.curve-set-03 path:nth-child(2) {
    animation-delay: .35s;
}

.curve-set-01 path:nth-child(3),
.curve-set-02 path:nth-child(3),
.curve-set-03 path:nth-child(3) {
    animation-delay: .7s;
}

.curve-set-01 path:nth-child(4),
.curve-set-02 path:nth-child(4) {
    animation-delay: 1.05s;
}

.curve-set-01 path:nth-child(5),
.curve-set-02 path:nth-child(5) {
    animation-delay: 1.4s;
}

.curve-set-02 {
    opacity: .55;
}

.curve-set-03 {
    opacity: .42;
}

@keyframes curveDraw {
    0% {
        stroke-dashoffset: 1700;
        opacity: .18;
    }

    45% {
        opacity: .72;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: .44;
    }
}

/* 매우 약한 바이오 입자 */
.bio-particle {
    position: absolute;
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(119, 159, 184, .28);
    box-shadow: 0 0 18px rgba(119, 159, 184, .28);
    filter: blur(.1px);
    animation: particleFloat 12s ease-in-out infinite;
}

.bio-particle::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(119, 159, 184, .12);
    border-radius: 50%;
}

.p1 { left: 18%; top: 28%; animation-delay: 0s; }
.p2 { left: 42%; top: 22%; width: 5px; height: 5px; animation-delay: 2.1s; }
.p3 { left: 68%; top: 36%; width: 8px; height: 8px; animation-delay: 1.2s; }
.p4 { left: 78%; top: 68%; width: 6px; height: 6px; animation-delay: 3.2s; }
.p5 { left: 32%; top: 72%; width: 4px; height: 4px; animation-delay: 4.4s; }
.p6 { left: 88%; top: 24%; width: 5px; height: 5px; animation-delay: 5.3s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(.82);
        opacity: .12;
    }

    45% {
        opacity: .48;
    }

    60% {
        transform: translate3d(18px, -28px, 0) scale(1.15);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 1180px) {
    .hero-motion-bg svg {
        inset: -4% -34%;
        width: 150%;
        height: 110%;
    }
}

@media (max-width: 860px) {
    .curve-set {
        stroke-width: .9;
        opacity: .5;
    }

    .bio-particle {
        opacity: .55;
    }

    .p4,
    .p6 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .curve-set path,
    .bio-particle {
        animation: none !important;
    }

    .curve-set path {
        stroke-dashoffset: 0;
    }
}


/* ==================================================
   v15 HERO BG VISIBILITY + FOOTER LOGO + HERO IMAGE
================================================== */

/* 메인 오른쪽 이미지 교체 */
.hero-visual {
    background-image: url("../img/hero-lab.jpg") !important;
    background-position: center center;
    background-size: cover;
}

/* 푸터 로고는 첨부 이미지 그대로 */
.footer-logo {
    width: 165px !important;
    height: 35px !important;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
}

/* 메인 SVG 곡선: 더 선명하고 촘촘하게 */
.hero-motion-bg {
    background: #fff;
}

.hero-motion-bg svg {
    inset: -8% -6%;
    width: 112%;
    height: 116%;
}

.curve-set {
    stroke: #cfd8df !important;
    stroke-width: 1.45 !important;
    opacity: .95 !important;
}

.curve-set-01 {
    opacity: .92 !important;
}

.curve-set-02 {
    opacity: .86 !important;
}

.curve-set-03 {
    opacity: .74 !important;
}

.curve-set path {
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    animation: curveDrawStrong 10.5s ease-in-out infinite alternate !important;
}

/* 기존보다 '줄이 많이 보이는' 느낌을 위해 drop-shadow 아주 약하게 */
.curve-set path {
    filter: drop-shadow(0 0 1px rgba(170,185,195,.35));
}

@keyframes curveDrawStrong {
    0% {
        stroke-dashoffset: 2200;
        opacity: .34;
    }

    42% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: .78;
    }
}

/* 입자 더 잘 보이게 */
.bio-particle {
    width: 10px;
    height: 10px;
    background: rgba(68, 130, 168, .46) !important;
    box-shadow:
        0 0 20px rgba(68, 130, 168, .38),
        0 0 42px rgba(68, 130, 168, .18);
}

.bio-particle::after {
    inset: -10px;
    border-color: rgba(68, 130, 168, .24) !important;
}

.p2,
.p6 {
    width: 7px;
    height: 7px;
}

.p5 {
    width: 6px;
    height: 6px;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(.82);
        opacity: .28;
    }

    45% {
        opacity: .82;
    }

    60% {
        transform: translate3d(22px, -32px, 0) scale(1.18);
    }
}

@media (max-width: 860px) {
    .curve-set {
        stroke-width: 1.15 !important;
        opacity: .72 !important;
    }

    .bio-particle {
        width: 8px;
        height: 8px;
    }
}


/* ==================================================
   v16 HERO BACKGROUND EXACT IMAGE
   - 메인 섹션 백그라운드를 첨부 이미지 느낌 그대로 적용
   - 색상/라인 밀도 보존
   - 기존 SVG/입자 효과 제거
================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

/* 기존 SVG/입자 백그라운드 숨김 */
.hero-motion-bg {
    display: none !important;
}

/* 기존 pseudo 애니메이션 완전 제거 후 첨부 이미지 그대로 적용 */
.hero::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../img/hero-bg-exact.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: none;
}

/* 콘텐츠는 배경 위 */
.hero-inner {
    position: relative;
    z-index: 1;
}

/* 모바일에서도 이미지 비율 무너지지 않게 */
@media (max-width: 860px) {
    .hero::before {
        background-position: center center !important;
        background-size: cover !important;
    }
}


/* ==================================================
   v17 HERO BACKGROUND: EXACT-STYLE SVG CURVE MOTION
   - 첨부한 라인 백그라운드의 색상/밀도/위치감 기반 SVG 재구성
   - background 이미지 이동 방식 제거
   - 곡선 라인 자체가 살아 움직이는 애니메이션
================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

/* 이전 이미지 배경/pseudo 레이어 제거 */
.hero::before {
    content: none !important;
    display: none !important;
}

/* 이전 hero 배경 이미지 제거 */
.hero-motion-bg {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    display: block !important;
    overflow: hidden;
    pointer-events: none;
    background: #fff !important;
}

.hero-curve-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 첨부 이미지처럼 아주 옅은 회색 라인 */
.hero-curve-svg g {
    fill: none;
    stroke: #dfe4e8;
    stroke-width: .9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .72;
}

/* 좌측 큰 곡선 덩어리 */
.curve-left {
    opacity: .58;
}

/* 우측 세로 곡선 덩어리 */
.curve-right {
    opacity: .6;
}

/* 하단 얽힌 곡선 */
.curve-bottom {
    opacity: .52;
}

.hero-curve-svg path {
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 2400;
    stroke-dashoffset: 0;
    animation:
        curveBreath 7.5s ease-in-out infinite alternate,
        curveTrace 12s ease-in-out infinite alternate;
}

/* 라인이 여러 개라 시간차를 줘서 물결처럼 */
.hero-curve-svg path:nth-child(2n) {
    animation-delay: .25s;
}

.hero-curve-svg path:nth-child(3n) {
    animation-delay: .5s;
}

.hero-curve-svg path:nth-child(4n) {
    animation-delay: .75s;
}

.hero-curve-svg path:nth-child(5n) {
    animation-delay: 1s;
}

@keyframes curveBreath {
    0% {
        opacity: .35;
        transform: translate3d(0, 0, 0);
    }

    50% {
        opacity: .78;
    }

    100% {
        opacity: .5;
        transform: translate3d(8px, -4px, 0);
    }
}

/* 끊김 없이 선 내부에서 흐르는 느낌 */
@keyframes curveTrace {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -180;
    }
}

/* 매우 약한 입자: 라인보다 조금만 보이게 */
.bio-particle {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(118, 156, 178, .22);
    box-shadow:
        0 0 14px rgba(118, 156, 178, .18),
        0 0 32px rgba(118, 156, 178, .1);
    animation: bioParticleFloat 13s ease-in-out infinite;
}

.bio-particle::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px solid rgba(118, 156, 178, .10);
    border-radius: 50%;
}

.p1 { left: 16%; top: 30%; animation-delay: 0s; }
.p2 { left: 39%; top: 25%; width: 5px; height: 5px; animation-delay: 2.2s; }
.p3 { left: 62%; top: 42%; width: 7px; height: 7px; animation-delay: 1.2s; }
.p4 { left: 79%; top: 66%; width: 6px; height: 6px; animation-delay: 3.8s; }
.p5 { left: 33%; top: 76%; width: 4px; height: 4px; animation-delay: 4.8s; }
.p6 { left: 88%; top: 23%; width: 5px; height: 5px; animation-delay: 5.5s; }

@keyframes bioParticleFloat {
    0%, 100% {
        opacity: .08;
        transform: translate3d(0,0,0) scale(.86);
    }

    48% {
        opacity: .34;
    }

    62% {
        transform: translate3d(16px,-24px,0) scale(1.08);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 1180px) {
    .hero-curve-svg {
        width: 150%;
        left: -25%;
    }
}

@media (max-width: 860px) {
    .hero-curve-svg g {
        stroke-width: .8;
        opacity: .5;
    }

    .curve-left {
        opacity: .45;
    }

    .curve-right {
        opacity: .48;
    }

    .curve-bottom {
        opacity: .4;
    }

    .p4,
    .p6 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-curve-svg path,
    .bio-particle {
        animation: none !important;
    }
}


/* ==================================================
   v18 TYPOGRAPHY + MOBILE CARD FIX
   - 860px 이하 연구영역 카드 파란 오버레이 제거
   - 타이포그래피 가이드 반영
   - 전체 자간: 국문 Photoshop -45 = -0.045em
   - 영문 자간: Photoshop -25 = -0.025em
================================================== */

/* 전체 기본 자간 */
body {
    letter-spacing: -0.045em !important;
}

/* 영문 요소 자간 */
html[lang="ko"] .eyebrow,
html[lang="ko"] .marquee-track span,
html[lang="ko"] .text-link,
html[lang="ko"] .page-dots span,
html[lang="ko"] .hero-copy .title-desktop,
html[lang="ko"] .hero-copy .title-mobile {
    letter-spacing: -0.025em;
}

/* 메인 히어로 타이틀: Medium */
.hero-copy h2 {
    font-weight: 500 !important;
}

/* 각 섹션 메인 타이틀: SemiBold */
.intro h2,
.about h2,
.research h2,
.vital h2,
.vision h2 {
    font-weight: 600 !important;
}

/* 각 섹션 노란색 타이틀 */
.eyebrow {
    font-size: 20px !important;
    font-weight: 500;
}

/* 각 섹션 기본 설명 문구 */
.section-desc {
    font-size: 20px !important;
}

/* 각 섹션 설명 문구 중 강조/큰 문구 */
.lead {
    font-size: 30px !important;
    font-weight: 600;
}

/* 모바일 카드가 전부 파란색으로 덮이는 문제 수정 */
@media (max-width: 860px) {
    .research-card::after {
        opacity: 0 !important;
    }

    .research-card p {
        max-height: 70px;
        margin-top: 12px;
        opacity: 1;
    }
}

/* 모바일 타이포 보정 */
@media (max-width: 860px) {
    .eyebrow {
        font-size: 16px !important;
    }

    .section-desc {
        font-size: 17px !important;
    }

    .lead {
        font-size: 24px !important;
    }
}

@media (max-width: 560px) {
    .section-desc {
        font-size: 16px !important;
    }

    .lead {
        font-size: 22px !important;
    }
}


/* ==================================================
   v19 RESPONSIVE LOGO + HERO CTA + COMPATIBILITY
================================================== */

/* 헤더/푸터 로고 반응형 축소 */
.logo,
.logo img,
.footer-logo {
    width: clamp(132px, 8.6vw, 165px) !important;
    height: auto !important;
    max-height: 35px;
    object-fit: contain;
}

/* 헤더 높이 계산용 로고 높이도 뷰포트별 보정 */
:root {
    --header-logo-h: clamp(28px, 1.85vw, 35px);
}

/* 메인 타이틀 자간 조금 더 조임 */
.hero-copy h2 {
    letter-spacing: -0.058em !important;
}

.hero-copy .title-desktop,
.hero-copy .title-mobile {
    letter-spacing: -0.058em !important;
}

/* View 버튼은 연구영역으로 이동 */
.text-link {
    cursor: pointer;
}

/* 브라우저 호환성 보강 */
.site-header {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.research-card,
.hero-visual,
.about-visual {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* aspect-ratio 미지원 브라우저용 fallback */
@supports not (aspect-ratio: 1 / 1) {
    .research-card {
        height: 470px;
    }

    @media (max-width: 1180px) {
        .research-card {
            height: auto;
            min-height: 0;
            padding-top: 102.17%;
        }

        .research-card > div {
            position: absolute;
            left: 30px;
            right: 30px;
            bottom: 30px;
        }
    }

    .about-visual {
        height: 424px !important;
    }
}

/* dvh 미지원 대응 */
@supports not (height: 100dvh) {
    .gnb {
        height: 100vh;
    }
}

/* 모바일 로고/헤더 균형 */
@media (max-width: 1180px) {
    .logo,
    .logo img,
    .footer-logo {
        width: clamp(124px, 14vw, 150px) !important;
    }
}

@media (max-width: 560px) {
    .logo,
    .logo img,
    .footer-logo {
        width: 100px !important;
    }

    .hero-copy h2 {
        letter-spacing: -0.052em !important;
    }

    .hero-copy .title-mobile {
        letter-spacing: -0.052em !important;
    }
}


/* ==================================================
   v20 PARALLAX / SCROLL MOTION
   1. 섹션 진입 시 텍스트 살짝 위로 등장
   2. 이미지 스크롤 방향에 따라 20~40px 이동
   3. 카드 stagger 효과
   4. 배경 SVG 매우 느린 모션
   5. 1180px 이하 일반 스크롤에서 약한 parallax
================================================== */

/* 진입 모션을 조금 더 고급스럽게 */
.reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .9s cubic-bezier(.22, 1, .36, 1),
        transform .9s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* 카드 순차 등장 */
.stagger-item:nth-child(1) { transition-delay: .04s; }
.stagger-item:nth-child(2) { transition-delay: .14s; }
.stagger-item:nth-child(3) { transition-delay: .24s; }
.stagger-item:nth-child(4) { transition-delay: .34s; }

/* JS parallax transform이 기존 transform을 덮지 않게 내부 will-change */
[data-parallax] {
    will-change: transform;
}

/* 배경 SVG는 매우 느린 호흡감 */
.hero-motion-bg {
    animation: heroBgDrift 26s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroBgDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(12px, -8px, 0) scale(1.012);
    }
}

/* SVG 라인은 너무 튀지 않게 */
.hero-curve-svg path {
    animation-duration: 18s !important;
}

/* 일반 스크롤 구간에서만 패럴럭스가 자연스럽게 작동 */
@media (max-width: 1180px) {
    .reveal {
        transform: translate3d(0, 26px, 0);
    }

    .stagger-item:nth-child(1) { transition-delay: .02s; }
    .stagger-item:nth-child(2) { transition-delay: .10s; }
    .stagger-item:nth-child(3) { transition-delay: .18s; }
    .stagger-item:nth-child(4) { transition-delay: .26s; }
}

/* 모바일에서는 과한 움직임 방지 */
@media (max-width: 560px) {
    .reveal {
        transform: translate3d(0, 18px, 0);
        transition-duration: .75s;
    }
}

/* 접근성: 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
    .hero-motion-bg,
    .hero-curve-svg path,
    .bio-particle {
        animation: none !important;
    }

    [data-parallax] {
        transform: none !important;
    }

    .stagger-item {
        transition-delay: 0s !important;
    }
}


/* ==================================================
   v24 FIX
   - 3번째/4번째 섹션 이미지 복구
   - 이상한 스크롤/패럴랙스 충돌 제거
   - GSAP는 섹션 진입 모션만 담당
================================================== */

/* 3번째 섹션 왼쪽 이미지 강제 복구 */
.about-visual {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    background-image: url("../img/m03.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

/* 4번째 섹션 카드 이미지 강제 복구 */
.research-list {
    display: grid !important;
}

.research-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
}

.card-01 { background-image: url("../img/m04_01.jpg") !important; }
.card-02 { background-image: url("../img/m04_02.jpg") !important; }
.card-03 { background-image: url("../img/m04_03.jpg") !important; }
.card-04 { background-image: url("../img/m04_04.jpg") !important; }

/* v20 수동 parallax transform 충돌 방지 */
[data-parallax] {
    transform: none !important;
}

/* GSAP 적용 시 wrapper 위치가 틀어지지 않도록 */
.gsap-ready .hero-copy {
    transform: translateY(-50%) !important;
}

.gsap-ready .hero-visual {
    transform: translateY(-50%) !important;
}

/* GSAP fallback 전에도 이미지가 숨지 않도록 */
.about-visual.reveal,
.research-card.reveal {
    opacity: 1;
}

/* reveal은 텍스트 중심으로만 자연스럽게 */
.gsap-ready .reveal {
    transition-delay: 0s !important;
}

@media (max-width: 1180px) {
    .hero-copy,
    .hero-copy.reveal,
    .hero-copy.reveal.is-visible,
    .hero-visual,
    .hero-visual.reveal,
    .hero-visual.reveal.is-visible {
        transform: none !important;
    }
}

@media (max-width: 860px) {
    .research-card::after {
        opacity: 0 !important;
    }

    .research-card p {
        max-height: 70px;
        margin-top: 12px;
        opacity: 1;
    }
}


/* ==================================================
   v25 BACKGROUND SCROLL PARALLAX
   - 추천 2순위: 2/5섹션 배경만 텍스트보다 느리게 움직이는 scroll parallax
   - 텍스트/콘텐츠는 고정 레이어
================================================== */

.intro,
.vision {
    position: relative;
    overflow: hidden;
    background: #fff !important;
}

.intro-bg-parallax,
.vision-bg-parallax {
    position: absolute;
    inset: -8% 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    will-change: transform;
    pointer-events: none;
}

.intro-bg-parallax {
    background-image: url("../img/bg_02.jpg");
}

.vision-bg-parallax {
    background-image: url("../img/bg_05.jpg");
}

.intro .section-inner,
.vision .section-inner,
.intro .marquee-word {
    position: relative;
    z-index: 1;
}

/* 기존 background-image 중복 방지 */
.intro {
    background-image: none !important;
}

.vision {
    background-image: none !important;
}

@media (max-width: 1180px) {
    .intro-bg-parallax,
    .vision-bg-parallax {
        inset: -5% 0;
    }
}

@media (max-width: 860px) {
    .intro-bg-parallax,
    .vision-bg-parallax {
        inset: 0;
        transform: none !important;
    }
}


/* ==================================================
   v26 INTRO MARQUEE POSITION FIX
   - v25 배경 패럴랙스 레이어 추가 후 marquee-word가 relative로 덮여 위치가 틀어진 문제 수정
   - 2번째 섹션 하단 50px 위치 유지
================================================== */

.intro .marquee-word {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 50px !important;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.intro .section-inner {
    position: relative;
    z-index: 2;
}

@media (max-width: 860px) {
    .intro .marquee-word {
        bottom: 24px !important;
    }
}


/* ==================================================
   v27 MOBILE PERFORMANCE OPTIMIZATION
   - 860px 이하 모바일에서 무거운 효과 제거
   - fixed + blur + animation 조합 최적화
================================================== */

@media (max-width: 860px) {
    /* 모바일에서 배경/입자/패럴랙스 애니메이션 정지 */
    .hero-motion-bg,
    .hero-curve-svg,
    .intro-bg-parallax,
    .vision-bg-parallax {
        animation: none !important;
        transform: none !important;
        will-change: auto !important;
    }

    .hero-curve-svg path {
        animation: none !important;
    }

    .bio-particle {
        display: none !important;
    }

    /* 모바일 fixed 헤더 blur 제거: Safari/Samsung Internet 버벅임 방지 */
    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255,255,255,.94) !important;
    }

    /* 모바일에서는 GSAP transform 과부하 방지 */
    [data-gsap],
    [data-gsap-parallax],
    .reveal,
    .stagger-item {
        will-change: auto !important;
    }

    /* 모바일 메뉴는 확실하게 흰 배경 유지 */
    .gnb {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #fff !important;
    }
}

@media (max-width: 560px) {
    /* 작은 모바일에서는 transition도 조금 짧게 */
    .reveal {
        transition-duration: .45s !important;
    }
}


/* 모바일 2→3섹션 간격 축소 */
@media (max-width:860px){

    .intro{
        padding-bottom:60px !important;
    }

    .intro .marquee-word{
        bottom:-10px !important;
    }
    .intro,
    .vision{
        min-height:auto;
        padding:90px 0 60px;
    }

    .intro .section-inner,
    .vision .section-inner{
        min-height:auto;
        justify-content:flex-start;
    }
}

/* 스크롤 후 헤더 효과 유지 */
.site-header.is-scroll {
    background: rgba(255,255,255,.50) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.04) !important;
}

/* ==================================================
   PUNGSEONG VITAL
================================================== */

.vital {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: #193276;
}

.vital-bg,
.vital-light-cover {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vital-bg {
    z-index: 0;
    background:
            url("../img/bg_07.jpg") center center / cover no-repeat;
}

.vital-light-cover {
    z-index: 1;
    background: #fff;
    opacity: 1;
    will-change: opacity;
}

.vital-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 112px;
    padding-bottom: 74px;
}

.vital-heading {
    text-align: center;
}

.vital-heading .eyebrow {
    color: var(--gold);
}

.vital-heading h2 {
    color: #1c1f23;
}

.vital-heading h2 sup,
.vital-summary sup,
.vital-card-description sup {
    position: relative;
    top: -.15em;
    font-size: .48em;
    vertical-align: super;
}

.vital-summary {
    margin-top: 24px;
    color: #333940;
}

.vital-summary-title {
    margin: 0;
    font-size: 23px;      /* 기존보다 +5px */
    font-weight: 400;     /* 다른 section-desc와 동일한 느낌 */
    line-height: 1.75;
    letter-spacing: -.04em;
}

.vital-summary-text {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: -.04em;
}

.vital-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(42px, 5vh, 62px);
}

.vital-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 48px 50px;
    overflow: hidden;
    border-radius: 18px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #202428;
    text-align: center;
    box-shadow: 0 14px 40px rgba(5, 19, 58, .08);
}

.vital-card-core {
    background-image: url("../img/con07_bg01.jpg");
}

.vital-card-patent {
    background-image: url("../img/con07_bg02.jpg");
}

.vital-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.vital-card h3 {
    color: #202428;
    font-size: clamp(25px, 1.65vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.vital-card-subtitle {
    margin-top: 10px;
    color: #252a2f;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.vital-card-description {
    margin-top: 24px;
    color: #272c31;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: -.04em;
}

/* PC 원페이지 */
@media (min-width: 1181px) {
    .vital {
        height: 100vh;
        min-height: 850px;
    }
}

/* 일반 스크롤 전환 구간 */
@media (max-width: 1180px) {
    .vital {
        min-height: auto !important;
        display: block;
    }

    .vital-inner {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .vital-card {
        min-height: 330px;
        padding: 42px 34px;
    }
}

@media (max-width: 860px) {
    .vital-inner {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .vital-summary-title {
        font-size: 20px;
    }

    .vital-summary-text {
        font-size: 15px;
        line-height: 1.85;
    }

    .vital-card-list {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 720px;
        margin-right: auto;
        margin-left: auto;
    }

    .vital-card {
        min-height: 300px;
    }

    .vital-card-subtitle {
        font-size: 17px;
    }

    .vital-card-description {
        font-size: 14px;
    }
    .vital-light-cover {
        display: none;
    }

    .vital-heading h2,
    .vital-summary {
        color: #fff;
    }
}

@media (max-width: 560px) {
    .vital-inner {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .vital-summary br {
        display: none;
    }
    .vital-summary br.bro {
        display: block !important;
    }

    .vital-card-list {
        margin-top: 36px;
    }

    .vital-card {
        min-height: 290px;
        padding: 36px 22px;
        border-radius: 14px;
    }

    .vital-card h3 {
        font-size: 24px;
    }

    .vital-card-subtitle {
        margin-top: 8px;
        font-size: 16px;
    }

    .vital-card-description {
        margin-top: 20px;
        line-height: 1.75;
    }

    .vital-card-description br {
        display: none;
    }
    .vital-card-description br.bro {
        display: block !important;
    }
}
