.scope-body {
    background: var(--oil-black);
    color: var(--text-light);
}

.scope-hero {
    padding: 200px 0 120px;
    background: var(--oil-black);
    text-align: center;
}

.scope-hero-title {
    margin: 0 0 20px;
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--accent-rust);
    word-break: keep-all;
}

.scope-hero-sub {
    margin: 0 auto;
    max-width: 720px;
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-gray);
    word-break: keep-all;
}

.scope-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 14px 32px;
    border: none;
    background: var(--accent-rust);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
    text-decoration: none;
}

.scope-hero-cta:hover,
.scope-hero-cta:focus-visible {
    background: #246ca5;
    color: #ffffff;
}

.scope-content {
    padding: 0 0 80px;
}

.scope-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.scope-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 30px;
}

.scope-card-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
}

.scope-card-open img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.scope-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
    max-height: 70%;
    padding: 50px;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.55) 52%, rgba(13, 13, 13, 0) 100%);
    color: var(--text-light);
}

.scope-card-caption-inner {
    display: block;
}

.scope-card-title {
    display: block;
    margin: 0;
    font-family: 'A2z', Pretendard, "Noto Sans KR", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-light);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.scope-card-excerpt {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    color: #ffffffdd;
    opacity: 0;
    word-break: keep-all;
    transition: grid-template-rows 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
}

.scope-card-excerpt > span {
    overflow: hidden;
    min-height: 0;
}

.scope-card-open:hover .scope-card-excerpt,
.scope-card-open:focus-visible .scope-card-excerpt {
    grid-template-rows: 1fr;
    margin-top: 8px;
    opacity: 1;
}

.scope-card-open:focus-visible {
    outline: 2px solid var(--accent-rust);
    outline-offset: 3px;
}

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

.scope-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.scope-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.scope-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: 90vh;
    overflow: hidden;
    background: var(--bg-surface);
    border-radius: 10px;
}

.scope-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    min-height: 56px;
    padding: 6px 12px 6px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scope-modal-kicker {
    margin: 0;
    font-size: 13px;
    color: var(--accent-rust);
    font-weight: 600;
}

.scope-modal-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}

.scope-modal-close i {
    font-size: 22px;
}

.scope-modal-close:hover,
.scope-modal-close:focus-visible {
    color: var(--accent-rust);
}

.scope-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    padding: 24px;
    min-height: 0;
    overflow-y: auto;
}

.scope-modal-img {
    display: block;
    width: 100%;
    max-height: 56vh;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: var(--oil-black);
}

.scope-modal-copy {
    min-width: 0;
}

.scope-modal-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    word-break: keep-all;
    color: var(--text-light);
}

.scope-modal-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    word-break: keep-all;
}

.scope-modal-details {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scope-modal-details h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
}

.scope-modal-details-note {
    margin: 8px 0 16px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}

.scope-modal-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0;
}

