/* ============================================================
   HHUDDL.com - Bauhaus Aquarium Bento Grid
   Colors: #1E1E1E, #8B9A7E, #A0522D, #2B2B2B, #C4A882,
           #F5F0E8, #C49B2A, #E8D5B7, #D4763A, #1A6B5A
   Fonts: Bebas Neue, Space Grotesk, DM Sans
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #2B2B2B;
    background-color: #C4A882;
    overflow-x: hidden;
}

/* Paper grain texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* --- Navigation Dots --- */
#nav-dots {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    transition: width 250ms ease;
    text-decoration: none;
    cursor: pointer;
    padding-right: 0;
}

.nav-dot--sienna {
    background-color: #D4763A;
}

.nav-dot--ochre {
    background-color: #C49B2A;
}

.nav-dot--charcoal {
    background-color: #2B2B2B;
}

.nav-dot__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #F5F0E8;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 200ms ease 150ms;
    padding: 0 8px 0 6px;
}

.nav-dot:hover {
    width: auto;
    min-width: 80px;
    padding-right: 0;
}

.nav-dot:hover .nav-dot__label {
    opacity: 1;
}

/* --- Bento Grid Base --- */
.bento-grid {
    display: grid;
    gap: 4px;
    background-color: #C4A882;
}

/* --- Hero Bento Cluster --- */
.bento-grid--hero {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, minmax(150px, auto));
    min-height: 80vh;
}

.bento-cell {
    overflow: hidden;
    position: relative;
    will-change: transform;
    transition: transform 300ms ease-out;
}

/* Scroll reveal initial state */
.bento-cell.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: calc(var(--delay, 0) * 80ms);
}

.bento-cell.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero cells */
.bento-cell--reef {
    grid-column: 1 / 4;
    grid-row: 1 / 4;
    background-color: #1A6B5A;
}

.reef-photo {
    width: 100%;
    height: 100%;
}

.reef-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-cell--title {
    grid-column: 4 / 7;
    grid-row: 1 / 2;
    background-color: #E8D5B7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 40px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 6vw, 100px);
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: #2B2B2B;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 22px);
    color: #A0522D;
    margin-top: 8px;
}

.bento-cell--circle {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    background-color: #E8D5B7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bauhaus-circle {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 180px;
}

.bento-cell--intro {
    grid-column: 5 / 7;
    grid-row: 2 / 4;
    background-color: #F5F0E8;
    padding: 32px;
    display: flex;
    align-items: center;
}

.intro-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2B2B2B;
}

.bento-cell--accent1 {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
    background-color: #8B9A7E;
    position: relative;
    overflow: hidden;
}

.dot-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #C49B2A 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.3;
}

.bento-cell--accent2 {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
    background-color: #2B2B2B;
    display: none;
}

/* Re-show on wider screens if we have room - in 6-col, this cell overlaps intro. Let's use it differently. */
/* Actually the 6-col layout accounts for all cells. Let me remap. */
/* The accent2 cell at col 5/6 row 2/3 would overlap with intro at col 5/7 row 2/4.
   Let's remove accent2 from grid and use alternate placement. */

.label-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #F5F0E8;
    display: block;
    text-align: center;
    padding-top: 24px;
    letter-spacing: -0.02em;
}

.label-text--sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding-top: 4px;
}

/* --- Species Gallery --- */
.bento-grid--species {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(250px, 1fr);
}

.bento-cell--fish {
    background-color: #1E1E1E;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fish-photo {
    flex: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fish-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #F5F0E8;
    padding: 12px 0;
    text-transform: uppercase;
}

.bento-cell--fish:hover .fish-label {
    color: #C49B2A;
}

/* --- Story Ribbon --- */
.story-ribbon {
    background-color: #1E1E1E;
    overflow: hidden;
    padding: 24px 0;
    width: 100%;
}

.ribbon-track {
    display: flex;
    white-space: nowrap;
    animation: ribbonScroll 20s linear infinite;
}

.ribbon-text {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(60px, 10vw, 200px);
    letter-spacing: -0.02em;
    color: #F5F0E8;
    opacity: 0.6;
    padding-right: 40px;
    display: inline-block;
}

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

.story-ribbon:hover .ribbon-text {
    color: #D4763A;
    opacity: 1;
}

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

/* --- Feature Bento --- */
.bento-grid--features {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, minmax(200px, auto));
}

