/* ============================================
   Aevum - Design System
   ============================================ */

:root {
    --bg: #09090b;
    --bg-subtle: #0f0f12;
    --bg-card: #141419;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);

    --text: #ededef;
    --text-secondary: #7c7c8a;
    --text-muted: #4a4a55;

    --accent: #c9a87c;
    --accent-hover: #dbb98d;
    --accent-glow: rgba(201, 168, 124, 0.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius: 10px;
    --radius-sm: 6px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   Noise Overlay
   ============================================ */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   Cursor Glow
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 140px 0;
}

.section-alt {
    background: var(--bg-subtle);
}

/* ============================================
   Typography
   ============================================ */

h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #e8d5b8 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header {
    max-width: 480px;
    margin-bottom: 64px;
}

.section-header h2 {
    color: var(--text);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Header
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

nav {
    display: flex;
    gap: 36px;
}

nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 40px 120px;
    overflow: hidden;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3d5a80 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: orbFloat2 10s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, -20px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%); }
    33% { transform: translate(calc(-50% + 15px), calc(-50% - 25px)); }
    66% { transform: translate(calc(-50% - 10px), calc(-50% + 15px)); }
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 2;
}

.hero-tag {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 28px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
    margin: 0 auto 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Capabilities
   ============================================ */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.capability-card {
    padding-top: 24px;
    border-top: 1px solid var(--accent);
}

.capability-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Selected Work
   ============================================ */

.work-list {
    border-top: 1px solid var(--border);
}

.work-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
    cursor: default;
}

.work-item:hover {
    padding-left: 8px;
}

.work-category {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.work-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.work-result {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================
   Studio Projects
   ============================================ */

.studio-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 56px 48px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.studio-card:hover {
    border-color: rgba(201, 168, 124, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(201, 168, 124, 0.06);
}

.studio-card-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.12) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.5;
}

.studio-card:hover .studio-card-glow {
    opacity: 1;
    transform: scale(1.1);
}

.studio-card-content {
    position: relative;
    z-index: 1;
}

.studio-card-label {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg);
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.studio-card-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.1;
}

.studio-card-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 28px;
}

.studio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.studio-card:hover .studio-card-link {
    gap: 12px;
}

/* ============================================
   Manifesto
   ============================================ */

.manifesto {
    padding: 120px 0;
    position: relative;
}

.manifesto-content {
    text-align: center;
}

.manifesto-content p {
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

/* ============================================
   Engagement
   ============================================ */

.engage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.engage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: border-color 0.3s ease;
}

.engage-card:hover {
    border-color: var(--border-hover);
}

.engage-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.engage-duration {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.engage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Contact
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-form-wrapper {
    position: relative;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.turnstile-wrapper {
    margin-top: 4px;
}

.turnstile-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

/* Success */
.success-message {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-message h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.capabilities-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.capabilities-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.work-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.work-item.reveal:nth-child(3) { transition-delay: 0.2s; }

.engage-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.engage-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
    .capabilities-grid,
    .engage-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .capabilities-grid {
        gap: 32px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section {
        padding: 100px 0;
    }

    .manifesto {
        padding: 80px 0;
    }

    .work-item {
        grid-template-columns: 100px 1fr auto;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 24px;
    }

    header.scrolled {
        padding: 12px 24px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 140px 24px 100px;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .manifesto {
        padding: 64px 0;
    }

    .studio-card {
        padding: 36px 28px;
    }

    .studio-card-title {
        font-size: 2rem;
    }

    .studio-card-glow {
        width: 250px;
        height: 250px;
        top: -30%;
        right: -15%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }

    .engage-card {
        padding: 28px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
