/* ================================================
   pmt.report - Noir Deco Intelligence Dashboard
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
    --midnight-navy: #0B1226;
    --deep-obsidian: #060B18;
    --deco-charcoal: #1A1F2E;
    --tarnished-gold: #C9A84C;
    --burnished-copper: #B87333;
    --electric-sapphire: #1E50A0;
    --silver-mist: #B8C0D0;
    --faded-platinum: #8890A0;
    --pale-gold: #E8D5A0;
    --shadow-face: #0D1220;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-navy);
    color: var(--silver-mist);
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, .section-heading, .footer-link, .footer-attribution {
    font-family: 'Josefin Sans', sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
}

.section-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tarnished-gold);
    margin-bottom: 1.5rem;
}

.body-text {
    margin-bottom: 1.2rem;
    color: var(--silver-mist);
}

.body-text.secondary,
.secondary {
    color: var(--faded-platinum);
}

.mono-label {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    letter-spacing: 0.08em;
    color: var(--tarnished-gold);
    margin-bottom: 0.8rem;
}

a {
    color: var(--tarnished-gold);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--tarnished-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover::after {
    transform: scaleX(1);
}

a:hover {
    color: var(--burnished-copper);
}

/* ================================================
   HERO: The Penthouse
   ================================================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--deep-obsidian) 0%, var(--midnight-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06) 0%, transparent 70%);
    opacity: 0;
    animation: glowReveal 1.5s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 1;
}

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

/* Sunburst */
#sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vmin;
    height: 90vmin;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

#sunburst line {
    stroke: var(--tarnished-gold);
    stroke-width: 0.5;
    stroke-linecap: round;
}

/* Hero Content */
#hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    pointer-events: none;
}

#hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--silver-mist);
    opacity: 0;
    transform: translateY(15px);
    animation: titleReveal 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-feature-settings: "kern" 1, "liga" 1;
    text-shadow: 0 0 40px rgba(201,168,76,0.15);
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-tagline {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--faded-platinum);
    letter-spacing: 0.06em;
    margin-top: 1rem;
    opacity: 0;
    animation: taglineReveal 1s 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Hero Fog */
#hero-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(transparent, rgba(11,18,38,0.9));
    z-index: 2;
    pointer-events: none;
}

/* Window Glow Particles */
#window-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#window-glow::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--electric-sapphire);
    box-shadow:
        120px 80px 0 rgba(30,80,160,0.5),
        120px 80px 4px rgba(30,80,160,0.4),
        350px 200px 0 rgba(30,80,160,0.4),
        350px 200px 4px rgba(30,80,160,0.3),
        580px 120px 0 rgba(30,80,160,0.6),
        580px 120px 4px rgba(30,80,160,0.4),
        80px 350px 0 rgba(30,80,160,0.3),
        80px 350px 4px rgba(30,80,160,0.2),
        700px 400px 0 rgba(30,80,160,0.5),
        700px 400px 4px rgba(30,80,160,0.3),
        250px 500px 0 rgba(30,80,160,0.4),
        250px 500px 4px rgba(30,80,160,0.3),
        900px 300px 0 rgba(30,80,160,0.6),
        900px 300px 4px rgba(30,80,160,0.4),
        450px 600px 0 rgba(30,80,160,0.3),
        450px 600px 4px rgba(30,80,160,0.2),
        1100px 180px 0 rgba(30,80,160,0.5),
        1100px 180px 4px rgba(30,80,160,0.3),
        150px 650px 0 rgba(30,80,160,0.4),
        150px 650px 4px rgba(30,80,160,0.3),
        800px 550px 0 rgba(30,80,160,0.5),
        800px 550px 4px rgba(30,80,160,0.4),
        1000px 480px 0 rgba(30,80,160,0.3),
        1000px 480px 4px rgba(30,80,160,0.2),
        620px 700px 0 rgba(30,80,160,0.4),
        620px 700px 4px rgba(30,80,160,0.3),
        300px 150px 0 rgba(30,80,160,0.5),
        300px 150px 4px rgba(30,80,160,0.4),
        950px 100px 0 rgba(30,80,160,0.3),
        950px 100px 4px rgba(30,80,160,0.2);
}

/* ================================================
   RAIN EFFECT
   ================================================ */
#rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: rainStart 0.5s 0.3s forwards;
}

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

.raindrop {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(184,192,208,0.04), transparent);
    animation: rainFall linear infinite;
    top: -80px;
}

@keyframes rainFall {
    to {
        transform: translateY(calc(100vh + 80px)) translateX(8px);
    }
}

/* ================================================
   CONTENT BANDS
   ================================================ */
