/* ============================================
   CONSULTONES — Award-Quality Digital Studio
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --fg: #f5f5f0;
    --fg-muted: #888;
    --accent: #e8522a;
    --accent-hover: #ff6b42;
    --border: rgba(255,255,255,0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

html {
    font-size: 16px;
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    cursor: none;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

::selection {
    background: var(--accent);
    color: var(--fg);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 80px);
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--fg);
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -4px;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245,245,240,0.5);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -20px;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), top 0.3s var(--ease), left 0.3s var(--ease), border-color 0.3s;
}

.cursor.hovering .cursor-circle {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    border-color: var(--accent);
}

@media (pointer: coarse) {
    .cursor { display: none; }
    body { cursor: auto; }
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 48px clamp(24px, 4vw, 80px);
}

.loader-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.loader-line {
    flex: 1;
    height: 1px;
    background: var(--fg);
    transform-origin: left;
    transform: scaleX(0);
}

.loader-counter {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    min-width: 48px;
    text-align: right;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(24px, 4vw, 80px);
    mix-blend-mode: difference;
    opacity: 0;
    transform: translateY(-20px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-logo svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    display: block;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
    padding: 8px;
    z-index: 1001;
}

.nav-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at calc(100% - 52px) 40px);
    transition: clip-path 0.8s var(--ease);
}

.mobile-menu.open {
    clip-path: circle(150% at calc(100% - 52px) 40px);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s, transform 0.6s var(--ease);
}

.mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.4s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.5s; }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px clamp(24px, 4vw, 80px) 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(232,82,42,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 32px;
    opacity: 0;
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(52px, 10vw, 140px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-title .line-wrap {
    overflow: hidden;
    padding-bottom: 12px;
    padding-top: 6px;
}

.hero-title .line {
    display: block;
    transform: translateY(110%);
}

.hero-title .accent {
    color: var(--accent);
    -webkit-text-stroke: 0;
}

.hero-desc {
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.6;
    color: var(--fg-muted);
    max-width: 560px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: clamp(24px, 4vw, 80px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-muted);
    opacity: 0;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--fg-muted), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-platforms {
    position: absolute;
    bottom: 40px;
    right: clamp(24px, 4vw, 80px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--fg-muted);
    opacity: 0;
}

.hero-platforms .sep {
    opacity: 0.3;
}

/* --- Marquee --- */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.tech-marquee {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    animation: marquee 30s linear infinite;
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.marquee-reverse .marquee-inner {
    animation-direction: reverse;
}

.marquee-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

/* --- About --- */
.about {
    padding: clamp(80px, 12vw, 180px) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 120px);
    align-items: start;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.text-muted {
    color: var(--fg-muted);
}

.about-text {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.7;
    color: var(--fg-muted);
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    display: inline;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2vw, 36px);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--fg-muted);
    margin-top: 4px;
}

/* --- Services --- */
.services {
    padding: clamp(80px, 12vw, 180px) 0;
    background: #0f0f0f;
}

.services-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 64px;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 32px;
    align-items: start;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    transition: background 0.4s;
    cursor: none;
}

.service-item:last-child {
    border-bottom: 1px solid var(--border);
}

.service-item:hover {
    background: rgba(255,255,255,0.02);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding-top: 4px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.service-item:hover .service-content h3 {
    color: var(--accent);
}

.service-content p {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
    color: var(--fg-muted);
    max-width: 500px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 260px;
    padding-top: 4px;
}

.service-tags span {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--fg-muted);
    transition: border-color 0.3s, color 0.3s;
}

.service-item:hover .service-tags span {
    border-color: rgba(232,82,42,0.3);
    color: var(--fg);
}

/* --- Work / Horizontal Scroll --- */
.work {
    padding: clamp(80px, 12vw, 180px) 0 0;
}

.work-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 64px;
}

.work-horizontal {
    overflow: hidden;
}

.work-track {
    display: flex;
    gap: 32px;
    padding: 0 clamp(24px, 4vw, 80px) 80px;
    width: max-content;
}

.work-card {
    width: clamp(320px, 30vw, 500px);
    flex-shrink: 0;
    cursor: none;
}

.work-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.6s var(--ease);
}

.work-card:hover .work-card-img {
    transform: scale(0.97);
}

.work-card-placeholder {
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.3);
}

.work-card-placeholder svg {
    width: 100%;
    height: 100%;
}

.work-card-info {
    padding: 0 4px;
}

.work-card-cat {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.work-card-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.work-card-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-muted);
}

/* --- Process --- */
.process {
    padding: clamp(80px, 12vw, 180px) 0;
}

.process-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 64px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    padding: 40px 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.4s, background 0.4s;
    position: relative;
}

.process-step:hover {
    border-color: rgba(232,82,42,0.3);
    background: rgba(255,255,255,0.02);
}

.process-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--accent);
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

.process-num {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-muted);
    margin-bottom: 12px;
    display: block;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--fg-muted);
}

/* --- Philosophy --- */
.philosophy {
    padding: clamp(80px, 12vw, 180px) 0;
    background: #0f0f0f;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 48px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.philosophy-quote .accent {
    color: var(--accent);
    font-style: italic;
}

/* --- Contact --- */
.contact {
    padding: clamp(80px, 12vw, 180px) 0;
}

.contact-top {
    margin-bottom: 80px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.contact-title .accent {
    color: var(--accent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 120px);
    align-items: start;
}

.contact-block {
    margin-bottom: 40px;
}

.contact-block h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.contact-block a,
.contact-block address {
    display: block;
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
    color: var(--fg-muted);
    transition: color 0.3s;
}

.contact-block a:hover {
    color: var(--fg);
}

.contact-socials {
    display: flex;
    gap: 24px;
}

.contact-socials a {
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.contact-socials a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.contact-socials a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 16px;
    color: var(--fg);
    transition: border-color 0.3s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 16px;
    color: var(--fg-muted);
    pointer-events: none;
    transition: all 0.3s var(--ease);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group select {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 16px;
    color: var(--fg-muted);
    cursor: pointer;
    appearance: none;
    transition: border-color 0.3s;
}

.form-group select:focus {
    border-color: var(--accent);
}

.form-group select option {
    background: var(--bg);
    color: var(--fg);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--fg);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: none;
    transition: background 0.3s, transform 0.3s var(--ease);
    align-self: flex-start;
    margin-top: 8px;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease);
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--fg-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--fg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--fg-muted);
}

/* --- Reveal Animations --- */
.reveal-text {
    opacity: 0;
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-item {
        grid-template-columns: 60px 1fr;
    }

    .service-tags {
        grid-column: 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-title {
        font-size: clamp(40px, 12vw, 80px);
    }

    .services-title,
    .work-title,
    .process-title,
    .contact-title {
        font-size: clamp(36px, 10vw, 64px);
    }

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

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

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

    .service-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-number {
        padding: 0;
    }

    .hero-platforms {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .contact-socials {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .marquee-inner {
        gap: 24px;
    }
}
