/* ==========================================================
   LIFEHANPAN
   STORY V01
========================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* ==========================================================
   RESET
========================================================== */

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: #050816;
    color: #ffffff;
    font-family: "Pretendard", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

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

/* ==========================================================
   VARIABLES
========================================================== */

:root {
    --hp-bg: #050816;
    --hp-bg-soft: #091120;
    --hp-surface: rgba(255, 255, 255, 0.045);
    --hp-surface-hover: rgba(255, 255, 255, 0.075);
    --hp-border: rgba(255, 255, 255, 0.08);

    --hp-white: #ffffff;
    --hp-text: #dce7f8;
    --hp-muted: #8fa5c7;

    --hp-blue: #4f8dff;
    --hp-cyan: #5edfff;
    --hp-mint: #64e3ca;
    --hp-gold: #f0bd65;
    --hp-silver: #dce4ef;

    --hp-container: 1280px;
    --hp-radius-lg: 32px;
    --hp-radius-md: 24px;
    --hp-transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================
   GLOBAL
========================================================== */

.hp-story-page {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hp-story-container {
    width: min(var(--hp-container), 92%);
    margin: 0 auto;
}

.hp-story-intro,
.hp-story-main,
.hp-story-stages,
.hp-story-promise {
    position: relative;
    z-index: 2;
}

.hp-story-kicker {
    color: #85c9ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
}

/* ==========================================================
   BACKGROUND
========================================================== */

.hp-story-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hp-story-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.95) 25%,
        rgba(0, 0, 0, 0.95) 75%,
        transparent
    );
}

.hp-story-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.24;
    mix-blend-mode: screen;
}

.hp-story-glow-left {
    top: 10%;
    left: -320px;
    background: var(--hp-blue);
}

.hp-story-glow-right {
    right: -340px;
    top: 55%;
    background: var(--hp-cyan);
}

.hp-story-noise {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 7px 7px;
}

/* ==========================================================
   INTRO
========================================================== */

.hp-story-intro {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 160px 0 120px;
}

.hp-story-intro .hp-story-kicker {
    text-align: center;
    margin-bottom: 72px;
}

.hp-story-statements {
    display: grid;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hp-story-statement {
    color: rgba(255, 255, 255, 0.42);
    font-size: clamp(25px, 3.2vw, 44px);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.hp-story-declaration {
    margin-top: 130px;
    text-align: center;
}

.hp-story-declaration > p {
    margin-bottom: 18px;
    color: var(--hp-muted);
    font-size: 18px;
}

.hp-story-declaration h1 {
    font-size: clamp(58px, 8vw, 116px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hp-story-declaration h1 span {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #cfe7ff 45%,
        #68b8ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================
   MAIN STORY
========================================================== */

.hp-story-main {
    padding: 180px 0;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 22, 0) 0%,
        rgba(10, 18, 34, 0.78) 40%,
        rgba(5, 8, 22, 0) 100%
    );
}

.hp-story-main .hp-story-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 120px;
    align-items: start;
}

.hp-story-heading {
    position: sticky;
    top: 150px;
}

.hp-story-heading h2 {
    margin-top: 24px;
    font-size: clamp(48px, 5.5vw, 82px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hp-story-copy {
    display: grid;
    gap: 44px;
    padding-top: 18px;
}

.hp-story-copy p {
    color: var(--hp-text);
    font-size: 21px;
    line-height: 1.95;
}

.hp-story-copy .hp-story-lead {
    color: var(--hp-white);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 650;
    line-height: 1.55;
    letter-spacing: -0.035em;
}

/* ==========================================================
   STAGES
========================================================== */

.hp-story-stages {
    padding: 80px 0 180px;
}

.hp-story-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.hp-story-stage {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    padding: 38px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018)
        ),
        rgba(9, 14, 28, 0.62);
    transition:
        transform var(--hp-transition),
        border-color var(--hp-transition),
        background var(--hp-transition),
        box-shadow var(--hp-transition);
}

.hp-story-stage::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -130px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.17;
    transition:
        transform var(--hp-transition),
        opacity var(--hp-transition);
}

.hp-story-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    opacity: 0.8;
}

