* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #050505;
    --white: #ffffff;
    --hero-blue: #005dc5;
    --purple: #2e2288;
    --paper: #fdfdfd;
    --accent-yellow: #ffd36c;
    --accent-red: #d02b15;
    --title-shadow: #354168;
    --top-slant: 62px;
    --footer-slant: 78px;
    --bio-slant: 26px;
    --subheading-size: 22px;
    --body-size: 18px;
    --significance-heading-color: #121212;
    --typeface-heading-color: #121212;
    
}

html,
body {
    min-height: 100%;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: #121212;
    font-family: "Almarai", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

.site-wrapper {
    margin: 0 auto;
    max-width: 1512px;
    width: 100%;
}

.jump-nav {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(5, 5, 5, 0.86);
    display: flex;
    gap: 10px;
    justify-content: center;
    left: 0;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 20;
}

.jump-nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 8px 10px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jump-nav a::after {
    background: var(--accent-yellow);
    content: "";
    height: 2px;
    left: 10px;
    position: absolute;
    right: 10px;
    bottom: 4px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.jump-nav a:hover,
.jump-nav a:active,
.jump-nav a:focus-visible {
    color: var(--accent-yellow);
}

.jump-nav a:hover::after,
.jump-nav a:active::after,
.jump-nav a:focus-visible::after {
    transform: scaleX(1);
}

.jump-nav a:focus-visible {
    outline: none;
}

#hero,
#contribution,
#inspiration,
#gallery,
#specimen,
#feature {
    scroll-margin-top: 84px;
}

.hero-top {
    background: var(--black);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--top-slant)), 0 100%);
    margin-bottom: calc(var(--top-slant) * -1);
    min-height: 271px;
    padding: 54px 75px;
    position: relative;
    z-index: 2;
}

.menu-icon {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    gap: 4px;
    left: 20px;
    padding: 0;
    position: absolute;
    top: 20px;
    width: 18px;
}

.menu-icon span {
    background: var(--white);
    border-radius: 2px;
    display: block;
    height: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    width: 100%;
}

.menu-icon.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-top h1 {
    color: var(--white);
    padding-top: 50px;
    padding-bottom: 50px;
    font-family: "Climate Crisis", serif;
    font-size: clamp(2.2rem, 7vw, 6.2rem);
    font-variation-settings: "YEAR" 1979;
    letter-spacing: 0.15em;
    text-shadow: -14px 10px 0 var(--title-shadow);
    transform: rotate(-2.37deg);
    transform-origin: left center;
    width: fit-content;
}

.hero-title-letter {
    display: inline-block;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.hero-title-space {
    display: inline-block;
    width: 0.5em;
}

.hero-bottom {
    background: var(--hero-blue);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 671px;
    position: relative;
    z-index: 1;
}

.bio-card {
    align-self: center;
    background: var(--white);
    border: 4px solid #1d5eb8;
    clip-path: polygon(0 var(--bio-slant), 100% 0, 100% 100%, 0 100%);
    margin: 128px 0 86px 75px;
    max-width: 635px;
    min-height: 458px;
    padding: 52px 48px 42px;
}

.bio-card h2 {
    font-size: var(--subheading-size);
    color: #1d5eb8;
    font-weight: 800;
    margin-bottom: 24px;
}

.bio-card p {
    font-size: 16px;
}

.hero-portrait img {
    height: 100%;
    min-height: 671px;
    object-fit: cover;
    width: 100%;
}

.split-section {
    align-items: start;
    column-gap: 80px;
    display: grid;
    grid-template-columns: 526px 356px;
    justify-content: center;
    padding: 134px 0 0;
}

.split-section + .split-section {
    padding-top: 132px;
    padding-bottom: 142px;
}

.significance-section .copy-block h2 {
    color: #1e70e3;
}

.typeface-section .copy-block h2 {
    color: #3723ce;
}

.significance-section .copy-block p,
.typeface-section .copy-block p {
    max-width: 52ch;
}

.scroll-gallery {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 32px 24px;
}

.scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container img {
    flex: 0 0 auto;
    width: min(70vw, 360px);
    height: 320px;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: zoom-in;
    opacity: 0;
    transform: var(--image-enter, translateY(28px) scale(0.96));
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-container img.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.scroll-container img:nth-child(1) {
    --image-enter: translate3d(-28px, 20px, 0) rotate(-2deg) scale(0.94);
}

.scroll-container img:nth-child(2) {
    --image-enter: translate3d(18px, -24px, 0) rotate(1.5deg) scale(0.95);
}

.scroll-container img:nth-child(3) {
    --image-enter: translate3d(-12px, 30px, 0) rotate(2.5deg) scale(0.93);
}

.scroll-container img:nth-child(4) {
    --image-enter: translate3d(24px, 16px, 0) rotate(-1.5deg) scale(0.95);
}

.scroll-container img:nth-child(5) {
    --image-enter: translate3d(-20px, -18px, 0) rotate(2deg) scale(0.94);
}

.scroll-arrow {
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-size: 2rem;
    height: 52px;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, opacity 0.2s ease;
    width: 52px;
    z-index: 2;
}

.scroll-arrow:hover,
.scroll-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.95);
}

.scroll-arrow:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 3px;
}

.scroll-arrow-left {
    justify-self: end;
}

