/* ============================================
   rinji.org — Luxury-Premium / Split-Screen
   Colors: #1B4332, #0D1B11, #F5F3F0, #D4A574, #40916C
   Fonts: Playfair Display, Lora, Courier Prime
   ============================================ */

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

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

body {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #F5F3F0;
    background-color: #0D1B11;
    overflow-x: hidden;
}

/* ---- Grain Overlay ---- */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---- Typography ---- */
h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #F5F3F0;
}

.accent-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4A574;
    margin-bottom: 1.5rem;
}

.gold-accent {
    color: #D4A574;
}

.body-text {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #F5F3F0;
    opacity: 0.85;
    max-width: 480px;
}

/* ---- Split Screen Layout ---- */
.split-section {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-section .split-left,
.split-section .split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.split-section .split-left {
    background-color: #1B4332;
}

.split-section .split-right {
    background-color: #0D1B11;
}

.split-section.reverse .split-left {
    background-color: #0D1B11;
}

.split-section.reverse .split-right {
    background-color: #1B4332;
}

.split-content {
    max-width: 520px;
    width: 100%;
}

.split-content h1,
.split-content h2 {
    margin-bottom: 1.5rem;
}

/* ---- Hero Section ---- */
#hero .split-left {
    background-color: #1B4332;
}

.hero-headline {
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #F5F3F0;
    opacity: 0.8;
    max-width: 400px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-shape {
    position: absolute;
    border: 2px solid #D4A574;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.crystal-1 {
    width: 180px;
    height: 180px;
    transform: rotate(45deg);
    top: 10%;
    left: 20%;
}

.crystal-2 {
    width: 120px;
    height: 120px;
    transform: rotate(30deg);
    top: 40%;
    right: 15%;
    border-color: #40916C;
}

.crystal-3 {
    width: 80px;
    height: 80px;
    transform: rotate(60deg);
    bottom: 15%;
    left: 35%;
    border-color: #D4A574;
    background-color: rgba(212, 165, 116, 0.08);
}

.data-stream {
    position: absolute;
    bottom: 10%;
    right: 10%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.data-line {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #40916C;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateX(20px);
}

/* ---- About Section ---- */
.about-visual {
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 280px;
    height: 280px;
}

.geo-cell {
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.geo-cell-1 {
    background-color: rgba(64, 145, 108, 0.15);
    transform: rotate(0deg);
}

.geo-cell-2 {
    background-color: rgba(212, 165, 116, 0.1);
    transform: rotate(0deg);
}

.geo-cell-3 {
    background-color: rgba(27, 67, 50, 0.3);
    transform: rotate(0deg);
}

.geo-cell-4 {
    background-color: rgba(64, 145, 108, 0.08);
    transform: rotate(0deg);
}

/* ---- Metrics Section ---- */
.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #D4A574;
    line-height: 1;
}

.metric-suffix {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #D4A574;
}

.metric-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #40916C;
}

/* Metrics Visual - Bar Chart */
.metrics-visual {
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 300px;
    padding-bottom: 2rem;
}

.bar {
    width: 40px;
    background-color: #40916C;
    border-top: 3px solid #D4A574;
    height: 0;
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar.animated {
    /* Height set by JS based on data-height attribute */
}

/* ---- Services Section ---- */
.services-visual {
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(64, 145, 108, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-spin 20s linear infinite;
}

.orbit-ring-1 {
    width: 280px;
    height: 280px;
    border-color: rgba(212, 165, 116, 0.2);
    animation-duration: 25s;
}

.orbit-ring-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(64, 145, 108, 0.3);
    animation-duration: 18s;
    animation-direction: reverse;
}

.orbit-ring-3 {
    width: 120px;
    height: 120px;
    border-color: rgba(212, 165, 116, 0.4);
    animation-duration: 12s;
}

.orbit-center {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #D4A574;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #40916C;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(64, 145, 108, 0.2);
}

.service-number {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: #D4A574;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.service-details p {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #F5F3F0;
    opacity: 0.7;
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* ---- CTA Section ---- */
.full-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1B4332;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content .body-text {
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.cta-button {
    display: inline-block;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0D1B11;
    background-color: #D4A574;
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #F5F3F0;
    transform: translateY(-2px);
}

/* ---- Footer ---- */
#footer {
    background-color: #0D1B11;
    padding: 2rem 3rem;
    border-top: 1px solid rgba(64, 145, 108, 0.15);
}

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

.footer-brand {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #D4A574;
}

.footer-text {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    color: #40916C;
    opacity: 0.7;
}

/* ---- Bounce-Enter Animation ---- */
.bounce-target {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-target.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---- Split Parallax Cursor Effect ---- */
.split-section .split-left,
.split-section .split-right {
    transition: background-position 0.3s ease;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }

    .split-section.reverse {
        flex-direction: column;
    }

    .split-section .split-left,
    .split-section .split-right {
        min-height: 60vh;
        padding: 3rem 2rem;
    }

    .hero-visual {
        height: 40vh;
    }

    .bar-chart {
        height: 200px;
    }

    .bar {
        width: 28px;
    }

    .geo-grid {
        width: 200px;
        height: 200px;
    }

    .orbit-container {
        width: 200px;
        height: 200px;
    }

    .orbit-ring-1 { width: 200px; height: 200px; }
    .orbit-ring-2 { width: 140px; height: 140px; }
    .orbit-ring-3 { width: 80px; height: 80px; }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
