/* EINOMATION DESIGN SYSTEM */

/* FONTS */

@font-face
{
    font-family: "Daniel";
    src: url("../fonts/Daniel-Regular.otf") format("opentype");
    font-weight: 400;
}

@font-face
{
    font-family: "Daniel";
    src: url("../fonts/Daniel-Bold.otf") format("opentype");
    font-weight: 700;
}

@font-face
{
    font-family: "Daniel";
    src: url("../fonts/Daniel-Black.otf") format("opentype");
    font-weight: 900;
}

/* DESIGN TOKENS */

:root
{
    --bg: #F8F7F4;
    --surface: #FFFFFF;

    --text: #242424;
    --muted: #6B6B6B;

    --accent: #4E546C;
    --accent-light: #707793;
    --accent-dark: #3D4358;

    --border: #E2E2E2;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --shadow-sm: 0 6px 18px rgba(0,0,0,.05);
    --shadow-md: 0 12px 35px rgba(0,0,0,.08);

    --container: 1140px;
    --transition: .28s cubic-bezier(.2,.8,.2,1);
}

/* RESET */

*,
*::before,
*::after
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    min-height: 100vh;
    font-family: "Nunito", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img
{
    display: block;
    max-width: 100%;
    height: auto;
}

a
{
    color: inherit;
    text-decoration: none;
}

button
{
    font: inherit;
}

/* LAYOUT */

