/* =========================================================
  about.css (CLEAN)
  - cleaned + grouped
  - fixed invalid colors (# missing)
  - single :root
  - moved section-only vars into section scope
  - color-mix fallback for stability
========================================================= */

/* =========================================================
  0) ROOT / BASE
========================================================= */
:root {
    /* palette */
    --blue: #00b7ff;
    --pink: #ff1fa5;
    --lime: #7cff00;

    /* typography */
    --font-size: clamp(2rem, 8vmin + 1rem, 4rem);

    /* layout */
    --header-height: 100vh;

    /* fallback colors (safe everywhere) */
    --line: rgba(0, 0, 0, 0.12);
    --overlay: rgba(255, 255, 255, 0.7);

    /* misc */
    --base: 0.3;

    color-scheme: light only;
}

/* color-mix supported browsers: override */
@supports (color: color-mix(in lch, black, white)) {
    :root {
        --line: color-mix(in lch, canvasText 35%, transparent);
        --overlay: color-mix(in lch, canvas 70%, transparent);
    }
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* background grid */
body::before {
    --size: 60px;
    content: "";
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;

    background:
        linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)) 50% 50% / var(--size) var(--size),
        linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% / var(--size) var(--size);

    -webkit-mask: linear-gradient(-15deg, transparent 40%, white);
    mask: linear-gradient(-15deg, transparent 40%, white);

    transform-style: flat;
    pointer-events: none;
    z-index: -1;
}

/* =========================================================
  1) COMMON SECTION
========================================================= */
section .sec-inner {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    max-width: 1320px;
}

section .sec-tit {
    font-weight: bold;
    padding-bottom: 15%;
}

section .e-tit {
    font-size: clamp(24px, 5vw, 40px);
}

section .k-wrap {
    overflow: hidden;
}

section .k-tit {
    font-size: clamp(30px, 5vw, 70px);
}

section .k-tit>em {
    background: linear-gradient(90deg, #ed1c8c 0%, #ed1c24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: inherit;
}

@media (max-width: 768px) {
    section .sec-inner {
        width: 90%;
    }
}

/* =========================================================
  2) SEC01
========================================================= */
.sec01 {
    /* sec01-only var (moved from :root) */
    --vh: 120px;

    width: 100%;
    padding: 10% 0;
    font-weight: bold;
}

@media (max-width: 1320px) {
    .sec01 {
        --vh: 80px;
    }
}

@media (max-width: 768px) {
    .sec01 {
        --vh: 55px;
    }
}

.sec01 .sec-inner {
    max-width: 1536px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.sec01 .sec-tit {
    padding-bottom: 0;
}

.sec01 .sec-tit h2 {
    font-size: var(--vh);
    line-height: 1.1em;
    text-transform: uppercase;
    color: #000;
}

.sec01 .sec-tit p {
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 0.5em;
    color: #463a39;
}

.sec01 .sec-tit p>span {
    background: linear-gradient(90deg, #ed1c8c 0%, #ed1c24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: inherit;
}

.sec01 .top-tit {
    font-size: var(--vh);
    line-height: 1em;
    font-weight: bold;
    margin-bottom: 10%;
}

#flip {
    height: var(--vh);
    overflow: hidden;
    display: inline-block;
}

#flip>div>div {
    color: #000;
    height: var(--vh);
    margin-bottom: var(--vh);
    display: inline-block;
    padding: 0 0.3em;
    border-radius: 3em;
}

/* default animation (desktop) */
#flip div:first-child {
    animation: show 7s linear infinite;
}

#flip div div {
    background: linear-gradient(135deg, #ed1c8c 0%, #ed1c24 100%);
    color: #fff;
}

#flip div:first-child div {
    background: linear-gradient(135deg, #ed1c8c 0%, #ed1c24 100%);
    color: #fff;
    /* ✅ fixed (was fff) */
}

#flip div:last-child div {
    background: linear-gradient(135deg, #ed1c8c 0%, #ed1c24 100%);
    color: #fff;
}

@keyframes show {
    0% {
        margin-top: -720px;
    }

    5% {
        margin-top: -480px;
    }

    33% {
        margin-top: -480px;
    }

    38% {
        margin-top: -240px;
    }

    66% {
        margin-top: -240px;
    }

    71% {
        margin-top: 0px;
    }

    99.99% {
        margin-top: 0px;
    }

    100% {
        margin-top: -720px;
    }
}

@keyframes show2 {
    0% {
        margin-top: -480px;
    }

    5% {
        margin-top: -320px;
    }

    33% {
        margin-top: -320px;
    }

    38% {
        margin-top: -160px;
    }

    66% {
        margin-top: -160px;
    }

    71% {
        margin-top: 0px;
    }

    99.99% {
        margin-top: 0px;
    }

    100% {
        margin-top: -480px;
    }
}

