/* ==========================================================
   PZZ.lu — Dopamine-Charged Authority
   Split-Screen · Watercolor · Commissioner Variable Font
   ========================================================== */

/* ---------- Google Fonts Import ---------- */
/* Commissioner loaded from HTML link tag */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Palette — Translucent Frost with Dopamine Accents */
    --c-frosted-void: #0F0E1A;
    --c-polar-white: #F5F5F8;
    --c-glacial-blue: #BFD7EA;
    --c-cerulean-burst: #00A8E8;
    --c-violet-haze: #7B4FA6;
    --c-blush-mist: #F0A0B8;
    --c-slate: #4A4860;
    --c-deep-indigo: #1A1040;

    /* Frosted glass spec */
    --frosted-bg: rgba(191, 215, 234, 0.08);
    --frosted-border: rgba(255, 255, 255, 0.18);
    --frosted-backdrop: blur(20px) saturate(180%);

    /* Typography */
    --f-commissioner: 'Commissioner', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing */
    --left-panel-w: 38vw;
    --right-panel-w: 62vw;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--c-polar-white);
    color: var(--c-slate);
    font-family: var(--f-commissioner);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---------- LEFT PANEL — Fixed Identity Column ---------- */
.left-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--left-panel-w);
    height: 100vh;
    background: var(--c-frosted-void);
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Primary watercolor bleed halo */
.left-panel__bleed {
    position: absolute;
    top: -80px;
    left: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        ellipse at 35% 40%,
        rgba(0, 168, 232, 0.55) 0%,
        rgba(123, 79, 166, 0.38) 45%,
        transparent 72%
    );
    filter: blur(32px);
    animation: bleed-rotate 90s linear infinite;
    transform-origin: 35% 40%;
    pointer-events: none;
}

.left-panel__bleed--secondary {
    top: auto;
    bottom: -100px;
    left: auto;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        ellipse at 60% 60%,
        rgba(123, 79, 166, 0.35) 0%,
        rgba(0, 168, 232, 0.2) 40%,
        transparent 70%
    );
    filter: blur(28px);
    animation: bleed-rotate 120s linear infinite reverse;
    transform-origin: 60% 60%;
}

@keyframes bleed-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* SVG watercolor bleed overlay */
.left-panel__svg-bleed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

/* Left panel content wrapper */
.left-panel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(36px, 5vh, 64px) clamp(28px, 4vw, 52px);
}

/* Site Identity — Commissioner variable width morph */
.site-identity {
    display: inline-block;
    font-family: var(--f-commissioner);
    font-weight: 700;
    font-variation-settings: 'wdth' 150;
    font-size: clamp(52px, 6vw, 96px);
    color: var(--c-polar-white);
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 0.95;
    transition: font-variation-settings 0.4s ease;
    margin-bottom: clamp(20px, 3vh, 36px);
    cursor: pointer;
}

.site-identity:hover {
    font-variation-settings: 'wdth' 75;
}

/* Tagline */
.left-panel__tagline {
    font-family: var(--f-commissioner);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(245, 245, 248, 0.55);
    margin-bottom: clamp(32px, 5vh, 60px);
    max-width: 280px;
}

/* Left navigation */
.left-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.left-nav__item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 10px 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.left-nav__label {
    font-family: var(--f-commissioner);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 245, 248, 0.5);
    transition: color 0.4s ease;
}

.left-nav__line {
    flex: 1;
    height: 1px;
    background: rgba(245, 245, 248, 0.15);
    transition: background 0.4s ease, transform 0.4s ease;
    transform-origin: left center;
    transform: scaleX(0.4);
}

.left-nav__item:hover .left-nav__label,
.left-nav__item.is-active .left-nav__label {
    color: var(--c-cerulean-burst);
}

.left-nav__item:hover .left-nav__line,
.left-nav__item.is-active .left-nav__line {
    background: rgba(0, 168, 232, 0.5);
    transform: scaleX(1);
}

/* Left panel footer */
.left-panel__footer {
    margin-top: auto;
    padding-top: 24px;
}

/* Accent labels */
.accent-label {
    display: inline-block;
    font-family: var(--f-commissioner);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-cerulean-burst);
}

.left-panel__footer .accent-label {
    color: rgba(0, 168, 232, 0.6);
}

/* ---------- RIGHT PANEL — The Reveal Stage ---------- */
.right-panel {
    margin-left: var(--left-panel-w);
    width: var(--right-panel-w);
    min-height: 100vh;
    background: var(--c-polar-white);
}

/* ---------- DISCLOSURE BLOCKS ---------- */
.disclosure-block {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 48px;
    position: relative;
}

.disclosure-block--last {
    min-height: 80vh;
}

.disclosure-block__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
    align-content: center;
}

/* Accent label in blocks */
.disclosure-block__inner > .accent-label {
    grid-column: 1 / span 12;
    color: var(--c-cerulean-burst);
    margin-bottom: -12px;
}

/* Headline */
.disclosure-block__headline {
    grid-column: 1 / span 8;
    font-family: var(--f-commissioner);
    font-weight: 600;
    font-variation-settings: 'wdth' 100;
    font-size: clamp(32px, 4vw, 52px);
    color: var(--c-deep-indigo);
    line-height: 1.1;
    letter-spacing: 0.01em;
}

/* Body text */
.disclosure-block__body {
    grid-column: 1 / span 7;
}

