/* ============================================================
   renai.one — Ocean Deep / Pixel-Classical Design System
   Colors: #071E2E #0A3D5C #0E3350 #1A7A9A #5AB5C8 #F7F5F0 #C9A84C #0D2535
   Fonts: Space Grotesk 700 | DM Sans 400/500 | Space Mono 400
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #071E2E;
    color: #F7F5F0;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    --navy:     #071E2E;
    --ocean:    #0A3D5C;
    --grid:     #0E3350;
    --teal:     #1A7A9A;
    --seaglass: #5AB5C8;
    --marble:   #F7F5F0;
    --gold:     #C9A84C;
    --ink:      #0D2535;
    --col-max:  680px;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.mono-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--seaglass);
}

/* ── Navigation ───────────────────────────────────────────── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(7, 30, 46, 0.75);
    border-bottom: 1px solid rgba(26, 122, 154, 0.25);
}

#nav-inner {
    max-width: var(--col-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

#nav-logo-icon {
    display: block;
}

#nav-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--marble);
    letter-spacing: 0.02em;
}

#nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

#nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--seaglass);
    text-decoration: none;
    transition: color 0.2s ease;
}

#nav-links a:hover {
    color: var(--marble);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
    position: relative;
    padding: 140px 24px;
}

.full-viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.section-inner {
    max-width: var(--col-max);
    width: 100%;
    margin: 0 auto;
}

.section-heading {
    font-size: clamp(42px, 6vw, 60px);
    color: var(--marble);
    margin-bottom: 16px;
}

.section-subtext {
    font-size: 18px;
    color: var(--seaglass);
    margin-bottom: 56px;
}

/* ── Pixel Grid Background ────────────────────────────────── */
.pixel-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* ── Section 1: Propylon ──────────────────────────────────── */
#propylon {
    background-color: var(--navy);
    text-align: center;
    position: relative;
}

.propylon-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

#archway-icon {
    display: block;
}

/* Breathing animation on archway */
.breathe {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1.0); }
    50%       { transform: scale(1.03); }
}

#propylon-title {
    font-size: clamp(52px, 10vw, 80px);
    color: var(--marble);
    letter-spacing: -0.02em;
}

#propylon-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: var(--seaglass);
    font-weight: 400;
    max-width: 380px;
    line-height: 1.5;
}

.propylon-frieze {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ── Frieze Bands ─────────────────────────────────────────── */
.frieze-band {
    width: 100%;
    height: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.frieze-svg {
    display: block;
    width: 100%;
    height: 32px;
}

/* ── Section 2: Stoa (Gallery) ────────────────────────────── */
#stoa {
    background-color: var(--ocean);
}

.marble-tablet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: var(--col-max);
    margin: 0 auto;
}

/* ── Marble Tablet Cards ──────────────────────────────────── */
.marble-tablet-card {
    background-color: var(--marble);
    border: 2px solid var(--gold);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(7, 30, 46, 0.6);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    cursor: default;
}

.marble-tablet-card::before {
    /* Marble vein texture via SVG noise (very low opacity) */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
}

.card-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.pixel-icon {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.card-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 6px;
}

.card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 10px;
}

.card-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--ocean);
    line-height: 1.6;
}

/* ── Section 3: Naos (Core) ───────────────────────────────── */
#naos {
    background-color: var(--ocean);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

.naos-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 140px 0;
}

.naos-columns {
    width: 5vw;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.3;
}

.naos-column-svg {
    display: block;
    height: 200px;
    width: auto;
}

.naos-inner {
    padding: 0 24px;
    flex: 1;
}

.naos-heading {
    color: var(--marble);
    margin-bottom: 32px;
    font-size: clamp(42px, 5vw, 60px);
}

.naos-body p {
    font-size: 17px;
    color: rgba(247, 245, 240, 0.9);
    margin-bottom: 20px;
    max-width: 620px;
}

.naos-body p:last-child {
    margin-bottom: 0;
}

/* ── Section 4: Frieze Showcase ───────────────────────────── */
#frieze-section {
    background-color: var(--navy);
}

.frieze-showcase-section {
    padding: 120px 24px;
}

.icon-frieze-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.frieze-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.frieze-icon-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pixel-icon-sm {
    display: block;
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.frieze-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Section 5: Temenos (Close) ───────────────────────────── */
#temenos {
    background-color: var(--navy);
    position: relative;
}

.temenos-section {
    padding-bottom: 0;
}

.temenos-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

#temenos-title {
    font-size: clamp(48px, 8vw, 80px);
    color: var(--marble);
    letter-spacing: -0.02em;
    max-width: 600px;
}

.temenos-icon-wrap {
    display: flex;
    justify-content: center;
}

.pixel-icon-lg {
    display: block;
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#temenos-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--seaglass);
    font-weight: 400;
    max-width: 440px;
    line-height: 1.7;
}

.temenos-frieze {
    margin-top: 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* ── Scroll-in animations (IntersectionObserver) ──────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
    .marble-tablet-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .naos-section {
        flex-direction: column;
        padding: 100px 24px;
    }

    .naos-columns {
        display: none;
    }

    .icon-frieze-row {
        gap: 16px;
    }

    #nav-links {
        gap: 20px;
    }

    #temenos-title {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .marble-tablet-grid {
        grid-template-columns: 1fr;
    }

    #propylon-title {
        font-size: 48px;
    }

    #nav-links {
        display: none;
    }
}