@keyframes show3 {
    0% {
        margin-top: -330px;
    }

    5% {
        margin-top: -220px;
    }

    33% {
        margin-top: -220px;
    }

    38% {
        margin-top: -110px;
    }

    66% {
        margin-top: -110px;
    }

    71% {
        margin-top: 0px;
    }

    99.99% {
        margin-top: 0px;
    }

    100% {
        margin-top: -330px;
    }
}

.sec01 .sec-txt {
    width: 550px;
    align-self: flex-end;
}

.sec01 .sec-txt>p {
    font-size: clamp(16px, 2vw, 28px);
    font-weight: 400;
}

.sec01 .sec-img {
    position: absolute;
    right: 0;
    top: -5%;
    width: 18%;
    display: none;
}

@media (max-width: 1320px) {
    .sec01 {
        height: 100vh;
    }

    #flip div:first-child {
        animation: show2 7s linear infinite;
    }

    .sec01 .top-tit {
        margin-bottom: 15%;
    }
}

@media (max-width: 768px) {
    #flip div:first-child {
        animation: show3 7s linear infinite;
    }

    .sec01 .sec-txt {
        width: 70%;
    }
}

/* =========================================================
  3) SEC02
========================================================= */
.sec02 {
    position: relative;
    height: auto;
}

/* sticky video area */
.sec-video {
    position: sticky;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
}

.sec-video video {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100vh;
    object-fit: cover;
    width: 100%;
}

.sec02 .video-tit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

.sec02 .video-tit h2 {
    font-size: clamp(32px, 3vw, 60px);
}

/* content wrapper */
.sec02 .sec-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* background: #fff; */
    padding: 10% 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.sec02 .sec-cont {
    display: flex;
    justify-content: flex-end;
}

.sec02 .cont-inner {
    width: 1000px;
}

.sec02 .cont-inner>p {
    font-size: clamp(16px, 3vw, 24px);
    opacity: 0.7;
}

.sec02 .sec-cont ul li {
    padding: 6em 0 2em;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #ed1c8c 0%, #ed1c24 100%) 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.sec02 .sec-cont ul p {
    font-size: clamp(20px, 3vw, 40px);
    margin-right: 2em;
}

.sec02 .sec-cont ul h3 {
    font-size: 24px;
}

.sec02 .sec-cont ul h3>span {
    display: inline-block;
    padding-right: 10px;
    font-size: clamp(32px, 3vw, 70px);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .sec02 .sec-wrapper {
        padding: 30% 0;
    }

    .sec02 .cont-inner {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sec02 .sec-cont {
        margin-top: 20%;
    }

    .sec02 .sec-cont ul li {
        padding: 2em 0 1em;
    }
}

/* =========================================================
  4) SEC03
========================================================= */
.sec03 {
    padding: 10% 0;
    /* background: #1e1e1e; */
    /* ✅ fixed (was 1e1e1e) */
    position: relative;
}

.sec03 .sec-cont {
    display: flex;
    justify-content: flex-end;
}

.sec03 .cont-inner {
    width: 1000px;
}

.sec03 .cont-inner ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
}

.sec03 .cont-inner ul li {
    position: relative;
    background-color: #fff;
    border-radius: 1em;
    padding: 30px 30px 50px;
    display: flex;
    flex-direction: column;
    z-index: 0;
}

.sec03 .cont-inner ul li::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    /* border 두께 */
    border-radius: 1em;
    background: linear-gradient(90deg, #ed1c8c 0%, #ff008a 50%, #ff0006 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.sec03 .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ed1c8c 0%, #ff008a 50%, #ff0006 100%);
    color: #fff;
    margin-bottom: 10px;
}

.sec03 .txt-box h4 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4em;
}

