/* ronri.xyz - Memphis Bento-Box with Honeyed Crystalline Aesthetic */

:root {
    --bg-primary: #F5EFE6;
    --bg-alt: #EDE3D3;
    --accent-warm: #C4A265;
    --accent-deep: #8B6914;
    --text-primary: #3A3226;
    --text-secondary: #7D7060;
    --crystal-highlight: #E8DFD0;
    --memphis-accent: #B87D5B;
    --cell-border: #C4A882;
    --gap: 3px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ============================================
   COMPOSITION SECTIONS
   ============================================ */

.composition {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* ============================================
   BENTO GRID SYSTEM
   ============================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
}

/* ============================================
   BENTO CELLS - BASE
   ============================================ */

.bento-cell {
    border: 1px solid var(--cell-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.bento-cell.in-view {
    opacity: 1;
    transform: scale(1);
}

.bento-cell[data-blur="true"]::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   COMPOSITION 1 - HERO BENTO LAYOUT
   ============================================ */

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

.bento-grid-1 .hero-cell {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
    background-color: var(--bg-primary);
    flex-direction: column;
}

.bento-grid-1 .memphis-cell-1 {
    grid-column: 7 / 10;
    grid-row: 1 / 2;
    background-color: var(--bg-alt);
}

.bento-grid-1 .nature-cell-1 {
    grid-column: 10 / 13;
    grid-row: 1 / 3;
    background-color: var(--bg-primary);
}

.bento-grid-1 .crystal-cell-1 {
    grid-column: 7 / 10;
    grid-row: 2 / 3;
    background-color: var(--crystal-highlight);
}

.bento-grid-1 .tagline-cell {
    grid-column: 1 / 7;
    grid-row: 3 / 5;
    background-color: var(--bg-alt);
    flex-direction: column;
    padding: 32px;
}

.bento-grid-1 .memphis-cell-2 {
    grid-column: 7 / 13;
    grid-row: 3 / 5;
    background-color: var(--bg-primary);
}

/* ============================================
   COMPOSITION 2 - CONTENT BENTO LAYOUT
   ============================================ */

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

.bento-grid-2 .text-cell-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
}

.bento-grid-2 .honeycomb-cell {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    background-color: var(--bg-alt);
}

.bento-grid-2 .quote-cell {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
    background-color: var(--crystal-highlight);
    padding: 24px;
}

.bento-grid-2 .crystal-divider-cell {
    grid-column: 5 / 9;
    grid-row: 3 / 4;
    background-color: var(--bg-primary);
}

.bento-grid-2 .text-cell-2 {
    grid-column: 9 / 13;
    grid-row: 3 / 5;
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.bento-grid-2 .memphis-cell-3 {
    grid-column: 1 / 9;
    grid-row: 4 / 5;
    background-color: var(--bg-alt);
}

/* ============================================
   COMPOSITION 3 - CLOSING BENTO LAYOUT
   ============================================ */

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

.bento-grid-3 .closing-cell {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
    background-color: var(--bg-primary);
    padding: 48px;
}

.bento-grid-3 .leaf-cell {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
    background-color: var(--bg-alt);
}

.bento-grid-3 .crystal-cluster-cell {
    grid-column: 9 / 13;
    grid-row: 2 / 3;
    background-color: var(--crystal-highlight);
}

.bento-grid-3 .confetti-cell {
    grid-column: 1 / 7;
    grid-row: 3 / 5;
    background-color: var(--bg-alt);
}

.bento-grid-3 .signature-cell {
    grid-column: 7 / 10;
    grid-row: 3 / 5;
    background-color: var(--bg-primary);
    flex-direction: column;
}

.bento-grid-3 .accent-cell {
    grid-column: 10 / 13;
    grid-row: 3 / 5;
    background-color: var(--bg-alt);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.site-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: 0.02em;
    color: var(--accent-deep);
    position: relative;
    z-index: 1;
    text-align: center;
}

.letter {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    animation: letterReveal 1.5s ease-out forwards;
    animation-delay: calc(var(--i) * 100ms + 300ms);
}

@keyframes letterReveal {
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.tagline-label {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tagline-body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-primary);
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: 0.02em;
    color: var(--accent-deep);
    margin-bottom: 20px;
}

.subsection-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: 0.02em;
    color: var(--accent-deep);
    margin-bottom: 12px;
}

.body-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-primary);
}

.pull-quote {
    position: relative;
    z-index: 1;
}

.pull-quote p {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.6;
    color: var(--accent-deep);
}

.closing-statement {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.4;
    color: var(--accent-deep);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.signature-label {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-deep);
    letter-spacing: 0.02em;
}

.signature-sub {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ============================================
   CRYSTAL HERO SVG
   ============================================ */

.crystal-svg-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-hero {
    width: 70%;
    height: 70%;
    animation: crystalRotate 60s linear infinite;
}

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

/* ============================================
   CRYSTAL SHAPES
   ============================================ */

.crystal-shape {
    position: absolute;
}

.crystal-hexagon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-warm);
    opacity: 0.15;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 20%;
    left: 25%;
    transform: rotate(15deg);
}

