:root {
    --white: #fff;
    --muted: rgba(255, 255, 255, .56);
    --ink: #050505;
    --violet: #8d19ff;
    --header-x: clamp(24px, 4.55vw, 88px);
    --header-y: clamp(-54px, -3.6vh, -18px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--white);
    background: var(--ink);
    font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

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

.hero {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
    background: #020202;
}

.hero__poster {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.hero__poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .18)),
        radial-gradient(circle at 50% 52%, rgba(255, 80, 0, .06), transparent 38%);
}

.hero__cover {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.hero__cover--logo {
    top: 38px;
    left: 64px;
    width: 280px;
    height: 76px;
    background: rgba(0, 0, 0, .9);
    filter: blur(12px);
}

.hero__cover--scroll {
    right: 62px;
    bottom: 20px;
    width: 170px;
    height: 170px;
    background: rgba(0, 0, 0, .84);
    filter: blur(14px);
}

.hero__cover--nav {
    top: 42px;
    right: 54px;
    width: 520px;
    height: 64px;
    background: rgba(0, 0, 0, .86);
    filter: blur(12px);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--white);
    color: #000;
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: var(--header-y);
    left: var(--header-x);
    right: var(--header-x);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    position: relative;
    display: inline-flex;
    width: clamp(180px, 11.6vw, 221px);
    outline-offset: 7px;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.2vw, 42px);
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 28px;
    border-radius: 2px;
    outline-offset: 7px;
    font-size: clamp(15px, .9vw, 18px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    transition: color .18s ease;
}

.nav__link span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

.nav__link.is-active {
    color: var(--violet);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 42;
    width: 42px;
    height: 42px;
    border: 0;
    padding: 9px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .18s ease;
}

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

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

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

.nav__link::after,
.brand::after,
.scroll-cue::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: border-color .18s ease, background-color .18s ease;
}

.nav__link:focus-visible::after,
.brand:focus-visible::after,
.scroll-cue:focus-visible::after {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .06);
}

.hero__copy {
    position: absolute;
    left: clamp(32px, 5vw, 96px);
    top: 46.5%;
    width: min(70vw, 950px);
    transform: translateY(-50%);
}

.hero__title {
    margin: 0;
    font-size: clamp(42px, 3.75vw, 72px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 4px 26px rgba(0, 0, 0, .42);
}

.hero__title-text {
    display: inline-block;
}

.hero__title-word {
    display: inline-block;
    margin-right: .28em;
    white-space: nowrap;
}

.hero__title-word:last-child {
    margin-right: 0;
}

.hero__title-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(.35em);
    animation: titleCharReveal .42s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: calc(var(--char-index) * 28ms);
    will-change: opacity, transform;
}

.hero__cursor {
    display: inline-block;
    width: .09em;
    height: .92em;
    margin-left: .1em;
    translate: 0 .1em;
    background: currentColor;
    animation: cursorBlink 1.05s steps(2, start) infinite;
}

.scroll-cue-both {
    position: absolute;
    right: clamp(132px, 10vw, 210px);
    bottom: clamp(34px, 5vh, 56px);
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 58px;
    outline-offset: 7px;
}

.scroll-cue-both__arrow {
    width: 13px;
    height: 13px;
    border-right: 2px solid rgba(255, 255, 255, .92);
    border-bottom: 2px solid rgba(255, 255, 255, .92);
}

.scroll-cue-both__arrow--up {
    transform: rotate(225deg);
    animation: arrowRise 1.45s ease-in-out infinite;
}

.scroll-cue-both__arrow--down {
    transform: rotate(45deg);
    animation: arrowDrop 1.45s ease-in-out infinite;
}