.content-band {
    padding: 5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.band-navy {
    background-color: var(--midnight-navy);
}

.band-obsidian {
    background-color: var(--deep-obsidian);
}

.band-charcoal {
    background-color: var(--deco-charcoal);
}

.content-column {
    max-width: 720px;
    width: 100%;
    text-align: left;
}

/* Content reveal animation */
.content-band[data-reveal],
.city-band[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.content-band.revealed,
.city-band.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   DECO DIVIDERS
   ================================================ */
.deco-divider {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--midnight-navy);
}

.divider-svg {
    width: 400px;
    max-width: 80%;
    height: 80px;
}

/* ================================================
   ISOMETRIC CITY BANDS
   ================================================ */
.city-band {
    width: 100%;
    background-color: var(--deep-obsidian);
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.city-skyline {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.iso-building {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.city-band.revealed .iso-building {
    transform: scaleY(1);
}

/* ================================================
   BRASS-FRAME CARDS
   ================================================ */
.brass-card {
    position: relative;
    background: var(--deco-charcoal);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: inset 0 1px 0 rgba(201,168,76,0.08);
}

.card-corner {
    position: absolute;
    width: 8px;
    height: 8px;
}

.card-corner.top-left {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--tarnished-gold);
    border-left: 2px solid var(--tarnished-gold);
}

.card-corner.top-right {
    top: -1px;
    right: -1px;
    border-top: 2px solid var(--tarnished-gold);
    border-right: 2px solid var(--tarnished-gold);
}

.card-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid var(--tarnished-gold);
    border-left: 2px solid var(--tarnished-gold);
}

.card-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--tarnished-gold);
    border-right: 2px solid var(--tarnished-gold);
}

/* ================================================
   FOOTER: The Lobby
   ================================================ */
#footer {
    position: relative;
    min-height: 30vh;
    background-color: var(--deep-obsidian);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 3rem;
    overflow: hidden;
}

#footer-arch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arch-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.arch-layer-1 {
    width: 90%;
    height: 85%;
    background: var(--midnight-navy);
    clip-path: polygon(5% 100%, 5% 30%, 15% 10%, 50% 0%, 85% 10%, 95% 30%, 95% 100%);
    animation: archBreathe1 12s ease-in-out infinite;
}

.arch-layer-2 {
    width: 75%;
    height: 75%;
    background: #111B33;
    clip-path: polygon(8% 100%, 8% 35%, 18% 12%, 50% 2%, 82% 12%, 92% 35%, 92% 100%);
    animation: archBreathe2 12s ease-in-out infinite;
}

.arch-layer-3 {
    width: 60%;
    height: 65%;
    background: #1A2640;
    clip-path: polygon(10% 100%, 10% 38%, 20% 15%, 50% 4%, 80% 15%, 90% 38%, 90% 100%);
    animation: archBreathe3 12s ease-in-out infinite;
}

@keyframes archBreathe1 {
    0%, 100% { clip-path: polygon(5% 100%, 5% 30%, 15% 10%, 50% 0%, 85% 10%, 95% 30%, 95% 100%); }
    50% { clip-path: polygon(5% 100%, 5% 27%, 15% 7%, 50% 0%, 85% 7%, 95% 27%, 95% 100%); }
}

@keyframes archBreathe2 {
    0%, 100% { clip-path: polygon(8% 100%, 8% 35%, 18% 12%, 50% 2%, 82% 12%, 92% 35%, 92% 100%); }
    50% { clip-path: polygon(8% 100%, 8% 32%, 18% 9%, 50% 2%, 82% 9%, 92% 32%, 92% 100%); }
}

@keyframes archBreathe3 {
    0%, 100% { clip-path: polygon(10% 100%, 10% 38%, 20% 15%, 50% 4%, 80% 15%, 90% 38%, 90% 100%); }
    50% { clip-path: polygon(10% 100%, 10% 35%, 20% 12%, 50% 4%, 80% 12%, 90% 35%, 90% 100%); }
}

#footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--faded-platinum);
    transition: color 300ms ease;
}

.footer-link:hover {
    color: var(--tarnished-gold);
}

.footer-attribution {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    margin-bottom: 0.4rem;
}

.footer-year {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    letter-spacing: 0.1em;
    color: var(--faded-platinum);
}

/* ================================================
   SUNBURST MORPH ANIMATION
   ================================================ */
@keyframes sunburstPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

#sunburst {
    animation: sunburstPulse 8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes lineMorph {
    0%, 100% {
        transform: scaleY(1);
        opacity: var(--line-base-opacity, 0.15);
    }
    50% {
        transform: scaleY(1.05);
        opacity: calc(var(--line-base-opacity, 0.15) + 0.03);
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .content-band {
        padding: 3rem 1.5rem;
    }

    .brass-card {
        padding: 1.5rem;
    }

    .card-corner {
        width: 5px;
        height: 5px;
    }

    .footer-nav {
        gap: 1.5rem;
    }

    .city-band svg rect {
        display: none;
    }
}

/* ================================================
   CHEVRON DIVIDER MORPH
   ================================================ */
.deco-divider svg polygon {
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.deco-divider.shifted svg polygon {
    transform: rotate(2deg);
}