/* ==========================================================================
   01. 공통 디자인 사진 프리셋
   ========================================================================== */
.design-photo {
    --photo-x: 75.705329%;
    --photo-y: 22.921507%;
    background-image: url('../images/main/design-reference.jpg');
    background-size: 298.136646% auto;
    background-position: var(--photo-x) var(--photo-y);
    background-repeat: no-repeat;
    background-color: #d9d9d9;
    aspect-ratio: 644 / 429;
}

.design-photo--trainer {
    --photo-x: 24.294671%;
    --photo-y: 42.559854%;
}

/* ==========================================================================
   02. CHAPTER 01 / ABOUT US (학원 소개)
   ========================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: 0.863354fr 1fr;
    gap: clamp(40px, 5.2083vw, 100px);
    align-items: start;
}

.about__copy > .eyebrow {
    margin-bottom: clamp(20px, 1.4583vw, 28px);
}

.about__copy h2 {
    font-size: clamp(26px, 1.875vw, 36px);
}

.about__copy .body-copy {
    margin-top: 24px;
    line-height: 1.875;
}

.about__image {
    margin-top: 9px;
}

/* ==========================================================================
   03. CHAPTER 02 / GROWTH DATA (커리큘럼)
   ========================================================================== */
.curriculum {
    padding-top: clamp(65px, 6.25vw, 120px);
    padding-bottom: clamp(75px, 5.2083vw, 100px);
}

.section-signature {
    margin-top: 25px;
    color: #999999;
    font: 12px / 1.6 monospace;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(45px, 3.6458vw, 70px);
    padding-block: 30px 25px;
    border-block: 1px solid #eeeeee;
}

.method-card {
    padding-inline: clamp(15px, 1.4583vw, 28px);
    border-right: 1px solid #eeeeee;
}

.method-card:last-child {
    border-right: 0;
}

.method-card__number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #080808;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 27px;
}

.method-card .eyebrow {
    font: 12px / 1.6 monospace;
    letter-spacing: 0;
    color: #999999;
}

.method-card h3 {
    margin-top: 20px;
    font-size: clamp(19px, 1.3542vw, 26px);
    line-height: 1.4;
    letter-spacing: -1px;
}

.method-card > p:last-child {
    margin-top: 20px;
    color: #999999;
    font-size: clamp(11px, 0.7292vw, 14px);
    line-height: 1.8;
}

/* ==========================================================================
   04. CHAPTER 03 / THE BASIC TRAINER (트레이너 소개)
   ========================================================================== */
.trainers {
    padding-top: clamp(100px, 7.5521vw, 145px);
    padding-bottom: clamp(100px, 7.8125vw, 150px);
}

.trainer-feature {
    margin-top: clamp(32px, 2.3438vw, 45px);
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: clamp(30px, 3.125vw, 60px);
    align-items: center;
}

.trainer-feature__image {
    width: 100%;
    background-color: #d9d9d9;
}

.trainer-feature__image:not(.design-photo--trainer) {
    background-image: none;
}

.trainer-feature__copy h3 {
    font-size: clamp(22px, 1.4583vw, 28px);
    border-bottom: 1px solid #555555;
    padding-bottom: 35px;
}

.trainer-feature__copy h3 > span + span {
    font-size: 0.65em;
    font-weight: 400;
    color: #777777;
}

.trainer-feature__copy h4 {
    font-size: clamp(14px, 0.9375vw, 18px);
    margin: 26px 0 10px;
    font-weight: 700;
}

.trainer-feature__copy p {
    color: #777777;
    font-size: clamp(13px, 0.9375vw, 18px);
    line-height: 2.05;
}

.trainer-feature__copy > .body-copy {
    padding-top: 30px;
}

.trainer-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(14px, 1.6667vw, 32px);
    margin-top: clamp(35px, 3.6458vw, 70px);
}

.trainer-tabs button {
    padding: 0;
    background: none;
    text-align: left;
    font-size: clamp(13px, 1.0417vw, 20px);
    font-weight: 700;
}

.trainer-tabs__photo {
    display: block;
    background-color: #d9d9d9;
    aspect-ratio: 190 / 127;
    margin-bottom: 18px;
}

.trainer-tabs button:focus-visible {
    outline-offset: 6px;
}

.trainer-tabs button:not(.is-active):hover .trainer-tabs__photo {
    background-color: #c5c5c5;
}

.section-progress {
    height: 1px;
    background: #dddddd;
    margin-top: clamp(35px, 3.6458vw, 70px);
}