.slide-count {
    position: absolute;
    top: 50%;
    right: clamp(46px, 5.4vw, 104px);
    z-index: 4;
    width: 74px;
    height: 58px;
    transform: translateY(-12%);
    font-size: clamp(23px, 1.55vw, 30px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.slide-count__button {
    position: absolute;
}

.slide-count__button {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.slide-count__button:focus-visible {
    outline: 1px solid rgba(255, 255, 255, .76);
    outline-offset: 7px;
}

.slide-count__button:first-child {
    top: 0;
    left: 0;
    color: var(--white);
}

.slide-count__divider {
    position: absolute;
    left: 19px;
    top: 29px;
    width: 34px;
    height: 1px;
    transform: rotate(-58deg);
    transform-origin: center;
    background: rgba(255, 255, 255, .34);
}

.slide-count__button:last-child {
    right: 0;
    bottom: 0;
    color: rgba(255, 255, 255, .38);
}

.scroll-cue {
    position: absolute;
    right: clamp(58px, 6vw, 112px);
    bottom: clamp(34px, 5vh, 56px);
    z-index: 4;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 9px;
    width: 58px;
    height: 90px;
    outline-offset: 7px;
}

.scroll-cue__label {
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.scroll-cue__mouse {
    position: relative;
    width: 36px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
}

.scroll-cue__wheel {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    transform: translateX(-50%);
    animation: wheelDrop 1.45s ease-in-out infinite;
}

.scroll-cue__arrow {
    width: 13px;
    height: 13px;
    border-right: 2px solid rgba(255, 255, 255, .92);
    border-bottom: 2px solid rgba(255, 255, 255, .92);
    transform: rotate(45deg);
    animation: arrowDrop 1.45s ease-in-out infinite;
}

.section-placeholder {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 96px 24px;
    background: #080808;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 700;
    text-align: center;
}

.page-section {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #000;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px clamp(32px, 6vw, 116px) 98px;
}

.about-section__inner {
    width: min(100%, 1220px);
    display: grid;
    gap: clamp(62px, 7.4vh, 82px);
}

.about-section__intro {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-section__intro h2 {
    margin: 0 0 22px;
    font-size: clamp(52px, 4.25vw, 82px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.about-section__lead {
    margin: 0 0 10px;
    font-size: clamp(24px, 1.65vw, 32px);
    line-height: 1.3;
    font-weight: 900;
}

.about-section__highlight {
    display: inline-block;
    margin: 0 0 12px;
    padding: 3px 14px 5px;
    background: var(--violet);
    color: var(--white);
    font-size: clamp(18px, 1.18vw, 23px);
    line-height: 1.2;
    font-weight: 900;
}

.about-section__body {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(17px, 1.05vw, 21px);
    line-height: 1.55;
    font-weight: 700;
}

.about-section__services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    justify-items: center;
}

.about-card {
    width: min(28vw, 405px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .94);
    border-radius: 50%;
    margin: 0 -1px;
}

.about-card h3 {
    margin: 0;
    font-size: clamp(24px, 1.6vw, 31px);
    line-height: 1.26;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
}

.mobile-slider {
    position: relative;
}

.mobile-slider__viewport {
    width: 100%;
}

.mobile-slider__button {
    display: none;
}

.section-count {
    position: absolute;
    top: 50%;
    right: clamp(46px, 5.4vw, 104px);
    width: 74px;
    height: 58px;
    transform: translateY(-12%);
    font-size: clamp(23px, 1.55vw, 30px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.section-count span {
    position: absolute;
}

.section-count span:first-child {
    top: 0;
    left: 0;
    color: var(--white);
}

.section-count span:last-child {
    right: 0;
    bottom: 0;
    color: rgba(255, 255, 255, .38);
}

.section-count__divider {
    left: 19px;
    top: 29px;
    width: 34px;
    height: 1px;
    transform: rotate(-58deg);
    transform-origin: center;
    background: rgba(255, 255, 255, .34);
}

.ask-float {
    position: fixed;
    right: clamp(58px, 6vw, 112px);
    bottom: clamp(42px, 4.7vh, 54px);
    z-index: 35;
    display: grid;
    justify-items: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

body.is-ask-active .ask-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.ask-float span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: url("../images/bg_qna.png") center / 43px 43px no-repeat;
    color: #fff;
    font-size: 22px;
    letter-spacing: -2px;
    line-height: 1;
    text-indent: -1px;
}

.ask-float strong {
    font: inherit;
}

.page-section>.scroll-cue {
    right: clamp(132px, 10vw, 210px);
}

.hero>.scroll-cue,
.ask-section>.scroll-cue {
    right: clamp(58px, 6vw, 112px);
}

.what-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 170px clamp(46px, 4.5vw, 86px) 96px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .32)),
        url("../images/s03.png") center / cover no-repeat #020202;
}

.what-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .1) 48%, rgba(0, 0, 0, .45)),
        linear-gradient(180deg, rgba(0, 0, 0, .26), transparent 30%, rgba(0, 0, 0, .34));
}

.what-section__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1760px);
    display: grid;
    gap: clamp(116px, 15vh, 155px);
}

.what-section__intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.what-section__intro h2 {
    margin: 0 0 30px;
    font-size: clamp(56px, 4.25vw, 82px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.what-section__intro p {
    margin: 0;
    font-size: clamp(18px, 1.12vw, 22px);
    line-height: 1.55;
    font-weight: 800;
}

.what-section__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(42px, 6.2vw, 118px);
}

.what-card h3 {
    margin: 0 0 18px;
    font-size: clamp(28px, 1.7vw, 34px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0;
}

.what-card ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0 0 0 56px;
    list-style: none;
    font-size: clamp(17px, 1vw, 20px);
    line-height: 1.2;
    font-weight: 800;
}

.what-card li {
    position: relative;
}

.what-card li::before {
    content: "";
    position: absolute;
    top: .45em;
    left: -18px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: .9;
}

.ask-section {
    padding: 200px clamp(42px, 4.45vw, 85px) 52px;
    background: #000;
}

.ask-section__inner {
    width: min(100%, 1615px);
    margin: 0 auto;
}

.ask-section__inner>h2 {
    margin: 0 0 42px;
    text-align: center;
    font-size: clamp(56px, 4.25vw, 82px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.ask-section__columns {
    display: grid;
    grid-template-columns: minmax(430px, 865px) minmax(430px, 1fr);
    gap: clamp(50px, 4.6vw, 88px);
    align-items: start;
}

.ask-info h3 {
    margin: 0 0 22px;
    font-size: clamp(24px, 1.55vw, 30px);
    line-height: 1.2;
    font-weight: 900;
}

.ask-map {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(250px, 33vh, 356px);
    margin-bottom: 14px;
    background: rgba(255, 255, 255, .08);
}

.ask-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.contact-list {
    display: grid;
    gap: 24px;
    margin: 0;
}

.contact-list div {
    display: grid;
    gap: 7px;
}

.contact-list dt {
    margin: 0;
    font-size: clamp(36px, 2.15vw, 42px);
    line-height: 1;
    font-weight: 900;
}

.contact-list dd {
    margin: 0;
    font-size: clamp(18px, 1.05vw, 21px);
    line-height: 1.35;
    font-weight: 500;
}

.ask-form {
    display: grid;
    gap: 0;
    padding-top: 94px;
}

.form-message {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    font-weight: 900;
}

.form-message--error {
    color: #ffb6b6;
}

.ask-form label:not(.privacy-check) {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    min-height: 73px;
    border-bottom: 1px solid rgba(255, 255, 255, .42);
}

.ask-form label:not(.privacy-check)>span {
    font-size: clamp(21px, 1.25vw, 25px);
    line-height: 1;
    font-weight: 900;
}

.ask-form label:not(.privacy-check)>span em {
    display: inline-block;
    margin-left: 8px;
    color: #ff6f6f;
    font-size: 14px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
    vertical-align: middle;
}

.ask-form input,
.ask-form textarea {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: clamp(18px, 1.05vw, 21px);
    line-height: 1.4;
    outline: 0;
}

.ask-form input::placeholder,
.ask-form textarea::placeholder {
    color: rgba(255, 255, 255, .42);
}

.ask-form input:focus,
.ask-form textarea:focus {
    box-shadow: 0 1px 0 var(--white);
}

.ask-form__details {
    align-items: start !important;
    min-height: 210px !important;
    padding-top: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .42);
}

.ask-form textarea {
    height: 192px;
    padding-top: 2px;
    resize: vertical;
}

.ask-form__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    padding-top: 23px;
}

.privacy-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}

