:root {
    --bg: #0a0b10;
    --bg-soft: #11141a;
    --card: #151923;
    --stroke: #242a36;
    --text: #f3f4f6;
    --muted: #a3a8b3;
    --accent: #f56b4a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 30% -10%, rgba(245, 107, 74, 0.2), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(245, 107, 74, 0.12), transparent 45%),
        linear-gradient(180deg, #05060a 0%, #0d1118 55%, #0a0d12 100%);
    position: relative;
}

/* Subtle vignette to frame the hero without hard edges. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 12, 16, 0) 40%, rgba(6, 7, 10, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Cinematic gradient drift layered behind content. */
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(245, 107, 74, 0.14), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(245, 107, 74, 0.12), transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(245, 107, 74, 0.08), transparent 45%);
    opacity: 0.7;
    filter: blur(10px);
    transform: translate3d(0, 0, 0);
    animation: gradient-drift 50s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.background-glow {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='140' height='140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: soft-light;
    z-index: 0;
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

@keyframes gradient-drift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    50% {
        transform: translate3d(2%, 2%, 0) scale(1.04);
    }
    100% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}

/* Hero spacing breathes to feel premium and editorial. */
.hero {
    padding: 64px 10vw 120px;
    display: grid;
    gap: 96px;
    min-height: 85vh;
}

/* Align header elements with intentional rhythm. */
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.24em;
    font-size: 16px;
    text-transform: uppercase;
}

.logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(255, 140, 60, 0.35);
}

.hero-nav {
    display: flex;
    gap: 24px;
}

.hero-nav a {
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    transition: color 0.2s ease;
}

.hero-nav a:hover {
    color: var(--text);
}

.hero-content h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(56px, 10vw, 140px);
    letter-spacing: 0.12em;
    line-height: 0.95;
    margin: 0 0 24px;
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 12px;
}

.hero-subtitle {
    max-width: 520px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* Buttons: quiet confidence with gentle lift. */
.button {
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button.primary {
    background: var(--accent);
    color: #0a0b0f;
    box-shadow: 0 16px 34px rgba(245, 107, 74, 0.35);
}

.button.secondary {
    background: transparent;
    border-color: var(--stroke);
    color: var(--text);
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(245, 107, 74, 0.18);
}

.features {
    padding: 0 10vw 100px;
    display: grid;
    gap: 32px;
}

.features h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 42px;
    margin: 0 0 10px;
}

.features p {
    color: var(--muted);
    max-width: 520px;
}

.section-intro h2 {
    margin-top: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.feature-grid article {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 101, 74, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.work {
    padding: 0 10vw 120px;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.work h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 48px;
    margin: 0;
}

.projects-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    display: grid;
    grid-template-rows: minmax(0, 280px) auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.project-media {
    position: relative;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(7, 9, 12, 0.5), transparent 60%);
}

.project-content {
    padding: 24px;
    display: grid;
    gap: 12px;
    align-content: center;
}

.project-card.text-only {
    grid-template-rows: auto;
}

.project-card.text-only .project-content {
    min-height: 200px;
}

.project-content h3 {
    margin: 0;
    font-size: 22px;
}

.project-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.project-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 10px;
}

.pagination button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.empty-state {
    background: var(--card);
    border: 1px dashed var(--stroke);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

.hidden {
    display: none;
}

footer {
    padding: 60px 10vw 80px;
    border-top: 1px solid var(--stroke);
    background: var(--bg-soft);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.disclaimer {
    margin-top: 18px;
    font-size: 12px;
    color: #777c88;
}

.fade-enter {
    opacity: 0;
    transform: translateY(16px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Scroll reveal: calm, controlled entrance. */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero {
        gap: 64px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-top {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .hero-nav {
        flex-wrap: wrap;
    }

    .work-header {
        align-items: flex-start;
    }
}
