﻿/* ═══════════════════════════════════════════════════════════
   PROJECT PAGES — Modern minimal 2026
   Shared by all case study pages (fc-fulbert, ironpulse, …)
   ═══════════════════════════════════════════════════════════ */

:root {
    --accent:      #7c6af7;
    --accent-glow: rgba(124, 106, 247, 0.3);
    --bg:          #080711;
    --bg-raised:   #0d0b1a;
    --panel:       rgba(255, 255, 255, 0.03);
    --panel-b:     rgba(255, 255, 255, 0.07);
    --panel-b-hi:  rgba(255, 255, 255, 0.13);
    --text:        #ede9ff;
    --text-muted:  #a89ec2;
    --text-soft:   #635c78;
    --r-sm:  12px;
    --r-md:  18px;
    --r-lg:  24px;
    --max:   1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 90% 55% at 50% -5%, rgba(124, 106, 247, 0.16) 0%, transparent 65%);
    overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid rgba(124, 106, 247, 0.75); outline-offset: 3px; }

/* NAV */
.project-site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 14px 20px;
}

.project-nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 9px 10px 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--panel-b);
    border-radius: 999px;
    background: rgba(8, 7, 17, 0.84);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.project-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.project-brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--panel-b);
    background: rgba(124, 106, 247, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(180, 170, 255, 0.85);
}

.project-brand__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.project-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 22px var(--accent-glow);
}

.btn-primary:hover { box-shadow: 0 0 36px var(--accent-glow); }

.btn-ghost {
    background: var(--panel);
    border-color: var(--panel-b);
    color: var(--text-muted);
}

.btn-ghost:hover { border-color: var(--panel-b-hi); color: var(--text); }

/* PAGE SHELL */
.project-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 106px 20px 60px;
}

/* HERO */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 22px;
    padding: 32px;
    border-radius: var(--r-lg);
    border: 1px solid var(--panel-b);
    background: var(--bg-raised);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 106, 247, 0.07) 0%, transparent 55%);
    pointer-events: none;
}

.project-hero > * { position: relative; z-index: 1; }

.project-kicker,
.project-section__tag {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--panel-b);
    background: rgba(124, 106, 247, 0.08);
    color: rgba(180, 170, 255, 0.75);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.project-title,
.project-section__title,
.project-callout__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.project-title { font-size: clamp(2.4rem, 5vw, 4rem); }

.project-section__title,
.project-callout__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }

.project-subtitle {
    margin: 16px 0 0;
    max-width: 52ch;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.project-meta, .project-stack, .project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-meta  { margin-top: 20px; }
.project-stack { margin-top: 18px; }

.project-meta span,
.project-stack span {
    padding: 4px 11px;
    border-radius: 7px;
    border: 1px solid var(--panel-b);
    background: rgba(124, 106, 247, 0.06);
    color: rgba(180, 170, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-actions { margin-top: 24px; }

.project-hero__visual {
    position: relative;
    min-height: 380px;
    display: grid;
    align-items: stretch;
}

.project-hero__image {
    height: 100%;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--panel-b-hi);
    background: rgba(255, 255, 255, 0.02);
}

.project-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88);
}

.project-floating-card {
    position: absolute;
    inset: auto 14px 14px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--panel-b-hi);
    background: rgba(8, 7, 17, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.project-floating-card__label,
.metric-label {
    display: inline-block;
    margin: 0 0 6px;
    color: var(--text-soft);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-floating-card strong,
.metric-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
}

.project-floating-card p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* METRICS */
.project-metrics {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric-card {
    padding: 18px 20px;
    border-radius: var(--r-sm);
    border: 1px solid var(--panel-b);
    background: var(--bg-raised);
    min-height: 120px;
    display: grid;
    align-content: end;
    gap: 5px;
}

.metric-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* SECTIONS */
.project-sections {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.project-section,
.project-callout {
    padding: 26px 28px;
    border-radius: var(--r-md);
    border: 1px solid var(--panel-b);
    background: var(--bg-raised);
}

.project-copy {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.72;
}

.project-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.project-card {
    padding: 16px 18px;
    border-radius: var(--r-sm);
    border: 1px solid var(--panel-b);
    background: rgba(255, 255, 255, 0.015);
}

.project-card h3 {
    margin: 0 0 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.96rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.project-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.project-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.project-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.project-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

/* CALLOUT */
.project-callout {
    position: relative;
    overflow: hidden;
    background: rgba(124, 106, 247, 0.04);
    border-color: rgba(124, 106, 247, 0.18);
}

.project-callout::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 106, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.project-callout > * { position: relative; z-index: 1; }
.project-callout .project-actions { margin-top: 20px; }

.inline-link { color: rgba(180, 170, 255, 0.88); }
.inline-link:hover { text-decoration: underline; }

/* FOOTER */
.project-footer { padding: 0 20px 32px; }

.project-footer__shell {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid var(--panel-b);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.project-footer p { margin: 0; color: var(--text-soft); font-size: 0.82rem; }

.project-footer__links { display: flex; flex-wrap: wrap; gap: 14px; }

.project-footer__links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.18s;
}

.project-footer__links a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1000px) {
    .project-hero { grid-template-columns: 1fr; }
    .project-hero__visual { min-height: 300px; }
    .project-metrics { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .project-site-header { padding: 10px 12px; }
    .project-nav {
        border-radius: 18px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    .project-nav__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .project-nav__actions .btn { justify-content: center; }
    .project-page { padding: 148px 14px 40px; }
    .project-hero { padding: 20px; }
    .project-section, .project-callout { padding: 20px 18px; }
    .project-floating-card { position: static; margin-top: 12px; }
    .project-metrics, .project-grid { grid-template-columns: 1fr; }
    .project-actions { flex-direction: column; }
    .project-actions .btn { width: 100%; justify-content: center; }
    .project-footer__shell { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
