@charset "UTF-8";

/* ── hero 텍스트 fade-up ── */
.hero-content h1,
.hero-content p {
    opacity: 0;
    transform: translateY(28px);
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content p  { animation-delay: 0.5s; }
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
    max-height: 1230px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../../image/company/subHeader.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}
/* hero-content h1/p 크기 오버라이드 */
.hero-content h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.hero-content p  { font-size: clamp(16px, 2vw, 30px); }

/* ══ PAGE BODY ══ */
.page-body {
    width: min(1550px, 92%);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
}

.history-label {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 400;
    color: #111;
    margin-bottom: clamp(40px, 5vw, 72px);
}

/* ══════════════════════════════════════
   MAIN LAYOUT: photos-left | spine | events-right
══════════════════════════════════════ */
.timeline-wrap {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    position: relative;
}

.spine-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spine-track::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, #c880f8 100%);
}

.era-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(144,0,206,.13);
    margin-top: clamp(12px, 2vw, 24px);
}

.era-photos-cell {
    padding-right: clamp(20px, 3vw, 56px);
    padding-bottom: clamp(48px, 6vw, 96px);
}

.era-period {
    font-size: clamp(22px, 2.5vw, 40px);
    font-weight: 700;
    font-family: 'Nanum Square', sans-serif;
    color: #111;
    text-align: center;
    margin-bottom: clamp(16px, 2vw, 28px);
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 1vw, 16px);
    align-items: start;
}

.photo-col { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 16px); }

.photo-item { display: flex; flex-direction: column; }

.photo-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}


.photo-img-wrap img {
    width: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.5s ease;
}

.photo-img-wrap:hover img { transform: scale(1.07); }

.photo-col .photo-item img { aspect-ratio: 3/4; }

.photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(80, 0, 150, 0.82));
    color: white;
    font-size: clamp(11px, 0.8vw, 14px);
    font-weight: 700;
    font-family: 'Nanum Square', sans-serif;
    text-align: center;
    padding: 36px 12px 10px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.photo-img-wrap:hover .photo-caption { transform: translateY(0); }

.era-events-cell {
    padding-left: clamp(20px, 3vw, 56px);
    padding-bottom: clamp(48px, 6vw, 96px);
}

.era-events-cell > .events-inner { margin-top: clamp(10px, 1.8vw, 22px); }

.year-block { margin-bottom: clamp(20px, 2.5vw, 36px); }

.year-title {
    font-size: clamp(16px, 1.6vw, 26px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.year-title::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.event-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.event-item {
    display: flex;
    gap: 10px;
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.6;
    color: #333;
}

.event-month { font-weight: 700; color: #666; white-space: nowrap; flex-shrink: 0; min-width: 26px; }
.event-text  { flex: 1; }

.era-divider {
    grid-column: 3 / 4;
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin-bottom: clamp(24px, 3vw, 48px);
    margin-left: clamp(20px, 3vw, 56px);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .timeline-wrap { grid-template-columns: 40px 1fr; }
    .spine-track    { grid-column: 1; grid-row: span 1; }
    .era-photos-cell { grid-column: 2; padding-right: 0; padding-left: clamp(16px, 3vw, 32px); }
    .era-events-cell { grid-column: 2; padding-left: clamp(16px, 3vw, 32px); }
    .era-divider     { grid-column: 2; margin-left: clamp(16px, 3vw, 32px); }
    .spine-track::before { left: 50%; }
}
@media (max-width: 600px) {
    .photo-grid { grid-template-columns: 1fr 1fr; }
}
