@font-face {
    font-family: 'Bauer Bodoni Std';
    src: url('../fonts/BauerBodoniStd-Roman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bauer Bodoni Std';
    src: url('../fonts/BauerBodoniStd-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/Brandon_reg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #F2EDEA;
    --ink: #000000;
    --ink-soft: #241F20;
    --canvas-w: 2560;
    --canvas-h: 3464;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Mulish', 'Brandon Grotesque', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Accessibility: skip link & focus ---------- */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--bg);
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    z-index: 100;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--bg);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
    border-radius: 2px;
}

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

.page {
    position: relative;
    width: 100%;
    max-width: 2560px;
    margin: 0 auto;
    padding: clamp(40px, 3.125vw, 80px);
    overflow: hidden;
}

.bg-shader {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-shader canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.page > *:not(.bg-shader) {
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(20px, 2vw, 60px);
}

.logo img {
    width: clamp(140px, calc(18.75vw - 60px), 420px);
    height: auto;
}

.contact-link {
    position: relative;
    font-family: 'Brandon Grotesque', 'Mulish', system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(20px, calc(2.1875vw - 12px), 44px);
    line-height: 1.43;
    letter-spacing: 0.002em;
    padding-bottom: 0.18em;
    white-space: nowrap;
}

.contact-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(1px, 0.09vw, 2.2px);
    background: var(--ink);
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.contact-link:hover::after {
    transform: scaleX(0);
}

/* ---------- Section reveal animation ---------- */
.hero,
.content-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.hero.is-visible,
.content-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .content-block {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    margin-top: clamp(120px, 13.5vw, 350px);
    max-width: 87%;
}

.eyebrow {
    position: relative;
    display: inline-block;
    margin: 0 0 clamp(16px, 1.4vw, 36px);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, calc(2.1875vw - 10px), 46px);
    line-height: 1.45;
    letter-spacing: 0.001em;
    color: var(--ink);
    padding-bottom: 0.2em;
}

.eyebrow::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
}

.headline {
    margin: 0;
    font-family: 'Bauer Bodoni Std', 'Bodoni Moda', 'Didot', serif;
    font-weight: 400;
    font-size: clamp(36px, calc(4.375vw - 26px), 86px);
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.headline strong {
    font-weight: 700;
}

/* ---------- Content blocks ---------- */
main {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 130px);
}

.content-block {
    margin-top: clamp(60px, 7vw, 180px);
    max-width: 68%;
}

.content-block.experience {
    max-width: 100%;
    margin-top: clamp(60px, 7.6vw, 200px);
}

.section-label {
    position: relative;
    display: inline-block;
    margin: 0 0 clamp(20px, 1.8vw, 50px);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, calc(1.40625vw + 1px), 37px);
    line-height: 1.45;
    color: var(--ink);
    padding-bottom: 0.2em;
}

.section-label::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(1px, 0.075vw, 1.86px);
    background: var(--ink);
}

.body-copy {
    margin: 0;
    font-family: 'Brandon Grotesque', 'Mulish', system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(18px, calc(2.1875vw - 6px), 50px);
    line-height: 1.41;
    color: var(--ink);
}

/* ---------- Policy pages ---------- */
.policy-page {
    max-width: 1000px;
    margin-top: clamp(80px, 10vw, 220px);
    margin-bottom: clamp(60px, 6vw, 140px);
}

.policy-title {
    margin: 0 0 clamp(24px, 3vw, 60px);
    font-family: 'Bauer Bodoni Std', 'Bodoni Moda', 'Didot', serif;
    font-weight: 700;
    font-size: clamp(36px, calc(2.5vw + 12px), 72px);
    line-height: 1.2;
    color: var(--ink);
}

.policy-content {
    font-family: 'Brandon Grotesque', 'Mulish', system-ui, sans-serif;
    font-size: clamp(16px, calc(0.6vw + 12px), 22px);
    line-height: 1.65;
    color: var(--ink);
}

.policy-content :is(h1, h2, h3, h4, h5, h6) {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 1.6em;
}

.policy-content a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.policy-content a:hover {
    opacity: 0.7;
}

/* ---------- Client logos ---------- */
.client-logos {
    margin: clamp(30px, 3vw, 80px) 0 0;
    padding: 0;
    list-style: none;
    width: clamp(280px, 41vw, 1048px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(40px, 4.5vw, 110px);
    row-gap: clamp(40px, 5vw, 120px);
    align-items: center;
    justify-items: center;
}

.client-logos li {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logos img {
    max-width: 100%;
    max-height: clamp(28px, 2.4vw, 60px);
    width: auto;
    height: auto;
    display: block;
}

.client-logos img[alt="Hundred"] {
    max-width: 78%;
}

.client-logos img[alt="Sanofi"] {
    max-width: 80%;
}

/* ---------- Scroll-down button ---------- */
.scroll-down {
    position: fixed;
    bottom: calc(clamp(20px, 2vw, 48px) + 60px);
    right: clamp(20px, 2.4vw, 60px);
    width: clamp(26px, 2.1vw, 50px);
    height: clamp(13px, 1.05vw, 26px);
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--ink-soft);
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}

.scroll-down::before {
    content: '';
    position: absolute;
    inset: -20px;
}

.scroll-down svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    transform-origin: 50% 50%;
    animation: arrow-pulse 3s ease-in-out infinite;
}

.scroll-down.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-down.is-hidden svg {
    animation-play-state: paused;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-down,
    .scroll-down svg {
        animation: none;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: clamp(80px, 8vw, 200px);
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: clamp(20px, 2vw, 50px);
}

.vat,
.terms {
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, calc(0.625vw + 4px), 20px);
    line-height: 1.45;
    color: var(--ink);
}

.vat {
    letter-spacing: 0.4em;
}

.vat .vat-sep {
    letter-spacing: 0;
    display: inline-block;
    width: 1.4em;
}

.policies {
    display: flex;
    gap: clamp(16px, 1.5vw, 36px);
    flex-wrap: wrap;
}

.terms {
    letter-spacing: 0.1em;
    text-transform: none;
    transition: opacity 0.3s ease;
}

.terms:hover,
.terms:focus-visible {
    opacity: 0.5;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
    .page {
        padding: 32px 24px 48px;
    }

    .hero {
        margin-top: 80px;
        max-width: 100%;
    }

    .content-block,
    .content-block.experience {
        max-width: 100%;
        margin-top: 56px;
    }

    .site-footer {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 60px;
    }

    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-down {
        display: none;
    }
}
