:root {
    /* Brand Colors — warm, sophisticated, not generic tech */
    --ink: #1a1a1a;
    --paper: #faf8f5;
    --warm: #c8956c;
    --warm-light: #e8c9a8;
    --warm-dark: #a0714e;
    --slate: #4a4a4a;
    --mist: #e8e4df;
    --ghost: #f2efeb;
    --white: #ffffff;
}

/* ─── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Typography ───────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

p {
    font-size: 1.05rem;
    color: var(--slate);
    max-width: 600px;
}

.label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm);
}

/* ─── Layout ───────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
}

/* ─── Navigation ───────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--mist);
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-logo span {
    color: var(--warm);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--warm);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.nav-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
}

/* ─── Hero ─────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 750px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.isometric-stack {
    position: relative;
    width: 280px;
    height: 280px;
    transform: rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    margin-top: -60px;
}

.iso-cube {
    position: absolute;
    width: 140px;
    height: 140px;
    transform-style: preserve-3d;
    transform: translate3d(calc(var(--x) * 140px), calc(var(--y) * 140px), 0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.iso-cube:hover {
    transform: translate3d(calc(var(--x) * 140px), calc(var(--y) * 140px), 60px);
}

.iso-cube-subtle:hover {
    transform: translate3d(calc(var(--x) * 140px), calc(var(--y) * 140px), 10px);
}

.iso-face {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.iso-top {
    width: 140px;
    height: 140px;
    background: var(--c-top);
    transform: translateZ(calc(var(--h) * 140px));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.iso-text {
    transform: rotateZ(45deg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

.iso-front {
    width: 140px;
    height: calc(var(--h) * 140px);
    background: var(--c-front);
    bottom: 0;
    left: 0;
    transform-origin: bottom;
    transform: rotateX(-90deg);
}

.iso-right {
    width: calc(var(--h) * 140px);
    height: 140px;
    background: var(--c-right);
    bottom: 0;
    right: 0;
    transform-origin: right;
    transform: rotateY(-90deg);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.hero-content h1 em {
    font-style: italic;
    color: var(--warm);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: var(--warm-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
    border: 1.5px solid var(--mist);
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    background: none;
}

.btn-secondary:hover {
    border-color: var(--warm);
    color: var(--ink);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--mist);
}

.stat h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ink);
}

.stat p {
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 0.25rem;
}

/* ─── Services ─────────────────────────────────── */
.services {
    background: var(--white);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-top: 0.75rem;
}

.t-services-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.t-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease;
}

.t-card:hover {
    transform: translateY(-5px);
}

.t-card-offset {
    margin-left: 3rem;
}

.t-card-header {
    background: rgba(250, 248, 245, 0.5);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--ghost);
}

.t-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.t-icon i {
    width: 24px;
    height: 24px;
}

.t-card-header h3 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.t-card-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t-card-body p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.t-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.t-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: var(--ghost);
    color: var(--slate);
    border-radius: 2px;
}

/* ─── Process ──────────────────────────────────── */
.process {
    background: var(--ink);
    color: var(--paper);
}

.process .label {
    color: var(--warm-light);
}

.process h2 {
    color: var(--paper);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 800px;
    margin: 6rem auto 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45px;
    width: 2px;
    background: rgba(200, 149, 108, 0.2);
    z-index: 1;
}

.step {
    position: relative;
    padding-left: 120px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 90px;
    height: 90px;
    background: var(--ink);
    border: 2px solid var(--warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--warm);
    z-index: 2;
    box-shadow: 0 0 0 10px var(--ink);
}

.step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--paper);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.step p {
    font-size: 1.1rem;
    color: rgba(250, 248, 245, 0.7);
    line-height: 1.6;
    max-width: 600px;
}

/* ─── Work / Portfolio ─────────────────────────── */
.work {
    background: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.work-card {
    background: var(--paper);
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.accent-automation {
    background: var(--warm);
}

.accent-integration {
    background: #5a8f7b;
}

.accent-web {
    background: var(--ink);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.work-card .label {
    margin-bottom: 0.75rem;
    display: inline-block;
}

.work-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.work-card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.work-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.work-tools span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--mist);
    border-radius: 3px;
    color: var(--slate);
}

/* ─── CTA / Contact ────────────────────────────── */
.cta-section {
    padding: 8rem 0;
    background: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

.cta-text p {
    margin-bottom: 2.5rem;
    max-width: 500px;
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Contact Form */
.contact-form {
    background: var(--paper);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--mist);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-family: 'Outfit', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--mist);
    border-radius: 4px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.1);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.btn-email {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-email:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.2);
    transform: translateY(-2px);
}

.btn-email:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
    background: #333;
    border-color: #333;
    color: var(--white);
}

.cta-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--mist);
    border-radius: 50%;
    color: var(--slate);
    transition: all 0.25s ease;
}

.social-link:hover {
    border-color: var(--warm);
    color: var(--warm-dark);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ─── Footer ───────────────────────────────────── */
footer {
    background: var(--ink);
    color: rgba(250, 248, 245, 0.5);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--paper);
}

.footer-logo span {
    color: var(--warm);
}

footer p {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.4);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--warm-light);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(250, 248, 245, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--warm-light);
}

/* ─── Animations ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ─── Toast Notification ───────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--ink);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #1a5c2a;
}

.toast.error {
    background: #8b2020;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ─── Back to Top ──────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--warm);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .t-card {
        grid-template-columns: 1fr;
    }

    .t-card-offset {
        margin-left: 0;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-text {
        text-align: center;
    }

    .cta-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-socials {
        margin-left: 0 !important;
        justify-content: center;
    }

    .process-steps {
        max-width: 100%;
    }

    .process-steps::before {
        left: 35px;
    }

    .step {
        padding-left: 100px;
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    .step h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero .label {
        white-space: normal !important;
        font-size: 0.7rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .t-card-header h3 {
        font-size: 1.4rem;
    }

    .t-card-body p {
        font-size: 1rem;
    }

    .process-steps::before {
        left: 25px;
    }

    .step {
        padding-left: 80px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .step h3 {
        font-size: 1.3rem;
        padding-top: 0.5rem;
    }

    .step p {
        font-size: 0.95rem;
    }

    .work-card {
        margin-top: 0 !important;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .t-card-header {
        padding: 2rem 1.5rem;
    }

    .t-card-body {
        padding: 2rem 1.5rem;
    }

    .step {
        padding-left: 65px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }

    .process-steps::before {
        left: 22px;
    }

    .step h3 {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}