.privacy-check input {
    width: 20px;
    height: 20px;
    accent-color: #303030;
}

.privacy-open {
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, .9);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.privacy-layer[hidden] {
    display: none;
}

.privacy-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.privacy-layer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

.privacy-layer__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(720px, 86svh);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .24);
    padding: 34px;
    background: #070707;
    color: var(--white);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.privacy-layer__panel h3 {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
}

.privacy-layer__body {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 600;
}

.privacy-layer__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.privacy-layer__close::before,
.privacy-layer__close::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 15px;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, .9);
}

.privacy-layer__close::before {
    transform: rotate(45deg);
}

.privacy-layer__close::after {
    transform: rotate(-45deg);
}

.privacy-layer__confirm {
    min-width: 96px;
    height: 38px;
    margin-top: 26px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.ask-form button {
    min-width: 100px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.scroll-cue--ask {
    bottom: clamp(32px, 4.7vh, 52px);
}

.scroll-cue--up .scroll-cue__arrow,
.scroll-cue--ask .scroll-cue__arrow {
    order: -1;
    transform: rotate(225deg);
    animation: arrowRise 1.45s ease-in-out infinite;
}

.portfolio-section {
    padding: 190px clamp(42px, 4.45vw, 85px) 72px;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .36)),
        url("../images/s04.png") center / cover no-repeat #000;
}

.portfolio-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 36%, rgba(255, 255, 255, .06), transparent 25%),
        linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .58));
}

.portfolio-view {
    position: relative;
    z-index: 1;
    width: min(100%, 1750px);
    margin: 0 auto;
    overflow-x: hidden;
}

.portfolio-view[hidden] {
    display: none;
}

