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

*{
	margin: 0;
    padding: 0;
	line-height: calc(1em + 0.5rem);
}

@font-face {
    font-family: 'Crimson Text Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Crimson Text Regular'), url('../fonts/CrimsonText-Regular.woff') format('woff');
}
    

@font-face {
    font-family: 'Crimson Text Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Crimson Text Italic'), url('../fonts/CrimsonText-Italic.woff') format('woff');
}
    

@font-face {
    font-family: 'Crimson Text SemiBold';
    font-style: normal;
    font-weight: normal;
    src: local('Crimson Text SemiBold'), url('../fonts/CrimsonText-SemiBold.woff') format('woff');
}
    

@font-face {
    font-family: 'Crimson Text SemiBold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Crimson Text SemiBold Italic'), url('../fonts/CrimsonText-SemiBoldItalic.woff') format('woff');
}
    

@font-face {
    font-family: 'Crimson Text Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Crimson Text Bold'), url('../fonts/CrimsonText-Bold.woff') format('woff');
}
    

@font-face {
    font-family: 'Crimson Text Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Crimson Text Bold Italic'), url('../fonts/CrimsonText-BoldItalic.woff') format('woff');
}

@font-face {
    font-family: 'Anonymous Pro';
    font-style: normal;
    font-weight: normal;
    src: local('Anonymous Pro'), url('../fonts/Anonymous_Pro.woff') format('woff');
}
    

@font-face {
    font-family: 'Anonymous Pro Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Anonymous Pro Italic'), url('../fonts/Anonymous_Pro_I.woff') format('woff');
}
    

@font-face {
    font-family: 'Anonymous Pro Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Anonymous Pro Bold'), url('../fonts/Anonymous_Pro_B.woff') format('woff');
}
    

@font-face {
    font-family: 'Anonymous Pro Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Anonymous Pro Bold Italic'), url('../fonts/Anonymous_Pro_BI.woff') format('woff');
}

