﻿/* ══════════════════════════════════════════════
   CODECRAFT STUDIO — SHARED STYLES
   ══════════════════════════════════════════════ */

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

:root {
    --bg:          oklch(96% 0.006 50);
    --bg-inv:      oklch(10% 0.008 50);
    --text:        oklch(13% 0.010 50);
    --text-mid:    oklch(40% 0.008 50);
    --text-light:  oklch(58% 0.006 50);
    --accent:      oklch(50% 0.13 28);
    --border:      oklch(84% 0.005 50);
    --border-inv:  oklch(20% 0.008 50);

    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --mono:  'Space Mono', 'Courier New', Courier, monospace;
    --sans:  'Inter', system-ui, -apple-system, sans-serif;

    --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection {
    background: var(--accent);
    color: oklch(97% 0 0);
}

.label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.pad { padding-left: clamp(20px, 4vw, 80px); padding-right: clamp(20px, 4vw, 80px); }

/* ══ NAV ══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    mix-blend-mode: difference;
    pointer-events: none;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    pointer-events: auto;
}

.logo {
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: oklch(95% 0 0);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.nav-links a {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: oklch(72% 0 0);
    text-decoration: none;
    transition: color 180ms;
}

.nav-links a:hover { color: oklch(100% 0 0); }

/* Active nav indicator */
.nav-links a.active {
    color: oklch(100% 0 0);
    border-bottom: 1.5px solid oklch(100% 0 0);
    padding-bottom: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    pointer-events: auto;
    position: relative;
    z-index: 120;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: oklch(95% 0 0);
    margin: 5px 0;
    transition: transform 300ms var(--ease-expo), opacity 200ms, background-color 200ms;
}

/* Hamburger active transform */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.25px) rotate(-45deg);
}

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

    .nav-links {
        position: fixed;
        inset: 0;
        background: oklch(8% 0.008 50 / 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 300ms var(--ease-expo), visibility 300ms;
        z-index: 110;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.125rem;
        letter-spacing: 0.12em;
        color: oklch(88% 0 0);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }
}


/* ══ HERO ═════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 72px;
    position: relative;
    background: var(--bg-inv);
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        oklch(6% 0.008 50 / 0.7) 0%,
        oklch(8% 0.008 50 / 0.6) 40%,
        oklch(10% 0.008 50 / 0.95) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.25rem, 9.5vw, 8.5rem);
    font-weight: 400;
    line-height: 0.94;
    color: oklch(94% 0.004 50);
    letter-spacing: -0.032em;
    margin-bottom: 52px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-desc {
    font-size: 0.9375rem;
    color: oklch(60% 0.004 50);
    max-width: 36ch;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: oklch(10% 0 0);
    background: oklch(91% 0 0);
    padding: 15px 26px;
    width: fit-content;
    transition: background 220ms var(--ease-expo), color 220ms;
}

.hero-cta:hover {
    background: var(--accent);
    color: oklch(97% 0 0);
}

.hero-cta svg {
    width: 13px; height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 220ms var(--ease-expo);
}

.hero-cta:hover svg { transform: translateX(3px); }

.hero-scroll {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: oklch(44% 0 0);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: color 250ms;
    align-self: flex-end;
}

.hero-scroll:hover { color: oklch(72% 0 0); }

.scroll-line {
    width: 48px;
    height: 1px;
    background: oklch(32% 0 0);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: oklch(65% 0 0);
    animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}

/* ══ PAGE HEADER (for inner pages) ════════════ */
.page-header {
    background: var(--bg-inv);
    padding: 160px 0 80px;
    color: oklch(94% 0.004 50);
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.page-header h1 em {
    font-style: italic;
    color: var(--accent);
}

.page-header-desc {
    font-size: 0.9375rem;
    color: oklch(56% 0.004 50);
    max-width: 42ch;
    line-height: 1.8;
}

/* ══ SERVICES ═════════════════════════════════ */
.services { padding: 128px 0 104px; }

.services-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 88px;
    align-items: start;
}

.services-intro h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.services-intro p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 46ch;
    padding-top: 10px;
}

.services-list { counter-reset: service; }

.service-row {
    counter-increment: service;
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 28px;
    padding: 38px 0;
    border-top: 1px solid var(--border);
    align-items: center;
    cursor: default;
    position: relative;
    transition:
        padding-left 400ms var(--ease-expo),
        border-color 300ms;
    overflow: hidden;
}

