/* paraoligm.com — evolved-minimal high-contrast manifesto */

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

:root {
    --white: #FAFAFA;
    --black: #0A0A0A;
    --coral: #F06850;
    --teal: #20C0A0;
    --yellow: #F0C020;
    --gray: #E0E0E0;
    --charcoal: #303030;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    transition: background-color 400ms ease;
}

/* Minimal navigation */
.minimal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    pointer-events: none;
    mix-blend-mode: difference;
}

.minimal-nav .nav-mark,
.minimal-nav .nav-links a {
    pointer-events: auto;
}

.nav-mark {
    font-weight: 900;
    font-size: 22px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 240ms ease, color 240ms ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--coral);
}

/* Labels */
.label {
    display: inline-block;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
}

/* Declaration section */
.declaration {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 120px 32px;
    overflow: hidden;
}

.declaration-inner {
    position: relative;
    text-align: center;
    max-width: 920px;
    width: 100%;
    z-index: 2;
}

.declaration-label {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--coral);
}

.domain-headline {
    font-weight: 900;
    font-size: clamp(48px, 9vw, 144px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--black);
    margin-bottom: 32px;
    transform: scale(1.2);
    opacity: 0;
    transform-origin: center;
}

.domain-headline.is-loaded {
    animation: scaleIn 600ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.domain-headline .dot {
    color: var(--coral);
}

.domain-headline .tld {
    color: var(--charcoal);
    font-weight: 700;
}

.declaration-tagline {
    font-weight: 400;
    font-size: clamp(15px, 1.2vw, 19px);
    color: var(--charcoal);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 700ms 320ms ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flowing curves */
.flowing-curve {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flowing-curve-top {
    top: 0;
    height: 60%;
}

.curve-path {
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    transition: stroke-dashoffset 1200ms ease, opacity 400ms ease;
    opacity: 0.85;
}

.curve-path.is-drawn {
    stroke-dashoffset: 0;
}

.connector-curve {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 2;
}

/* Vector floaters around declaration */
.vector-floater {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 1;
    opacity: 0;
    transform: scale(0.85);
    transition: transform 480ms ease, opacity 480ms ease;
}

.vector-floater.is-visible {
    opacity: 1;
    transform: scale(1);
}

.vector-floater-tl { top: 14%; left: 8%; }
.vector-floater-tr { top: 18%; right: 9%; }
.vector-floater-bl { bottom: 16%; left: 10%; }
.vector-floater-br { bottom: 12%; right: 8%; }

.vector-floater svg {
    width: 100%;
    height: 100%;
    transition: transform 360ms ease;
}

.vector-floater:hover svg {
    transform: rotate(2deg) scale(1.06);
}

/* Optimistic color bursts */
.burst {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.3, 1.3), opacity 320ms ease;
    opacity: 0;
    pointer-events: none;
}

.burst-coral { background: var(--coral); }
.burst-teal { background: var(--teal); }
.burst-yellow { background: var(--yellow); }

.burst.is-popped {
    transform: scale(1);
    opacity: 1;
}

.burst-1 { width: 14px; height: 14px; top: -22px; left: 22%; }
.burst-2 { width: 10px; height: 10px; top: 8%; right: 18%; }
.burst-3 { width: 16px; height: 16px; bottom: -18px; right: 28%; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--charcoal), transparent);
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.2); opacity: 1; }
}

/* Manifesto sections */
.manifesto {
    position: relative;
    padding: 120px 32px;
    overflow: hidden;
    transition: background-color 400ms ease;
}

.manifesto-dark {
    background: var(--black);
    color: var(--white);
}

.manifesto-light {
    background: var(--white);
    color: var(--black);
}

.manifesto-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    z-index: 2;
}

.manifesto-dark .label {
    color: var(--gray);
}

.manifesto-heading {
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 18px 0 28px;
}

.manifesto-body {
    font-weight: 400;
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.8;
    max-width: 640px;
}

.manifesto-dark .manifesto-body {
    color: var(--gray);
}

.manifesto .burst {
    position: absolute;
    width: 12px;
    height: 12px;
    top: -8px;
    left: -28px;
}