.scope-modal-details dl > div {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scope-modal-details dt {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.scope-modal-details dd {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.scope-modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scope-modal-prev,
.scope-modal-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    word-break: keep-all;
}

.scope-modal-prev:hover,
.scope-modal-next:hover,
.scope-modal-prev:focus-visible,
.scope-modal-next:focus-visible {
    color: var(--accent-rust);
}

.scope-modal-prev:disabled,
.scope-modal-next:disabled {
    color: var(--text-muted);
    cursor: default;
}

.scope-modal-pos {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .scope-hero {
        padding: 160px 0 96px;
    }

    .scope-hero-title {
        font-size: 44px;
    }

    .scope-card-caption {
        padding: 36px;
    }

    .scope-card-title {
        font-size: 22px;
    }

    .scope-card-excerpt {
        font-size: 16px;
    }

    .scope-modal-body {
        grid-template-columns: 1fr;
    }

    .scope-modal-img {
        max-height: 36vh;
    }
}

@media (max-width: 768px) {
    .scope-modal-details dl {
        grid-template-columns: 1fr;
    }

    .scope-hero {
        padding: 120px 0 64px;
    }

    .scope-hero-title {
        font-size: 32px;
        font-weight: 500;
    }

    .scope-hero-sub {
        font-size: 16px;
    }

    .scope-hero-cta {
        width: 100%;
        max-width: 280px;
        min-height: 44px;
        margin-top: 24px;
        padding: 14px 24px;
        font-size: 15px;
    }

    .scope-board {
        gap: 12px;
    }

    .scope-card {
        border-radius: 20px;
    }

    .scope-card-title {
        font-size: 15px;
    }

    .scope-card-excerpt {
        font-size: 13px;
    }

    .scope-card-caption {
        padding: 18px;
        max-height: 85%;
    }

    .scope-content {
        padding: 0 0 56px;
    }

    .scope-modal {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .scope-hero {
        padding: 108px 0 48px;
    }

    .scope-hero-title {
        font-size: 28px;
    }

    .scope-hero-sub {
        font-size: 15px;
    }

    .scope-card-caption {
        padding: 14px;
    }

    .scope-card-title {
        font-size: 14px;
    }
}

@media (hover: none) {
    .scope-card-excerpt {
        grid-template-rows: 1fr;
        margin-top: 8px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scope-card-excerpt,
    .scope-modal-close,
    .scope-modal-prev,
    .scope-modal-next {
        transition: none;
    }
}

/* Shared scope content for the home carousel and full product list. */
.scope-intro + .scope-intro {
    margin-top: 24px;
}

.scope-product-media {
    position: relative;
    display: block;
}

.scope-product-media-title {
    position: absolute;
    inset: auto 0 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.55) 52%, rgba(13, 13, 13, 0) 100%);
}

.scope-custom-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--bg-surface);
}

.scope-card-open {
    height: 100%;
    background: var(--bg-surface);
}

.scope-card-caption {
    position: static;
    display: block;
    max-height: none;
    padding: 32px;
    background: none;
}

.scope-card-excerpt,
.scope-card-open:hover .scope-card-excerpt,
.scope-card-open:focus-visible .scope-card-excerpt {
    display: block;
    margin: 0;
    opacity: 1;
    line-height: 1.6;
    transition: none;
}

.scope-parts {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1.6;
}

.scope-parts-label,
.scope-parts-decision,
.scope-parts-example-label,
.scope-parts-example {
    display: block;
}

.scope-parts-label {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
}

.scope-parts-decision {
    color: var(--text-light);
    word-break: keep-all;
}

.scope-parts-example-label {
    margin-top: 12px;
    color: var(--text-gray);
}

.scope-parts-example {
    color: var(--text-gray);
    overflow-wrap: anywhere;
}

.scope-range-note {
    margin-top: 40px;
    border: 1px solid #ffffff66;
    padding: 24px;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    word-break: keep-all;
}

.scope-range-note p {
    margin: 0;
}

.scope-range-note p + p {
    margin-top: 12px;
}

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

.scope-modal-body.is-text-only {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .scope-product-media-title {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .scope-board {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .scope-product-media-title,
    .scope-card-caption {
        padding: 24px;
    }

    .scope-card-title {
        font-size: 22px;
    }

    .scope-card-excerpt {
        font-size: 16px;
    }

    .scope-range-note {
        margin-top: 32px;
        font-size: 15px;
    }

    .scope-intro br,
    .scope-range-note br {
        display: none;
    }
}

.scope-overlay-title {
    display: none;
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .scope-card .scope-card-caption {
        position: absolute;
        inset: 0;
        max-height: none;
        padding: 30px;
        background: rgba(13, 13, 13, 0.75);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .scope-card-open:hover .scope-card-caption,
    .scope-card-open:focus-visible .scope-card-caption,
    .scope-card:focus-within .scope-card-caption {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .scope-card .scope-product-media-title {
        transition: opacity 0.28s ease;
    }

    .scope-card-open:hover .scope-product-media-title,
    .scope-card:focus-within .scope-product-media-title {
        opacity: 0;
    }

    .scope-overlay-title {
        display: block;
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide .gallery-caption,
    .scope-card .scope-card-caption,
    .gallery-slide .scope-product-media-title,
    .scope-card .scope-product-media-title {
        transition: none;
        transform: none;
    }
}