.section-progress > span {
    display: block;
    height: 2px;
    width: 29.5%;
    background: #222222;
    transition: transform 0.3s;
}

/* ==========================================================================
   05. CHAPTER 04 / REVIEWS (수강 후기)
   ========================================================================== */
.reviews {
    --review-card-width: clamp(250px, 18.75vw, 360px);
    background: #f7f7f7;
    overflow: hidden;
    padding-bottom: clamp(80px, 6.25vw, 120px);
}

.review-row {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 clamp(20px, 2.0833vw, 40px);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.review-row::-webkit-scrollbar {
    display: none;
}

.review-row + .review-row,
#featured-reviews {
    margin-top: clamp(40px, 4.1667vw, 80px);
}

.review-track {
    display: flex;
    gap: clamp(18px, 1.5625vw, 30px);
    width: max-content;
}

.review-card {
    flex: 0 0 var(--review-card-width);
    width: var(--review-card-width);
    min-height: clamp(225px, 13.8542vw, 266px);
    padding: clamp(25px, 2.3438vw, 45px);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
}

.review-card .eyebrow {
    color: #999999;
    font-family: inherit;
    letter-spacing: 0;
    font-size: clamp(11px, 0.8333vw, 16px);
}

.review-card h3 {
    margin-top: 8px;
    font-size: clamp(16px, 1.0417vw, 20px);
    letter-spacing: -0.7px;
    line-height: 1.4;
}

.review-card > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: clamp(13px, 0.9375vw, 18px);
    line-height: 1.6;
}

.review-card--student {
    min-height: clamp(290px, 18.75vw, 360px);
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.review-card--student h3 {
    white-space: pre-line;
}

.review-card--student > p:not(.eyebrow) {
    white-space: pre-wrap;
}

.review-card--student > strong,
.review-card--student small {
    display: block;
    margin-top: 28px;
    font-size: 13px;
}

.review-card--student > strong {
    margin-top: auto;
    padding-top: 28px;
}

.review-card--student small {
    margin-top: 15px;
    font-size: 11px;
    color: #888888;
}

/* ==========================================================================
   06. CHAPTER 05 / THE BASIC (커뮤니티)
   ========================================================================== */
.stories {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: #000000;
    color: #ffffff;
    padding-bottom: clamp(90px, 6.25vw, 120px);
}

.stories .section-meta {
    margin-bottom: clamp(26px, 1.71875vw, 33px);
}

.stories .section-heading {
    position: relative;
}

.stories .section-heading::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: clamp(270px, 17.7083vw, 340px);
    aspect-ratio: 340 / 506;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 50%;
    background: #0d0d0d;
    pointer-events: none;
}

.stories .section-heading > .eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    letter-spacing: 3px;
}

.stories .eyebrow > span {
    width: 30px;
    height: 1px;
    margin-left: 0;
    font-size: 0;
    background: #888888;
}

.stories h2 {
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.stories .body-copy {
    margin-top: 30px;
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: 1.6;
    letter-spacing: 0;
    color: #888888;
}

.stories .section-signature {
    margin-top: 18px;
    font-size: clamp(12px, 0.7292vw, 14px);
    letter-spacing: 0.6px;
}

.story-controls {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 25px;
    margin-bottom: 28px;
}

.story-controls button,
.story-controls a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #777777;
    color: #bbbbbb;
    font-size: 19px;
}

.story-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.story-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 30px) / 3);
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.story-grid::-webkit-scrollbar {
    display: none;
}

.story-card {
    min-width: 0;
    scroll-snap-align: start;
}

.story-card__placeholder {
    display: block;
    aspect-ratio: 425 / 265;
    background: #d9d9d9;
}

.story-card h3 {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
}

.story-card p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.7;
}

.stories .section-progress {
    background: #555555;
}

.stories .section-progress > span {
    background: #ffffff;
    width: 15%;
}

/* ==========================================================================
   07. CHAPTER 06 / CONTACT & COUNSEL (오시는 길 & 온라인 상담)
   ========================================================================== */
.contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #222222;
    padding-block: clamp(100px, 7.2917vw, 140px);
}

.contact__background {
    position: absolute;
    z-index: -2;
    inset: -1px;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-image: url('../images/main/contact-microphone-reference.png');
    background-size: cover;
    background-position: center;
    filter: none;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
    align-items: center;
    width: min(56.25%, 1080px);
}

.contact__intro {
    padding: clamp(35px, 3.125vw, 60px);
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.96), rgba(5, 5, 5, 0.96));
    color: #ffffff;
}