.disclosure-block__body p {
    font-family: var(--f-commissioner);
    font-weight: 300;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.7;
    color: var(--c-slate);
}

/* Detail text */
.disclosure-block__detail {
    grid-column: 7 / span 6;
}

.disclosure-block__detail p {
    font-family: var(--f-commissioner);
    font-weight: 300;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    color: rgba(74, 72, 96, 0.75);
}

/* Watercolor panels */
.disclosure-block__watercolor {
    grid-column: 1 / span 5;
    height: 340px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.disclosure-block__watercolor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.disclosure-block__watercolor--cerulean {
    background: linear-gradient(
        135deg,
        rgba(0, 168, 232, 0.15) 0%,
        rgba(240, 160, 184, 0.1) 50%,
        rgba(191, 215, 234, 0.08) 100%
    );
}

.disclosure-block__watercolor--violet {
    background: linear-gradient(
        135deg,
        rgba(123, 79, 166, 0.15) 0%,
        rgba(191, 215, 234, 0.12) 50%,
        rgba(0, 168, 232, 0.08) 100%
    );
}

.disclosure-block__watercolor--indigo {
    background: linear-gradient(
        135deg,
        rgba(26, 16, 64, 0.12) 0%,
        rgba(0, 168, 232, 0.15) 50%,
        rgba(123, 79, 166, 0.1) 100%
    );
}

.disclosure-block__watercolor--blush {
    background: linear-gradient(
        135deg,
        rgba(240, 160, 184, 0.18) 0%,
        rgba(0, 168, 232, 0.1) 50%,
        rgba(191, 215, 234, 0.08) 100%
    );
    height: 280px;
}

/* Frosted card */
.disclosure-block__frosted-card {
    grid-column: 7 / span 6;
    background: var(--frosted-bg);
    backdrop-filter: var(--frosted-backdrop);
    -webkit-backdrop-filter: var(--frosted-backdrop);
    border: 1px solid var(--frosted-border);
    border-radius: 4px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disclosure-block__frosted-card p {
    font-family: var(--f-commissioner);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-slate);
}

/* Contact */
.disclosure-block__contact {
    grid-column: 1 / span 8;
}

.contact-link {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    gap: 4px;
}

.contact-link__text {
    font-family: var(--f-commissioner);
    font-weight: 500;
    font-variation-settings: 'wdth' 100;
    font-size: clamp(20px, 2.5vw, 32px);
    color: var(--c-deep-indigo);
    transition: color 0.4s ease, font-variation-settings 0.4s ease;
}

.contact-link:hover .contact-link__text {
    color: var(--c-cerulean-burst);
    font-variation-settings: 'wdth' 120;
}

.contact-link__underline {
    display: block;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--c-cerulean-burst),
        var(--c-violet-haze)
    );
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
}

.contact-link:hover .contact-link__underline {
    transform: scaleX(1);
}

/* ---------- PROGRESSIVE DISCLOSURE — Reveal Animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- WAVE DIVIDERS ---------- */
.wave-divider {
    width: 100%;
    overflow: hidden;
    height: 80px;
    margin: 0;
    display: block;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-layer-1 {
    fill: rgba(191, 215, 234, 0.4);
}

.wave-layer-2 {
    fill: rgba(123, 79, 166, 0.2);
    transform: translateX(30px);
}

.wave-divider path {
    transform-origin: center bottom;
    animation: wave-breathe 6s ease-in-out infinite alternate;
}

.wave-divider .wave-layer-2 {
    animation-delay: -2s;
}

@keyframes wave-breathe {
    from { transform: scaleY(1); }
    to   { transform: scaleY(1.08); }
}

.wave-divider--deep .wave-layer-1 {
    fill: rgba(123, 79, 166, 0.3);
}

.wave-divider--deep .wave-layer-2 {
    fill: rgba(0, 168, 232, 0.18);
}

.wave-divider--violet .wave-layer-1 {
    fill: rgba(191, 215, 234, 0.35);
}

.wave-divider--violet .wave-layer-2 {
    fill: rgba(26, 16, 64, 0.12);
}

.wave-divider--footer {
    height: 60px;
}

.wave-divider--footer .wave-layer-1 {
    fill: rgba(74, 72, 96, 0.12);
}

.wave-divider--footer .wave-layer-2 {
    fill: rgba(0, 168, 232, 0.08);
}

/* ---------- SITE FOOTER ---------- */
.site-footer {
    background: var(--c-polar-white);
    padding: 0 0 48px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px 0;
}

.site-footer__brand {
    font-family: var(--f-commissioner);
    font-weight: 700;
    font-variation-settings: 'wdth' 100;
    font-size: 22px;
    color: var(--c-deep-indigo);
    letter-spacing: -0.02em;
}

/* ---------- SECTION BACKGROUND SUBTLETIES ---------- */
#section-1 {
    background: var(--c-polar-white);
}

#section-2 {
    background: linear-gradient(
        180deg,
        var(--c-polar-white) 0%,
        rgba(191, 215, 234, 0.06) 100%
    );
}

#section-3 {
    background: linear-gradient(
        180deg,
        rgba(191, 215, 234, 0.06) 0%,
        var(--c-polar-white) 100%
    );
}

#section-4 {
    background: var(--c-polar-white);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(123, 79, 166, 0.3);
    border-radius: 2px;
}

/* ---------- SELECTION ---------- */
::selection {
    background: rgba(0, 168, 232, 0.2);
    color: var(--c-deep-indigo);
}