.container
{
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

section
{
    padding: 56px 0;
}

/* TYPOGRAPHY */

h1,
h2,
h3
{
    font-family: "Daniel", cursive;
    color: var(--text);
    line-height: 1.05;
}

h1
{
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
}

h2
{
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h3
{
    font-size: 1.5rem;
    font-weight: 700;
}

p
{
    color: var(--muted);
    max-width: 65ch;
}

/* HEADER */

header
{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248,247,244,.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

nav
{
    height: 88px;
}

.nav-wrapper
{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img
{
    height: 50px;
    width: auto;
    transform: rotate(-1deg);
    transition: var(--transition);
}

.logo:hover img
{
    transform: rotate(1deg) scale(1.04);
}

.nav-links
{
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a
{
    min-width: 88px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:nth-child(1)
{
    transform: rotate(-0.8deg);
}

.nav-links a:nth-child(2)
{
    transform: rotate(0.6deg);
}

.nav-links a:nth-child(3)
{
    transform: rotate(-0.5deg);
}

.nav-links a:hover
{
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px) rotate(0deg);
}

.nav-links a.active
{
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.menu-toggle
{
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* HERO */

.hero
{
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 48px 0 64px;
}

.hero-inner
{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-character
{
    display: flex;
    justify-content: center;
}

.hero-character img
{
    width: min(460px, 100%);
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.08));
    animation: floatEino 6s ease-in-out infinite;
}

.hero-content
{
    max-width: 560px;
}

.hero-label,
.section-kicker
{
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 14px;
    background: rgba(78,84,108,.08);
    color: var(--accent);
    border: 1px solid rgba(78,84,108,.14);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1
{
    margin-bottom: 20px;
}

.hero p
{
    margin-bottom: 34px;
    font-family: "Daniel", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
}

.hero-button
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 800;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-button:hover
{
    transform: translateY(-3px) rotate(-1deg);
    background: var(--accent-dark);
}

/* DESK NOTE */

.desk-note
{
    padding: 32px 0 16px;
}

.note-card
{
    width: min(620px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transform: rotate(-1deg);
}

.note-card span
{
    font-size: 1.4rem;
}

.note-card p
{
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

/* SECTION HEADINGS */

.section-heading
{
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-heading h2
{
    margin-bottom: 18px;
}

.section-heading p
{
    margin-inline: auto;
}

/* ABOUT */

.about-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card
{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:nth-child(1)
{
    transform: rotate(-0.7deg);
}

.about-card:nth-child(2)
{
    transform: rotate(0.5deg);
}

.about-card:nth-child(3)
{
    transform: rotate(-0.4deg);
}

.about-card:hover
{
    transform: translateY(-6px) rotate(0deg);
    box-shadow: var(--shadow-md);
}

.about-card h3
{
    margin-bottom: 14px;
}

/* VIDEOS */

.featured-video-card
{
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 90px;
}

.featured-video-image
{
    position: relative;
    transform: rotate(-1deg);
}

.featured-video-image img
{
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.tape
{
    position: absolute;
    width: 80px;
    height: 24px;
    background: rgba(255,245,200,.68);
    backdrop-filter: blur(2px);
    border-radius: 3px;
}

.tape-left
{
    top: -12px;
    left: 35px;
    transform: rotate(-8deg);
}

.tape-right
{
    top: -12px;
    right: 35px;
    transform: rotate(8deg);
}

.featured-video-text
{
    max-width: 480px;
}

.featured-video-text h3
{
    margin: 18px 0;
}

.featured-video-text p
{
    margin-bottom: 34px;
}

.latest-sketches h3
{
    margin-bottom: 28px;
    text-align: center;
}

.video-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.video-card
{
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:nth-child(1)
{
    transform: rotate(-0.7deg);
}

.video-card:nth-child(2)
{
    transform: rotate(.6deg);
}

.video-card:hover
{
    transform: translateY(-8px) rotate(0deg);
    box-shadow: var(--shadow-md);
}

.video-card img
{
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-info
{
    padding: 24px;
}

.video-info h3
{
    margin-bottom: 10px;
}

.video-info p
{
    margin: 0;
}

/* FOOTER */

.footer
{
    margin-top: 80px;
    background: var(--accent);
    color: white;
    padding: 42px 0 22px;
}

.footer-inner
{
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-brand img
{
    height: 48px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.footer-brand p
{
    color: rgba(255,255,255,.82);
}

.footer-links,
.footer-socials
{
    display: flex;
    gap: 12px;
    justify-content: center;
}

.footer-links a,
.footer-socials a
{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-socials a:hover
{
    transform: translateY(-3px) rotate(-2deg);
    background: rgba(255,255,255,.12);
}

.footer-bottom
{
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.18);
    text-align: center;
    font-size: .9rem;
    color: rgba(255,255,255,.78);
}

/* ANIMATIONS */

@keyframes floatEino
{
    0%
    {
        transform: translateY(0) rotate(-1deg);
    }

    50%
    {
        transform: translateY(-10px) rotate(1deg);
    }

    100%
    {
        transform: translateY(0) rotate(-1deg);
    }
}

/* RESPONSIVE */

@media (max-width: 900px)
{
    .hero-inner,
    .featured-video-card
    {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content,
    .featured-video-text
    {
        margin-inline: auto;
    }

    .hero-character
    {
        order: -1;
    }

    .about-grid
    {
        grid-template-columns: 1fr;
    }

    .footer-inner
    {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand img
    {
        margin-inline: auto;
    }
}

@media (max-width: 768px)
{
    .container
    {
        width: min(var(--container), calc(100% - 32px));
    }

    section
    {
        padding: 76px 0;
    }

    nav
    {
        height: 76px;
    }

    .logo img
    {
        height: 58px;
    }

    .menu-toggle
    {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links
    {
        position: absolute;
        top: 86px;
        right: 24px;
        display: none;
        flex-direction: column;
        width: 190px;
        padding: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open
    {
        display: flex;
    }

    .nav-links a
    {
        width: 100%;
        min-width: unset;
        transform: none !important;
    }

    .hero
    {
        min-height: auto;
        padding-top: 40px 0 56px;
    }

    .hero-character img
    {
        width: min(560px, 100%);
    }

    .video-grid
    {
        grid-template-columns: 1fr;
    }

    .note-card
    {
        flex-direction: column;
        text-align: center;
    }
}

body {
    opacity: 0;
    transition: opacity .4s ease;
}

body.loaded {
    opacity: 1;
}