/* ================================================
   senggack.xyz — Frutiger Aero × Philosophical Rebellion
   ================================================ */

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

:root {
    --warm-linen: #f4ede3;
    --sage-mist: #e8ede4;
    --terracotta: #c47a52;
    --marble-vein: #8a8078;
    --espresso: #3d2e1f;
    --raw-umber: #6b5442;
    --gloss-white: rgba(255, 255, 255, 0.85);
    --skeleton-base: #d4cdc4;
    --skeleton-highlight: #e4ddd4;
    --cell-radius: 12px;
    --cell-gap: 8px;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--espresso);
    background: var(--warm-linen);
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Archivo', 'DM Sans', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: clamp(24px, 4vw, 48px);
}

h3 {
    font-size: clamp(20px, 3vw, 32px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--warm-linen) 0%, var(--sage-mist) 100%);
    overflow: hidden;
    opacity: 0;
    animation: heroFadeIn 400ms ease-out forwards;
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

/* Decorative bubbles */
.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.3);
    animation: bubbleFloat 8s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Hero frosted-glass card */
.hero-card {
    position: relative;
    z-index: 2;
    background: var(--gloss-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: var(--shadow-medium), 0 0 60px rgba(255,255,255,0.3);
    opacity: 0;
    transform: scale(0.9);
    animation: cardReveal 800ms ease-out 400ms forwards;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 8vw, 96px);
    color: var(--espresso);
    letter-spacing: 0.3em;
    animation: titleLetterSpace 800ms ease-out 400ms forwards;
}

@keyframes titleLetterSpace {
    to { letter-spacing: 0.05em; }
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--raw-umber);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    margin-top: 16px;
    opacity: 0;
    animation: subtitleFade 600ms ease-out 1200ms forwards;
}

@keyframes subtitleFade {
    to { opacity: 1; }
}

/* ================================================
   BENTO GRID SECTION
   ================================================ */
.bento-section {
    padding: 60px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--cell-gap);
    grid-auto-rows: minmax(120px, auto);
}

/* --- Cell sizing --- */
.cell-1  { grid-column: span 8; grid-row: span 2; }
.cell-2  { grid-column: span 4; grid-row: span 2; }
.cell-3  { grid-column: span 3; grid-row: span 1; }
.cell-4  { grid-column: span 3; grid-row: span 1; }
.cell-5  { grid-column: span 6; grid-row: span 2; }
.cell-6  { grid-column: span 12; grid-row: span 1; }
.cell-7  { grid-column: span 4; grid-row: span 3; }
.cell-8  { grid-column: span 4; grid-row: span 2; }
.cell-9  { grid-column: span 4; grid-row: span 1; }
.cell-10 { grid-column: span 8; grid-row: span 2; }
.cell-11 { grid-column: span 4; grid-row: span 1; }
.cell-12 { grid-column: span 4; grid-row: span 2; }
.cell-13 { grid-column: span 12; grid-row: span 2; }