.crystal-rhombus {
    width: 45px;
    height: 70px;
    background-color: var(--accent-deep);
    opacity: 0.1;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    bottom: 20%;
    right: 20%;
    transform: rotate(-20deg);
}

/* Crystal Divider Row */
.crystal-divider {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.crystal-small {
    width: 14px;
    height: 14px;
    background-color: var(--accent-warm);
    opacity: 0.35;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.crystal-small:nth-child(odd) {
    transform: rotate(30deg);
    opacity: 0.25;
}

/* Crystal Cluster */
.crystal-cluster {
    position: relative;
    width: 100%;
    height: 100%;
}

.cluster-crystal {
    position: absolute;
    background-color: var(--accent-warm);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cluster-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 30%;
    opacity: 0.2;
    transform: rotate(10deg);
}

.cluster-2 {
    width: 55px;
    height: 55px;
    top: 35%;
    left: 50%;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.cluster-3 {
    width: 30px;
    height: 30px;
    top: 55%;
    left: 25%;
    opacity: 0.25;
    transform: rotate(25deg);
    background-color: var(--accent-deep);
}

.cluster-4 {
    width: 20px;
    height: 20px;
    top: 30%;
    left: 70%;
    opacity: 0.18;
    transform: rotate(-8deg);
}

/* ============================================
   MEMPHIS SHAPES
   ============================================ */

.memphis-triangle {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid var(--memphis-accent);
    opacity: 0.35;
    position: absolute;
    top: 20%;
    left: 20%;
    transform: rotate(12deg);
}

.memphis-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-warm);
    opacity: 0.25;
    position: absolute;
    bottom: 25%;
    right: 20%;
}

.memphis-zigzag {
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 80px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        var(--memphis-accent) 8px,
        var(--memphis-accent) 10px
    );
    opacity: 0.3;
    transform: rotate(-5deg);
}

.memphis-spotted-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-warm);
    opacity: 0.3;
    position: absolute;
    top: 25%;
    left: 30%;
    background: radial-gradient(circle 4px at 25% 30%, var(--memphis-accent) 50%, transparent 50%),
                radial-gradient(circle 4px at 65% 20%, var(--memphis-accent) 50%, transparent 50%),
                radial-gradient(circle 4px at 45% 60%, var(--memphis-accent) 50%, transparent 50%),
                radial-gradient(circle 4px at 75% 70%, var(--memphis-accent) 50%, transparent 50%),
                radial-gradient(circle 4px at 20% 75%, var(--memphis-accent) 50%, transparent 50%);
}

.memphis-small-squares {
    position: absolute;
    bottom: 20%;
    right: 25%;
}

.memphis-small-squares::before,
.memphis-small-squares::after {
    content: '';
    position: absolute;
    background-color: var(--accent-warm);
    opacity: 0.3;
}

.memphis-small-squares::before {
    width: 12px;
    height: 12px;
    transform: rotate(15deg);
    top: 0;
    left: 0;
}

.memphis-small-squares::after {
    width: 8px;
    height: 8px;
    transform: rotate(-10deg);
    top: 20px;
    left: 18px;
}

.memphis-stacked-triangles {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
}

.memphis-stacked-triangles::before,
.memphis-stacked-triangles::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

.memphis-stacked-triangles::before {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid var(--memphis-accent);
    opacity: 0.3;
    top: -30px;
    left: 0;
}

.memphis-stacked-triangles::after {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--accent-warm);
    opacity: 0.25;
    top: 20px;
    left: 5px;
}

.memphis-semicircle {
    width: 80px;
    height: 40px;
    background-color: var(--memphis-accent);
    border-radius: 80px 80px 0 0;
    opacity: 0.25;
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
}

/* Confetti Groups */
.memphis-confetti-group {
    position: absolute;
    inset: 0;
}

.confetti-square {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-warm);
    opacity: 0.35;
    left: var(--cx);
    top: var(--cy);
    transform: rotate(25deg);
    animation: confettiDrift 8s ease-in-out infinite;
    animation-delay: var(--cd);
}

.confetti-square:nth-child(even) {
    background-color: var(--memphis-accent);
    opacity: 0.3;
}

@keyframes confettiDrift {
    0%, 100% { transform: rotate(25deg) translateY(0); }
    50% { transform: rotate(25deg) translateY(12px); }
}

/* ============================================
   CONFETTI DRIFT (Composition 3)
   ============================================ */

.confetti-drift {
    position: absolute;
    inset: 0;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    left: var(--dx);
    top: var(--dy);
    animation: drift var(--dur) ease-in-out infinite;
    animation-delay: var(--dd);
}

