/* --- Variables --- */
:root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111;
    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-accent: #1DB954;
    --color-border: rgba(255, 255, 255, 0.08);
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('assets/cursor-paw.png') 16 16, auto;
}

a, button, [role="button"], .service-tile, .value-card {
    cursor: url('assets/cursor-paw.png') 16 16, pointer;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: var(--color-border);
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    animation: preloader-progress 1.2s var(--ease-out-expo) forwards;
}

@keyframes preloader-progress {
    to { width: 100%; }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tagline {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 650;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 12ch;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title .line.accent {
    color: var(--color-accent);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 42ch;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-hint {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--color-text-muted);
    opacity: 0;
    animation: scroll-hint-pulse 2s ease-in-out 3s infinite;
}

@keyframes scroll-hint-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* --- Animate in (hero) --- */
.animate-in.visible .tagline,
.animate-in.visible .hero-desc,
.animate-in.visible .scroll-hint {
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}

.animate-in.visible .hero-title .line:nth-child(1) { animation: fadeUp 0.8s var(--ease-out-expo) 0.1s forwards; }
.animate-in.visible .hero-title .line:nth-child(2) { animation: fadeUp 0.8s var(--ease-out-expo) 0.25s forwards; }
.animate-in.visible .hero-title .line:nth-child(3) { animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section blocks --- */
.section-block {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.section-intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 55ch;
}

/* --- Services (bento grid) --- */
.services-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-top: 2rem;
}

.service-tile {
    position: relative;
    padding: 2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s var(--ease-out-expo);
}

.service-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.service-tile:hover {
    border-color: rgba(29, 185, 84, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.service-tile:hover::before {
    transform: scaleX(1);
}

.service-tile--featured {
    grid-column: 1 / -1;
}

.service-tile-inner {
    position: relative;
}

.service-tile-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.service-tile h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-tile:hover h3 {
    color: var(--color-accent);
}

.service-tile p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-tile--featured h3 {
    font-size: 1.6rem;
}

.service-tile--featured p {
    max-width: 55ch;
}

.service-tile.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-tile:hover.animate-on-scroll.visible {
    transform: translateY(-4px);
}

/* --- Values (cards with cat) --- */
.values-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    padding: 2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s var(--ease-out-expo);
}

.value-card:hover {
    border-color: rgba(29, 185, 84, 0.4);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.value-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
}

.value-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s var(--ease-out-expo);
}

.value-card:hover .value-card-icon img {
    transform: scale(1.1);
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- CTA / Contact --- */
.section-cta {
    text-align: center;
    padding: 8rem 2rem;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-link:hover {
    color: var(--color-text);
}

/* --- Footer --- */
.footer {
    padding: 2rem;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

/* --- Scroll animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="1"].visible { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"].visible { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"].visible { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-title {
        max-width: none;
    }

    .section-block {
        padding: 4rem 1.5rem;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .logo-img {
        height: 32px;
    }

    .values-cards {
        grid-template-columns: 1fr;
    }

    .services-bento {
        grid-template-columns: 1fr;
    }
}