.portfolio-view>h2 {
    margin: 0 0 72px;
    text-align: center;
    font-size: clamp(56px, 4.25vw, 82px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.portfolio-slider {
    overflow: hidden;
    width: 100%;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
}

.portfolio-list {
    --portfolio-gap: clamp(64px, 3.5vw, 68px);
    --portfolio-visible: 3;
    display: flex;
    align-items: start;
    gap: var(--portfolio-gap);
    transform: translateX(0);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
    max-width: 100%;
}

.portfolio-list.is-moving .portfolio-card__image {
    filter: brightness(.78);
}

.portfolio-card {
    flex: 0 0 calc((100% - (var(--portfolio-gap) * (var(--portfolio-visible) - 1))) / var(--portfolio-visible));
    display: grid;
    gap: 18px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    opacity: .52;
    transform: scale(.98);
    transition: opacity .28s ease, transform .28s ease;
}

.portfolio-card.is-visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-card__image {
    width: 100%;
    aspect-ratio: 488 / 524;
    display: block;
    background-image: url("../images/s04.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--card-bg-position, center);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .34);
    transition: filter .2s ease, transform .2s ease;
}

.portfolio-card:hover .portfolio-card__image,
.portfolio-card:focus-visible .portfolio-card__image {
    filter: brightness(1.12);
    transform: translateY(-4px);
}

.portfolio-card__category {
    width: fit-content;
    max-width: 100%;
    padding: 5px 18px 6px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    color: rgba(255, 255, 255, .62);
    font-size: clamp(15px, .95vw, 19px);
    line-height: 1;
    font-weight: 900;
}

.portfolio-card strong {
    color: rgba(255, 255, 255, .9);
    font-size: clamp(18px, 1.05vw, 21px);
    line-height: 1.28;
    font-weight: 900;
}

.portfolio-arrow {
    position: absolute;
    top: 56%;
    width: 28px;
    height: 45px;
    border: 0;
    border-top: 3px solid rgba(255, 255, 255, .9);
    border-left: 3px solid rgba(255, 255, 255, .9);
    background: transparent;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

.portfolio-arrow:hover {
    opacity: .72;
}

.portfolio-arrow--prev {
    left: 29.2%;
    transform: rotate(-45deg);
}

.portfolio-arrow--next {
    right: 36.3%;
    transform: rotate(135deg);
}

.portfolio-view--detail {
    max-width: 1750px;
}

.portfolio-view--detail.is-active {
    animation: portfolioFade .32s ease both;
}

.portfolio-view--detail>h2 {
    margin-bottom: 42px;
}

.portfolio-detail h3 {
    margin: 0 0 21px;
    font-size: clamp(24px, 1.55vw, 30px);
    line-height: 1.2;
    font-weight: 900;
}

.portfolio-detail {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease;
}

.portfolio-detail__media {
    position: relative;
    width: 100%;
    height: clamp(360px, 39.2vw, 424px);
    border: 0;
    padding: 0;
    background-image: url("../images/s05.png");
    background-repeat: no-repeat;
    background-size: 1920px 1080px;
    background-position: var(--detail-bg-position, -85px -386px);
    cursor: pointer;
    transition: opacity .22s ease, transform .22s ease;
}

.portfolio-detail.is-changing {
    opacity: 0;
    transform: translateY(10px);
}

.portfolio-detail__media span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.portfolio-detail__media span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 22px solid rgba(255, 255, 255, .92);
    transform: translate(-38%, -50%);
}

.portfolio-detail p {
    margin: 25px 0 0;
    font-size: clamp(18px, 1.05vw, 21px);
    line-height: 1.48;
    font-weight: 700;
}

.portfolio-detail__nav {
    position: absolute;
    left: 50%;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    transform: translateX(-50%);
}

.portfolio-detail__nav button,
.portfolio-back {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.portfolio-detail__nav button::before,
.portfolio-detail__nav button::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    vertical-align: 1px;
}

.portfolio-detail__nav button:first-child::before {
    margin-right: 12px;
    transform: rotate(-45deg);
}

.portfolio-detail__nav button:first-child::after {
    display: none;
}

.portfolio-detail__nav button:last-child::before {
    display: none;
}

.portfolio-detail__nav button:last-child::after {
    margin-left: 12px;
    transform: rotate(135deg);
}

.portfolio-back {
    position: absolute;
    right: 0;
    bottom: 2px;
    opacity: .74;
}

@keyframes portfolioFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowRise {

    0%,
    100% {
        opacity: .42;
        transform: translateY(5px) rotate(225deg);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px) rotate(225deg);
    }
}

@keyframes titleCharReveal {
    0% {
        opacity: 0;
        transform: translateY(.35em);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cursorBlink {

    0%,
    42% {
        opacity: 1;
    }

    43%,
    100% {
        opacity: 0;
    }
}

@keyframes wheelDrop {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    28% {
        opacity: 1;
    }

    78%,
    100% {
        opacity: 0;
        transform: translate(-50%, 18px);
    }
}

@keyframes arrowDrop {

    0%,
    100% {
        opacity: .42;
        transform: translateY(-2px) rotate(45deg);
    }

    50% {
        opacity: 1;
        transform: translateY(5px) rotate(45deg);
    }
}

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

    .hero__cursor,
    .hero__title-char,
    .scroll-cue__wheel,
    .scroll-cue__arrow {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .scroll-cue--up .scroll-cue__arrow,
    .scroll-cue--ask .scroll-cue__arrow {
        animation: none;
    }
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    .site-header {
        align-items: flex-start;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 260px;
    }

    .nav__link {
        min-width: 64px;
        height: 24px;
    }

    .nav__link:nth-child(2),
    .nav__link:nth-child(3) {
        min-width: 86px;
    }

    .slide-count {
        right: 28px;
    }

    .about-section {
        padding-left: 28px;
        padding-right: 28px;
    }

    .about-section__services {
        gap: 18px;
    }

    .about-card {
        width: 30vw;
    }

    .about-card h3 {
        font-size: clamp(18px, 2.7vw, 26px);
    }

    .section-count {
        right: 28px;
    }

    .ask-section {
        padding-left: 28px;
        padding-right: 28px;
    }

    .ask-section__columns {
        grid-template-columns: 1fr;
    }

    .ask-form {
        padding-top: 0;
    }

    .portfolio-section {
        padding-left: 28px;
        padding-right: 28px;
    }

    .portfolio-list {
        --portfolio-gap: 22px;
        --portfolio-visible: 2;
    }

    .portfolio-card__image {
        background-size: cover;
    }

    .portfolio-arrow--prev {
        left: 2px;
    }

    .portfolio-arrow--next {
        right: 2px;
    }

    .portfolio-detail__media {
        background-size: cover;
    }
}

@media (max-width: 640px) {
    .page-section {
        min-height: 100svh;
        overflow: visible;
    }

    .hero__poster img {
        object-position: 46% center;
    }

    .site-header {
        top: 24px;
        left: 22px;
        right: 22px;
    }

    .brand {
        width: 138px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: grid;
        align-content: center;
        justify-content: center;
        /* 위 미디어쿼리의 flex-end 덮어써 중앙으로 */
        justify-items: center;
        flex-wrap: nowrap;
        gap: 30px;
        max-width: none !important;
        padding: 96px 24px;
        background: rgba(0, 0, 0, .94);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity .22s ease, transform .22s ease;
    }

    body.is-menu-open .nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav__link {
        height: auto;
        min-width: 0 !important;
        /* 위 미디어쿼리의 min-width 무력화 → 중앙 정렬 */
        font-size: 28px;
        justify-content: center;
        text-align: center;
    }

    .hero__copy {
        left: 24px;
        right: 24px;
        top: 50%;
        width: auto;
    }

    .hero__title {
        font-size: clamp(36px, 12vw, 58px);
    }

    .hero__title-word {
        display: block;
        margin-right: 0;
    }

    .slide-count {
        display: none;
    }

    .scroll-cue,
    .page-section>.scroll-cue,
    .scroll-cue-both {
        position: absolute;
        left: 50%;
        right: auto;
        bottom: 26px;
        transform: translateX(-50%);
    }

    .hero>.scroll-cue,
    .ask-section>.scroll-cue {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero__cover--logo {
        top: 14px;
        left: 10px;
        width: 180px;
        height: 62px;
    }

    .hero__cover--scroll {
        right: 0;
        bottom: 0;
        width: 120px;
        height: 132px;
    }

    .hero__cover--nav {
        display: none;
    }

    .about-section {
        align-items: start;
        padding: 112px 24px 148px;
    }

    .about-section__inner {
        gap: 42px;
    }

    .about-section__intro h2 {
        margin-bottom: 18px;
        font-size: 46px;
    }

    .about-section__lead {
        font-size: 23px;
    }

    .about-section__highlight {
        max-width: 100%;
        font-size: 17px;
    }

    .about-section__services {
        display: flex;
        gap: 0;
        justify-items: initial;
        transform: translateX(0);
        transition: transform .45s cubic-bezier(.22, 1, .36, 1);
        will-change: transform;
    }

    .about-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .about-mobile-slider {
        width: min(100%, 360px) !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .mobile-slider__viewport {
        width: 85% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .mobile-slider__button {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: block;
        width: 22px;
        height: 22px;
        border: 0;
        border-top: 2px solid rgba(255, 255, 255, .92);
        border-left: 2px solid rgba(255, 255, 255, .92);
        background: transparent;
        cursor: pointer;
    }

    .mobile-slider__button--prev {
        left: -4px;
        transform: translateY(-50%) rotate(-45deg);
    }

    .mobile-slider__button--next {
        right: -4px;
        transform: translateY(-50%) rotate(135deg);
    }

    .about-mobile-slider .mobile-slider__button--prev {
        left: -4px;
    }

    .about-mobile-slider .mobile-slider__button--next {
        right: -4px;
    }

    .section-count {
        display: none;
    }

    .ask-float {
        right: 24px;
        bottom: 24px;
    }

    .ask-section__inner>h2 {
        font-size: 46px;
    }

    .ask-section {
        padding: 112px 24px 120px;
    }

    .ask-section__inner>h2 {
        margin-bottom: 36px;
    }

    .ask-info h3 {
        font-size: 22px;
    }

    .ask-map {
        height: 230px;
    }

    .contact-list dt {
        font-size: 34px;
    }

    .ask-form label:not(.privacy-check) {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .ask-form__details {
        min-height: 190px !important;
    }

    .ask-form textarea {
        height: 150px;
        padding-top: 32px;
    }

    .ask-form__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .privacy-layer {
        padding: 18px;
    }

    .privacy-layer__panel {
        padding: 28px 22px;
    }

    .privacy-layer__panel h3 {
        font-size: 24px;
    }

    .scroll-cue--ask {
        display: none;
    }

    .portfolio-section {
        padding: 112px 24px 148px;
    }

    .portfolio-view>h2 {
        margin-bottom: 42px;
        font-size: 46px;
    }

    .portfolio-list {
        --portfolio-gap: 0 !important;
        --portfolio-visible: 1 !important;
        gap: 0 !important;
        display: flex !important;
    }

    .portfolio-slider {
        width: 85% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .portfolio-arrow {
        display: block;
        top: calc(50% + 76px);
        width: 22px;
        height: 22px;
        border-top-width: 2px;
        border-left-width: 2px;
    }

    .portfolio-arrow--prev {
        left: -4px;
    }

    .portfolio-arrow--next {
        right: -4px;
    }

    .portfolio-card__image {
        aspect-ratio: 488 / 360;
    }

    .portfolio-detail__media {
        height: 240px;
    }

    .portfolio-detail p br {
        display: none;
    }

    .portfolio-detail__nav {
        position: static;
        justify-content: center;
        margin-top: 38px;
        transform: none;
    }

    .portfolio-back {
        position: static;
        display: block;
        margin: 22px auto 0;
    }
}

@media (max-width: 1024px) {
    .about-mobile-slider {
        position: relative;
        width: min(100%, 360px) !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .mobile-slider__viewport {
        width: 85% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .about-section__services {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100% !important;
        transform: translateX(0);
        transition: transform .45s cubic-bezier(.22, 1, .36, 1);
        will-change: transform;
    }

    .about-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .mobile-slider__button {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: block;
        width: 22px;
        height: 22px;
        border: 0;
        border-top: 2px solid rgba(255, 255, 255, .92);
        border-left: 2px solid rgba(255, 255, 255, .92);
        background: transparent;
        cursor: pointer;
    }

    .mobile-slider__button--prev {
        left: -4px;
        transform: translateY(-50%) rotate(-45deg);
    }

    .mobile-slider__button--next {
        right: -4px;
        transform: translateY(-50%) rotate(135deg);
    }

    .portfolio-slider {
        width: 85% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .portfolio-list {
        --portfolio-gap: 0 !important;
        --portfolio-visible: 1 !important;
        gap: 0 !important;
        display: flex !important;
    }

    .portfolio-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .portfolio-card__image,
    .portfolio-detail__media {
        background-position: center !important;
        background-size: cover;
    }

    .portfolio-card__category {
        white-space: normal;
        line-height: 1.25;
    }

    .portfolio-arrow {
        display: block;
        width: 22px;
        height: 22px;
        border-top-width: 2px;
        border-left-width: 2px;
    }

    .portfolio-arrow--prev {
        left: -4px;
    }

    .portfolio-arrow--next {
        right: -4px;
    }
}

@media (max-width: 1024px) {
    #what-we-do.what-section {
        display: block !important;
        min-height: 100svh;
        overflow: hidden;
        padding: 112px 24px 148px !important;
        background-position: center !important;
    }

    #what-we-do .what-section__inner {
        width: 100%;
        max-width: none;
        display: block !important;
    }

    #what-we-do .what-section__intro {
        width: 100%;
        max-width: 640px;
        margin: 0 auto 52px;
        text-align: center;
    }

    #what-we-do .what-section__intro h2 {
        margin: 0 0 22px;
        font-size: 46px;
        line-height: 1;
    }

    #what-we-do .what-section__intro p {
        margin: 0 auto;
        max-width: 34em;
        font-size: 16px;
        line-height: 1.55;
    }

    #what-we-do .what-section__intro p br {
        display: none;
    }

    #what-we-do .what-mobile-slider {
        position: relative;
        width: min(100%, 360px);
        margin: 0 auto;
        overflow: visible;
    }

    #what-we-do .mobile-slider__viewport {
        width: 85%;
        margin: 0 auto;
        overflow: hidden;
    }

    #what-we-do .what-section__grid {
        display: flex !important;
        grid-template-columns: none !important;
        align-items: stretch;
        gap: 0 !important;
        width: 100%;
        transform: translateX(0);
        transition: transform .45s cubic-bezier(.22, 1, .36, 1);
        will-change: transform;
    }

    #what-we-do .what-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 28px;
        text-align: center;
    }

    #what-we-do .what-card h3 {
        margin: 0 0 18px;
        font-size: 28px;
        line-height: 1.18;
    }

    #what-we-do .what-card ul {
        width: fit-content;
        margin: 0 auto;
        padding: 0 0 0 24px;
        text-align: left;
        font-size: 17px;
        line-height: 1.25;
    }

    #what-we-do .mobile-slider__button {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: block;
        width: 22px;
        height: 22px;
        border: 0;
        border-top: 2px solid rgba(255, 255, 255, .92);
        border-left: 2px solid rgba(255, 255, 255, .92);
        background: transparent;
        cursor: pointer;
    }

    #what-we-do .mobile-slider__button--prev {
        left: -4px;
        transform: translateY(-50%) rotate(-45deg);
    }

    #what-we-do .mobile-slider__button--next {
        right: -4px;
        transform: translateY(-50%) rotate(135deg);
    }
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    #portfolio .portfolio-view--list {
        overflow: visible;
        padding-inline: 34px;
    }

    #portfolio .portfolio-slider {
        width: 100% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    #portfolio .portfolio-arrow {
        z-index: 6;
        top: calc(50% + 58px);
        width: 24px;
        height: 24px;
        border-top-width: 2px;
        border-left-width: 2px;
    }

    #portfolio .portfolio-arrow--prev {
        left: 6px !important;
    }

    #portfolio .portfolio-arrow--next {
        right: 6px !important;
    }
}