.contact__intro .eyebrow {
    font-size: clamp(10px, 0.7292vw, 14px);
    letter-spacing: 0.4px;
}

.contact__intro h2 {
    white-space: nowrap;
    margin-top: 26px;
    font-size: clamp(26px, 1.875vw, 36px);
    letter-spacing: -1.5px;
}

.contact__intro > p:not(.eyebrow) {
    margin-top: 24px;
    font-size: clamp(12px, 0.8333vw, 16px);
    line-height: 1.9;
}

.contact__details {
    margin: 50px 0 0;
}

.contact__details > div {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.19);
    padding-block: 20px;
    align-items: center;
}

.contact__details > div:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.19);
}

.contact__details dt {
    font: 11px / 1.25 monospace;
}

.contact__details dd {
    margin: 0;
    font-size: clamp(11px, 0.8333vw, 16px);
    line-height: 1.6;
}

.contact__intro > p.contact__subjects {
    font-size: 12px;
    margin-top: 20px;
}

.contact__intro .text-link {
    margin-top: 10px;
    gap: 50px;
    font-size: 13px;
}

.consult-form {
    background: #d9d9d9;
    padding: clamp(30px, 2.6042vw, 50px);
}

.consult-form > .eyebrow {
    text-align: center;
    font-size: 14px;
    letter-spacing: 0;
}

.consult-form h2 {
    margin-top: 12px;
    text-align: center;
    font-size: clamp(26px, 1.875vw, 36px);
}

.consult-form__description {
    text-align: center;
    color: #999999;
    font-size: 12px;
    line-height: 2;
    margin-block: 18px 20px;
}

.consult-form > label:not(.consult-form__consent) {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 16px 0 9px;
}

.consult-form > input,
.consult-form select,
.consult-form > textarea {
    display: block;
    width: 100%;
    border: 1px solid transparent;
    background: #cecece;
    padding: 14px;
    font-size: 12px;
    color: #444444;
}

.consult-form > textarea {
    min-height: 170px;
}

.consult-form input::placeholder,
.consult-form textarea::placeholder {
    color: #aaaaaa;
}

.consult-form input:focus,
.consult-form textarea:focus,
.consult-form select:focus {
    outline: none;
    border-color: #777777;
}

.consult-form__consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 12px;
    color: #666666;
}

.consult-form__consent input {
    width: 18px;
    height: 18px;
    accent-color: #111111;
}

.consult-form .button {
    display: block;
    width: 100%;
    margin-top: 28px;
    text-align: center;
    min-width: 0;
    font-size: 14px;
}

.consult-form__notice {
    font-size: 10px;
    line-height: 1.6;
    margin-top: 12px;
    color: #777777;
}

.form-result {
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin-top: 16px;
}

/* ==========================================================================
   08. CLOSING (클로징 & 정보 복사)
   ========================================================================== */
.closing {
    color: #ffffff;
    text-align: center;
    padding-block: 52px;
    background: #080808 url('../images/main/closing-wave-reference.png') center / 100% 160% no-repeat;
}

.closing__brand {
    font-weight: 700;
    font-size: 28px;
}

.closing h2 {
    margin-top: 12px;
    line-height: 1.6;
    font-size: clamp(25px, 1.875vw, 36px);
}

.closing h2 + p {
    margin-top: 18px;
    font-size: 12px;
    color: #999999;
    line-height: 2;
}

.closing__actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(6px, 0.5208333vw, 10px);
    margin-top: 30px;
}