.confetti-piece:nth-child(odd) {
    background-color: var(--accent-warm);
    opacity: 0.35;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.confetti-piece:nth-child(even) {
    background-color: var(--memphis-accent);
    opacity: 0.3;
    border-radius: 50%;
}

.confetti-piece:nth-child(3n) {
    width: 8px;
    height: 8px;
    background-color: var(--accent-deep);
    opacity: 0.2;
    clip-path: none;
    border-radius: 0;
    transform: rotate(30deg);
}

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(15deg); }
}

/* ============================================
   NATURE SVG ELEMENTS
   ============================================ */

.wheat-stalk {
    width: 60%;
    height: 80%;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.leaf-svg {
    width: 70%;
    height: 85%;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

/* Honeycomb */
.honeycomb-cell {
    position: relative;
}

.honeycomb-svg {
    width: 85%;
    height: 85%;
    position: relative;
    z-index: 1;
    animation: honeycombPulse 4s ease-in-out infinite;
}

@keyframes honeycombPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================
   BLUR-FOCUS SYSTEM
   ============================================ */

.bento-cell .blur-target {
    filter: blur(4px);
    transition: filter 800ms ease-out;
}

.bento-cell.focused .blur-target {
    filter: blur(0);
}

/* Background decorative elements blur */
.bento-cell .memphis-triangle,
.bento-cell .memphis-circle,
.bento-cell .memphis-zigzag,
.bento-cell .memphis-spotted-circle,
.bento-cell .memphis-small-squares,
.bento-cell .memphis-stacked-triangles,
.bento-cell .memphis-semicircle,
.bento-cell .crystal-hexagon,
.bento-cell .crystal-rhombus {
    filter: blur(4px);
    transition: filter 800ms ease-out;
}

.bento-cell.focused .memphis-triangle,
.bento-cell.focused .memphis-circle,
.bento-cell.focused .memphis-zigzag,
.bento-cell.focused .memphis-spotted-circle,
.bento-cell.focused .memphis-small-squares,
.bento-cell.focused .memphis-stacked-triangles,
.bento-cell.focused .memphis-semicircle,
.bento-cell.focused .crystal-hexagon,
.bento-cell.focused .crystal-rhombus {
    filter: blur(0);
}

/* ============================================
   NAVIGATION CIRCLE
   ============================================ */

.nav-circle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-warm);
    opacity: 0.7;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 400ms ease-out, height 400ms ease-out, border-radius 400ms ease-out, opacity 300ms ease;
    overflow: hidden;
}

.nav-circle:hover,
.nav-circle.expanded {
    opacity: 1;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    transition: opacity 200ms ease;
}

.nav-circle.expanded .nav-dot {
    opacity: 0;
    position: absolute;
}

.nav-items {
    display: none;
    gap: 0;
    position: absolute;
}

.nav-circle.expanded {
    width: 140px;
    height: 44px;
    border-radius: 22px;
}

.nav-circle.expanded .nav-items {
    display: flex;
    gap: 12px;
}

.nav-item {
    font-family: 'Playfair Display SC', serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--bg-primary);
    text-decoration: none;
    padding: 4px 8px;
    transition: color 200ms ease;
}

.nav-item:hover {
    color: var(--crystal-highlight);
}

/* ============================================
   INTERACTIVE STATES - CRYSTALLIZE HOVER
   ============================================ */

.bento-cell {
    transition: opacity 600ms ease-out, transform 600ms ease-out, box-shadow 400ms ease;
}

.bento-cell:hover {
    box-shadow:
        inset 0 0 0 1px var(--accent-warm),
        0 0 20px rgba(196, 162, 101, 0.08);
}

/* ============================================
   MOBILE RESPONSIVE - Single Column Stack
   ============================================ */

@media (max-width: 768px) {
    .composition {
        height: auto;
        min-height: 100vh;
        padding: 12px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .bento-grid-1 .hero-cell,
    .bento-grid-1 .memphis-cell-1,
    .bento-grid-1 .nature-cell-1,
    .bento-grid-1 .crystal-cell-1,
    .bento-grid-1 .tagline-cell,
    .bento-grid-1 .memphis-cell-2 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .bento-grid-2 .text-cell-1,
    .bento-grid-2 .honeycomb-cell,
    .bento-grid-2 .quote-cell,
    .bento-grid-2 .crystal-divider-cell,
    .bento-grid-2 .text-cell-2,
    .bento-grid-2 .memphis-cell-3 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .bento-grid-3 .closing-cell,
    .bento-grid-3 .leaf-cell,
    .bento-grid-3 .crystal-cluster-cell,
    .bento-grid-3 .confetti-cell,
    .bento-grid-3 .signature-cell,
    .bento-grid-3 .accent-cell {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .bento-cell {
        min-height: 200px;
    }

    .bento-grid-1 .hero-cell {
        min-height: 300px;
    }

    .bento-grid-3 .closing-cell {
        min-height: 250px;
    }

    .nav-circle {
        bottom: 20px;
        right: 20px;
    }
}
