:root {
    --bg: #F5F1EA;
    --fg: #1A1816;
    --accent: #FF5F3C;
    --muted: #D1C7BC;

    --font-display: 'Recoleta', serif;
    --font-body: 'Inter Tight', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}

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

main {
    width: 100%;
    overflow: hidden; /* For horizontal scroll section */
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.9;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__title .accent-text {
    color: var(--accent);
    font-style: italic;
}

.about {
    padding: 12rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about__text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 400;
}

.work {
    padding-bottom: 12rem;
    position: relative;
}

.work__header {
    padding: 0 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1800px;
    margin: 0 auto;
}

.work__header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
}

.scroll-hint {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work__scroller {
    display: flex;
    width: max-content;
}

.work__item {
    width: 40vw;
    max-width: 700px;
    margin-right: 4rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.work__item:first-child {
    margin-left: max(2rem, (100vw - 1800px) / 2);
}

.work__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
    transition: transform 1s var(--ease-out-expo);
}

.work__item:hover img {
    transform: scale(1);
}

.work__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--bg);
}

.work__item-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.work__item-overlay p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.playground {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.playground__header {
    text-align: center;
    margin-bottom: 6rem;
}

.playground__header h3 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
}

.playground__header p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.125rem;
}

.playground__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.playground-item {
    background-color: var(--muted);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    transition: transform 0.5s var(--ease-out-expo);
}

.playground-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.playground-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playground-item p {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--bg);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.philosophy {
    padding: 12rem 2rem;
    text-align: center;
}

.philosophy blockquote {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    font-weight: 600;
    max-width: 1100px;
    margin: 0 auto;
}

.philosophy blockquote span {
    color: var(--accent);
}

.contact {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem;
}

.contact__link {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    line-height: 1;
    position: relative;
    display: inline-block;
    transition: color 0.4s var(--ease-out-expo);
}

.contact__link:hover {
    color: var(--accent);
}

.contact__link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.8s var(--ease-out-expo);
}

.contact__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact p {
    margin-top: 2rem;
    max-width: 500px;
}

footer {
    padding: 4rem 2rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .work__item {
        width: 80vw;
        margin-right: 2rem;
    }
}