.hp-story-stage:hover {
    transform: translateY(-10px);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.025)
        ),
        rgba(9, 14, 28, 0.62);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.28);
}

.hp-story-stage:hover::before {
    transform: scale(1.25);
    opacity: 0.28;
}

.hp-stage-development::before {
    background: var(--hp-blue);
}

.hp-stage-development::after {
    background: linear-gradient(90deg, transparent, var(--hp-blue), transparent);
}

.hp-stage-insurance::before {
    background: var(--hp-mint);
}

.hp-stage-insurance::after {
    background: linear-gradient(90deg, transparent, var(--hp-mint), transparent);
}

.hp-stage-investment::before {
    background: var(--hp-gold);
}

.hp-stage-investment::after {
    background: linear-gradient(90deg, transparent, var(--hp-gold), transparent);
}

.hp-stage-funeral::before {
    background: var(--hp-silver);
}

.hp-stage-funeral::after {
    background: linear-gradient(90deg, transparent, var(--hp-silver), transparent);
}

.hp-story-stage-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-story-stage-number {
    color: rgba(255, 255, 255, 0.34);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hp-story-stage-word {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.hp-story-stage-body {
    position: absolute;
    right: 38px;
    bottom: 42px;
    left: 38px;
    z-index: 1;
}

.hp-story-stage-label {
    margin-bottom: 14px;
    color: var(--hp-muted);
    font-size: 15px;
    font-weight: 600;
}

.hp-story-stage h3 {
    margin-bottom: 22px;
    color: var(--hp-white);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.hp-story-stage-body > p:last-child {
    max-width: 500px;
    color: #b9c8df;
    font-size: 18px;
    line-height: 1.85;
}

/* ==========================================================
   PROMISE
   Story(왼쪽 제목/오른쪽 본문)와 좌우 대칭:
   왼쪽 본문 / 오른쪽 제목
========================================================== */

.hp-story-promise {
    padding: 40px 0 60px;
}

.hp-story-promise .hp-story-container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 120px;
    align-items: start;
}

.hp-story-promise-copy {
    order: 1;
    display: grid;
    gap: 26px;
}

.hp-story-promise-heading {
    order: 2;
    text-align: right;
}

.hp-story-promise blockquote {
    margin: 24px 0 0;
    color: var(--hp-white);
    font-size: clamp(30px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.hp-story-promise-copy > p {
    color: #b7c5dd;
    font-size: 16px;
    line-height: 1.85;
}

.hp-story-promise-copy .hp-story-lead {
    color: var(--hp-white);
    font-size: clamp(21px, 2.2vw, 27px);
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .hp-story-promise .hp-story-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-story-promise-heading {
        position: static;
        text-align: left;
        order: 0;
    }

    .hp-story-promise-copy {
        order: 1;
    }
}

/* ==========================================================
   REVEAL
========================================================== */

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

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {
    .hp-story-intro {
        padding-top: 130px;
    }
}

@media (max-width: 640px) {
    .hp-story-main .hp-story-container {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .hp-story-heading {
        position: static;
    }

    .hp-story-stage {
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .hp-story-container {
        width: min(92%, 620px);
    }

    .hp-story-intro {
        min-height: auto;
        padding: 120px 0 110px;
    }

    .hp-story-intro .hp-story-kicker {
        margin-bottom: 54px;
    }

    .hp-story-statements {
        gap: 22px;
    }

    .hp-story-statement {
        font-size: 25px;
        line-height: 1.45;
    }

    .hp-story-declaration {
        margin-top: 92px;
    }

    .hp-story-declaration h1 {
        font-size: 54px;
    }

    .hp-story-main {
        padding: 120px 0;
    }

    .hp-story-heading h2 {
        font-size: 50px;
    }

    .hp-story-copy {
        gap: 34px;
    }

    .hp-story-copy p {
        font-size: 18px;
    }

    .hp-story-copy .hp-story-lead {
        font-size: 28px;
    }

    .hp-story-stages {
        padding: 40px 0 120px;
    }

    .hp-story-stage-grid {
        grid-template-columns: 1fr;
    }

    .hp-story-stage {
        min-height: 410px;
        padding: 28px;
        border-radius: 26px;
    }

    .hp-story-stage-body {
        right: 28px;
        bottom: 32px;
        left: 28px;
    }

    .hp-story-stage h3 {
        font-size: 43px;
    }

    .hp-story-stage-body > p:last-child {
        font-size: 16px;
    }

    .hp-story-promise {
        padding: 40px 0 56px;
    }

    .hp-story-promise blockquote {
        font-size: 34px;
    }

    .hp-story-promise-copy > p {
        font-size: 15px;
    }
}

@media (max-width: 430px) {
    .hp-story-statement {
        font-size: 22px;
    }

    .hp-story-declaration h1 {
        font-size: 45px;
    }

    .hp-story-heading h2 {
        font-size: 42px;
    }

    .hp-story-stage {
        min-height: 380px;
    }

    .hp-story-promise blockquote {
        font-size: 34px;
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

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

/* ==========================================================
   JS INTERACTION
========================================================== */

.hp-story-statement {
    transition:
        color 0.5s ease,
        opacity 0.5s ease,
        transform 0.5s ease;
}

.hp-story-statement.is-active {
    color: rgba(255, 255, 255, 0.96);
    transform: scale(1.015);
}

.hp-story-stage {
    transform-style: preserve-3d;
    will-change: transform;
}

.hp-story-stage::before {
    pointer-events: none;
}

.hp-story-stage::after {
    pointer-events: none;
}

@media (hover: none) {
    .hp-story-stage {
        transform: none !important;
    }
}

/* LIFEHANPAN COMPACT SCALE OVERRIDE */
.hp-story-intro{padding:81px 0 62px}
.hp-story-main{padding:81px 0}
.hp-story-stages{padding:36px 0 81px}
.hp-story-promise{padding:52px 0 81px}
.hp-story-declaration h1{font-size:clamp(50px,6.8vw,96px)}
.hp-story-heading h2{font-size:clamp(42px,4.7vw,70px)}
.hp-story-statement{font-size:clamp(22px,2.7vw,37px)}
.hp-story-copy p{font-size:18px}
.hp-story-copy .hp-story-lead{font-size:clamp(25px,2.6vw,33px)}
.hp-story-stage{min-height:420px;padding:32px}
.hp-story-stage h3{font-size:clamp(34px,3.5vw,50px)}
@media(max-width:760px){.hp-story-declaration h1{font-size:44px}.hp-story-heading h2{font-size:40px}.hp-story-stage h3{font-size:38px}}

/* LIFEHANPAN COMPACT SCALE OVERRIDE 2 (추가 축소) */
.hp-story-intro{padding:60px 0 46px}
.hp-story-main{padding:60px 0}
.hp-story-stages{padding:26px 0 60px}
.hp-story-promise{padding:40px 0 60px}
.hp-story-declaration h1{font-size:clamp(42px,5.6vw,76px)}
.hp-story-heading h2{font-size:clamp(36px,4vw,56px)}
.hp-story-statement{font-size:clamp(19px,2.3vw,30px)}
.hp-story-copy p{font-size:16px}
.hp-story-copy .hp-story-lead{font-size:clamp(21px,2.2vw,27px)}
.hp-story-stage{min-height:340px;padding:26px}
.hp-story-stage h3{font-size:clamp(28px,3vw,40px)}
@media(max-width:760px){.hp-story-declaration h1{font-size:36px}.hp-story-heading h2{font-size:32px}.hp-story-stage h3{font-size:30px}}