/* Animated left bar that sweeps in on hover */
.service-row::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 380ms var(--ease-expo);
}

.service-row:hover::after { transform: scaleY(1); }

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

.service-row:hover { padding-left: 18px; border-color: oklch(70% 0.005 50); }

/* Animated number — turns accent on hover */
.service-row::before {
    content: counter(service, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    transition: color 300ms var(--ease-expo), transform 300ms var(--ease-expo);
    display: block;
}

.service-row:hover::before { color: var(--accent); transform: translateY(-2px); }

.service-row h3 {
    font-family: var(--serif);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.15;
    transition: color 280ms var(--ease-expo), letter-spacing 300ms var(--ease-expo);
}

.service-row:hover h3 {
    color: var(--accent);
    letter-spacing: -0.025em;
}

.service-row p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 44ch;
    transition: color 280ms var(--ease-expo), transform 280ms var(--ease-expo);
    transform: translateX(0);
}

.service-row:hover p {
    color: var(--text);
    transform: translateX(6px);
}

/* ══ PROCESS ══════════════════════════════════ */
.process {
    padding: 96px 0;
    background: oklch(93% 0.005 50);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-header { margin-bottom: 56px; }

.process-header h2 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-left: 1px solid var(--border);
}

.process-step {
    padding: 28px 28px 28px 24px;
    border-right: 1px solid var(--border);
}

.step-num {
    font-family: var(--mono);
    font-size: 0.625rem;
    color: var(--accent);
    display: block;
    margin-bottom: 18px;
    letter-spacing: 0.06em;
}

.process-step h3 {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.process-step p {
    font-size: 0.8125rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ══ WORK ═════════════════════════════════════ */
.work {
    padding: 128px 0;
    background: var(--bg-inv);
    color: oklch(90% 0.004 50);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
    gap: 24px;
}

.work-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.work-header .label { color: oklch(44% 0 0); }

/* Project rows */
.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-inv);
    position: relative;
    overflow: hidden;
    transition:
        background 280ms var(--ease-expo),
        border-color 280ms;
}

.project:hover {
    background: oklch(13% 0.008 50);
    border-color: oklch(28% 0.012 28);
}

.project:last-of-type { border-bottom: 1px solid var(--border-inv); }

.project-text {
    padding: 52px 52px 52px 0;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.project-name {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    color: oklch(92% 0.003 50);
    transition: color 280ms var(--ease-expo);
}

.project:hover .project-name { color: var(--accent); }

.project-desc {
    font-size: 0.875rem;
    color: oklch(56% 0.004 50);
    line-height: 1.75;
    max-width: 42ch;
    margin-bottom: 28px;
}

/* Status badge */
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    width: fit-content;
}

.project-status::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-live  { color: oklch(70% 0.14 152); }
.status-live::before  { background: oklch(70% 0.14 152); }

.status-dev   { color: oklch(68% 0.10 58); }
.status-dev::before   { background: oklch(68% 0.10 58); }

.status-oss   { color: oklch(68% 0.09 200); }
.status-oss::before   { background: oklch(68% 0.09 200); }

/* Tech tags */
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.stack-tag {
    font-family: var(--mono);
    font-size: 0.5625rem;
    letter-spacing: 0.07em;
    color: oklch(40% 0 0);
    padding: 3px 8px;
    border: 1px solid oklch(26% 0 0);
}

/* Project visual — flat, no garish gradients */
.project-visual {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.project-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 400ms var(--ease-expo),
        transform 500ms var(--ease-expo);
    transform: scale(1);
}

.project:hover .project-img { transform: scale(1.03); }

/* Flat, serious color backgrounds */
.pv-edyfra   { background: oklch(15% 0.07 262); }
.pv-gnt      { background: oklch(13% 0.06 275); }
.pv-belloria { background: oklch(14% 0.04 338); }
.pv-preflight{ background: oklch(11% 0.05 155); }

/* Subtle top-left light source */
.pv-edyfra::before,
.pv-gnt::before,
.pv-belloria::before,
.pv-preflight::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at 0% 0%, oklch(100% 0 0 / 0.045) 0%, transparent 70%);
    pointer-events: none;
}

.project-img { opacity: 0.5; }
.project:hover .project-img { opacity: 0.85; }

