/* Design Tokens */
:root {
    /* Colors — from Figma */
    --color-text: #191918;
    --color-accent: #D06133;
    --color-gray-1: #414141;
    --color-gray-3: #c0c0c0;
    --color-background: #F1F2ED;

    /* Typography */
    --font-brand: 'Handjet', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-plain: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    /* Layout — from Figma: 1440px max, 64px section padding, 56px gap */
    --layout-max-width: 1440px;
    --layout-padding-x: 2rem;
    --section-gap: 3.5rem;

    /* Transitions */
    --transition-duration: 0.4s;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-3);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-1);
}

* {
    scrollbar-width: auto;
    scrollbar-color: var(--color-gray-3) var(--color-background);
}

/* Base */
html {
    font-size: 19px;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--color-text);
    background-color: var(--color-background);
    font-family: var(--font-plain);
    font-weight: 400;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}


h1 {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 2rem;
}

p {
    font-family: var(--font-plain);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 2rem;
}

p strong {
    font-weight: 600;
}

a {
    color: inherit;
}


/* ── Site Header ───────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 2rem var(--layout-padding-x) 1rem;
    background-color: var(--color-background);
    font-family: var(--font-brand);
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 10%;
    color: var(--color-accent);
    text-transform: uppercase;
    transition: padding var(--transition-duration) ease, font-size var(--transition-duration) ease, letter-spacing var(--transition-duration) ease;
}

.site-header a {
    text-decoration: none;
}

.site-header.scrolled {
    padding: 1.5rem var(--layout-padding-x) 0.5rem;
    font-size: 2.5rem;
}

.site-header-badges {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.site-header-badges img {
    height: 48px;
    width: auto;
    display: block;
    transition: height var(--transition-duration) ease;
}

.site-header.scrolled .site-header-badges img {
    height: 42px;
}

/* ── Scroll Container ──────────────────────────────────────────── */
.scroll-container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

/* ── Sections ──────────────────────────────────────────────────── */
section.section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 4rem var(--layout-padding-x) 4rem;
}

section.section>p {
    max-width: 75%;
}

/* ── Image Pair ────────────────────────────────────────────────── */
.image-pair {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.image-pair picture {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
}

.image-pair img.responsive-image {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
}

/* ── Hero Image ────────────────────────────────────────────────── */
/* Hero image, left-aligned. Spacing from subheadline controlled by h1 margin. */
.hero-image-wrapper {
    width: 60%;
    margin-top: 1rem;
}

.hero-image-wrapper img.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    object-position: left center;
}

/* ── Image shadow (shared by all images) ───────────────────────── */
.responsive-image,
.hero-image {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* ── Responsive Image base ─────────────────────────────────────── */
.responsive-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* ── Footnote ──────────────────────────────────────────────────── */
.footnote {
    font-family: var(--font-plain);
    font-size: 0.85rem;
    color: var(--color-gray-1);
    margin-top: 2rem;
    max-width: 80%;
    line-height: 1.4;
}

/* ── Responsive: Tablet (≤900px) ───────────────────────────────── */
@media (max-width: 900px) {
    :root {
        --layout-padding-x: 2rem;
        --section-gap: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .footnote {
        margin-top: 1.5rem;
    }

    section.section>p {
        max-width: 100%;
    }

    .image-pair {
        flex-direction: column;
        align-items: flex-start;
        gap:0.5rem;
    }

    .image-pair picture {
        flex: 1 1 auto;
        width: 100%;
        max-width: 70%;
    }

    .image-pair img.responsive-image {
        max-height: 35vh;
    }

    section.section:first-of-type {
        padding-top: 10rem;
    }

    .site-header {
        padding: 2rem var(--layout-padding-x) 1rem;
    }

    .site-header.scrolled {
        padding: 1rem var(--layout-padding-x) 0.5rem;
    }

    .site-header-brand {
        font-size: 3.5rem;
    }

    .site-header.scrolled .site-header-brand {
        font-size: 2rem;
    }

    .site-header-badges img {
        height: 38px;
    }

    .site-header.scrolled .site-header-badges img {
        height: 32px;
    }
}



@media (max-width: 675px) {
    .site-header-brand {
        font-size: 2.75rem;
    }
    .site-header-badges img {
        height: 38px;
    }

    .site-header.scrolled .site-header-badges img {
        height: 32px;
    }
}

@media (max-width: 600px) {
    :root {
        --layout-padding-x: 1rem;
        --section-gap: 1.5rem;
    }

    h1 {
        font-size: 1.85rem;
        margin-top: 1rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .footnote {
        font-size: 0.75rem;
    }

    section.section {
        padding: 2rem var(--layout-padding-x) 8rem;
    }


    section.section:first-of-type p {
        font-size: 1rem;
    }

    section.section:first-of-type {
        padding-top: 8rem;
    }

    .hero-image-wrapper {
        width: 100%;
    }

    .image-pair picture {
        flex: 1 1 auto;
        width: 100%;
        max-width: 90%;
    }

    .image-pair img.responsive-image {
        max-height: 30vh;
    }

    .image-pair {
        gap: 0.5rem;
    }
    .site-header {
        flex-direction: column-reverse;
        align-items: stretch;
        row-gap: 2rem;
        padding: 1.5rem var(--layout-padding-x) 0;
    }

    .site-header.scrolled {
        flex-direction: row;
        align-items: center;
        padding: 0.75rem var(--layout-padding-x) 0.25rem;
    }

    .site-header-brand {
        font-size: 3.5rem;
        text-align: left;
    }

    .site-header.scrolled .site-header-brand {
        font-size: 1.75rem;
    }

    .site-header-badges {
        align-self: flex-end;
    }

    .site-header.scrolled .site-header-badges {
        align-self: auto;
    }

    .site-header-badges img {
        height: 32px;
    }

    .site-header.scrolled .site-header-badges img {
        height: 24px;
    }
}

@media (max-width: 400px) {

     :root {
        --layout-padding-x: 0.5rem;
     }
       section.section {
        padding: 2rem var(--layout-padding-x) 2rem;
    }

    .site-header-badges {
        gap: 0.25rem;
    }
}