/* ============================================
   TOKENS
   ============================================ */
:root {
    --bg: #0B0B0C;
    --surface: #131315;
    --surface-2: #1B1B1E;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #F3EFE7;
    --text-muted: #8A8A8E;
    --accent: #1261F7;
    --accent-soft: rgba(18, 97, 247, 0.12);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 10px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    border-radius: var(--radius);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.nav {
    position: relative;
    z-index: 100;
}

section,
.nav,
.footer {
    padding-left: 24px;
    padding-right: 24px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #1c6dff;
}

.btn-ghost {
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
}

.btn-mono {
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid var(--border-strong);
    padding: 9px 16px;
}

.btn-mono:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   NAV
   ============================================ */
.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: 24px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 58px);
    max-width: 800px;
}

.hero-sub {
    max-width: 540px;
    color: var(--text-muted);
    font-size: 17px;
    margin-top: 20px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.hero-photo {
    margin-top: 56px;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1/1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-hint {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   SERVICES
   ============================================ */
.services,
.work,
.reviews,
.pricing {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
}

.service-grid,
.price-card+.price-card {
    display: grid;
}

.service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card,
.price-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--surface);
}

.service-card .tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

.service-card h3 {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 19px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* ============================================
   PROJECTS
   ============================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.project-thumb {
    aspect-ratio: 16/10;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-thumb span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.project-info {
    padding: 22px;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 14px;
}

.project-info a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

.project-info a:hover {
    text-decoration: underline;
}

.badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    padding: 3px 8px;
    border-radius: 100px;
}

/* ============================================
   REVIEWS
   ============================================ */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface);
    font-size: 14.5px;
}

.review-card.placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.review-name {
    display: block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-style: normal;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.price-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.price-card .price {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 10px;
}

.price-card .price-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.price-card.featured {
    border-color: var(--accent);
    position: relative;
}

.price-card.featured .tag {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 100px;
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 12px;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom .mono {
    font-family: var(--font-mono);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   PAGE INTRO (used on work, services, reviews, contact)
   ============================================ */
.page-intro {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 56px;
    padding-bottom: 40px;
}

.page-intro h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.page-intro .hero-sub {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ============================================
   FILTERS
   ============================================ */
.filters-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 32px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    font-family: var(--font-mono);
    font-size: 13px;
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================
   LARGE PROJECT CARDS (work.html)
   ============================================ */
.work-full {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.project-card-lg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.project-thumb-lg {
    background: var(--surface-2);
    min-height: 260px;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.project-thumb-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-thumb-lg span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.project-info-lg {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-info-lg h2 {
    font-size: 22px;
}

.project-info-lg p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.project-meta {
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.project-info-lg .btn {
    align-self: flex-start;
    margin-top: 6px;
}

@media (max-width: 860px) {
    .project-card-lg {
        grid-template-columns: 1fr;
    }

    .project-thumb-lg {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 200px;
    }
}

/* ============================================
   SERVICES DETAIL (services.html)
   ============================================ */
.services-full {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card-lg {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--surface);
    align-items: start;
}

.service-card-lg .tag {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
}

.service-card-lg h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card-lg p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 640px;
}

@media (max-width: 640px) {
    .service-card-lg {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROCESS (services.html)
   ============================================ */
.process {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 80px;
    border-top: 1px solid var(--border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-step {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 14px;
}

.process-step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 13.5px;
}

@media (max-width: 860px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-note {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13.5px;
    text-align: center;
}

/* ============================================
   REVIEWS EMPTY STATES
   ============================================ */
.reviews-full {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 80px;
}

.reviews-empty {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.reviews-empty h2 {
    font-size: 22px;
}

.reviews-empty p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 420px;
}

.reviews-empty-inline {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.reviews-empty-inline p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 480px;
}

.stars {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 10px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.contact-form {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 13.5px;
    color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14.5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.field textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
}

.form-status {
    font-size: 13.5px;
    color: var(--text-muted);
    min-height: 18px;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px;
}

.contact-card h3 {
    font-size: 16px;
    margin: 10px 0 8px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 13.5px;
}

.mono-link {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--accent);
    display: inline-block;
    margin-top: 6px;
}

.mono-link:hover {
    text-decoration: underline;
}

/* ============================================
   AMBIENT PARTICLES
   Subtle, slow-drifting background circles.
   Fixed position so it stays consistent while scrolling.
   Remove the .particles block from each HTML file's <body>
   to turn this off entirely.
   ============================================ */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 239, 231, 0.9) 0%, rgba(243, 239, 231, 0) 70%);
    animation: drift linear infinite;
}

.particle:nth-child(1) {
    width: 11px;
    height: 11px;
    top: 12%;
    left: 8%;
    opacity: 0.85;
    animation-duration: 26s;
    animation-delay: -4s;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    top: 30%;
    left: 22%;
    opacity: 0.7;
    animation-duration: 34s;
    animation-delay: -22s;
}

.particle:nth-child(3) {
    width: 13px;
    height: 13px;
    top: 65%;
    left: 12%;
    opacity: 0.8;
    animation-duration: 30s;
    animation-delay: -15s;
}

.particle:nth-child(4) {
    width: 9px;
    height: 9px;
    top: 80%;
    left: 35%;
    opacity: 0.65;
    animation-duration: 24s;
    animation-delay: -10s;
}

.particle:nth-child(5) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 48%;
    opacity: 0.85;
    animation-duration: 36s;
    animation-delay: -28s;
}

.particle:nth-child(6) {
    width: 12px;
    height: 12px;
    top: 55%;
    left: 60%;
    opacity: 0.7;
    animation-duration: 28s;
    animation-delay: -8s;
}

.particle:nth-child(7) {
    width: 9px;
    height: 9px;
    top: 8%;
    left: 72%;
    opacity: 0.75;
    animation-duration: 32s;
    animation-delay: -20s;
}

.particle:nth-child(8) {
    width: 8px;
    height: 8px;
    top: 40%;
    left: 85%;
    opacity: 0.65;
    animation-duration: 22s;
    animation-delay: -6s;
}

.particle:nth-child(9) {
    width: 14px;
    height: 14px;
    top: 72%;
    left: 78%;
    opacity: 0.8;
    animation-duration: 38s;
    animation-delay: -33s;
}

.particle:nth-child(10) {
    width: 8px;
    height: 8px;
    top: 90%;
    left: 92%;
    opacity: 0.65;
    animation-duration: 26s;
    animation-delay: -12s;
}

.particle:nth-child(11) {
    width: 10px;
    height: 10px;
    top: 48%;
    left: 5%;
    opacity: 0.7;
    animation-duration: 30s;
    animation-delay: -18s;
}

.particle:nth-child(12) {
    width: 11px;
    height: 11px;
    top: 5%;
    left: 40%;
    opacity: 0.75;
    animation-duration: 25s;
    animation-delay: -21s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(38px, -46px);
    }

    50% {
        transform: translate(-22px, 40px);
    }

    75% {
        transform: translate(-44px, -26px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
    }
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        right: 24px;
        left: 24px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        z-index: 50;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .service-grid,
    .project-grid,
    .review-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}