.closing .button {
    width: clamp(170px, 13.3333vw, 256px);
    min-width: 0;
    height: clamp(48px, 3.4375vw, 66px);
    min-height: 0;
    padding: 0 clamp(15px, 1.5104vw, 29px);
    border-radius: clamp(4px, 0.3125vw, 6px);
    justify-content: flex-start;
    gap: clamp(10px, 1.0417vw, 20px);
    font-size: clamp(12px, 0.8333vw, 16px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.closing [data-copy='contact'] {
    color: #ffffff;
    background: transparent;
    border-color: #999999;
}

.closing [data-copy='contact']:is(:hover, :focus-visible) {
    color: #202020;
    background: #ffffff;
    border-color: #ffffff;
}

.closing .button--outline {
    justify-content: space-between;
}

.closing .copy-icon {
    width: clamp(14px, 0.9375vw, 18px);
    height: clamp(14px, 0.9375vw, 18px);
    flex: 0 0 auto;
}

/* ==========================================================================
   09. 반응형 미디어 쿼리 (1000px 이하)
   ========================================================================== */
@media (max-width: 1000px) {
    .about__grid {
        gap: 40px;
    }

    .method-card {
        padding-inline: 15px;
    }

    .method-card h3 {
        font-size: 19px;
    }

    .trainer-feature {
        gap: 30px;
    }

    .contact__grid {
        width: 86%;
    }

    .contact__intro {
        padding: 35px 28px;
    }

    .contact__intro h2 {
        font-size: 25px;
    }

    .contact__details > div {
        grid-template-columns: 72px 1fr;
    }

    .consult-form {
        padding: 35px 28px;
    }
}

/* ==========================================================================
   10. 반응형 미디어 쿼리 (760px 이하 - 모바일)
   ========================================================================== */
@media (max-width: 760px) {
    .about__grid,
    .trainer-feature,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__image {
        margin-top: 0;
    }

    .curriculum {
        padding-top: 45px;
    }

    .section-signature {
        font-size: 10px;
    }

    .method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 0;
        padding-block: 30px;
        margin-top: 45px;
    }

    .method-card:nth-child(2) {
        border-right: 0;
    }

    .method-card__number {
        width: 28px;
        height: 28px;
        font-size: 10px;
        margin-bottom: 20px;
    }

    .method-card .eyebrow {
        font-size: 9px;
    }

    .method-card h3 {
        font-size: 17px;
        letter-spacing: -0.8px;
        margin-top: 14px;
    }

    .method-card > p:last-child {
        font-size: 11px;
        margin-top: 14px;
    }

    .method-card > p:last-child br {
        display: none;
    }

    .trainers {
        padding-block: 70px 85px;
    }

    .trainer-feature {
        margin-top: 32px;
    }

    .trainer-feature__copy h3 {
        font-size: 24px;
        padding-bottom: 20px;
    }

    .trainer-feature__copy h4 {
        font-size: 14px;
        margin-top: 20px;
    }

    .trainer-feature__copy p {
        font-size: 12px;
        line-height: 2.1;
    }

    .trainer-tabs {
        grid-template-columns: repeat(6, minmax(100px, 1fr));
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .trainer-tabs button {
        font-size: 12px;
    }

    .trainer-tabs__photo {
        margin-bottom: 12px;
    }

    .section-progress {
        margin-top: 30px;
    }

    .reviews {
        --review-card-width: 260px;
        padding-bottom: 60px;
    }

    .review-row + .review-row,
    #featured-reviews {
        margin-top: 25px;
    }

    .review-card {
        padding: 28px;
        min-height: 240px;
    }

    .review-card--student {
        min-height: 280px;
    }

    .stories .section-heading::before {
        width: min(70vw, 270px);
    }

    .stories .body-copy {
        font-size: 11px;
    }

    .story-controls {
        margin-top: 45px;
        margin-bottom: 18px;
    }

    .story-grid {
        grid-auto-columns: 86%;
        gap: 14px;
    }

    .story-card p {
        font-size: 11px;
    }

    .contact {
        padding-block: 60px;
    }

    .contact__grid {
        width: calc(100% - 48px);
        gap: 0;
    }

    .contact__intro h2 {
        font-size: 27px;
        white-space: normal;
    }

    .contact__details {
        margin-top: 30px;
    }

    .contact__details dd {
        font-size: 12px;
    }

    .consult-form h2 {
        font-size: 28px;
    }

    .consult-form__description {
        font-size: 11px;
    }

    .consult-form__consent {
        font-size: 10px;
    }

    .closing {
        background-size: cover;
        background-position: 70% center;
    }

    .closing__brand {
        font-size: 23px;
    }

    .closing h2 {
        font-size: 25px;
    }

    .closing__actions {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .closing .button {
        width: 192px;
        height: 50px;
        padding-inline: 22px;
        gap: 15px;
        font-size: 12px;
    }

}

/* ==========================================================================
   11. 모션 감소 및 No-JS 지원
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.no-js .trainer-tabs,
.no-js .consult-form,
.no-js .story-controls,
.no-js .closing__actions {
    display: none;
}

@media (max-width: 760px) {
    .no-js .site-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        position: static;
        padding: 0;
        border: 0;
    }

    .no-js .site-header {
        height: auto;
        flex-wrap: wrap;
        padding-block: 16px;
    }

    .no-js .site-nav a {
        padding: 6px 0;
        font-size: 11px;
    }

    .no-js .menu-toggle {
        display: none;
    }
}

.trainer-feature__image img,
.trainer-tabs__photo img,
.story-card__placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#trainer-biography .body-copy {
    white-space: pre-line;
}
