/* ================================================
   rironbusou.net — Theoretical Armament
   Corporate aesthetic, terracotta warmth
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: #2A2420;
    background-color: #F0ECE4;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Skeleton Loading --- */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #E8C8B0 0%, #F0ECE4 50%, #E8C8B0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    z-index: 2;
    border-radius: inherit;
    transition: opacity 0.5s ease;
}

.skeleton.resolved::before {
    opacity: 0;
    pointer-events: none;
}

.skeleton > * {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.skeleton.resolved > * {
    opacity: 1;
}

/* --- Marble Texture --- */
.marble-surface {
    background-color: #F0ECE4;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(208, 196, 180, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(208, 196, 180, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(208, 196, 180, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(232, 200, 176, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 10%, rgba(208, 196, 180, 0.5) 0%, transparent 30%);
}

/* ================================================
   BRIEFING HEADER
   ================================================ */
#briefing-header {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #C4704A 0%, #E8C8B0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

.header-left {
    flex: 1;
    max-width: 600px;
}

.skeleton-wordmark {
    min-height: 90px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.skeleton-subtitle {
    min-height: 30px;
    border-radius: 4px;
    margin-bottom: 16px;
    max-width: 400px;
}

.skeleton-tagline {
    min-height: 24px;
    border-radius: 4px;
    max-width: 480px;
}

.wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2A2420;
    line-height: 1;
}

.header-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    color: #2A2420;
    opacity: 0.9;
}

.header-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: #2A2420;
    opacity: 0.7;
    margin-top: 4px;
}

.header-right {
    flex-shrink: 0;
    margin-left: 40px;
}

.skeleton-marble-panel {
    min-width: 240px;
    min-height: 200px;
    border-radius: 8px;
}

.marble-panel {
    background-color: #F0ECE4;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(208, 196, 180, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(208, 196, 180, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 10%, rgba(232, 200, 176, 0.2) 0%, transparent 45%);
    padding: 32px 28px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(42, 36, 32, 0.15);
}

.marble-panel .label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: #6B3A28;
    letter-spacing: 0.08em;
}

.geometric-nav {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.geo-shape {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.geo-shape.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Override for nav shapes - white strokes on marble */
.geometric-nav .geo-shape circle,
.geometric-nav .geo-shape polygon,
.geometric-nav .geo-shape rect {
    stroke: #C4704A;
}

/* Header floating shapes */
.header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.floating-shape.visible {
    opacity: 1;
}

.shape-1 {
    top: 15%;
    right: 8%;
}

.shape-2 {
    bottom: 20%;
    left: 5%;
}

.shape-3 {
    top: 60%;
    right: 30%;
}

.shape-4 {
    top: 8%;
    left: 20%;
}

/* ================================================
   STRATEGY SECTIONS
   ================================================ */
.strategy-section {
    padding: 0;
    border-bottom: 1px solid #D0C4B4;
}

.strategy-section:nth-child(even) {
    background-color: #F0ECE4;
}

.strategy-section:nth-child(odd) {
    background-color: #FAFAF6;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-headline-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    grid-column: 1 / -1;
}

.section-icon {
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 72px);
    color: #2A2420;
    line-height: 1;
}

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: #A08060;
    margin-left: auto;
    letter-spacing: 0.06em;
}

.section-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section-text p {
    margin-bottom: 16px;
    color: #2A2420;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-sidebar {
    padding: 28px 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
}

.sidebar-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #A08060;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.data-value {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2A2420;
}

/* Section reveal animation */
.strategy-section .section-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.strategy-section.in-view .section-grid {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   ARSENAL GRID
   ================================================ */
#arsenal-grid {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.arsenal-title {
    font-size: clamp(32px, 5vw, 64px);
    color: #2A2420;
    margin-bottom: 8px;
}

.arsenal-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #A08060;
    margin-bottom: 48px;
    letter-spacing: 0.06em;
}

.arsenal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.arsenal-card {
    padding: 32px 28px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arsenal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(42, 36, 32, 0.12);
}

/* Skeleton card shimmer */
.skeleton-card {
    position: relative;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #E8C8B0 0%, #F0ECE4 50%, #E8C8B0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    z-index: 2;
    border-radius: 8px;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.skeleton-card.resolved::after {
    opacity: 0;
}

.skeleton-card > * {
    opacity: 0;
    transition: opacity 0.5s ease 0.1s;
}

.skeleton-card.resolved > * {
    opacity: 1;
}

.card-icon {
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2A2420;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #2A2420;
    opacity: 0.85;
    margin-bottom: 16px;
}

.card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #C4704A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ================================================
   COMMAND FOOTER
   ================================================ */
#command-footer {
    background-color: #6B3A28;
    color: #E8C8B0;
    padding: 0;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-marble-strip {
    height: 6px;
    background-color: #F0ECE4;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(208, 196, 180, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 50%, rgba(208, 196, 180, 0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 50%, rgba(208, 196, 180, 0.3) 0%, transparent 60%);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #F0ECE4;
}

.footer-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #A08060;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-shapes {
    display: flex;
    gap: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    border-top: 1px solid rgba(160, 128, 96, 0.3);
}

.footer-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #A08060;
    letter-spacing: 0.1em;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .header-right {
        margin-left: 0;
    }

    .section-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .arsenal-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header-content {
        padding: 40px 24px;
    }

    .section-grid {
        padding: 40px 24px;
    }

    #arsenal-grid {
        padding: 48px 24px;
    }

    .arsenal-cards {
        grid-template-columns: 1fr;
    }

    .section-headline-row {
        flex-wrap: wrap;
    }

    .section-label {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 24px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        padding: 16px 24px;
    }
}