.project-mark {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    color: oklch(90% 0 0 / 0.18);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    transition: color 350ms var(--ease-expo), letter-spacing 350ms var(--ease-expo);
}

.project:hover .project-mark {
    color: oklch(90% 0 0 / 0.38);
    letter-spacing: 0.18em;
}

.project-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid oklch(55% 0 0 / 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms var(--ease-expo), transform 300ms var(--ease-expo);
}

.project:hover .project-arrow {
    opacity: 1;
    transform: translateY(0);
}

.project-arrow svg {
    width: 13px; height: 13px;
    stroke: oklch(75% 0 0);
    fill: none;
    stroke-width: 2;
}

/* Project anchor reset */
a.project {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ══ CONTACT ══════════════════════════════════ */
.contact {
    padding: 120px 0 88px;
    border-top: 1px solid var(--border);
}

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

.contact h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-bottom: 40px;
}

.contact h2 em {
    font-style: italic;
    color: var(--accent);
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1.5px solid var(--text);
    transition: color 240ms var(--ease-expo), border-color 240ms, gap 240ms var(--ease-expo);
}

.contact-cta:hover {
    color: var(--accent);
    border-color: var(--accent);
    gap: 24px;
}

.contact-cta svg {
    width: 17px; height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 240ms var(--ease-expo);
}

.contact-cta:hover svg { transform: translateX(4px); }

.contact-details { display: grid; gap: 36px; }

.contact-block .label { margin-bottom: 9px; }

.contact-block a,
.contact-block p {
    font-size: 0.9375rem;
    color: var(--text);
    text-decoration: none;
    line-height: 1.7;
}

.contact-block a {
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 180ms;
}

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

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

.contact-socials a {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 180ms;
}

.contact-socials a:hover { color: var(--text); }

/* ══ FOOTER ═══════════════════════════════════ */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

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

.footer-copy {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    color: var(--text-light);
}

.footer-tagline {
    font-family: var(--serif);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-light);
}

/* ══ SCROLL REVEALS ═══════════════════════════ */
.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms var(--ease-expo), transform 800ms var(--ease-expo);
}

.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d { transition-delay: calc(var(--d, 0) * 100ms); }

/* ══ REDUCED MOTION ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
    .scroll-line::after { animation: none; }
}

/* ══ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 960px) {
    .services-intro { grid-template-columns: 1fr; gap: 20px; }

    .service-row {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        padding: 30px 0;
    }

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

    .project { grid-template-columns: 1fr; }
    .project-visual { min-height: 240px; order: -1; }
    .project-text { padding: 36px 0; }

    .work-header { flex-direction: column; align-items: flex-start; gap: 6px; }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        border-left: none;
    }
    .process-step {
        border: 1px solid var(--border);
        margin-top: -1px;
        margin-left: -1px;
    }

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

    .page-header { padding: 120px 0 60px; }
}

@media (max-width: 640px) {
    /* Mobile nav */
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: oklch(7% 0.006 50);
        z-index: 200;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        list-style: none;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        font-size: 1rem;
        color: oklch(82% 0 0);
        letter-spacing: 0.08em;
    }

    .nav-links a:hover { color: oklch(100% 0 0); }

    .nav-toggle { display: block; }

    /* Close × in mobile nav */
    .nav-links.open::after {
        content: '×';
        position: fixed;
        top: 28px;
        right: clamp(20px, 4vw, 80px);
        font-size: 2rem;
        color: oklch(60% 0 0);
        cursor: pointer;
        pointer-events: none; /* handled by JS */
    }

    .hero h1 { margin-bottom: 36px; }
    .hero-meta { flex-direction: column; gap: 28px; align-items: flex-start; }

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

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

    .project-stack { display: none; }

    .page-header { padding: 100px 0 48px; }
}

/* ══════════════════════════════════════════════
   3D PROJECT SHOWCASE (WORK SECTION)
   ══════════════════════════════════════════════ */

.work-3d-track {
    position: relative;
    height: 480vh;
    width: 100%;
    background: oklch(7% 0.006 50);
}

.work-3d-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: oklch(7% 0.006 50);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

/* Ambient dark presentation backdrop */
.work-dark-backdrop {
    position: absolute;
    inset: 0;
    background: oklch(3% 0.004 50);
    opacity: 0;
    transition: opacity 600ms var(--ease-expo);
    pointer-events: none;
    z-index: 1;
}

