:root {
    /* Compliance language: Interaction (0% Pattern* Pattern: Pattern:** Interactive cells* cells: cells:** Respond shake-error pattern lateral (3-4px Intersection Observer (threshold: */
    --background-primary: #FAF4EB;
    --surface: #F5EDE0;
    --text-primary: #3D2B1A;
    --text-body: #5C4A37;
    --text-muted: #8B7355;
    --accent-warm: #C4A882;
    --accent-deep: #6B5744;
    --bubble-tint: #D4C4A8;
    --error-shake: #A0522D;
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' seed='17'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' fill='%23000' filter='url(%23grain)'/%3E%3C/svg%3E");
}

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

html {
    background: var(--background-primary);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background-primary);
    color: var(--text-body);
    font-family: "Nunito", sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--grain);
    background-size: 180px 180px;
    opacity: 0.05;
    mix-blend-mode: multiply;
}

.page-shell {
    width: 100%;
}

.bento-tray {
    width: 100vw;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 3rem);
    position: relative;
}

.tray-arrival {
    animation: tray-arrive 1.2s ease forwards;
}

.bento-grid {
    width: min(100%, 1440px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(132px, auto);
    gap: 16px;
}

.arrival-grid,
.closing-grid {
    min-height: 72vh;
}

.identity-grid {
    grid-auto-rows: minmax(154px, auto);
}

.philosophy-grid {
    min-height: 62vh;
    align-items: stretch;
}

.texture-grid {
    grid-auto-rows: minmax(170px, auto);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.row-3 { grid-row: span 3; }
.row-2 { grid-row: span 2; }
.row-1 { grid-row: span 1; }

.bento-cell {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 24px;
    border: 1px solid rgba(196, 168, 130, 0.3);
    border-radius: 12px;
    background: var(--surface);
    opacity: 0;
    transform: scale(0.95);
    will-change: transform, opacity;
}

.bento-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--grain);
    background-size: 150px 150px;
    opacity: 0.045;
    mix-blend-mode: multiply;
}

.bento-cell > * {
    position: relative;
    z-index: 1;
}

