@charset "utf-8";

/* 테일윈드로 옮기지 않는 부분: 웹폰트, 등장·마키·아코디언·다이얼로그 애니메이션, 상태 스타일 */

@font-face {
    font-family: 'Freesentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freesentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freesentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freesentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

::selection {
    background: #eaf126;
    color: #171717;
}

:focus-visible {
    outline: 3px solid #264acf;
    outline-offset: 4px;
}

summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.04em;
    line-height: 1.35;
}

/* 네비 언더라인 */
.nav a {
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 7px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a[aria-current]::after {
    transform: scaleX(1);
}

/* 형광펜 강조 — box-decoration-break는 유틸리티로 맞추기 어렵다 */
.mark-acid {
    display: inline;
    padding-inline: 4px;
    margin-left: -4px;
    background-image: linear-gradient(transparent 50%, #eaf126 50%, #eaf126 94%, transparent 94%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.mark-acid-strong {
    display: inline;
    padding-inline: 3px;
    margin-left: -3px;
    background-image: linear-gradient(transparent 52%, #eaf126 52%, #eaf126 94%, transparent 94%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* 히어로 순차 등장 */
.hero-topline,
.hero-type .first,
.hero-type .second,
.hero h1,
.hero-desc,
.hero-actions,
.hero-bottomline,
.hero-visual > img {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-type .second {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hero-type .second::after {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 0.04em;
    z-index: -1;
    width: calc(100% + 12px);
    height: 0.44em;
    background: #eaf126;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual > img {
    transform: translateY(32px) scale(0.98);
    transition-duration: 0.85s;
}

.hero.is-visible .hero-topline {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
}

.hero.is-visible .hero-type .first {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.hero.is-visible .hero-type .second {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.hero.is-visible .hero-type .second::after {
    transform: scaleX(1);
    transition-delay: 0.65s;
}

.hero.is-visible h1 {
    opacity: 1;
    transform: none;
    transition-delay: 0.85s;
}

.hero.is-visible .hero-desc {
    opacity: 1;
    transform: none;
    transition-delay: 1s;
}

.hero.is-visible .hero-actions {
    opacity: 1;
    transform: none;
    transition-delay: 1.15s;
}

.hero.is-visible .hero-bottomline {
    opacity: 1;
    transform: none;
    transition-delay: 1.25s;
}

.hero.is-visible .hero-visual > img {
    opacity: 1;
    transform: none;
    transition-delay: 1.35s;
}

.hero-badge {
    opacity: 0;
}

.hero.is-visible .hero-badge {
    animation: hero-badge-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.55s both,
        hero-badge-bounce 2.2s ease-in-out 2.25s infinite;
}

.hero-badge:hover {
    animation-play-state: paused;
}

@keyframes hero-badge-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes hero-badge-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* 마키 */
.marquee-track {
    width: max-content;
    animation: marquee-left 32s linear infinite;
    will-change: transform;
}

.marquee-window:hover .marquee-track,
.hero-strip.is-paused .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333333%);
    }
}

/* 아코디언 + 버튼 회전 */
.plus {
    transform-origin: center;
    transition: transform 0.25s ease;
}

.expertise-item .plus,
.faq-item .plus {
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

details[open] > summary .plus {
    transform: rotate(45deg);
}

details[open] > .acc-body {
    animation: accordion-reveal 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 전문 분야 · 자주 묻는 질문: 높이가 이어지며 열리고, 글자는 조금 늦게 나타남 */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .expertise-item,
    .faq-item {
        interpolate-size: allow-keywords;
    }

    .expertise-item::details-content,
    .faq-item::details-content {
        height: 0;
        overflow: clip;
        opacity: 0;
        transition:
            height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.38s ease,
            content-visibility 0.62s allow-discrete;
    }

    .expertise-item[open]::details-content,
    .faq-item[open]::details-content {
        height: auto;
        opacity: 1;
        transition:
            height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.48s ease 0.12s,
            content-visibility 0s;
    }

    .expertise-item[open] > .acc-body,
    .faq-item[open] > .acc-body {
        animation: none;
    }
}

@keyframes accordion-reveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

/* 상황 선택 · 프로세스 탭 상태 */
.route-button[aria-selected="true"],
.route-button:hover {
    background-color: #222222;
    color: #ffffff;
    padding-left: 20px;
}

.route-button[aria-selected="true"] > span:first-child,
.route-button:hover > span:first-child {
    color: #eaf126;
}

.route-plus {
    transform-origin: center;
    transition: transform 0.25s ease;
}

.route-button[aria-selected="true"] .route-plus {
    transform: rotate(45deg);
}

.route-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .route-mobile.is-open {
        display: block;
        animation: accordion-reveal 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

.process-tab[aria-selected="true"] {
    color: #171717;
    background: #ffffff;
    border-bottom-width: 3px;
    border-bottom-color: #264acf;
    padding-left: 22px;
}

.process-tab[aria-selected="true"] .no {
    color: #264acf;
}

.process-step {
    position: relative;
    z-index: 0;
}

@media (min-width: 768px) {
    .process-step {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
    }

    .process-step .process-tab {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .process-mobile .process-panel {
        margin: 4px 10px 16px;
    }

    .process-mobile .process-panel.is-placed {
        animation: accordion-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (min-width: 1024px) {
    #route-panel > :not(:last-child) {
        transition: opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1), transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #route-panel.is-leaving > :not(:last-child) {
        opacity: 0;
        transform: translateY(8px);
        transition-duration: 0.16s;
    }
}

@media (min-width: 768px) {
    #process-index,
    #process-step-meta,
    #process-question,
    #process-decide,
    #process-prepare,
    #process-work,
    #process-result {
        transition: opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1), transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #process-panel.is-leaving #process-index,
    #process-panel.is-leaving #process-step-meta,
    #process-panel.is-leaving #process-question,
    #process-panel.is-leaving #process-decide,
    #process-panel.is-leaving #process-prepare,
    #process-panel.is-leaving #process-work,
    #process-panel.is-leaving #process-result {
        opacity: 0;
        transform: translateY(8px);
        transition-duration: 0.16s;
    }
}

/* 카드 호버 */
.work-img img,
.guide-image img {
    transition: transform 0.55s ease;
}

.work-button:hover .work-img img,
.guide-card:hover .guide-image img {
    transform: scale(1.035);
}

.work-button:hover .zoom {
    background: #eaf126;
}

.work-button:hover .work-view,
.guide-card:hover .read {
    color: #264acf;
    border-color: #264acf;
}

.work-button:hover .work-view i,
.guide-card:hover .read i {
    transform: translate(3px, -3px);
}

/* 다이얼로그 */
dialog {
    border: 0;
    padding: 0;
    color: #171717;
    background: #f6f5f0;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 40px);
    overscroll-behavior: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

dialog::backdrop {
    background: rgba(18, 18, 18, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

dialog.menu-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    box-shadow: none;
}

.sheet-dialog[open] {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    translate: -50% -50%;
    animation: dialog-fade 0.3s ease-out;
}

.sheet-dialog[open]::backdrop {
    animation: dialog-fade 0.3s ease-out;
}

@keyframes dialog-rise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

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

@keyframes dialog-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.channel-email.copied .channel-action {
    background: #256f3e;
    border-color: #256f3e;
    color: #ffffff;
}

.channel-email.copied .channel-desc {
    color: #256f3e;
    font-weight: 700;
}

@media (max-width: 767px) {
    .route-button[aria-selected="true"],
    .route-button:hover {
        padding-left: 14px;
    }

    .process-tab[aria-selected="true"] {
        padding-left: 16px;
    }
}

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

    .hero-topline,
    .hero-type .first,
    .hero-type .second,
    .hero h1,
    .hero-desc,
    .hero-actions,
    .hero-bottomline,
    .hero-visual > img,
    .hero-badge {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-type .second::after {
        transform: scaleX(1);
    }

    .marquee-track,
    .plus,
    .route-plus,
    .route-mobile,
    .process-mobile .process-panel,
    #route-panel > :not(:last-child),
    #process-index,
    #process-step-meta,
    #process-question,
    #process-decide,
    #process-prepare,
    #process-work,
    #process-result,
    .work-img img,
    .guide-image img,
    .expertise-item::details-content,
    .faq-item::details-content {
        animation: none;
        transition: none;
    }
}
