:root {
    --ink: #141414;
    --muted: #5e646c;
    --paper: #fbfaf7;
    --soft: #f0eee7;
    --line: rgba(20, 20, 20, .12);
    --accent: #0f7f97;
    --accent-2: #d7474f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

html.is-section-animating,
html.is-section-animating body {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(15, 127, 151, .08), transparent 32%),
        radial-gradient(circle at 82% 72%, rgba(215, 71, 79, .09), transparent 30%);
    z-index: -1;
}

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

main {
    perspective: 1400px;
    perspective-origin: center center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 247, .92);
    backdrop-filter: blur(14px);
}

.snap-section {
    min-height: calc(100svh - 76px);
    max-height: calc(100svh - 76px);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s ease, filter .7s ease;
}

.snap-section.is-active {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
}

.snap-section.is-exiting-up {
    opacity: 0;
    transform: translateY(-18px) rotateX(-76deg) scale(.86);
    filter: blur(8px);
}

.snap-section.is-exiting-down {
    opacity: 0;
    transform: translateY(18px) rotateX(76deg) scale(.86);
    filter: blur(8px);
}

.snap-section.is-entering-up {
    animation: flipInFromBottom .82s cubic-bezier(.18, .86, .22, 1) both;
}

.snap-section.is-entering-down {
    animation: flipInFromTop .82s cubic-bezier(.18, .86, .22, 1) both;
}

@keyframes flipInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(34px) rotateX(72deg) scale(.9);
        filter: blur(8px);
    }

    62% {
        opacity: 1;
        transform: translateY(-6px) rotateX(-7deg) scale(1.015);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flipInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-34px) rotateX(-72deg) scale(.9);
        filter: blur(8px);
    }

    62% {
        opacity: 1;
        transform: translateY(6px) rotateX(7deg) scale(1.015);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

.brand img {
    display: block;
    width: 132px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(20, 20, 20, .62);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .01em;
}

.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 7px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(.42);
    transform-origin: center;
    transition: opacity .22s ease, transform .22s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
    background: rgba(255, 255, 255, .68);
    border-color: rgba(20, 20, 20, .08);
    transform: translateY(-1px);
}

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

.hero {
    height: calc(100svh - 76px);
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 72px) 20px;
    background:
        linear-gradient(135deg, rgba(15, 127, 151, .12), transparent 34%),
        linear-gradient(315deg, rgba(215, 71, 79, .12), transparent 34%),
        var(--paper);
}

.hero-inner {
    width: min(920px, 100%);
    text-align: center;
}

.hero-inner,
.section-inner,
.footer {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .75s ease, transform .75s ease;
}

.hero-inner.is-visible,
.section-inner.is-visible,
.footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo {
    width: min(420px, 86vw);
    height: auto;
    margin: 0 auto 34px;
    display: block;
}

.hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.3;
}

.section {
    display: grid;
    align-items: center;
    height: calc(100svh - 76px);
    padding: clamp(38px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.about-section {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .32)),
        var(--paper);
}

.muted {
    background: var(--soft);
}

.section-inner {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0 0 22px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.section p {
    max-width: 830px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.brand-grid article {
    min-height: 230px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.brand-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 127, 151, .38);
    background: rgba(255, 255, 255, .86);
}

.brand-grid h3 a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-grid h3 a::after {
    content: "↗";
    color: var(--accent);
    font-size: 17px;
}

.brand-grid p {
    margin: 0;
    font-size: 16px;
}

.contact {
    min-height: calc(100svh - 76px);
    grid-template-rows: 1fr auto;
    background: #171717;
    color: #fff;
}

.contact .eyebrow {
    color: #6ec6da;
}

.contact p {
    color: rgba(255, 255, 255, .72);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.contact-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
}

.contact-actions a:hover {
    border-color: #fff;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-self: end;
    padding: 22px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 0;
        scroll-snap-type: y mandatory;
    }

    .site-header {
        position: static;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero {
        height: 100svh;
        min-height: 100svh;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }

    .snap-section,
    .contact {
        min-height: 100svh;
        max-height: none;
    }

    .snap-section.is-exiting-up,
    .snap-section.is-exiting-down,
    .snap-section.is-entering-up,
    .snap-section.is-entering-down {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .section {
        height: auto;
        min-height: 100svh;
        overflow: hidden;
    }

    .footer {
        flex-direction: column;
    }
}