/* ============================================================
   Round 1 — 우측 요소 겹침/위치 정리 + 포트폴리오 디테일 겹침
   (데스크톱) 문의하기 버튼=코너, 스크롤 큐=충분히 왼쪽으로 분리
   ============================================================ */
.ask-float {
    right: clamp(30px, 3.2vw, 50px);
    bottom: clamp(30px, 3.6vh, 44px);
}

.hero>.scroll-cue,
.ask-section>.scroll-cue {
    right: clamp(100px, 8.5vw, 152px);
}

.page-section>.scroll-cue,
.scroll-cue-both {
    right: clamp(122px, 9.5vw, 172px);
}

/* 섹션 번호(01/05·04/05 등): 스크롤바 폭만큼 안쪽으로 */
.slide-count,
.section-count {
    right: clamp(58px, 5.6vw, 110px);
}

/* Round 2 — 포트폴리오 디테일 PREV/NEXT를 흐름(static)으로: 본문과 절대 안 겹침 */
.portfolio-view--detail {
    position: relative;
    padding-bottom: 18px;
}

.portfolio-detail__nav {
    position: static;
    transform: none;
    margin: 44px auto 0;
    justify-content: center;
}

.portfolio-back {
    bottom: 0;
}

@media (max-width: 640px) {

    /* 디테일 상단이 고정 로고와 겹치지 않게 여유 + 중복 'Portfolio' 제목 축소 */
    .portfolio-section {
        padding-top: 132px;
    }

    .portfolio-view--detail {
        padding-bottom: 8px;
    }

    .portfolio-view--detail>h2 {
        font-size: 34px;
        margin-bottom: 22px;
    }

    /* 디테일의 LIST도 흐름으로 (겹침 방지) */
    .portfolio-back {
        position: static;
        display: block;
        margin: 22px auto 0;
    }

    /* 문의하기와 중앙 스크롤 큐가 가깝지 않게 살짝 코너로 */
    .ask-float {
        right: 18px;
        bottom: 18px;
    }
}

