:root {
    --bg: #FFFFFF;
    --surface: #F5F5F7;
    --surface-alt: #E1DCF3;
    --text: #191529;
    --text-muted: #645E78;
    --border: #DAD8E4;
    --primary: #3816BB;
    --primary-hover: #2E129B;
    --accent: #99C125;
    --on-primary: #FFFFFF;
}

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

html {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.875rem, 0.85rem + 0.15vw, 1rem);
    line-height: 1.6;
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 200ms ease-in-out, opacity 200ms ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: background-color 200ms ease-in-out, color 200ms ease-in-out, transform 200ms ease-in-out;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

h1 {
    font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    font-weight: 700;
}

h4,
h5,
h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.375rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    h4,
    h5 {
        font-size: 0.9375rem;
        line-height: 1.35;
    }

    a,
    span,
    p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ===== header ===== */
.mobile-menu-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-wrapper.is-open {
    max-height: 360px;
}

/* ===== hero ===== */
#hero {
    overflow: hidden;
}

#hero .hyphens-auto {
    hyphens: auto;
}

/* ===== about ===== */
#about {
    hyphens: auto;
}

#about img {
    max-width: 100%;
    height: auto;
}

/* ===== anatomy ===== */
#anatomy {
    overflow: hidden;
}

#anatomy article {
    box-sizing: border-box;
}

/* ===== scenarios ===== */
#scenarios {
    overflow: hidden;
}

#scenarios article {
    box-sizing: border-box;
}

#scenarios img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#scenarios h2,
#scenarios h3 {
    hyphens: auto;
}

/* ===== nonverbal ===== */
#nonverbal {
    hyphens: auto;
}

#nonverbal .js-nonverbal-card {
    min-height: 270px;
}

/* ===== camera ===== */
#camera {
    hyphens: auto;
}

#camera .ri-checkbox-circle-fill,
#camera .ri-sun-line,
#camera .ri-focus-3-line,
#camera .ri-emotion-normal-line,
#camera .ri-article-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== philosophy ===== */
#philosophy {
    hyphens: auto;
}

#philosophy blockquote p {
    letter-spacing: -0.01em;
}

/* ===== audience ===== */
#audience h2,
#audience h3 {
    hyphens: auto;
}

#audience .audience-card {
    min-height: 100%;
    box-sizing: border-box;
}

#audience .audience-card:hover {
    box-shadow: 0 4px 12px rgba(25, 21, 41, 0.06);
}

/* ===== principles ===== */
#principles {
    hyphens: auto;
}

#principles .js-principle-card {
    box-sizing: border-box;
}

/* ===== final_accent ===== */
#final-accent {
    overflow: hidden;
}

#final-accent h2,
#final-accent p {
    hyphens: auto;
}

#final-accent img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ===== faq ===== */
#faq .js-faq-item:hover {
    background-color: rgba(245, 245, 247, 0.4);
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}