.sec03 .txt-box p {
    margin: 0;
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.4em;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .sec03 {
        padding: 30% 0;
    }

    .sec03 .cont-inner ul {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sec03 .cont-inner ul {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
  5) SEC04
========================================================= */
.sec04 {
    /* sec04-only marquee vars (moved from :root) */
    --size: clamp(10rem, 1rem + 40vmin, 30rem);
    --gap: calc(var(--size) / 32);
    --duration: 40s;
    --scroll-start: 0;
    --scroll-end: calc(-100% - var(--gap));

    padding: 10% 0;
}

.sec04 .sec-cont {
    margin-bottom: 15%;
    display: flex;
    justify-content: flex-end;
}

.sec04 .sec-cont .cont-img {
    width: 60vw;
    max-width: 900px;
    min-width: 280px;
}

/* marquee */
.sec04 .marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.sec04 .marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--gap);
    min-width: 100%;
    animation: scroll-x var(--duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .sec04 .marquee__group {
        animation-play-state: paused;
    }
}

.sec04 .marquee--reverse .marquee__group {
    animation-direction: reverse;
    animation-delay: -5s;
}

@keyframes scroll-x {
    from {
        transform: translateX(var(--scroll-start));
    }

    to {
        transform: translateX(var(--scroll-end));
    }
}

@media (max-width: 1320px) {
    .sec04 .marquee__group li {
        width: 50vw;
        min-width: 350px;
    }
}

@media (max-width: 1024px) {
    .sec04 {
        padding: 30% 0;
    }
}

.sticky_box {
    position: relative;
    height: auto;
}

/* =========================================================
  6) SEC05 (Tabs)
========================================================= */
.sec05 {
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    padding: 10% 0;
    background: url(../img/about/sec05_bg.jpg) no-repeat center center / cover;
}

.sec05 .sec-tit {
    color: #fff;
    padding-bottom: 5em;
}

.sec05 .cont-inner {
    display: flex;
    justify-content: flex-end;
}

.tabs {
    position: relative;
    width: 800px;
    overflow: hidden;
}

.tabs .tab-header {
    float: left;
    width: 140px;
    height: 100%;
    border-right: 1px solid #ccc;
    padding: 10px 0;
}

.tabs .tab-header>div {
    height: 100px;
    line-height: 100px;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
}

.tabs .tab-header>div:hover,
.tabs .tab-header>div.active {
    color: #ff0000;
}

.tabs .tab-content {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.tabs .tab-content>div {
    position: absolute;
    padding-left: 4em;
    top: 15%;
    transition: all 500ms ease-in-out;
    color: #fff;
    opacity: 0;
    visibility: hidden;
}

.tabs .tab-content>div h2 {
    font-size: clamp(32px, 5vw, 80px);
    font-weight: bold;
    margin-bottom: 0.3em;
}

.tabs .tab-content>div h2>span {
    font-size: clamp(18px, 5vw, 40px);
    margin-bottom: 0.1em;
}

.tabs .tab-content>div p {
    font-size: clamp(16px, 3vw, 32px);
    line-height: 1.5em;
    font-weight: 400;
    color: #ccc;
}

.tabs .tab-content>div.active {
    opacity: 1;
    visibility: visible;
}

.tabs .tab-indicator {
    position: absolute;
    width: 4px;
    height: 50px;
    background: #ff0000;
    left: 138px;
    top: 35px;
    transition: all 500ms ease-in-out;
}

@media (max-width: 1024px) {
    .sec05 {
        padding: 30% 0;
    }

    .tabs {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tabs .tab-header {
        width: 80px;
        padding: 20px 0;
    }

    .tabs .tab-header>div {
        height: 60px;
        line-height: 60px;
        font-size: 24px;
    }

    .tabs .tab-content>div {
        padding-left: 2em;
        top: 20%;
    }

    .tabs .tab-indicator {
        height: 30px;
        left: 78px;
        top: 35px;
    }

    .tabs .tab-content>div h2 {
        margin-bottom: 0.5em;
    }
}

/* =========================================================
  7) SEC06 - Sticky Pin Steps
========================================================= */
/* .sec06-wrap {
    position: relative;
    padding: 0;
} */

/* .sec06 {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
} */

/* ✅ sticky 깨지는 XE 환경 대비: sec06는 JS로 fixed 핀 처리 */
.sec06-wrap {
    position: relative;
    padding: 0;
}

.sec06 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec06.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.sec06.is-end {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
}

.sec06-inner {
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.sec06-copy {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sec06-line {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    opacity: 0.25;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        font-size 0.25s ease,
        color 0.25s ease,
        font-weight 0.25s ease;
}

.sec06-line.is-active {
    font-size: 70px;
    font-weight: 950;
    color: #000;
    opacity: 1;
    transform: translateY(0);
}

.sec06-line .accent {
    background: linear-gradient(90deg, #ed1c8c 0%, #ed1c24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: inherit;
}

.sec06-cta {
    margin-top: 60px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ed1c8c 0%, #ed1c24 100%);
    color: #fff;
    /* font-weight: 900; */
}

.sec06-cta .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
}

@media (max-width: 980px) {
    .sec06-copy {
        gap: 22px;
    }

    .sec06-line {
        font-size: 16px;
    }

    .sec06-line.is-active {
        font-size: 24px;
    }
}