/* ===== 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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fb;
    color: #111827;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(248, 249, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom-color: #e5e7eb;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: block; }
.nav-logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s;
    font-family: 'JetBrains Mono', monospace;
}
.nav-links a:hover { color: #111827; }
.nav-links a.active { color: #3b82f6; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111827;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #3b82f6;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #3b82f6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

/* ===== HERO (Index) ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    top: 20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}
.hero-split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { position: relative; }
.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #3b82f6;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-label.visible { opacity: 1; transform: translateY(0); }
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
    min-height: 1.2em;
}
.hero-title::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #3b82f6;
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #6b7280;
    margin-top: 24px;
    max-width: 520px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }
.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-ctas.visible { opacity: 1; transform: translateY(0); }
.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.hero-image-wrapper.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    filter: brightness(0.9) saturate(1.1);
}
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 60%);
    pointer-events: none;
}

/* ===== TEASER ROW (Index) ===== */
.teaser-section { padding-top: 0; }
.teaser-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.teaser-item {
    text-align: center;
    padding: 32px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.teaser-item:hover { background: rgba(59, 130, 246, 0.04); }
.teaser-item a { display: block; color: inherit; }
.teaser-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    color: #3b82f6;
}
.teaser-item p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.teaser-desc {
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.4;
}

/* ===== PAGE HERO (Inner pages) ===== */
.page-hero {
    padding: 140px 0 60px;
    border-bottom: 1px solid #e5e7eb;
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    line-height: 1.7;
}

/* ===== SECTION HEADERS ===== */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 36px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: #3b82f6;
}
.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}
.service-card ul {
    margin-top: 16px;
    list-style: none;
}
.service-card ul li {
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.service-card ul li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 0.75rem;
}

/* ===== WORK / PORTFOLIO ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.work-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: #d1d5db;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.work-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: filter 0.4s ease;
}
.work-card:hover .work-card-img { filter: brightness(0.95) saturate(1); }
.work-card-body { padding: 24px; }
.work-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}
.work-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
.coming-soon {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    grid-column: 1 / -1;
}
.coming-soon p {
    color: #9ca3af;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* ===== PROCESS ===== */
.process-steps { max-width: 800px; }
.process-detail {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 48px 0;
    border-bottom: 1px solid #e5e7eb;
}
.process-detail:last-child { border-bottom: none; }
.process-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.2);
    line-height: 1;
}
.process-detail h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}
.process-detail > div p {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 12px;
}
.process-detail > div p:last-child { margin-bottom: 0; }
.process-deliverables {
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #6b7280;
}
.process-deliverables strong {
    color: #374151;
    font-weight: 500;
}

/* ===== ABOUT ===== */
.about-content { max-width: 680px; }
.about-content p {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-content p:last-child { margin-bottom: 0; }
.about-content strong { color: #111827; font-weight: 600; }
.differentiators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.differentiator {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.differentiator:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.06);
}
.differentiator h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}
.differentiator p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit {
    align-self: flex-start;
    padding: 14px 32px;
    background: #3b82f6;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.form-submit:hover {
    background: #2563eb;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status {
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.15);
}
.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.contact-info { padding-top: 4px; }
.contact-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}
.contact-info p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}
.contact-email {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #3b82f6;
    transition: color 0.2s;
}
.contact-email:hover { color: #60a5fa; }
.contact-response {
    margin-top: 24px;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== RECENT WORK TEASER (Index) ===== */
.recent-work-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}
.recent-work-header .section-label { margin-bottom: 0; }
.recent-work-header a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #3b82f6;
    transition: color 0.2s;
}
.recent-work-header a:hover { color: #2563eb; }
.recent-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.recent-work-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.recent-work-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.recent-work-card img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.9) saturate(0.9);
}
.recent-work-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}
.recent-work-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid #e5e7eb;
}
.cta-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta-section p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 1.0625rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand img { display: block; opacity: 0.6; }
.footer-brand p { font-family: 'JetBrains Mono', monospace; }
.footer p {
    font-size: 0.8125rem;
    color: #9ca3af;
}
.footer a {
    color: #9ca3af;
    transition: color 0.2s;
}
.footer a:hover { color: #6b7280; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; gap: 40px; }
    .hero-image-wrapper { max-width: 560px; }
    .hero-image-wrapper img { height: 360px; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(248, 249, 251, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.25rem; color: #374151; }
    .nav-links a.active { color: #3b82f6; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    section { padding: 80px 0; }
    .page-hero { padding: 110px 0 48px; }
    .hero-image-wrapper img { height: 280px; }
    .services-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .process-detail { grid-template-columns: 60px 1fr; gap: 16px; padding: 32px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .differentiators { grid-template-columns: 1fr; }
    .teaser-row { grid-template-columns: repeat(2, 1fr); }
    .section-title { margin-bottom: 40px; }
    .footer .container { flex-direction: column; gap: 8px; text-align: center; }
    .cta-section { padding: 40px 0; }
    .recent-work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .teaser-row { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
}
