/* ==========================================================
   360 DEF - Design system
   Palette: near-black + warm off-white + single plum accent
   Fonts: Manrope
   ========================================================== */

:root {
    --bg: #0c0b10;
    --fg: #f0eeeb;
    --dim: #ccc9c3;
    --line: rgba(255, 255, 255, 0.07);
    --accent: #a374db;
    --sans: "Manrope", system-ui, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --wrap: 1200px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--sans);
    font-weight: 400;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

em { font-style: normal; color: var(--accent); }

.wrap {
    width: min(100% - 3rem, var(--wrap));
    margin: 0 auto;
    flex-shrink: 0;
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: transparent;
    transition: background 0.4s var(--ease);
}

.site-header.scrolled {
    background: rgba(12, 11, 16, 0.85);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--fg);
}

.brand strong {
    font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 0.1rem; }

.nav a {
    position: relative;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    padding: 0.5rem 0.9rem;
    transition: color 0.25s var(--ease);
    letter-spacing: 0.01em;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after { width: 50%; }

.nav a:hover,
.nav a:focus-visible { color: var(--fg); }

.nav a.active { color: var(--fg); }

.nav-cta::after { display: none !important; }

.nav-cta {
    background: #fff !important;
    color: #0c0b10 !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
    margin-left: 0.6rem;
    border-radius: 6px;
}

.nav-cta:hover, .nav-cta:focus-visible { opacity: 0.88; }

.burger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; position: relative;
}

.burger span,
.burger::before,
.burger::after {
    content: "";
    position: absolute; left: 4px;
    width: 24px; height: 1.5px;
    background: var(--fg);
    border-radius: 2px;
    transition: 0.25s var(--ease);
}

.burger::before { top: 9px; }
.burger span { top: 15px; }
.burger::after { top: 21px; }

.burger[aria-expanded="true"]::before { top: 15px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { top: 15px; transform: rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 12vh, 10rem) 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -30%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, rgba(163, 116, 219, 0.12), transparent 70%);
    pointer-events: none;
}

.label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.hero h1 {
    margin-top: 1.2rem;
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(3.2rem, 7.5vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--fg);
}

.hero h1 em {
    font-weight: 300;
}

.hero-body {
    margin-top: 2rem;
    font-size: 1.08rem;
    color: var(--dim);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex; flex-wrap: wrap; gap: 1rem;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
    display: inline-flex; align-items: center;
    font-family: var(--sans);
    font-size: 0.88rem; font-weight: 600;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
    border: none; cursor: pointer;
    background: #fff; color: #0c0b10;
    transition: 0.22s var(--ease);
}

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

.btn--outline {
    background: transparent;
    color: var(--fg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.btn--outline:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }

/* ==========================================================
   ABOUT
   ========================================================== */

.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-top: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about h2 {
    margin-top: 0.6rem;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.about-right > p {
    color: var(--dim);
    font-size: 1.05rem;
}

.about-cards {
    margin-top: 2rem;
    display: flex; flex-direction: column;
    gap: 0.75rem;
}

.about-card {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: 0.25s var(--ease);
}

.about-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.035);
}

.about-card h3 { font-size: 1rem; font-weight: 600; }

.about-card p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--dim); }

/* ==========================================================
   SERVICES LIST
   ========================================================== */

.services {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-top: 1px solid var(--line);
}

.services h2 {
    margin-top: 0.8rem;
    font-weight: 300;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 18ch;
}

.svc-intro {
    margin-top: 1.2rem;
    color: var(--dim);
    font-size: 1.05rem;
    max-width: 52ch;
}

.svc-list {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.svc-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 1.8fr;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.svc-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.svc-row h3 {
    font-size: 1.05rem;
    font-weight: 500;
}

.svc-row p {
    font-size: 0.9rem;
    color: var(--dim);
}

/* ==========================================================
   APPROACH
   ========================================================== */

.approach {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-top: 1px solid var(--line);
}

.approach h2 {
    margin-top: 0.8rem;
    font-weight: 300;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 20ch;
}

.approach-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.approach-step {
    position: relative;
    padding: 1.8rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: 0.25s var(--ease);
}

.approach-step:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.035);
}

.approach-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.approach-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.approach-step p {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--dim);
}

/* ==========================================================
   CREDENTIALS
   ========================================================== */

.creds {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-top: 1px solid var(--line);
}

.creds h2 {
    margin-top: 0.8rem;
    font-weight: 300;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 18ch;
}

.creds-intro {
    margin-top: 1.2rem;
    color: var(--dim);
    font-size: 1.05rem;
    max-width: 52ch;
}

.creds-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.cred {
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: 0.25s var(--ease);
}

.cred:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.035);
}

.cred h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cred p { margin-top: 0.55rem; font-size: 0.88rem; color: var(--dim); }

/* ==========================================================
   CONTACT
   ========================================================== */

.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
}

.contact-center {
    max-width: 600px;
    text-align: left;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.contact h2 {
    margin-top: 0.6rem;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.contact-center > p {
    margin-top: 0.8rem;
    color: var(--dim);
    font-size: 1.05rem;
}

.contact-items {
    margin-top: 1.8rem;
    display: flex; flex-direction: column;
    gap: 0;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    transition: 0.2s var(--ease);
}

.contact-row:last-child { border-bottom: 1px solid var(--line); }

.contact-row:hover { opacity: 0.8; }

.contact-key {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dim);
}

.contact-val { font-weight: 500; }

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
}

.footer-inner {
    text-align: center;
}

.footer-copy { font-size: 0.78rem; color: var(--dim); }

/* ==========================================================
   REVEAL
   ========================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ==========================================================
   FOCUS
   ========================================================== */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .creds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .burger { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: rgba(12,11,16,0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        padding: 0.8rem 1.2rem 1rem;
        gap: 0;
    }

    .nav.open { display: flex; }

    .nav a {
        padding: 0.7rem 0.4rem;
        color: var(--fg);
        border-bottom: 1px solid var(--line);
    }

    .nav a::after { display: none; }

    .nav a:last-child { border-bottom: none; }

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

    .svc-row {
        grid-template-columns: 2.5rem 1fr;
        gap: 0.6rem;
    }

    .svc-row p {
        grid-column: 2;
    }

    .approach-grid { grid-template-columns: 1fr; }
    .creds-grid { grid-template-columns: 1fr; }

    .hero h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); }
}

@media (max-width: 480px) {
    .hero { padding-top: 7.5rem; }
}
