.page-wrap {
    width: min(1220px, 96vw);
    margin: 0 auto 3rem;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.page-hero,
.page-panel,
.content-card,
.timeline-card,
.quote-card,
.embed-card,
.metric-strip,
.skill-card,
.logo-card {
    border: 1px solid rgba(158, 197, 255, 0.22);
    background: linear-gradient(145deg, rgba(8, 20, 43, 0.72), rgba(7, 15, 31, 0.84));
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
}

.page-hero,
.page-panel,
.metric-strip {
    padding: clamp(1.15rem, 2.8vw, 2rem);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.15rem;
    align-items: stretch;
}

.page-hero--single {
    grid-template-columns: 1fr;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: #9fcbff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.page-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(to right, rgba(126, 214, 255, 0.18), rgba(126, 214, 255, 0.88));
}

.page-title {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.page-lead {
    margin: 1rem 0 0;
    max-width: 62ch;
    color: #d6e4ff;
    font-size: clamp(1rem, 1.8vw, 1.14rem);
    line-height: 1.72;
}

.page-copy p,
.page-panel p,
.content-card p,
.timeline-card p,
.quote-card p,
.embed-card p {
    color: #d3e3ff;
    line-height: 1.7;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-badge,
.hero-chip {
    border-radius: 16px;
    border: 1px solid rgba(158, 197, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.9rem 1rem;
}

.hero-badge strong,
.hero-chip strong,
.metric-value,
.card-title,
.timeline-title,
.quote-name,
.embed-title,
.skill-name,
.logo-title {
    color: #f4f8ff;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.metric-item {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(126,214,255,0.04));
    border: 1px solid rgba(158, 197, 255, 0.18);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #9bb4dd;
    font-size: 0.9rem;
    line-height: 1.5;
}

.content-grid,
.cards-grid,
.quote-grid,
.embed-grid,
.logo-grid,
.skills-grid,
.notes-grid {
    display: grid;
    gap: 1rem;
}

.content-grid.two-up,
.quote-grid,
.embed-grid,
.logo-grid,
.skills-grid,
.notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.timeline-card,
.quote-card,
.embed-card,
.skill-card,
.logo-card {
    padding: 1rem 1.05rem;
}

.section-title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.section-subtitle {
    margin: 0 0 0.75rem;
    color: #9bb4dd;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.card-title,
.timeline-title,
.embed-title,
.logo-title {
    margin: 0 0 0.55rem;
    font-size: 1.18rem;
}

.card-meta,
.timeline-meta,
.quote-role {
    color: #92b0d7;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.68rem 0.95rem;
    text-decoration: none;
    color: #061223;
    background: linear-gradient(135deg, #7ed6ff, #95ffa9);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(126, 214, 255, 0.18);
}

.link-button:hover {
    color: #061223;
    transform: translateY(-2px);
}

.link-button.secondary {
    color: #edf5ff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(158, 197, 255, 0.25);
    box-shadow: none;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.publication-card {
    overflow: hidden;
    min-height: 100%;
}

.publication-card img,
.note-thumb,
.embed-frame,
.logo-image {
    width: 100%;
    border-radius: 14px;
}

.publication-card .card-title {
    margin-bottom: 0.45rem;
}

.publication-card .card-meta {
    margin-bottom: 0.65rem;
}

.publication-card p {
    margin-bottom: 0.9rem;
}

.publication-card .inline-links {
    margin-top: auto;
}

.publication-card img,
.note-thumb {
    height: 190px;
    object-fit: cover;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(158, 197, 255, 0.24);
}

.embed-frame {
    aspect-ratio: 16 / 9;
    min-height: 260px;
    border: 1px solid rgba(158, 197, 255, 0.24);
    background: rgba(5, 11, 20, 0.55);
}

.podcast-frame {
    width: 100%;
    height: 175px;
    border-radius: 14px;
    border: 1px solid rgba(158, 197, 255, 0.24);
    background: rgba(5, 11, 20, 0.55);
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-logo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(158, 197, 255, 0.24);
    background: rgba(255,255,255,0.06);
}

.quote-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.quote-card blockquote {
    margin: 0;
    color: #eff6ff;
    line-height: 1.76;
    font-size: 1rem;
}

.quote-person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.quote-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(158, 197, 255, 0.3);
}

.skill-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 0.75rem;
}

.skill-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7ed6ff, #95ffa9);
}

.logo-card {
    text-align: center;
}

.logo-image {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
}

.page-link {
    color: #cfe7ff;
}

.page-link:hover {
    color: #ffffff;
}

.page-separator {
    border: 0;
    height: 1px;
    margin: 0.4rem 0;
    background: linear-gradient(to right, transparent, rgba(158, 197, 255, 0.6), transparent);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(158, 197, 255, 0.22);
    background: linear-gradient(150deg, rgba(9, 24, 49, 0.82), rgba(7, 15, 31, 0.9));
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(149, 255, 169, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
}

.course-thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-bottom: 1px solid rgba(158, 197, 255, 0.22);
}

.course-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.05rem 1.1rem;
    min-height: 0;
    flex: 1;
}

.course-body p {
    margin: 0;
    color: #d3e3ff;
    line-height: 1.62;
}

.course-body .link-button {
    margin-top: auto;
    width: fit-content;
}

@media (max-width: 1040px) {
    .page-hero,
    .metric-strip,
    .cards-grid.three-up,
    .cards-grid.four-up,
    .content-grid.two-up,
    .quote-grid,
    .embed-grid,
    .logo-grid,
    .skills-grid,
    .notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-wrap {
        width: 94vw;
    }

    .page-hero,
    .metric-strip,
    .cards-grid.three-up,
    .cards-grid.four-up,
    .content-grid.two-up,
    .quote-grid,
    .embed-grid,
    .logo-grid,
    .skills-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .timeline-card {
        grid-template-columns: 1fr;
    }

    .timeline-logo {
        width: 72px;
        height: 72px;
    }

    .embed-frame {
        min-height: 220px;
    }

    .course-thumb {
        height: 180px;
    }

    .course-body .link-button {
        width: 100%;
    }
}