.work-spotlight {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 70vh;
    background: radial-gradient(ellipse at center, oklch(40% 0.12 28 / 0.15) 0%, oklch(15% 0.05 28 / 0.04) 45%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 600ms var(--ease-expo);
}

/* Stage Header */
.work-stage-header {
    position: relative;
    z-index: 5;
    padding-top: 92px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.work-header-left {
    pointer-events: auto;
}

.work-stage-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: oklch(95% 0 0);
    margin-top: 4px;
}

.work-stage-title em {
    font-style: italic;
    color: var(--accent);
}

.work-index-indicator {
    font-family: var(--mono);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: oklch(40% 0 0);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    background: oklch(10% 0 0 / 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border: 1px solid oklch(20% 0 0);
}

.work-index-current {
    color: var(--accent);
    font-size: 1.35rem;
}

/* 3D Scene Viewport */
.work-scene-3d {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    transform-style: preserve-3d;
    z-index: 3;
    pointer-events: none;
}

.work-orbit-ring {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Card */
.work-3d-card {
    position: absolute;
    width: clamp(340px, 45vw, 660px);
    aspect-ratio: 16 / 9.5;
    background: oklch(12% 0.008 50);
    border: 1px solid oklch(24% 0.008 50);
    border-radius: 10px;
    box-shadow:
        0 30px 70px -15px rgba(0, 0, 0, 0.8),
        0 0 1px 1px oklch(100% 0 0 / 0.05);
    transform-style: preserve-3d;
    transition:
        border-color 400ms var(--ease-expo),
        box-shadow 400ms var(--ease-expo);
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.work-3d-card.active {
    border-color: var(--accent);
    box-shadow:
        0 40px 90px -15px rgba(0, 0, 0, 0.9),
        0 0 30px oklch(50% 0.13 28 / 0.25);
}

/* Card Browser Chrome Bar */
.work-card-bar {
    height: 36px;
    background: oklch(14% 0.008 50);
    border-bottom: 1px solid oklch(22% 0.008 50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    user-select: none;
}

.work-card-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.work-card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.work-card-url {
    font-family: var(--mono);
    font-size: 0.5625rem;
    color: oklch(48% 0 0);
    background: oklch(9% 0 0);
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid oklch(18% 0 0);
}

.work-card-status {
    font-family: var(--mono);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    background: oklch(18% 0 0);
    color: oklch(75% 0 0);
}

/* Card Screen Container */
.work-card-screen {
    position: relative;
    width: 100%;
    height: calc(100% - 36px);
    background: oklch(8% 0.006 50);
    overflow: hidden;
}

.work-card-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 600ms var(--ease-expo), opacity 400ms;
    opacity: 0.88;
}

.work-3d-card:hover .work-card-screen img {
    transform: scale(1.03);
    opacity: 1;
}

/* Active Info Reveal Panel */
.work-active-info {
    position: relative;
    z-index: 5;
    padding-bottom: 72px;
    width: 100%;
    pointer-events: none;
}

.work-info-content {
    max-width: 640px;
    pointer-events: auto;
    transition: opacity 350ms var(--ease-expo), transform 350ms var(--ease-expo);
}

.work-info-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.work-info-category {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.work-info-status {
    font-family: var(--mono);
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: oklch(70% 0.14 152);
    background: oklch(12% 0 0 / 0.8);
    padding: 2px 8px;
    border: 1px solid oklch(24% 0 0);
}

.work-info-title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: oklch(95% 0 0);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.work-info-desc {
    font-size: 0.875rem;
    color: oklch(58% 0 0);
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 54ch;
}

.work-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.work-info-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.work-info-authors {
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-info-authors img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid oklch(30% 0 0);
}

.work-info-authors span {
    font-family: var(--mono);
    font-size: 0.5625rem;
    color: oklch(45% 0 0);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.work-info-actions {
    display: flex;
    gap: 16px;
}

.work-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: oklch(95% 0 0);
    background: oklch(18% 0 0);
    padding: 12px 22px;
    border: 1px solid oklch(32% 0 0);
    transition: background 250ms, border-color 250ms, color 250ms;
}

.work-cta-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: oklch(98% 0 0);
}

.work-cta-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 250ms;
}

.work-cta-btn:hover svg {
    transform: translateX(4px) translateY(-2px);
}

/* Interactive Navigation Controls */
.work-controls {
    position: absolute;
    bottom: 36px;
    right: clamp(20px, 4vw, 80px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.work-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: oklch(14% 0 0 / 0.85);
    border: 1px solid oklch(28% 0 0);
    color: oklch(80% 0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 200ms, border-color 200ms, transform 200ms, color 200ms;
    backdrop-filter: blur(8px);
}

.work-arrow-btn:hover {
    background: oklch(24% 0 0);
    border-color: var(--accent);
    color: oklch(100% 0 0);
    transform: scale(1.08);
}

.work-arrow-btn svg {
    width: 16px;
    height: 16px;
}

.work-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.work-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: oklch(30% 0 0);
    border: none;
    cursor: pointer;
    transition: background 300ms, transform 300ms;
    padding: 0;
}

.work-dot.active {
    background: var(--accent);
    transform: scale(1.4);
}

/* ══ 3D SHOWCASE RESPONSIVE ════════════════════ */

@media (max-width: 1024px) {
    .work-3d-card {
        width: clamp(300px, 60vw, 540px);
    }
    .work-info-desc {
        font-size: 0.8125rem;
        max-width: 44ch;
    }
    .work-info-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .work-3d-track {
        height: auto;
    }
    .work-3d-stage {
        position: relative;
        height: auto;
        padding-bottom: 60px;
    }
    .work-stage-header {
        padding-top: 100px;
    }
    .work-scene-3d {
        position: relative;
        height: 320px;
        inset: auto;
        margin: 20px 0;
    }
    .work-3d-card {
        width: 90vw;
        max-width: 440px;
    }
    .work-active-info {
        padding-bottom: 20px;
    }
    .work-controls {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 16px;
    }
}

/* ══ REDUCED MOTION ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .work-3d-card {
        transition: none !important;
        transform: none !important;
    }
    .work-dark-backdrop, .work-spotlight {
        display: none !important;
    }
    .faq-content, .pricing-card {
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════
   PRICING PAGE STYLES
   ══════════════════════════════════════════════ */

.pricing-page-header {
    background: var(--bg-inv);
    color: oklch(92% 0.004 50);
    padding: 160px 0 60px;
    border-bottom: 1px solid var(--border-inv);
}

.pricing-hero-inner {
    max-width: 840px;
}

.pricing-hero-title {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: oklch(95% 0 0);
    margin-bottom: 24px;
}

.pricing-hero-title em {
    font-style: italic;
    color: var(--accent);
}

.pricing-hero-desc {
    font-size: 1rem;
    color: oklch(62% 0.004 50);
    line-height: 1.8;
    max-width: 52ch;
    margin-bottom: 36px;
}

.pricing-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: oklch(10% 0 0);
    background: oklch(92% 0 0);
    padding: 14px 26px;
    border: 1px solid oklch(92% 0 0);
    transition: background 220ms var(--ease-expo), color 220ms, border-color 220ms;
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: oklch(98% 0 0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: oklch(80% 0 0);
    background: transparent;
    padding: 14px 26px;
    border: 1px solid oklch(30% 0 0);
    transition: border-color 220ms, color 220ms;
}

.btn-secondary:hover {
    border-color: oklch(60% 0 0);
    color: oklch(98% 0 0);
}

/* Billing Toggle */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 60px 0 40px;
}

.pricing-toggle-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.pricing-toggle-label.active {
    color: var(--text);
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    border: none;
    padding: 3px;
    transition: background 250ms;
}

.toggle-switch[aria-checked="true"] {
    background: var(--accent);
}

.toggle-slider {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 250ms var(--ease-expo);
}

.toggle-switch[aria-checked="true"] .toggle-slider {
    transform: translateX(22px);
}

.discount-badge {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: oklch(50% 0.13 28 / 0.12);
    padding: 3px 8px;
    border: 1px solid oklch(50% 0.13 28 / 0.25);
    border-radius: 4px;
}

/* Pricing Grid */
.pricing-section {
    padding: 40px 0 100px;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 280ms var(--ease-expo), border-color 280ms, box-shadow 280ms;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: oklch(60% 0 0);
    box-shadow: 0 12px 36px oklch(0% 0 0 / 0.06);
}

.pricing-card.featured {
    background: var(--bg-inv);
    color: oklch(92% 0 0);
    border-color: var(--accent);
    box-shadow: 0 16px 48px oklch(0% 0 0 / 0.25);
}

.pricing-card.featured:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}

.badge-recommended {
    position: absolute;
    top: -12px;
    right: 28px;
    font-family: var(--mono);
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--accent);
    color: oklch(98% 0 0);
    padding: 4px 10px;
    font-weight: 700;
}

.pricing-card-header {
    margin-bottom: 24px;
}

.pricing-card-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.pricing-card-sub {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.6;
    min-height: 44px;
}

.pricing-card.featured .pricing-card-sub {
    color: oklch(65% 0 0);
}

.pricing-card-price-box {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-card.featured .pricing-card-price-box {
    border-bottom-color: oklch(24% 0 0);
}

.price-prefix {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

.price-amount {
    font-family: var(--mono);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pricing-card.featured .price-amount {
    color: oklch(96% 0 0);
}

.price-period {
    font-size: 0.8125rem;
    color: var(--text-mid);
    font-weight: 400;
}

.pricing-card.featured .price-period {
    color: oklch(60% 0 0);
}

.pricing-card-cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 32px;
}

.pricing-card.featured .pricing-card-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: oklch(98% 0 0);
}

.pricing-card.featured .pricing-card-cta:hover {
    background: oklch(56% 0.14 28);
}

.pricing-features-title {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
}

.pricing-card.featured .pricing-features-title {
    color: oklch(50% 0 0);
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-feature-item {
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    line-height: 1.5;
}

.pricing-card.featured .pricing-feature-item {
    color: oklch(86% 0 0);
}

.pricing-feature-item svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.pricing-disclaimer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: oklch(94% 0.006 50);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-mid);
    max-width: 54ch;
    line-height: 1.7;
}

.comparison-table-wrap {
    overflow-x: auto;
    background: var(--bg);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 680px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.comparison-table th {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: oklch(92% 0.005 50);
    color: var(--text);
}

.comparison-table th:first-child {
    width: 40%;
}

.comparison-table td.check-cell {
    text-align: center;
}

.comparison-table td.check-cell svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    stroke-width: 2.5;
    fill: none;
}

.comparison-table td.dash-cell {
    text-align: center;
    color: var(--text-light);
}

/* Optional Add-ons */
.addons-section {
    padding: 90px 0;
}

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

.addon-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 200ms;
}