.bento-cell--story {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    background-color: #F5F0E8;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 72px);
    letter-spacing: -0.02em;
    color: #2B2B2B;
    line-height: 1;
    margin-bottom: 8px;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2B2B2B;
}

.bento-cell--clownfish {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
    background-color: #1E1E1E;
}

.feature-fish-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bento-cell--bauhaus {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    background-color: #E8D5B7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bauhaus-composition {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 280px;
}

.bento-cell--swim {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
    background-color: #1A6B5A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.swim-container {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
}

/* CSS-only geometric fish */
.css-fish {
    position: absolute;
    width: 60px;
    height: 30px;
    animation: fishSwim 12s ease-in-out infinite;
}

.css-fish__body {
    position: absolute;
    width: 40px;
    height: 24px;
    background-color: #C49B2A;
    border-radius: 50%;
    top: 3px;
    left: 14px;
}

.css-fish__tail {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #D4763A;
    top: 7px;
    left: 0;
    transform: rotate(45deg);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.css-fish__eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #1E1E1E;
    border-radius: 50%;
    top: 9px;
    left: 42px;
}

.css-fish__fin {
    position: absolute;
    width: 14px;
    height: 8px;
    background-color: #A0522D;
    border-radius: 50% 50% 0 0;
    top: -2px;
    left: 24px;
    opacity: 0.7;
}

@keyframes fishSwim {
    0% {
        left: -80px;
        top: 50%;
        transform: translateY(-50%);
    }
    15% {
        top: 30%;
        transform: translateY(-50%);
    }
    30% {
        top: 60%;
        transform: translateY(-50%);
    }
    50% {
        left: 50%;
        top: 40%;
        transform: translateY(-50%);
    }
    65% {
        top: 65%;
        transform: translateY(-50%);
    }
    80% {
        top: 35%;
        transform: translateY(-50%);
    }
    100% {
        left: calc(100% + 80px);
        top: 50%;
        transform: translateY(-50%);
    }
}

.swim-label {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 36px;
    letter-spacing: -0.02em;
    color: #F5F0E8;
    z-index: 1;
    margin-top: 8px;
}

.bento-cell--quote {
    grid-column: 5 / 7;
    grid-row: 3 / 4;
    background-color: #A0522D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.pull-quote {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: #F5F0E8;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: #C49B2A;
    line-height: 0;
    vertical-align: middle;
}

.bento-cell--teal {
    grid-column: 5 / 7;
    grid-row: 3 / 4;
    background-color: #1A6B5A;
    display: none;
}

.geometric-lines svg {
    width: 100%;
    height: 100%;
}

/* Select cells with accent borders */
.bento-cell--circle {
    border: 2px solid #D4763A;
}

.bento-cell--story {
    border: 2px solid #1A6B5A;
}

.bento-cell--quote {
    border: 2px solid #C49B2A;
}

/* --- Footer --- */
.site-footer {
    background-color: #1E1E1E;
    padding: 32px 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: #F5F0E8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #F5F0E8;
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-link:hover {
    color: #D4763A;
}

.footer-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #8B9A7E;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .bento-grid--hero {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }

    .bento-cell--reef {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .bento-cell--title {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .bento-cell--circle {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .bento-cell--intro {
        grid-column: 4 / 5;
        grid-row: 2 / 3;
    }

    .bento-cell--accent1 {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    .bento-grid--species {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-grid--features {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-cell--story {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .bento-cell--clownfish {
        grid-column: 3 / 5;
        grid-row: 1 / 3;
    }

    .bento-cell--bauhaus {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .bento-cell--swim {
        grid-column: 2 / 4;
        grid-row: 3 / 4;
    }

    .bento-cell--quote {
        grid-column: 4 / 5;
        grid-row: 3 / 4;
    }
}

@media (max-width: 768px) {
    .bento-grid--hero {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-cell--reef {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        min-height: 250px;
    }

    .bento-cell--title {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        padding: 24px;
    }

    .bento-cell--circle {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        min-height: 150px;
    }

    .bento-cell--intro {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        padding: 20px;
    }

    .bento-cell--accent1 {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
        min-height: 60px;
    }

    .bento-grid--species {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, 1fr);
    }

    .bento-grid--features {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-cell--story {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        padding: 32px 24px;
    }

    .bento-cell--clownfish {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        min-height: 300px;
    }

    .bento-cell--bauhaus {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .bento-cell--swim {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .bento-cell--quote {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ribbon-text {
        font-size: 60px;
    }

    #nav-dots {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .bento-grid--species {
        grid-template-columns: 1fr 1fr;
    }
}
