:root {
    --ink: #141019;
    --ink-soft: #3f3446;
    --paper: #f7f2ea;
    --paper-warm: #fff9ef;
    --gold: #d48d1f;
    --teal: #087f73;
    --night: #100c14;
    --line: rgba(20, 16, 25, 0.13);
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(16, 12, 20, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 34px;
    color: var(--white);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav.scrolled,
.nav.open {
    background: rgba(247, 242, 234, 0.9);
    border-bottom: 1px solid rgba(20, 16, 25, 0.1);
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    min-width: 152px;
}

.nav-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.25s ease;
}

.nav.scrolled .nav-logo img,
.nav.open .nav-logo img {
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav-link,
.nav-cta {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 12px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link {
    opacity: 0.88;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    background: rgba(20, 16, 25, 0.07);
    opacity: 1;
}

.nav-cta {
    background: var(--white);
    color: var(--ink);
    margin-left: 4px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(20, 16, 25, 0.2);
    border-radius: 999px;
    background: rgba(20, 16, 25, 0.04);
    color: currentColor;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
}

.section {
    position: relative;
    padding: 132px 0 88px;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation: sectionReveal 0.7s ease 0.25s forwards;
}

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.section-kicker {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    text-wrap: balance;
}

.story-section {
    background: var(--paper-warm);
    min-height: 100svh;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
        "heading copy"
        "founders copy";
    gap: 54px;
    align-items: start;
}

.story-heading {
    grid-area: heading;
}

.story-logo {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 600 / 256;
    object-fit: contain;
    margin-top: 6px;
}

.story-founders-photo {
    width: min(100%, 420px);
    aspect-ratio: 1;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 42px rgba(20, 16, 25, 0.1);
}

.story-founders-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-copy p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.78;
    margin-bottom: 20px;
}

.story-copy .section-kicker {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    margin-bottom: 24px;
}

.story-copy {
    grid-area: copy;
}

.story-signoff {
    color: var(--ink) !important;
    margin-top: 30px;
}

.founders-grid {
    grid-area: founders;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: min(100%, 420px);
    margin-top: 88px;
}

.founder-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 42px rgba(20, 16, 25, 0.07);
    padding: 30px;
}

.founder-top {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.founder-avatar {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
}

.founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

.founder-role {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    margin-top: 6px;
    text-transform: uppercase;
}

.founder-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.founder-link:hover {
    background: var(--teal);
    transform: translateY(-1px);
}

.contact-section {
    min-height: 100svh;
    padding: 136px 0 86px;
    background: var(--night);
    color: var(--white);
}

.subpage-cta {
    padding: 76px 0 86px;
    background: var(--night);
    color: var(--white);
}

.subpage-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.subpage-cta h2 {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-wrap: balance;
}

.subpage-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.subpage-cta-link:hover {
    background: var(--gold);
    transform: translateY(-1px);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 42px;
    align-items: start;
}

.contact-panel h1 {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 18px;
    text-wrap: balance;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 19px;
    max-width: 620px;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(20, 16, 25, 0.1);
    border-radius: 8px;
    background: rgba(247, 242, 234, 0.9);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    color: var(--ink);
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.form-wide {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(20, 16, 25, 0.16);
    border-radius: 8px;
    background: var(--paper-warm);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    padding: 13px 14px;
}

.contact-form textarea[name="outcome"]::placeholder {
    color: var(--ink-soft);
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
}

.contact-form textarea {
    min-height: 112px;
    resize: vertical;
}

.final-cta-button {
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.final-cta-button:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-1px);
}

.contact-form .form-note {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    max-width: none;
}

.footer {
    padding: 42px 0;
    background: #08060b;
    color: rgba(255, 255, 255, 0.66);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-logo img {
    width: 148px;
    height: auto;
    aspect-ratio: 600 / 256;
    object-fit: contain;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-copyright {
    font-size: 13px;
    text-align: right;
}

@media (max-width: 920px) {
    .nav {
        padding: 14px 20px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 73px 14px auto 14px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px;
        border: 1px solid rgba(20, 16, 25, 0.1);
        border-radius: 8px;
        background: rgba(247, 242, 234, 0.96);
        color: var(--ink);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link,
    .nav-cta {
        border-radius: 6px;
        padding: 14px;
    }

    .nav-cta {
        margin-left: 0;
        background: var(--ink);
        color: var(--white);
    }

    .story-grid,
    .contact-panel,
    .founders-grid {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-areas:
            "heading"
            "copy"
            "founders";
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .subpage-cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-logo img {
        height: 38px;
    }

    .section,
    .contact-section {
        padding: 104px 0 72px;
    }

    .contact-form,
    .founder-card {
        padding: 22px;
    }

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

    .founder-top {
        grid-template-columns: 74px 1fr;
    }

    .founder-avatar {
        width: 74px;
        height: 74px;
    }
}