/* ============================================================
   Round 3 — 스크롤 큐: 가운데 정렬 + 페이지 전환마다 1개 재등장
   ============================================================ */
.scroll-cue,
.scroll-cue-both,
.page-section>.scroll-cue,
.hero>.scroll-cue,
.ask-section>.scroll-cue {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* 활성 섹션의 큐만 페이드 인 (페이지 넘길 때마다 나타남) */
@keyframes cueAppear {
    0% {
        opacity: 0;
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 스크롤 아이콘: 기본은 숨김 → 해당 섹션에 스크롤해 도착했을 때만 나타남
   (맨 위 히어로 아이콘은 첫 화면이라 그대로 보이게 둠) */
.page-section>.scroll-cue,
.scroll-cue-both {
    opacity: 0;
}

.scroll-cue.is-cue-in,
.scroll-cue-both.is-cue-in {
    animation: cueAppear .7s ease both;
}

/* ============================================================
   Round 4 — 페이지 번호(NN/05): 중앙 콘텐츠/스크롤큐와 겹침 → 상단(타이틀 옆)으로
   ============================================================ */
.slide-count,
.section-count {
    top: clamp(118px, 17vh, 188px);
    bottom: auto;
    transform: none;
}

/* ============================================================
   Round 5 — 콘텐츠 섹션에서 중앙 스크롤 큐가 카드/콘텐츠와 겹침 해소
   ============================================================ */
/* 큐를 맨 아래 가장자리로 */
.page-section>.scroll-cue,
.scroll-cue-both {
    bottom: clamp(14px, 2vh, 22px);
}

/* 포트폴리오: 콘텐츠가 화면을 꽉 채워 큐와 겹침 → 상단여백 줄이고 카드 이미지 높이를 화면에 맞게 캡 */
.portfolio-section {
    padding-top: clamp(118px, 15vh, 162px);
    padding-bottom: 96px;
}

.portfolio-card__image {
    aspect-ratio: auto;
    height: clamp(300px, 41vh, 524px);
}

.portfolio-detail__media {
    height: clamp(280px, 36vh, 424px);
}

/* ============================================================
   히어로 영상 (관리자에서 경로 입력 시 이미지 위에 자동재생)
   ============================================================ */
.hero__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ============================================================
   인트로 영상 섹션 (맨 위 전체화면 · 스크롤 내리면 이미지 히어로)
   ============================================================ */
.intro-video {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #000;
}

.intro-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.intro-video .scroll-cue {
    z-index: 4;
    color: #fff;
}

/* ============================================================
   헤더 움직이는 로고 영상 (검은 배경 자동 투명 + 중앙 확대)
   ============================================================ */
.brand--video {
    width: clamp(200px, 14vw, 260px);
    height: 60px;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
}

.brand__video {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    /* 검은 배경 → 투명, 밝은 로고만 보임 */
    transform: scale(2.4);
    /* 가운데 로고 확대 (영상 보고 미세조정) */
    transform-origin: center;
    pointer-events: none;
}

/* ============================================================
   헤더 로고 (PNG/APNG/WebM/MP4 공통) — 헤더 높이에 맞춰 표시
   ============================================================ */
.brand {
    width: clamp(300px, 23vw, 442px);
    max-width: 442px;
}

.brand .brand__media {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 176px;
}

/* About 섹션 스크롤 버튼만 조금 더 아래로 */
#about>.scroll-cue-both {
    bottom: clamp(-26px, -2vh, -10px);
}

/* 포트폴리오 좌우 화살표: 양 끝으로 붙이고 카드 중앙에 정렬 */
#portfolio .portfolio-arrow {
    top: 50%;
}

#portfolio .portfolio-arrow--prev {
    left: clamp(18px, 3vw, 56px);
    right: auto;
}