.addon-card:hover {
    border-color: oklch(60% 0 0);
}

.addon-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.addon-card p {
    font-size: 0.8125rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 16px;
}

.addon-price {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Custom Project Banner */
.custom-project-section {
    padding: 80px 0;
    background: var(--bg-inv);
    color: oklch(92% 0 0);
    border-top: 1px solid var(--border-inv);
    border-bottom: 1px solid var(--border-inv);
}

.custom-project-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.custom-project-content {
    max-width: 600px;
}

.custom-project-content h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.05;
}

.custom-project-content p {
    font-size: 0.9375rem;
    color: oklch(64% 0 0);
    line-height: 1.75;
}

/* Process & Trust */
.trust-process-section {
    padding: 90px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.trust-card {
    border-top: 2px solid var(--accent);
    padding-top: 20px;
}

.trust-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 0.8125rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.process-step-item {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.step-num-sm {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.process-step-item h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.process-step-item p {
    font-size: 0.75rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 90px 0;
    background: oklch(94% 0.006 50);
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 200ms;
}

.faq-item:hover {
    border-color: oklch(60% 0 0);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.faq-trigger svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
    stroke-width: 2;
    fill: none;
    transition: transform 250ms var(--ease-expo);
    flex-shrink: 0;
}

.faq-item.active .faq-trigger svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms var(--ease-expo), padding 300ms var(--ease-expo);
    padding: 0 24px;
}

.faq-item.active .faq-content {
    max-height: 400px;
    padding: 0 24px 24px;
}

.faq-content p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* Contact Package Banner Integration */
.selected-package-banner {
    background: oklch(50% 0.13 28 / 0.1);
    border: 1px solid var(--accent);
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-package-text {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ══ PRICING RESPONSIVE ═══════════════════════ */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .addons-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-page-header {
        padding: 110px 0 40px;
    }
}