/* --- Bento Cell Base --- */
.bento-cell {
    position: relative;
    border-radius: var(--cell-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 140px;
}

.bento-cell--large  { min-height: 320px; }
.bento-cell--medium { min-height: 240px; }
.bento-cell--tall   { min-height: 380px; }
.bento-cell--wide   { min-height: 180px; }
.bento-cell--small  { min-height: 140px; }

/* --- Skeleton Loading --- */
.skeleton-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-highlight) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--cell-radius);
    transition: opacity 400ms ease, transform 400ms ease;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bento-cell.revealed .skeleton-layer {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

/* --- Cell Content --- */
.cell-content {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.bento-cell.revealed .cell-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- Cell Backgrounds --- */
.cell-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cell-bg--marble {
    background:
        linear-gradient(135deg, rgba(244,237,227,0.85) 0%, rgba(218,210,200,0.7) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(138,128,120,0.08) 40px,
            rgba(138,128,120,0.08) 42px
        ),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 60px,
            rgba(138,128,120,0.05) 60px,
            rgba(138,128,120,0.05) 61px
        );
    background-color: #ede7dd;
}

.cell-bg--marble-dark {
    background:
        linear-gradient(135deg, rgba(232,225,215,0.9) 0%, rgba(200,193,183,0.85) 100%),
        repeating-linear-gradient(
            50deg,
            transparent,
            transparent 35px,
            rgba(138,128,120,0.12) 35px,
            rgba(138,128,120,0.12) 37px
        ),
        repeating-linear-gradient(
            -25deg,
            transparent,
            transparent 55px,
            rgba(138,128,120,0.06) 55px,
            rgba(138,128,120,0.06) 56px
        );
    background-color: #ddd7cd;
}

.cell-bg--terracotta {
    background: linear-gradient(160deg, var(--terracotta), #b36a42);
}

.cell-bg--sage {
    background: linear-gradient(160deg, var(--sage-mist), #d8e3d4);
}

.cell-bg--sage-light {
    background: linear-gradient(160deg, #edf2ea, var(--sage-mist));
}

.cell-bg--cream {
    background: var(--gloss-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
}

.cell-bg--white-glass {
    background: var(--gloss-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
}

.cell-bg--espresso {
    background: linear-gradient(160deg, var(--espresso), #2a1f14);
}

/* Vintage photo backgrounds using CSS gradients to simulate warm sepia tones */
.cell-bg--vintage-library {
    background:
        linear-gradient(180deg, rgba(107,84,66,0.3) 0%, rgba(61,46,31,0.7) 100%),
        linear-gradient(135deg, #a89078 0%, #8a7060 30%, #7a6050 60%, #6a5040 100%);
    background-color: #8a7060;
}

.cell-bg--vintage-thinker {
    background:
        linear-gradient(180deg, rgba(107,84,66,0.2) 0%, rgba(61,46,31,0.75) 100%),
        linear-gradient(160deg, #9a8878 0%, #887060 40%, #786050 70%, #685040 100%);
    background-color: #887060;
}

.cell-bg--vintage-protest {
    background:
        linear-gradient(180deg, rgba(107,84,66,0.15) 0%, rgba(61,46,31,0.7) 100%),
        linear-gradient(145deg, #b09888 0%, #988070 30%, #887060 60%, #786858 100%);
    background-color: #988070;
}

/* --- Glossy Overlay (Frutiger Aero) --- */
.glossy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 1;
}

/* --- Cell Inner Content --- */
.cell-inner {
    position: relative;
    z-index: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.cell-inner--overlay {
    background: linear-gradient(180deg, rgba(61,46,31,0) 0%, rgba(61,46,31,0.5) 60%, rgba(61,46,31,0.8) 100%);
    justify-content: flex-end;
}

.cell-inner--bottom {
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(61,46,31,0) 0%, rgba(61,46,31,0.55) 50%, rgba(61,46,31,0.85) 100%);
}

.cell-inner--centered {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Cell Text Styles --- */
.cell-headline {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 36px);
    line-height: 1.2;
    color: var(--espresso);
}

.cell-headline--light {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.cell-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.7;
    color: var(--raw-umber);
}

.cell-body--light {
    color: rgba(255,255,255,0.9);
}

/* --- Quote Cell --- */
.cell-quote {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 30px);
    line-height: 1.4;
    color: var(--espresso);
    font-style: italic;
    max-width: 700px;
}

.cell-cite {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: var(--marble-vein);
    margin-top: 8px;
}

/* --- Stat Cell --- */
.cell-stat {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 64px);
    color: #ffffff;
    line-height: 1;
}

.cell-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
    text-transform: lowercase;
}

/* --- Glyph Cell --- */
.cell-glyph {
    font-family: 'DM Sans', serif;
    font-weight: 700;
    font-size: 64px;
    color: #ffffff;
    line-height: 1;
}

.cell-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    color: var(--marble-vein);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.cell-label--light {
    color: rgba(255,255,255,0.7);
}

/* --- Thought Icon --- */
.thought-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.thought-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Thought Chips --- */
.thought-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.chip--question {
    background: rgba(196, 122, 82, 0.15);
    color: var(--terracotta);
}

.chip--observation {
    background: rgba(138, 128, 120, 0.15);
    color: var(--marble-vein);
}

.chip--counter {
    background: rgba(107, 84, 66, 0.15);
    color: var(--raw-umber);
}

.chip--meta {
    background: rgba(61, 46, 31, 0.1);
    color: var(--espresso);
}

/* --- Thought Index --- */
.thought-index {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.index-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(138,128,120,0.15);
}

.index-count {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    color: var(--marble-vein);
}

/* --- Manifesto --- */
.manifesto-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
}

.manifesto-point {
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.manifesto-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--terracotta);
    flex-shrink: 0;
    min-width: 40px;
}

.manifesto-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--espresso);
}

/* --- Bubble Cluster --- */
.bubble-cluster {
    position: relative;
    width: 80px;
    height: 60px;
    margin-bottom: 12px;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), rgba(196,122,82,0.15));
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bubble--lg {
    width: 44px;
    height: 44px;
    top: 0;
    left: 0;
    animation: bubbleFloat 6s ease-in-out infinite;
}

.bubble--md {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 4px;
    animation: bubbleFloat 7s ease-in-out 0.5s infinite;
}

.bubble--sm {
    width: 18px;
    height: 18px;
    bottom: 0;
    left: 24px;
    animation: bubbleFloat 5s ease-in-out 1s infinite;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--espresso);
    padding: 48px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--warm-linen);
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: var(--marble-vein);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.footer-chips {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.footer-chips .chip {
    background: rgba(244,237,227,0.1);
    color: rgba(244,237,227,0.6);
    font-size: 11px;
}

/* ================================================
   HOVER EFFECTS
   ================================================ */
.bento-cell {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.bento-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .cell-1  { grid-column: span 8; grid-row: span 2; }
    .cell-2  { grid-column: span 4; grid-row: span 2; }
    .cell-3  { grid-column: span 4; grid-row: span 1; }
    .cell-4  { grid-column: span 4; grid-row: span 1; }
    .cell-5  { grid-column: span 4; grid-row: span 2; }
    .cell-6  { grid-column: span 8; grid-row: span 1; }
    .cell-7  { grid-column: span 4; grid-row: span 2; }
    .cell-8  { grid-column: span 4; grid-row: span 2; }
    .cell-9  { grid-column: span 4; grid-row: span 1; }
    .cell-10 { grid-column: span 8; grid-row: span 2; }
    .cell-11 { grid-column: span 4; grid-row: span 1; }
    .cell-12 { grid-column: span 4; grid-row: span 2; }
    .cell-13 { grid-column: span 8; grid-row: span 2; }
}

@media (max-width: 640px) {
    .bento-section {
        padding: 32px 12px 48px;
    }

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

    .cell-1, .cell-2, .cell-3, .cell-4, .cell-5,
    .cell-6, .cell-7, .cell-8, .cell-9, .cell-10,
    .cell-11, .cell-12, .cell-13 {
        grid-column: span 4;
        grid-row: span 1;
    }

    .bento-cell--large  { min-height: 260px; }
    .bento-cell--medium { min-height: 200px; }
    .bento-cell--tall   { min-height: 280px; }
    .bento-cell--wide   { min-height: 160px; }
    .bento-cell--small  { min-height: 120px; }

    .hero-card {
        padding: 40px 32px;
        margin: 0 16px;
        border-radius: 18px;
    }

    .cell-inner {
        padding: 20px;
    }

    .manifesto-point {
        gap: 12px;
    }

    .manifesto-num {
        font-size: 22px;
        min-width: 30px;
    }
}