#portfolio .portfolio-arrow--next {
    right: clamp(18px, 3vw, 56px);
    left: auto;
}

/* 포트폴리오 화살표 모양 보정: 정사각형 꺾쇠(<, >)로 깔끔하게 */
#portfolio .portfolio-arrow {
    width: 26px;
    height: 26px;
    border-top: 3px solid rgba(255, 255, 255, .92);
    border-left: 3px solid rgba(255, 255, 255, .92);
    border-right: 0;
    border-bottom: 0;
}

#portfolio .portfolio-arrow--prev {
    transform: translateY(-50%) rotate(-45deg);
}

#portfolio .portfolio-arrow--next {
    transform: translateY(-50%) rotate(135deg);
}

/* 영상 히어로: 타이틀 문구 숨김 (01/05 카운터는 유지) */
.hero .hero__copy {
    display: none;
}

/* Ask 폼 인라인 결과 메시지 (AJAX 제출) */
.ask-form__msg {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(34, 197, 94, .16);
    border: 1px solid rgba(34, 197, 94, .5);
    color: #b6f5cf;
    font-size: 15px;
    font-weight: 700;
}

.ask-form__msg--error {
    background: rgba(255, 90, 90, .14);
    border-color: rgba(255, 90, 90, .5);
    color: #ffc2c2;
}

/* ============================================================
   모바일 최종 보정 (데스크톱용 큰 로고 규칙이 모바일까지 덮어쓰던 문제 수정)
   ============================================================ */
