/* Desktop pages have a viewport budget, not an inner scroll container.
   Dense galleries and the career/skills story are separate fullPage sections. */
@media (min-width: 1025px) {
    body:not(.fp-responsive) {
        --page-media-height: clamp(100px, calc(100svh - 300px), 440px);
        --page-gap: clamp(16px, 3svh, 32px);
    }

    body:not(.fp-responsive) .section {
        padding: clamp(68px, 9svh, 96px) 40px clamp(20px, 4svh, 44px);
    }

    body:not(.fp-responsive) .section-header {
        margin-bottom: var(--page-gap);
    }

    body:not(.fp-responsive) .section-label {
        margin-bottom: 8px;
    }

    body:not(.fp-responsive) .section-title {
        font-size: clamp(28px, 4.8svh, 40px);
        margin-bottom: 12px;
    }

    body:not(.fp-responsive) .section-description {
        font-size: 16px;
        line-height: 1.5;
    }

    body:not(.fp-responsive) .section-hero {
        padding-bottom: 112px;
    }

    body:not(.fp-responsive) .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(32px, 6vw, 96px);
    }

    body:not(.fp-responsive) .hero-title {
        font-size: clamp(36px, 8svh, 72px);
    }

    body:not(.fp-responsive) .hero-subtitle {
        font-size: clamp(18px, 3svh, 24px);
        margin-bottom: var(--page-gap);
    }

    body:not(.fp-responsive) .hero-tagline {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: var(--page-gap);
    }

    body:not(.fp-responsive) .hero-image-wrapper {
        width: min(380px, 44svh);
        height: min(380px, 44svh);
    }

    body:not(.fp-responsive) .showcase-carousel {
        --showcase-size: min(360px, 28vw, var(--page-media-height));
    }

    body:not(.fp-responsive) .scroll-indicator {
        bottom: 24px;
    }

    body:not(.fp-responsive) .cgm-hero img {
        max-height: var(--page-media-height);
        width: auto;
        object-fit: contain;
        margin-inline: auto;
    }

    body:not(.fp-responsive) .phone-item,
    body:not(.fp-responsive) .teaching-card,
    body:not(.fp-responsive) .python-video-item,
    body:not(.fp-responsive) .python-image-item {
        height: var(--page-media-height);
    }

    body:not(.fp-responsive) .teaching-card-large {
        grid-row: auto;
    }

    body:not(.fp-responsive) .teaching-card img,
    body:not(.fp-responsive) .python-video-item video,
    body:not(.fp-responsive) .python-image-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    body:not(.fp-responsive) .journey-timeline {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    body:not(.fp-responsive) .journey-item {
        flex-direction: column;
        text-align: center;
        min-width: 0;
        padding: 12px;
    }

    body:not(.fp-responsive) .journey-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body:not(.fp-responsive) .skill-card {
        padding: 20px 16px;
    }

    body:not(.fp-responsive) .skills-cards {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    body:not(.fp-responsive) .canada-card img {
        height: clamp(80px, calc(100svh - 390px), 400px);
    }

    body:not(.fp-responsive) .canada-card-content {
        padding: 16px;
    }

    body:not(.fp-responsive) .values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        margin-bottom: var(--page-gap);
    }

    body:not(.fp-responsive) .value-card {
        padding: 24px;
    }

    body:not(.fp-responsive) .value-card h3 {
        font-size: 20px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    body:not(.fp-responsive) .value-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    body:not(.fp-responsive) .footer {
        padding-top: 16px;
    }

    body:not(.fp-responsive) .footer-links {
        margin-bottom: 8px;
    }
}

/* Short desktop windows keep readable text and use less decorative space. */
@media (min-width: 1025px) and (max-height: 600px) {
    body:not(.fp-responsive) .section {
        padding: 64px 32px 16px;
    }

    body:not(.fp-responsive) .section-hero {
        padding-bottom: 100px;
    }

    body:not(.fp-responsive) .section-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    body:not(.fp-responsive) .section-title {
        margin-bottom: 8px;
    }

    body:not(.fp-responsive) .section-description {
        font-size: 14px;
    }

    body:not(.fp-responsive) .hero-brand,
    body:not(.fp-responsive) .hero-subtitle {
        margin-bottom: 8px;
    }

    body:not(.fp-responsive) .hero-tagline {
        font-size: 14px;
    }

    body:not(.fp-responsive) .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    body:not(.fp-responsive) .teaching-overlay {
        padding: 12px;
    }

    body:not(.fp-responsive) .teaching-overlay h3 {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    body:not(.fp-responsive) .teaching-overlay p {
        font-size: 12px;
        line-height: 1.4;
    }

    body:not(.fp-responsive) .journey-timeline {
        padding: 8px;
    }

    body:not(.fp-responsive) .journey-item {
        padding: 8px;
        gap: 8px;
    }

    body:not(.fp-responsive) .journey-text h4 {
        font-size: 14px;
    }

    body:not(.fp-responsive) .skill-card {
        padding: 12px;
    }

    body:not(.fp-responsive) .skill-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    body:not(.fp-responsive) .canada-card-content h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    body:not(.fp-responsive) .value-card {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 12px;
        padding: 12px;
        text-align: left;
    }

    body:not(.fp-responsive) .value-icon {
        grid-row: span 2;
        font-size: 24px;
        margin: 0;
    }

    body:not(.fp-responsive) .value-card h3 {
        font-size: 16px;
    }

    body:not(.fp-responsive) .value-card p {
        grid-column: 2;
        font-size: 13px;
        line-height: 1.4;
    }

    body:not(.fp-responsive) .footer {
        padding-top: 12px;
    }

    body:not(.fp-responsive) .footer-links,
    body:not(.fp-responsive) .footer-copy {
        font-size: 12px;
    }
}