.bento-cell.is-visible {
    animation: cell-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bento-cell.is-shaking {
    animation: shake 0.3s ease-in-out;
    border-color: rgba(160, 82, 45, 0.45);
}

.hero-cell,
.bubble-cell,
.tagline-cell,
.accent-cell,
.texture-cell,
.small-bubble-cell,
.repeat-cell,
.final-mark-cell {
    align-items: center;
    text-align: center;
}

.story-cell,
.closing-copy,
.note-cell {
    align-items: flex-start;
    text-align: left;
}

.hero-cell h1 {
    color: var(--text-primary);
    font-family: "Quicksand", sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h2 {
    max-width: 12ch;
    color: var(--text-primary);
    font-family: "Quicksand", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p {
    max-width: 58ch;
    color: var(--text-body);
    font-family: "Nunito", sans-serif;
    font-weight: 400;
}

.tagline {
    max-width: 18ch;
    font-style: italic;
}

.cell-label {
    color: var(--text-muted);
    font-family: "Quicksand", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accent-cell {
    background: var(--accent-deep);
    border-color: rgba(107, 87, 68, 0.5);
}

.accent-text,
.texture-word {
    max-width: none;
    color: rgba(61, 43, 26, 0.8);
    font-family: "Baloo 2", sans-serif;
    font-weight: 600;
    line-height: 0.95;
}

.accent-text {
    color: var(--surface);
    font-size: clamp(3rem, 8vw, 6rem);
}

.texture-word {
    color: rgba(61, 43, 26, 0.8);
    font-size: clamp(4rem, 12vw, 8rem);
}

.grain-heavy::before { opacity: 0.06; }
.grain-dense::before { opacity: 0.08; }

.texture-cell {
    min-height: 45vh;
    background: var(--surface);
}

.brand-pill {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 20;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 0 18px;
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 20px;
    background: #F5EDE0;
    color: var(--text-muted);
    font-family: "Quicksand", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 30px rgba(61, 43, 26, 0.1);
}

.tray-separator {
    height: 48px;
    margin: 0 clamp(1rem, 3vw, 3rem);
    background-image: repeating-linear-gradient(90deg, rgba(139, 115, 85, 0.15) 0 10px, transparent 10px 22px);
    background-position: center;
    background-repeat: repeat-x;
    background-size: auto 1px;
}

.bubble-cluster {
    position: relative;
    width: 100%;
    min-height: 100%;
    aspect-ratio: 1.25 / 1;
}

.bubble,
.bubble-single {
    position: absolute;
    display: block;
    border: 1px solid rgba(196, 168, 130, 0.5);
    border-radius: 50%;
    background: rgba(212, 196, 168, 0.32);
    box-shadow: inset 0 -2px 4px rgba(107, 87, 68, 0.1);
}

.bubble {
    animation: bubble-drift var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.b1 { width: 64px; height: 64px; left: 46%; top: 24%; --duration: 7s; --delay: 0s; }
.b2 { width: 38px; height: 38px; left: 22%; top: 38%; --duration: 5s; --delay: .8s; }
.b3 { width: 50px; height: 50px; right: 18%; top: 46%; --duration: 8s; --delay: 1.4s; }
.b4 { width: 22px; height: 22px; left: 37%; bottom: 18%; --duration: 4.5s; --delay: 2s; }
.b5 { width: 44px; height: 44px; right: 34%; bottom: 24%; --duration: 6.5s; --delay: 2.7s; }
.b6 { width: 16px; height: 16px; left: 61%; top: 12%; --duration: 5.7s; --delay: 1.1s; }
.b7 { width: 30px; height: 30px; left: 15%; top: 16%; --duration: 7.4s; --delay: .4s; }
.b8 { width: 12px; height: 12px; right: 12%; bottom: 12%; --duration: 4s; --delay: 3s; }
.b9 { width: 34px; height: 34px; left: 26%; top: 30%; --duration: 5.2s; --delay: .2s; }
.b10 { width: 18px; height: 18px; left: 48%; top: 22%; --duration: 6s; --delay: 1.5s; }
.b11 { width: 44px; height: 44px; right: 22%; bottom: 25%; --duration: 7s; --delay: 2.3s; }
.b12 { width: 24px; height: 24px; left: 34%; bottom: 17%; --duration: 4.7s; --delay: .9s; }
.b13 { width: 12px; height: 12px; right: 34%; top: 18%; --duration: 5.8s; --delay: 2.8s; }

.small-bubble-cell {
    min-height: 220px;
}

.bubble-single {
    position: relative;
    width: clamp(70px, 9vw, 118px);
    height: clamp(70px, 9vw, 118px);
    transform: scale(0);
    opacity: 0;
}

.small-bubble-cell.bubble-grown .bubble-single {
    animation: bubble-grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.s-two { background: rgba(212, 196, 168, 0.24); }
.s-three { background: rgba(212, 196, 168, 0.4); }

.geometric-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100%;
}

.geo {
    display: block;
    animation: rotate-shape 20s linear infinite;
}

.geo-circle,
.geo-dot {
    border-radius: 50%;
    background: var(--accent-warm);
}

.geo-circle { width: 46px; height: 46px; }
.geo-dot { width: 14px; height: 14px; background: var(--accent-deep); animation-direction: reverse; }

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 23px solid transparent;
    border-right: 23px solid transparent;
    border-bottom: 40px solid var(--accent-deep);
    background: transparent;
    animation-direction: reverse;
}

.geo-rectangle {
    width: 54px;
    height: 18px;
    border-radius: 10px;
    background: var(--accent-warm);
}

.geo-triangle-down {
    width: 0;
    height: 0;
    border-left: 46px solid transparent;
    border-right: 46px solid transparent;
    border-top: 78px solid var(--accent-warm);
    animation: rotate-shape 20s linear infinite;
}

.line-mark {
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-warm);
}

.philosophy-cell {
    min-height: 52vh;
    align-items: flex-start;
    justify-content: space-between;
}

.philosophy-cell:nth-child(odd) { background: #FAF4EB; }
.philosophy-cell:nth-child(even) { background: #F5EDE0; }
.philosophy-cell.is-visible { animation-name: cell-enter, shake; animation-duration: 0.5s, 0.3s; animation-delay: var(--enter-delay, 0s), calc(var(--enter-delay, 0s) + 0.52s); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), ease-in-out; animation-fill-mode: forwards, none; }
.philosophy-cell p { font-family: "Quicksand", sans-serif; font-weight: 500; line-height: 1.16; color: var(--text-primary); }
.p-one { grid-column: span 2; }
.p-two { grid-column: span 2; }
.p-three { grid-column: span 3; }
.p-four { grid-column: span 2; }
.p-five { grid-column: span 3; }
.p-one p { font-size: clamp(1.1rem, 2vw, 1.65rem); }
.p-two p { font-size: clamp(1rem, 1.7vw, 1.3rem); }
.p-three p { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.p-four p { font-size: clamp(1.05rem, 1.9vw, 1.5rem); }
.p-five p { font-size: clamp(1.25rem, 2.3vw, 1.85rem); }

.domain-repeat {
    max-width: none;
    color: var(--text-muted);
    font-family: "Quicksand", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.8;
    text-transform: uppercase;
}

@keyframes tray-arrive {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cell-enter {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@keyframes bubble-drift {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-8px) scale(1.02); }
    66% { transform: translateY(4px) scale(0.98); }
}

@keyframes bubble-grow {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotate-shape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (hover: hover) {
    .bento-cell:hover {
        animation: shake 0.3s ease-in-out;
        border-color: rgba(160, 82, 45, 0.45);
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .span-12,
    .span-8,
    .span-7,
    .span-4,
    .span-3,
    .span-2,
    .p-one,
    .p-two,
    .p-three,
    .p-four,
    .p-five {
        grid-column: 1 / -1;
    }

    .row-3,
    .row-2,
    .row-1 {
        grid-row: auto;
    }

    .bento-tray {
        min-height: auto;
        padding: 1rem;
    }

    .bento-cell {
        min-height: 210px;
        padding: 22px;
    }

    .hero-cell { min-height: 58vh; }
    .philosophy-cell { min-height: 210px; }
    .texture-word { font-size: clamp(3.2rem, 16vw, 6rem); }
    .brand-pill { right: 1rem; bottom: 1rem; }
}
