html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #121212;
    color: #F2F0EB;
    font-family: "Outfit", sans-serif;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 32px 48px;
}

.okami-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #F2F0EB;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    z-index: 1;
}

html {
    scroll-behavior: smooth;
}

.side-nav {
    position: fixed;
    left: 48px;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-link {
    color: #F2F0EB;
    opacity: 0.35;

    text-decoration: none;

    font-size: 16px;
    font-weight: 400;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.nav-link.active {
    opacity: 1;
    font-weight: 500;
}

.side-nav-footer {
    position: fixed;
    bottom: 32px;
    left: 48px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.side-nav-utility-link {
    color: #F2F0EB;
    opacity: 0.35;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-nav-utility-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.side-nav-utility-link[aria-current="page"] {
    opacity: 1;
    font-weight: 500;
}

.side-nav-utility-link:focus-visible,
.side-nav-discord:focus-visible {
    outline: 2px solid #F2F0EB;
    outline-offset: 4px;
}

.side-nav-divider {
    width: 88px;
    height: 1px;
    background: rgba(242, 240, 235, 0.2);
}

.side-nav-discord {
    display: inline-flex;
    padding: 2px;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-nav-discord img {
    display: block;
    width: 20px;
    height: 20px;
}

.side-nav-discord:hover {
    opacity: 1;
    transform: translateY(-2px);
}

main {
    height: 100vh;
    height: 100svh;
    margin-left: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

main::-webkit-scrollbar {
    display: none;
}

section {
    box-sizing: border-box;
    min-height: 100%;
    padding: 32px 48px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

#what-is-okami {
    display: flex;
    align-items: center;
    justify-content: center;
}

.okami-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    align-items: center;
    width: min(100%, 1100px);
    margin: 0 auto;
    gap: clamp(32px, 5vw, 80px);
}

.okami-page-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
}

.okami-page-title span {
    color: #8BA7C7;
}

.okami-page-copy {
    margin-top: 28px;
    color: rgba(242, 240, 235, 0.68);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 1.7;
}

.okami-page-copy p {
    margin: 0 0 16px;
}

.okami-wolf-mark {
    display: block;
    width: min(100%, 400px);
    max-height: 72vh;
    justify-self: center;
    margin: 0;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(69%) sepia(13%) saturate(747%) hue-rotate(176deg) brightness(90%) contrast(87%);
}

.ihd-page-logo {
    display: block;
    width: min(100%, 300px);
    max-height: 72vh;
    justify-self: center;
    margin: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#imharvdevelopment {
    display: flex;
    align-items: center;
    justify-content: center;
}

#imharvdevelopment .okami-page-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
}

.ihd-page-intro {
    margin: 24px 0 0;
    color: rgba(242, 240, 235, 0.62);
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.65;
}

.ihd-page-divider {
    height: 1px;
    margin: clamp(30px, 5vh, 48px) 0 22px;
    background: rgba(242, 240, 235, 0.16);
}

.ihd-featured-project h2 {
    margin: 0;
    color: #8BA7C7;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ihd-featured-project p {
    max-width: 560px;
    margin: 9px 0 0;
    color: rgba(242, 240, 235, 0.56);
    font-size: 0.88rem;
    line-height: 1.6;
}

.ihd-project-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 18px;
    padding: 0 16px;
    border: 1px solid rgba(242, 240, 235, 0.22);
    color: #F2F0EB;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.ihd-project-button:hover {
    border-color: #8BA7C7;
    background: rgba(139, 167, 199, 0.12);
}

.ihd-project-button:focus-visible {
    outline: 2px solid #8BA7C7;
    outline-offset: 4px;
}

.hero-copy {
    width: fit-content;
    max-width: 100%;
    text-align: left;
}

.hero h1 {
    margin: 0;
    padding: 0.04em 0 0.14em;
    font-size: clamp(3.5rem, 8.5vw, 9rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
    overflow: visible;
    color: #F2F0EB;
}

.hero-brand {
    color: #8BA7C7;
}

html.reveal-ready main > section > * {
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.reveal-ready main > section.is-visible > * {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html.reveal-ready main > section > * {
        transition: none;
    }
}

#contact {
    display: grid;
    place-items: center;
}

#privacy-policy {
    display: none;
}

body.privacy-policy-open main {
    overflow: hidden;
}

body.privacy-policy-open #privacy-policy {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #121212;
    padding-top: clamp(96px, 12vh, 136px);
    padding-bottom: clamp(80px, 12vh, 136px);
}

.privacy-policy-close {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(242, 240, 235, 0.18);
    background: rgba(18, 18, 18, 0.9);
    color: rgba(242, 240, 235, 0.72);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.privacy-policy-close span {
    font-size: 1.2rem;
    line-height: 0.8;
}

.privacy-policy-close:hover {
    border-color: rgba(242, 240, 235, 0.42);
    color: #F2F0EB;
}

.privacy-policy-close:focus-visible {
    outline: 2px solid #8BA7C7;
    outline-offset: 3px;
}

.privacy-policy-page {
    width: min(100%, 760px);
    margin: 0 auto;
}

.privacy-policy-heading {
    margin-bottom: clamp(48px, 8vh, 80px);
}

.privacy-policy-heading h1 {
    margin: 0;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.privacy-policy-heading h1 span {
    color: #8BA7C7;
}

.privacy-policy-intro {
    max-width: 600px;
    margin: 22px 0 0;
    color: rgba(242, 240, 235, 0.68);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.privacy-policy-updated {
    margin: 18px 0 0;
    color: rgba(242, 240, 235, 0.42);
    font-size: 0.86rem;
}

.privacy-policy-content > section {
    min-height: 0;
    margin-top: 12px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(242, 240, 235, 0.07);
    border-left: 2px solid rgba(139, 167, 199, 0.68);
    background: rgba(242, 240, 235, 0.025);
    scroll-snap-align: none;
}

.privacy-policy-content h2 {
    margin: 0 0 12px;
    color: #F2F0EB;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.privacy-policy-content p {
    margin: 0;
    color: rgba(242, 240, 235, 0.68);
    font-size: 0.96rem;
    line-height: 1.7;
}

.privacy-policy-content p + p {
    margin-top: 12px;
}

.privacy-policy-content ul {
    margin: 10px 0 18px;
    padding-left: 1.3rem;
    color: rgba(242, 240, 235, 0.68);
}

.privacy-policy-content li {
    margin: 5px 0;
    font-size: 0.96rem;
    line-height: 1.65;
}

.privacy-policy-content a {
    color: #F2F0EB;
    text-underline-offset: 0.2em;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    align-items: center;
    width: min(100%, 1040px);
    gap: clamp(56px, 8vw, 120px);
}

.contact-heading {
    text-align: left;
}

.contact-heading h2 {
    margin: 0;
    color: #F2F0EB;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.contact-heading p {
    max-width: 440px;
    margin: 30px 0 0;
    color: rgba(242, 240, 235, 0.58);
    font-size: clamp(1.05rem, 1.55vw, 1.2rem);
    line-height: 1.65;
}

.contact-methods {
    display: grid;
    border-top: 1px solid rgba(242, 240, 235, 0.14);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 24px 4px;
    border-bottom: 1px solid rgba(242, 240, 235, 0.14);
    color: inherit;
    text-decoration: none;
}

a.contact-method {
    transition: background-color 180ms ease, padding 180ms ease;
}

a.contact-method:hover {
    padding-right: 14px;
    padding-left: 14px;
    background: rgba(242, 240, 235, 0.035);
}

a.contact-method:focus-visible {
    outline: 2px solid #F2F0EB;
    outline-offset: 4px;
}

.contact-symbol {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(242, 240, 235, 0.2);
    background: rgba(242, 240, 235, 0.035);
    color: rgba(242, 240, 235, 0.72);
    font-size: 1.15rem;
    font-weight: 500;
}

.contact-symbol img {
    width: 21px;
    height: 21px;
    opacity: 0.72;
}

.contact-method--serious .contact-symbol img {
    opacity: 0.9;
}

.contact-method h3 {
    margin: 0 0 5px;
    color: #F2F0EB;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-method p {
    margin: 0;
    color: rgba(242, 240, 235, 0.56);
    font-size: clamp(0.94rem, 1.3vw, 1.05rem);
    line-height: 1.5;
}

.contact-method--serious h3 {
    color: #ff6268;
}

.contact-method--serious .contact-symbol {
    border-color: rgba(255, 98, 104, 0.32);
    background: rgba(255, 98, 104, 0.06);
    color: #ff6268;
}

@media (max-width: 700px) {
    .header {
        padding: 24px;
    }

    .side-nav {
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom));
        left: 50%;
        width: max-content;
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
        padding: 12px 16px;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        gap: clamp(10px, 3vw, 16px);
        overflow-x: auto;
        border: 1px solid rgba(242, 240, 235, 0.1);
        border-radius: 999px;
        background: rgba(18, 18, 18, 0.82);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(16px);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .side-nav-footer {
        position: fixed;
        right: 50%;
        bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
        left: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        transform: translateX(50%);
        border: 1px solid rgba(242, 240, 235, 0.1);
        border-radius: 999px;
        background: rgba(18, 18, 18, 0.82);
        backdrop-filter: blur(16px);
    }

    .side-nav-utility-link {
        font-size: 0.72rem;
    }

    .side-nav-divider {
        width: 1px;
        height: 16px;
    }

    .side-nav-discord img {
        width: 17px;
        height: 17px;
    }

    .nav-link {
        flex: 0 0 auto;
        font-size: 0.78rem;
    }

    .nav-link:hover {
        transform: translateY(-2px);
    }

    main {
        margin-left: 0;
    }

    section {
        padding: 24px;
    }

    #what-is-okami {
        align-items: flex-start;
        padding-top: 96px;
        padding-bottom: 120px;
    }

    #imharvdevelopment {
        align-items: flex-start;
        padding-top: 96px;
        padding-bottom: 120px;
    }

    .okami-page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .okami-page-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    #imharvdevelopment .okami-page-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .okami-page-copy {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .okami-page-copy p {
        margin-bottom: 12px;
    }

    .okami-wolf-mark {
        justify-self: end;
        width: min(26vw, 120px);
        max-height: 120px;
    }

    .ihd-page-logo {
        justify-self: center;
        width: min(24vw, 104px);
        max-height: 104px;
    }

    #contact {
        align-content: center;
        padding-top: 96px;
        padding-bottom: 132px;
    }

    #privacy-policy {
        padding-top: 96px;
        padding-bottom: 132px;
    }

    .privacy-policy-close {
        top: 14px;
        right: 16px;
    }

    .privacy-policy-content > section {
        padding: 22px 18px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contact-heading h2 {
        font-size: clamp(3.25rem, 17vw, 5.5rem);
    }

    .contact-heading p {
        margin-top: 24px;
    }

    .contact-method {
        padding: 20px 2px;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 5rem);
        line-height: 1.08;
    }

}