@media (max-width: 640px) {

    /* 로고: 크게 + 햄버거바는 상단 그대로, 로고를 위로 끌어올림(상단/옆 잘려도 OK) */
    /* 로고 영상 자체에 왼쪽 투명여백이 있어, 음수 마진으로 보이는 로고를 왼쪽 끝까지 당김 */
    .site-header {
        top: 14px;
        left: 0;
        right: 16px;
        gap: 8px;
        align-items: flex-start;
    }

    .brand {
        width: min(300px, 80vw);
        max-width: 300px;
        margin-top: -40px;
        margin-left: -52px;
    }

    .brand .brand__media {
        max-height: 150px;
    }

    .menu-toggle {
        flex: 0 0 auto;
        margin-top: 4px;
    }

    /* 밝은 영상 배경에서도 햄버거바가 잘 보이게 */
    .menu-toggle span {
        box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    }

    /* 스크롤 큐는 맨 위(메인)·맨 아래(Ask) 1개씩만 — 가운데 섹션(about/what/portfolio)의 양방향 큐 숨김 */
    .scroll-cue-both {
        display: none !important;
    }

    /* 남는 단일 큐는 화면 하단 중앙에 안전하게 */
    .hero>.scroll-cue,
    .ask-section>.scroll-cue,
    .scroll-cue--ask {
        left: 50%;
        right: auto;
        bottom: 22px;
        transform: translateX(-50%);
    }

    /* 모바일: 섹션 스크롤 스냅 — 한 화면씩 툭툭 끊어서 내려감
       (스펙상 스냅영역이 화면보다 크면 내부 스크롤 허용되어 긴 섹션도 안 갇힘) */
    html {
        scroll-snap-type: y mandatory;
        scroll-padding-top: 0;
    }

    .hero,
    .page-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* 모바일: About/Ask 텍스트 우측 잘림 방지 — 폭 안에서 안전 줄바꿈 */
@media (max-width: 640px) {
    .about-section__inner {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .about-section__intro {
        max-width: 100%;
    }

    .about-section__lead,
    .about-section__highlight,
    .about-section__body {
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .ask-section__inner {
        max-width: 100%;
    }

    .ask-section__inner>h2,
    .ask-info h3,
    .contact-list dd {
        overflow-wrap: anywhere;
        word-break: keep-all;
    }
}

/* ============================================================
   포트폴리오 상세 팝업(모달) + 미디어 캐러셀
   ============================================================ */
body.pf-open {
    overflow: hidden;
}

.pf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px);
}

.pf-modal[hidden] {
    display: none;
}

.pf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
}

.pf-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    overflow: hidden auto;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
    animation: pfPop .28s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes pfPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pf-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    cursor: pointer;
}

.pf-modal__close::before,
.pf-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
}

.pf-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pf-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pf-modal__close:hover {
    background: rgba(0, 0, 0, .8);
}

.pf-modal__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 56vh;
    /* 미디어가 팝업을 다 차지해 아래 설명이 잘리지 않도록 제한 */
    background: #000;
    overflow: hidden;
    flex: 0 0 auto;
}

.pf-modal__track {
    display: flex;
    height: 100%;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.pf-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.pf-slide img,
.pf-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pf-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .42);
    cursor: pointer;
    transition: background .18s ease;
}

.pf-modal__arrow:hover {
    background: rgba(0, 0, 0, .7);
}

.pf-modal__arrow[hidden] {
    display: none;
}

.pf-modal__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    border-top: 2.5px solid #fff;
    border-left: 2.5px solid #fff;
}

.pf-modal__arrow--prev {
    left: 14px;
}

.pf-modal__arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.pf-modal__arrow--next {
    right: 14px;
}

.pf-modal__arrow--next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.pf-modal__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.pf-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.pf-dot.is-on {
    background: #fff;
    transform: scale(1.25);
}

.pf-modal__info {
    padding: clamp(18px, 2.4vw, 30px);
    overflow-y: auto;
}

.pf-modal__cat {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .82);
}

.pf-modal__cat:empty {
    display: none;
}

.pf-modal__info h3 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.3;
}

.pf-modal__desc {
    margin: 0;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .pf-modal {
        padding: 0;
    }

    .pf-modal__panel {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border: 0;
        border-radius: 0;
    }

    .pf-modal__stage {
        aspect-ratio: auto;
        height: 46vh;
    }

    .pf-modal__info {
        flex: 1 1 auto;
    }

    .pf-modal__arrow {
        width: 40px;
        height: 40px;
    }
}

/* 모바일 포트폴리오 롤링: 카드 흐려짐 방지(전부 또렷하게) */
@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    .portfolio-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .portfolio-list {
        transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    }
}

/* ============================================================
   섹션 스크롤 스냅 — 데스크톱·모바일 공통으로 단락(섹션)별로 스냅
   (긴 섹션은 스펙상 내부 스크롤 허용되어 갇히지 않음)
   ============================================================ */
html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
}

.hero,
.page-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* 모션 최소화 설정 사용자는 스냅 해제 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-snap-type: none;
    }
}

/* 모달 열려 있을 때 배경 스크롤·스냅 잠금 */
html.pf-open {
    overflow: hidden;
    scroll-snap-type: none;
}

/* ============================================================
   전략실장 요청 수정 (2026-06)
   1) 상단 헤더(로고 + 메뉴) 뒤에 마스킹 → 어떤 섹션에서도 콘텐츠와 겹쳐 안 보이는 일 없게
   2) 페이지 숫자(01/05 · 02~05)와 'Scroll' 표시 제거 — 섹션별 스냅 스크롤은 그대로 유지
   ============================================================ */
.site-header::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(116px, 15vh, 176px);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .52) 46%, rgba(0, 0, 0, 0) 100%);
}

/* 페이지 숫자(01/05 · 02~05) 숨김 */
.slide-count,
.section-count {
    display: none !important;
}

/* 마우스 스크롤 안내 전체 숨김 */
.scroll-cue,
.scroll-cue-both {
    display: none !important;
}

/* 데스크톱: 휠 한 번 = 한 페이지 이동을 JS가 전담하므로 네이티브 CSS 스냅은 해제
   (이중 스냅 방지). 모바일/터치는 위쪽의 CSS scroll-snap 그대로 동작. */
@media (min-width: 1025px) {
    html {
        scroll-snap-type: none;
    }
}