html{
	scroll-behavior: smooth;

    color-scheme: light dark;
    --colour-background: light-dark(#F1EDE1, #1E1E1E);
    --colour-text: light-dark(#1E1E1E, #F1EDE1);
    --colour-primary: light-dark(#D3638C, rgb(211 99 140 / 0.8));
    --colour-primary-border: light-dark(#A72656, #A72656);

    --color-secondary: light-dark(#C6DF77, rgb(198 223 119 / 0.8));
    --color-secondary-border: light-dark(#819B31, #819B31);

    --color-primary-pink: light-dark(#F0D6DF, rgb(240 214 223 / 0.8));

    --color-primary-green: light-dark(#DFEEAF, rgb(223 238 175 / 0.8));
    --color-primary-dark-green: light-dark(#819B31, rgb(129 155 49 / 0.8));

    --color-primary-blue: light-dark(#D4DBF0, rgb(212 219 240 / 0.8));
    --color-primary-dark-blue: light-dark(#2B3962, rgb(43 57 98 / 0.8));
    
    font-family: 'Anonymous Pro', sans-serif;
    color: var(--colour-text);
    background-color: var(--colour-background);

    --size-xxs: 0.5rem;
	--size-xs: 0.75rem;
	--size-sm: 0.875rem;
	--size-base: 1rem;
	--size-lg: 1.125rem;
	--size-xl: 1.25rem;
	--size-2xl: 1.5rem;
	--size-3xl: 1.875rem;
	--size-4xl: 2.25rem;
	--size-5xl: 3rem;
	--size-6xl: 3.75rem;
	--size-7xl: 4.5rem;
	--size-8xl: 6rem;
	--size-9xl: 8rem;
	--size-10xl: 10rem;
}

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

.container{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

button{
	display: inline-block;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	color: inherit;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text Bold', serif;
    color: var(--colour-primary);
    -webkit-text-stroke: 1px var(--colour-primary-border);
    line-height: 1;
}

p {
    font-size: var(--size-xs);
}

.button-v1{
    border: solid 2px var(--colour-primary-border);
    background-color: var(--colour-primary);
    color: var(--colour-background);
    padding: var(--size-xxs) var(--size-2xl);
    border-radius: var(--size-xxs);
    
    font-family: 'Anonymous Pro', sans-serif;
    font-weight: bolder;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--colour-primary-border);
        scale: 95%;
    }
}

.button-v2{
    border: solid 2px var(--color-secondary-border);
    background-color: var(--color-secondary);
    color: var(--colour-text);
    padding: var(--size-xxs) var(--size-2xl);
    border-radius: var(--size-xxs);
    
    font-family: 'Anonymous Pro', sans-serif;
    font-weight: bolder;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--color-secondary-border);
        scale: 95%;
    }

}


/* ── NAV STYLING ── */
nav {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    
    display: flex;
    flex-direction: column;
    padding: var(--size-2xl) var(--size-2xl);
    pointer-events: none;
    background-color: var(--colour-background);

    translate: 0 150%;
    transition: translate 0.5s ease;
	transition-timing-function: cubic-bezier(.17,.67,.83,.67);
}

nav.toonmenu {
    pointer-events: all;
    translate: 0 0;
}

header div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--size-2xl);

    width: 100%;
}

.logo{
    width: auto;
    height: var(--size-4xl);
}

.menu {
    color: var(--colour-primary);
    width: var(--size-4xl);
    height: var(--size-4xl);
    display: block;
    z-index: 200; 
    position: relative;
}


nav a {
	font-size: var(--size-xl);
	text-decoration: none;
	color: var(--colour-primary);
	transition: color 0.3s;
}

nav a:hover{
	color: var(--colour-primary);
}


ul{
    padding-left: 0;
    display: flex;
    flex-direction: column;
	align-items: center;
    justify-content: center;
	list-style: none;
    height: 100%;

    & li{
        list-style: none;
        padding: var(--size-xxs) var(--size-xs);
        border-radius: var(--size-xxs);
        border: 1px solid transparent;
        transition: border-color 0.5s ease;

        & a{
            text-decoration: none;
            color: var(--colour-primary);
            padding: auto;

            & img {
                height: 2.4em;
                width: 100%;
            }

            & svg {
                height: 1.6em;
                width: 100%;
            }
        }
    }

    & li:hover{
        border-color: var(--colour-primary-border);
    }
}

.liAppear {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s both;
}

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

.liAppear:nth-of-type(1) { animation-delay: 0.6s; }
.liAppear:nth-of-type(2) { animation-delay: 0.7s; }
.liAppear:nth-of-type(3) { animation-delay: 0.8s; }
.liAppear:nth-of-type(4) { animation-delay: 0.9s; }
.liAppear:nth-of-type(5) { animation-delay: 1.0s; }

/* ── HERO STYLING ── */
.hero {
    margin: 0 var(--size-2xl) var(--size-base) var(--size-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--size-2xl);

    text-align: center;

    & button{
        &:nth-of-type(1) a{
            color: var(--colour-background);
            text-decoration: none;
        }

        &:nth-of-type(2) a{
            color: var(--colour-text);
            text-decoration: none;
        }
    }
}

.hero div {
    display: flex;
    flex-direction: column;
    gap: var(--size-2xl);
}

.hero div div {
    display: flex;
    flex-direction: column;
    gap: var(--size-xxs);
}

/* ── TICKER STYLING ── */
.ticker {
    overflow: hidden;
    background-color: var(--color-secondary);
    padding: var(--size-xs) 0;
    border: 2px solid var(--color-secondary-border);
    width: 100%;
    font-size: var(--size-xs);

    margin: var(--size-7xl) 0;
}

.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker 20s linear infinite;
    will-change: transform;
}

.ticker-track span {
    white-space: nowrap;
    color: var(--colour-text);
    padding: 0 var(--size-6xl);
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-bottom {
    margin-bottom: 0;
    background-color: var(--colour-primary);
    border: 2px solid var(--color-primary-border);
    
    & span {
        color: var(--colour-background);
    }
}

/* ── WORKS STYLING ── */
.works {
    margin: var(--size-base) var(--size-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--size-base);

    & h2 {
        font-size: var(--size-4xl);
    }

    & h2 {
        font-size: var(--size-3xl);
    }

    a{
        color: var(--colour-text);
        text-decoration: none;
    }
}

.work-card-div-1,
.work-card-div-2 {
    display: flex;
    flex-direction: column;
    gap: var(--size-2xl);
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--size-2xl);
}

.work-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    gap: var(--size-3xl);
    padding: var(--size-xl);
    border-radius: 8px;

    background-color: var(--colour-primary);
    color: var(--colour-background);

    & h3 {
        color: var(--colour-background);
        -webkit-text-stroke: transparent;
    }

    & button {
        font-size: var(--size-xs);
    }
}

.work-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--size-2xl);
    align-items: center;
}

.card-2 {
    background-color: var(--color-secondary);
    color: var(--colour-text);

    & h3 {
        color: var(--colour-text);
    }

    a{
        color: var(--colour-background);
        text-decoration: none;
    }
}

.work-card img {
    width: 60%;
    height: auto;
}

/* ── SHAPE STYLING ── */
.shape {
    /* width: 100%; */
    height: var(--size-3xl);
    margin: var(--size-5xl) 0;

    & img {
        display: block;
        margin-right: auto;
        margin-left: auto;
        height: 100%;
    }
}

/* ── CONTACT STYLING ── */
.contact {
    margin: var(--size-base) var(--size-2xl);
    padding: 0 var(--size-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--size-base);
    text-align: center;

    & img{
        width: 50%;
        height: auto;
    }

    & h2{
        font-size: var(--size-3xl)
    }
}

/* ── ANIMATIONS ── */
.work-card,
.contact{
    animation-name: appear;
	animation-duration: 0.6s;
	animation-fill-mode: forwards;
	animation-timeline: view();
	animation-range: entry 0%;
}

@keyframes appear{
	0%{
		opacity: 0%;
		scale: 0.5;
	}
	
	100%{
		opacity: 1;
		scale: 1;
	}
}

.contact button:nth-of-type(1)  a{
    color: var(--colour-background);
    text-decoration: none;
}

.contact button:nth-of-type(2)  a{
    color: var(--colour-text);
    text-decoration: none;
}

/* ── MEDIA QUERIES ── */
/* .container{} */

/* xs */
@media (min-width: 475px) {
	.container{
		max-width: 475px;
	}
}

/* sm */
@media (min-width: 640px) {
	
}

/* md */
@media (min-width: 768px) {
	.container{
		max-width: 768px;
	}

    /* ── NAV STYLING ── */
    nav {
        padding: var(--size-3xl) var(--size-2xl);
        translate: 0% 0%;
        inset: unset;
        background-color: transparent;

        position: relative;
        pointer-events: all;
        
        & ul {
            flex-direction: row;
            gap: var(--size-2xl);
        }
        
        & a {
            font-size: var(--size-base);
        }
    }

    header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;

        div {
            width: fit-content;
        }
    }

    .menu {
        display: none;
    }

    /* ── HERO STYLING ── */
    .hero {
        flex-direction: row;
        text-align: left;
        gap: var(--size-4xl);

        & img{
            width: 50%;
            height: auto;
        }

        & h1{
            font-size: var(--size-6xl);
            translate: -28% -32%;
            width: 140%;
        }

        div:nth-of-type(2) {
            flex-direction: row;
            margin-top: auto;

            & button{
                width: 100%;
            }
        }
    }

    /* ── WORK STYLING ── */
    .works {
        gap: var(--size-2xl);
    
        & h2 {
            font-size: var(--size-4xl);
        }
    }

    .work-card-content{
        /* height: 100%; */
        gap: var(--size-base);

        & button {
            margin-top: auto;
        }
    }
    
    /* .work-cards {
        gap: var(--size-2xl);

        width: 100%;
        grid-template-rows: repeat(2, 350px);
        grid-template-columns: repeat(8, 1fr);

        & img {
            width: 80%;
            height: auto;
        }
    }

    .work-card {
        height: 100%;

        &:nth-of-type(1) {
            grid-column: 1 / span 4;
            flex-direction: row;
            text-align: left;
            
            & img {
                width: 40%;
                height: auto;
            }

            & button{
                align-self: flex-end;
            }

        }

        &:nth-of-type(2),
        &:nth-of-type(3),
        &:nth-of-type(4),
        &:nth-of-type(5) {
            grid-column: span 2;
            gap : var(--size-base);

            & .work-card-content p:nth-of-type(2) {
                display: none;
            }
        }

        &:nth-of-type(6) {
            grid-column: span 4;
            flex-direction: row;
            text-align: left;
            
            & img {
                width: 40%;
                height: auto;
            }

            & button{
                align-self: flex-end;
            }
        }
    } */

    .work-cards{
        display: flex;
        flex-direction: column;
    }

    .work-card-div-1,
    .work-card-div-2 {
        display: flex;
        flex-direction: row;
        gap: var(--size-2xl);
        align-items: stretch;
        height: 350px;

        & .work-card {
            flex: 1;
        }
        
    }

    .work-card-div-1{
        & .work-card:nth-of-type(1) {
            flex: 2;
        }
    }

    .card-first,
    .card-sixth {
        flex-direction: row;
        text-align: left;
                    
        & img {
            width: 40%;
            height: auto;
        }

        & button{
            align-self: flex-end;
        }
    }

    .card-second,
    .card-third,
    .card-fourth,
    .card-fifth {
        gap : var(--size-base);

        & .work-card-content p:nth-of-type(2) {
            display: none;
        }

        & img {
                width: 80%;
                height: auto;
        }
    }

    .work-card-div-2{
        & .work-card:nth-of-type(3) {
        flex: 2;
        }
    }

    


    .contact{
        & img {        
            width: 20%;
            height: auto;
        }

        & h2{
            font-size: var(--size-4xl);
        }

        & p {
            width: 50%;
        }
    }

    .shape{
        margin: var(--size-7xl) 0;
    }
}

/* lg */
@media (min-width: 1024px) {
	.container{
		max-width: 1024px;
	}

    .hero{
        margin: var(--size-4xl) var(--size-9xl) var(--size-4xl) var(--size-9xl);
    }

    .works{
        margin: var(--size-9xl);
    }

    header{
        padding-left: var(--size-5xl);
        padding-right: var(--size-5xl);
    }

	.section {
		margin-top: 10rem;
	}


    /* ── WORK STYLING ── */
    .works h2 {
        font-size: var(--size-6xl);
        letter-spacing: -5%;
    }

    .work-card {
        /* height: 100%; */
        padding: var(--size-4xl) var(--size-7xl);
        overflow: hidden;
        transition: flex 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    } 
    .work-card-content,
    .work-card img {
        transition: all 0.5s ease;
    }

    .work-cards:has(.card-second:hover) .card-first,
    .work-cards:has(.card-third:hover) .card-first,
    .work-cards:has(.card-fourth:hover) .card-sixth,
    .work-cards:has(.card-fifth:hover) .card-sixth {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: var(--size-base);

        & button {
            align-self: center;
        }

        & img {
            width: 80%;
            height: auto;
        }

        & .work-card-content {
            align-items: center;
        }

        & .work-card-content p:last-child {
            display: none;
        }
    }

    .card-second:hover,
    .card-third:hover,
    .card-fourth:hover,
    .card-fifth:hover {
        flex: 2;
        flex-direction: row;

        & img {
            width: 40%;
            height: auto;
        }

        & button {
            align-self: flex-end;
        }

        & .work-card-content {
            text-align: left;
            align-items: flex-start;
            width: 100%;
        }

        & .work-card-content p:nth-of-type(2) {
            display: block;
        }
    }

    .index p{
        font-size: var(--size-base);
    }

}

/* xl */
@media (min-width: 1280px) {
	.container{
		max-width: 1280px;
	}

    .hero {
        gap: var(--size-5xl);
        margin: var(--size-6xl) var(--size-7xl) var(--size-6xl) var(--size-7xl);

        & h1{
            font-size: var(--size-9xl);
            translate: -20% -32%;
            width: 130%;
        }

        & img {
            width: 35%;
            height: auto;
        }
    }
}

/* 2xl */
@media (min-width: 1536px) {
	.container{
		max-width: 1536px;
	}
    
}