.scroll-arrow-right {
    justify-self: start;
}

.image-viewer {
    align-items: center;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.25s ease;
    z-index: 999;
}

.image-viewer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-viewer-image {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    height: auto;
    max-height: 90vh;
    max-width: min(92vw, 1100px);
    object-fit: contain;
    transform: scale(0.96);
    transition: transform 0.25s ease;
    width: auto;
}

.image-viewer.is-open .image-viewer-image {
    transform: scale(1);
}

.image-viewer-close {
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    height: 48px;
    line-height: 1;
    position: absolute;
    right: 24px;
    top: 24px;
    width: 48px;
}

.image-viewer-close:hover,
.image-viewer-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.purple-band {
    align-items: center;
    background: var(--purple);
    color: var(--white);
    column-gap: 72px;
    display: grid;
    grid-template-columns: 756px 526px;
    justify-content: center;
    min-height: 553px;
    padding: 59px 0;
}

.signature-card {
    align-items: center;
    background: transparent;
    display: flex;
    height: 444px;
    justify-content: center;
    width: 756px;
}

.signature-card img {
    max-width: 100%;
}

.band-copy h2 {
    font-size: var(--subheading-size);
    font-weight: 800;
    margin-bottom: 18px;
}

.band-copy p {
    font-size: var(--body-size);
}

.type-specimen {
    align-items: start;
    background: var(--white);
    column-gap: 80px;
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 496px;
    padding: 140px 123px 130px;
}

.alphabet-block {
    color: var(--purple);
    font-family: "Dela Gothic One", cursive;
    font-size: clamp(2.7rem, 1.65vw, 25px);
    line-height: 1.25;
}

.type-meta {
    font-size: 18px;
    max-width: 237px;
}

.final-feature {
    display: grid;
    grid-template-columns: 756px 1fr;
    min-height: 684px;
}

.final-image img {
    height: 100%;
    min-height: 684px;
    object-fit: cover;
    width: 100%;
}

.final-copy {
    background: var(--accent-yellow);
    color: var(--accent-red);
    padding: 127px 96px 92px 134px;
}

.final-copy h2 {
    font-size: var(--subheading-size);
    font-weight: 800;
    margin-bottom: 22px;
}

.final-copy p {
    font-size: var(--body-size);
    max-width: 526px;
}

.site-footer {
    background: var(--accent-red);
    color: var(--white);
    min-height: 336px;
    padding: 56px 111px 48px;
    position: relative;
    z-index: 2;
}

.site-footer::before {
    background: var(--accent-red);
    clip-path: polygon(0 var(--footer-slant), 100% 0, 100% 100%, 0 100%);
    content: "";
    height: var(--footer-slant);
    left: 0;
    position: absolute;
    top: calc(var(--footer-slant) * -1);
    width: 100%;
}

.footer-text,
.footer-notes {
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 18px;
}

.footer-text p + p {
    margin-top: 10px;
}

.footer-notes {
    display: flex;
    font-size: 18px;
    justify-content: space-between;
    margin-top: 120px;
}

[data-animate] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .hero-bottom,
    .split-section,
    .purple-band,
    .type-specimen,
    .final-feature {
        grid-template-columns: 1fr;
    }

    .hero-top,
    .split-section,
    .split-section + .split-section,
    .type-specimen,
    .final-copy,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    :root {
        --top-slant: 42px;
        --footer-slant: 56px;
        --bio-slant: 18px;
    }

    .bio-card {
        margin: 48px 24px;
        max-width: none;
    }

    .hero-portrait img,
    .final-image img {
        min-height: 420px;
    }

    .split-section {
        padding-top: 68px;
        row-gap: 28px;
    }

    .split-section + .split-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .visual-block,
    .signature-card {
        width: 100%;
    }

    .purple-band {
        padding: 48px 24px;
        row-gap: 28px;
    }

    .type-specimen {
        padding-top: 72px;
        row-gap: 26px;
    }

    .scroll-gallery {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .final-copy {
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .footer-notes {
        flex-direction: column;
        gap: 8px;
        margin-top: 56px;
    }
}

@media (max-width: 680px) {
    :root {
        --top-slant: 26px;
        --footer-slant: 36px;
        --bio-slant: 11px;
    }

    .hero-top {
        min-height: 220px;
        padding-top: 72px;
    }

    .jump-nav {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        padding: 8px 10px;
    }

    .jump-nav a {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .hero-top h1 {
        font-size: clamp(2rem, 12vw, 3.8rem);
        text-shadow: -7px 6px 0 var(--title-shadow);
    }

    .bio-card {
        margin: 28px 12px;
        min-height: auto;
        padding: 24px 18px;
    }

    .bio-card h2,
    .copy-block h2,
    .band-copy h2,
    .final-copy h2 {
        font-size: var(--subheading-size);
    }

    .bio-card p,
    .copy-block p,
    .band-copy p,
    .type-meta,
    .final-copy p,
    .footer-text,
    .footer-notes {
        font-size: var(--body-size);
    }

    .scroll-gallery {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "track track"
            "left right";
        row-gap: 12px;
    }

    .scroll-container {
        grid-area: track;
    }

    .scroll-arrow-left {
        grid-area: left;
        justify-self: start;
    }

    .scroll-arrow-right {
        grid-area: right;
        justify-self: end;
    }

}
