@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Odibee+Sans&display=swap');

html, body {
    scroll-behavior: smooth;
}

/* === COLOR THEME === */
:root {
    --brown-dark: #1b0f08;     /* deep dark brown background */
    --brown: #3b2414;          /* warm brown accent */
    --gold: #d4af37;           /* metallic gold */
    --gold-light: #f2e1a7;     /* soft highlight gold */
    --text-light: #f8f1e5;     /* beige-white text */
    --text-muted: #bfa97a;     /* muted gold text */
}

/* === BODY === */
body {
    background-color: var(--brown-dark);
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    font-family: "Libre Baskerville", sans-serif;
}

/* === RESETS === */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}

/* === MAIN === */
main {
    width: min(1400px, 100vw);
    margin: auto;
    padding: 20px;
}

/* === HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(180deg, var(--brown), var(--brown-dark));
    border-bottom: 2px solid var(--gold);
}

header img {
    height: 40px;
}

/* === BANNER === */
.banner .content {
    font-family: "Odibee Sans", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--gold);
}

.banner .content h1 {
    font-size: 17em;
}

.banner .content .right {
    text-align: right;
    transform: translateY(-30px);
}

.banner .content .right h2 {
    font-size: 7em;
    font-weight: 200;
    color: var(--gold-light);
}

.banner .image {
    width: 100%;
    height: 600px;
    background: linear-gradient(160deg, var(--brown-dark), var(--brown));
    position: relative;
    border-bottom: 1px solid var(--gold);
}

.banner .image img {
    position: absolute;
    height: 130%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
}

/* === GRID === */
.grid figure img {
    width: 100%;
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(var(--row), 100px);
    margin-top: 50px;
    gap: 50px;
}

/* === GRID STYLES === */
.grid-1 figure:nth-child(1) {
    grid-column: 2 / 6;
    grid-row: 1;
}
.grid-1 figure:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}
.grid-1 h2:nth-child(3) {
    font-size: 7em;
    grid-column: 1 / 7;
    text-align: center;
    grid-row: 5;
    z-index: 1;
    color: var(--gold-light);
}
.grid-1 { --row: 2; }

.grid-2 {
    --row: 8;
    font-size: 1.7em;
    color: var(--text-light);
}
.grid-2 div:nth-child(1) { grid-column: 1 / 4; grid-row: 3; }
.grid-2 div:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
.grid-2 div:nth-child(3) { grid-column: 4 / 7; grid-row: 4; }
.grid-2 div:nth-child(4) { grid-column: 1 / 4; grid-row: 6; }

.grid-3 {
    --row: 6;
    font-size: 10em;
    color: var(--gold);
}
.grid-3 div {
    grid-column: 2 / 6;
    text-wrap: nowrap;
}
.grid-3 div:nth-child(even) { text-align: right; }
.grid-3 div:nth-child(5) { grid-column: 1 / 6; }
.grid-3 div:nth-child(4) { grid-column: 1 / 7; }

/* === FOOTER === */
footer {
    border-top: 2px solid var(--gold);
    background: linear-gradient(180deg, var(--brown), var(--brown-dark));
    min-height: 100vh;
    color: var(--text-light);
}
footer .content {
    width: min(1400px, 100vw);
    margin: auto;
    padding: 100px 20px;
}
.grid-5 {
    --row: 5;
    font-size: 1.7em;
    color: var(--text-light);
}
.grid-5 div:nth-child(1) { grid-row: 1; grid-column: 1 / 3; }
.grid-5 div:nth-child(2) { grid-row: 2; grid-column: 3 / 5; }
.grid-5 div:nth-child(3) { grid-row: 3; grid-column: 5 / 7; }
.grid-5 div:nth-child(4) { grid-row: 1; grid-column: 5 / 7; }

/* === RESPONSIVE === */
@media screen and (max-width: 1023px) {
    header img { height: 2em; }
    .banner .content h1 { font-size: 12em; }
    .banner .content .right { transform: none; }
    .grid-2 div:nth-child(1) { grid-row: 2; }
    .grid-2 div:nth-child(3) { grid-row: 6; }
    .grid-2 div:nth-child(4) { grid-row: 5; }
    .grid-3 { font-size: 5em; line-height: 1em; }
}
@media screen and (max-width: 767px) {
    header img { height: unset; width: 100%; }
    .banner .content h1 { font-size: 7em; }
    .banner .content { text-align: center; justify-content: center; align-items: center; }
    .banner { overflow: hidden; }
    .grid-1 h2:nth-child(3) { font-size: 3em; }
    .grid { display: block; }
    .grid-3 { font-size: 4em; display: block; margin-bottom: 100px; }
}

/* === ANIMATIONS (unchanged) === */
.autoRotate {
    animation: autoRotateAnimation;
    animation-timeline: view();
}
@keyframes autoRotateAnimation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.autoShow {
    animation: autoShowAnimation both;
    animation-timeline: view(70% 5%);
}
@keyframes autoShowAnimation {
    from {
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.autoBLur {
    animation: autoBLurAnimation linear both;
    animation-timeline: view();
}
@keyframes autoBLurAnimation {
    0% { filter: blur(40px); }
    45%, 55% { filter: blur(0px); }
    100% { filter: blur(40px); }
}
