/* 빌드캠프 허브(/) 전용 스타일 */

/* ---------- 히어로 ---------- */

.hub .hero {
    position: relative;
    min-height: min(100svh, 920px);
    padding: calc(var(--nav-h) + 72px) 0 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(55% 60% at 72% 50%, rgba(255, 91, 26, 0.06), transparent 70%), var(--bg);
}

.loop {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.loop canvas {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.loop.is-ready canvas {
    opacity: 1;
}

.loop::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.55) 34%, transparent 58%),
        linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}

.loop-labels {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.loop-label {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    margin: -12px 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(7, 8, 10, 0.72);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    will-change: transform, opacity;
    transition: color 0.2s, border-color 0.2s;
}

.loop-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
}

.loop-label:hover,
.loop-label:focus-visible {
    color: var(--ink);
    border-color: var(--c);
}

.loop-label.live {
    color: var(--accent);
    border-color: rgba(255, 91, 26, 0.5);
}

.hub .hero-inner {
    position: relative;
    pointer-events: none;
}

.hub .hero-inner > * {
    pointer-events: auto;
}

.hub .hero h1 {
    max-width: 780px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hub .hero .lead {
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 56px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    max-width: 520px;
}

.hero-stats dt {
    font-size: 13px;
    color: var(--mute);
}

.hero-stats dd {
    margin: 2px 0 0;
    font-size: clamp(24px, 3vw, 34px);
}

@media (max-width: 900px) {
    .hub .hero {
        min-height: 0;
        align-items: flex-start;
        padding: calc(var(--nav-h) + 32px) 0 0;
        flex-direction: column;
    }

    .loop {
        position: relative;
        order: 2;
        width: 100%;
        height: 380px;
        margin-top: 8px;
    }

    .loop::after {
        background: linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 82%, var(--bg) 100%);
    }

    .hero-stats {
        gap: 28px;
        margin-top: 36px;
    }
}

/* ---------- 지금 모집 중 ---------- */

.now {
    background:
        radial-gradient(40% 60% at 90% 30%, rgba(255, 91, 26, 0.1), transparent 70%),
        var(--bg);
}

.now-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.now .h2 .sub {
    display: block;
    margin-top: 10px;
    font-size: 0.62em;
    line-height: 1.3;
    color: var(--accent);
}

.now-facts {
    margin: 28px 0 0;
    border-top: 1px solid var(--line);
}

.now-facts > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.now-facts dt {
    color: var(--mute);
    font-size: 14px;
}

.now-facts dd {
    margin: 0;
}

.now-facts small {
    margin-left: 6px;
    color: var(--accent);
    font-size: 13px;
}

.now-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.now-media figure {
    margin: 0;
}

.now-media video {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: #0b0d10;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.now-media figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--mute);
}

@media (max-width: 900px) {
    .now-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- 전체 기수 ---------- */

.camps {
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.camp {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 28px 0 28px 20px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s;
}

.camp::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 3px;
    background: var(--c);
    border-radius: 2px;
    opacity: 0.85;
}

.camp:hover {
    background: var(--bg-2);
}

.camp-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: var(--bg-3);
}

.camp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.camp:hover .camp-thumb img {
    transform: scale(1.03);
}

.camp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12.5px;
    color: var(--mute);
}

.camp-meta span:first-child {
    color: var(--c);
}

.camp-meta .live {
    color: #0b0d10;
    background: var(--accent);
    padding: 0 6px;
    border-radius: 3px;
}

.camp h3 {
    margin: 8px 0 8px;
    font-size: clamp(20px, 2.2vw, 26px);
}

.camp h3 a {
    text-decoration: none;
}

.camp h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.camp-body > p:not(.camp-meta):not(.camp-by) {
    max-width: 640px;
    color: var(--ink-2);
    font-size: 15px;
}

.camp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.camp-tags li {
    padding: 2px 8px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.camp-by {
    margin-top: 12px;
    font-size: 13px;
    color: var(--mute);
}

.camp-go {
    align-self: center;
    padding: 10px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.camp-go:hover {
    border-color: var(--c);
    color: var(--c);
}

.camp.is-live .camp-go {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b0d10;
}

@media (max-width: 1000px) {
    .camp {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .camp-go {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .camp {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-left: 16px;
    }

    .camp-go {
        grid-column: 1;
    }
}

/* ---------- 배우는 방식 ---------- */

.method {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.method li {
    padding: 28px 24px 8px 0;
}

.method li + li {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.method .mono {
    font-size: 13px;
    color: var(--accent);
}

.method h3 {
    margin: 10px 0 10px;
    font-size: 20px;
}

.method p {
    color: var(--ink-2);
    font-size: 14.5px;
}

.tools {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.tools > p {
    flex: none;
    font-size: 13px;
    color: var(--mute);
}

.tools ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tools li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    font-size: 14px;
    color: var(--ink-2);
}

.tools li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
}

@media (max-width: 1000px) {
    .method {
        grid-template-columns: 1fr 1fr;
    }

    .method li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .method li:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 640px) {
    .method {
        grid-template-columns: 1fr;
    }

    .method li,
    .method li + li {
        padding: 22px 0;
        border-left: 0;
        border-top: 0;
        border-bottom: 1px solid var(--line);
    }

    .tools {
        flex-direction: column;
        gap: 12px;
    }
}

/* ---------- 강사 ---------- */

.mentors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.face {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: radial-gradient(circle at 30% 30%, #1b1f27, #0b0d10);
    color: var(--accent);
    font-size: 20px;
    font-weight: 500;
    object-fit: cover;
    filter: grayscale(1);
}

div.face {
    filter: none;
}

.mentors h3 {
    font-size: 20px;
}

.mentors .role {
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--accent-ink);
}

.mentors p:last-child {
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--ink-2);
}

@media (max-width: 1100px) {
    .mentors {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .mentors {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .mentors {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ · 마무리 ---------- */

.faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 48px;
}

.faq-wrap .faq {
    margin-top: 0;
}

.faq .answer a {
    color: var(--accent);
}

@media (max-width: 900px) {
    .faq-wrap {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-wrap .faq {
        margin-top: 32px;
    }
}

.closing {
    background: radial-gradient(50% 90% at 50% 100%, rgba(255, 91, 26, 0.14), transparent 70%), var(--bg);
}

.closing-inner {
    text-align: center;
}

.closing .hero-actions {
    justify-content: center;
}

.now-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0b0d10;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