/* Underline-draw */
.underline-draw {
    position: relative;
    display: inline;
    background-image: linear-gradient(var(--coral), var(--coral));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 3px;
    transition: background-size 600ms cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 4px;
}

.manifesto-dark .underline-draw {
    background-image: linear-gradient(var(--teal), var(--teal));
}

.manifesto:nth-of-type(odd) .underline-draw {
    background-image: linear-gradient(var(--yellow), var(--yellow));
}

.underline-draw.is-drawn {
    background-size: 100% 3px;
}

.manifesto-heading:hover .underline-draw {
    text-shadow: 0 0 12px rgba(240, 104, 80, 0.18);
}

/* Concepts gallery */
.concepts {
    position: relative;
    padding: 120px 32px;
    background: var(--white);
    color: var(--black);
    overflow: hidden;
}

.concepts-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.concepts-label {
    display: inline-block;
    color: var(--coral);
    margin-bottom: 18px;
}

.concepts-heading {
    font-weight: 900;
    font-size: clamp(36px, 5vw, 72px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
}

.concepts-lede {
    font-weight: 400;
    font-size: clamp(16px, 1.1vw, 19px);
    color: var(--charcoal);
    max-width: 520px;
    margin-bottom: 64px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.concept-tile {
    position: relative;
    padding: 36px 32px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 4px;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    opacity: 0;
    transform: scale(0.9);
}

.concept-tile.is-visible {
    opacity: 1;
    transform: scale(1);
    transition: transform 320ms ease, opacity 320ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.concept-tile:hover {
    border-left: 4px solid var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 10, 10, 0.06);
}

.concept-tile[data-concept="transform"]:hover,
.concept-tile[data-concept="connect"]:hover {
    border-left-color: var(--teal);
}

.concept-tile[data-concept="reorganize"]:hover,
.concept-tile[data-concept="declare"]:hover {
    border-left-color: var(--yellow);
}

.concept-illustration {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 200px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 360ms ease;
}

.concept-tile:hover .concept-illustration {
    transform: rotate(2deg) scale(1.03);
}

.concept-illustration svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
}

.concept-tile .label {
    display: block;
    margin-bottom: 10px;
    color: var(--coral);
}

.concept-tile[data-concept="transform"] .label,
.concept-tile[data-concept="connect"] .label {
    color: var(--teal);
}

.concept-tile[data-concept="reorganize"] .label,
.concept-tile[data-concept="declare"] .label {
    color: var(--yellow);
}

.concept-caption {
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.6;
}

/* Horizon (footer) */
.horizon {
    position: relative;
    padding: 140px 32px 100px;
    background: linear-gradient(180deg, var(--black) 0%, #2a1a14 60%, #6e3320 100%);
    color: var(--white);
    overflow: hidden;
}

.horizon-curves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.curve-converge {
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    transition: stroke-dashoffset 1400ms ease;
}

.curve-converge.is-drawn {
    stroke-dashoffset: 0;
}

.horizon-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    z-index: 2;
}

.horizon-label {
    color: var(--yellow);
    margin-bottom: 24px;
}

.horizon-heading {
    font-weight: 900;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.horizon-body {
    font-size: clamp(16px, 1.1vw, 19px);
    color: var(--gray);
    margin-bottom: 64px;
    max-width: 540px;
}

.horizon-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(250, 250, 250, 0.12);
    padding-top: 24px;
}

.horizon-meta .label {
    color: var(--gray);
}

.horizon-burst {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 80px;
    right: 12%;
}

/* Responsive */
@media (max-width: 720px) {
    .minimal-nav {
        padding: 18px 20px;
    }
    .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 10px;
    }
    .declaration {
        padding: 100px 24px 80px;
    }
    .vector-floater {
        width: 56px;
        height: 56px;
    }
    .manifesto, .concepts {
        padding: 80px 24px;
    }
    .horizon {
        padding: 100px 24px 80px;
    }
    .horizon-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .vector-floater-tl { left: 4%; top: 12%; }
    .vector-floater-tr { right: 4%; top: 14%; }
    .vector-floater-bl { left: 4%; bottom: 14%; }
    .vector-floater-br { right: 4%; bottom: 10%; }
    .nav-links {
        display: none;
    }
}
