/* ═══════════════════════════════════════════════
   AMEVIA — Studio Web & Identité de Marque
   Design System 2026 · Editorial · Cinematic · 60fps
   ═══════════════════════════════════════════════ */

:root {
    /* Surfaces & ink */
    --bg: #f4f6f2;
    --bg-deep: #eceee8;
    --surface: #ffffff;
    --surface-elevated: rgba(255,255,255,0.72);
    --ink: #0a0e0c;
    --ink-secondary: #424b45;
    --ink-tertiary: #79847c;
    --line: rgba(10,14,12,0.08);
    --line-strong: rgba(10,14,12,0.16);

    /* Accents */
    --cyan: #0090b3;
    --coral: #e64b3c;
    --lime: #6fae2a;
    --amber: #c08a00;
    --gradient-accent: linear-gradient(120deg, var(--cyan), var(--coral));
    --gradient-hero: linear-gradient(135deg, rgba(0,144,179,0.08) 0%, rgba(230,75,60,0.06) 50%, rgba(111,174,42,0.06) 100%);

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-fast: 0.2s var(--ease-out-quart);
    --transition-base: 0.4s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);

    /* Type */
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

    /* Layout */
    --header-height: 80px;
    --maxw: 1320px;
    --gutter: clamp(20px, 5vw, 48px);
    --space-section: clamp(96px, 13vw, 184px);
}

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

html {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
    overflow-x: hidden;
    background: transparent;
    line-height: 1.5;
}
body.custom-cursor-active { cursor: none; }
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active summary { cursor: none; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--cyan); color: #fff; }

/* Accessible focus ring */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10002;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform var(--transition-base);
}
.skip-link:focus { transform: translateY(0); }

/* ═══════════════════════════════════════════════
   NOISE OVERLAY
   ═══════════════════════════════════════════════ */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
}

/* ═══════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
    background: transparent;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    transform-origin: left center;
}

/* ═══════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}
.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-track {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    perspective: 500px;
}
.preloader-char {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink);
    opacity: 0;
    transform: translateY(40px) rotateX(-40deg);
    animation: charIn 0.6s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i) * 0.08s + 0.2s);
}
@keyframes charIn { to { opacity: 1; transform: translateY(0) rotateX(0); } }
.preloader-line {
    width: 120px;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}
.preloader-line-fill {
    width: 0%;
    height: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out-quart);
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════ */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    will-change: transform;
}
.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s, background 0.3s;
    will-change: transform;
}
.cursor-trail.hover {
    width: 64px; height: 64px;
    border-color: var(--cyan);
    background: rgba(0,144,179,0.06);
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}
.nav.scrolled {
    background: rgba(244,246,242,0.72);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 1px 0 var(--line);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.nav-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-secondary);
    overflow: hidden;
    transition: color var(--transition-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-base);
}
.nav-link:hover, .nav-link.active { color: var(--ink); background: rgba(10,14,12,0.04); border-radius: 8px; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .scramble-text { display: inline-block; }
.nav-cta {
    position: relative;
    padding: 10px 24px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 8px 32px rgba(10,14,12,0.18); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: var(--header-height) 24px 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.1);
    will-change: transform;
    filter: contrast(1.1) saturate(1.1);
}
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 28%, var(--bg) 86%);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.hero-particle-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,144,179,0.08), transparent 40%);
    opacity: 0.7;
    transition: background 0.15s ease-out;
}
.hero-content { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: 28px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    background: var(--surface-elevated);
    backdrop-filter: blur(8px);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 7.2vw, 92px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 32px;
    perspective: 1000px;
}
.hero-title .line { display: block; overflow: hidden; transform-style: preserve-3d; }
.hero-title .line span { display: inline-block; will-change: transform; }
.hero-title .line .word-inner { will-change: transform, opacity, filter; }
.hero-title .accent {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.01em;
}
.hero-title .accent,
.hero-title .accent .word-inner {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: var(--ink-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-microcopy {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-tertiary);
}

/* Buttons */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--ink);
    color: var(--bg);
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--cyan), var(--coral), var(--lime));
    border-radius: 100px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s;
}
.btn-primary:hover { transform: scale(1.04) translateY(-2px); box-shadow: 0 12px 40px rgba(10,14,12,0.2); }
.btn-primary:hover::before { opacity: 0.5; }
.btn-primary:disabled { opacity: 0.7; transform: none; }
.btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--surface-elevated);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.65); border-color: var(--ink); transform: scale(1.04) translateY(-2px); }
.btn-large { padding: 18px 40px; font-size: 16px; }

/* Button shimmer */
.btn-primary span, .btn-ghost span {
    position: relative;
    z-index: 2;
}
.btn-primary svg, .btn-ghost svg {
    position: relative;
    z-index: 2;
}
.btn-primary::after, .btn-ghost::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 30%,
        rgba(255,255,255,0.3) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: none;
}
.btn-primary:hover::after, .btn-ghost:hover::after {
    transform: translateX(200%);
    transition: transform 0.7s ease;
}

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-indicator span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-tertiary); }
.scroll-line { width: 1px; height: 48px; background: var(--line); overflow: hidden; position: relative; }
.scroll-line-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--ink);
    transform: translateY(-100%);
    animation: scrollPulse 2s var(--ease-out-expo) infinite;
}
@keyframes scrollPulse {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════ */
.section-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: 20px;
    overflow: hidden;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 64px;
}

/* ═══════════════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════════════ */
.trust {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) var(--gutter) 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px clamp(24px, 4vw, 56px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-elevated);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.trust-item { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.trust-value {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.trust-label { font-size: 13px; color: var(--ink-tertiary); }

/* ═══════════════════════════════════════════════
   WORK — HORIZONTAL GALLERY
   ═══════════════════════════════════════════════ */
.work { padding: var(--space-section) 0; overflow: hidden; }
.work-header { padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto 72px; }
.work-horizontal { position: relative; height: 100vh; display: flex; align-items: center; }
.work-track {
    display: flex;
    gap: 32px;
    padding: 0 var(--gutter);
    will-change: transform;
    perspective: 1200px;
    perspective-origin: center center;
}
.work-card {
    flex-shrink: 0;
    width: clamp(300px, 45vw, 560px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 24px rgba(10,14,12,0.06);
    transition: box-shadow var(--transition-base);
    will-change: transform;
    transform-style: preserve-3d;
}
.work-card:hover { box-shadow: 0 24px 64px rgba(10,14,12,0.14), 0 0 40px rgba(0,144,179,0.08); }
.work-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.work-card-media img,
.work-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
    will-change: transform;
}
.work-card:hover .work-card-media img,
.work-card:hover .work-card-media video { transform: scale(1.08); }
.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,14,12,0.5) 100%);
    pointer-events: none;
}
.work-card-content { padding: 28px 32px 32px; }
.work-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}
.work-card-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.work-card-desc { font-size: 15px; line-height: 1.55; color: var(--ink-secondary); }
.work-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    transition: color 0.3s;
}
.work-card-link span { display: inline-block; transition: transform 0.3s var(--ease-out-expo); }
.work-card:hover .work-card-link span { transform: translateX(4px); }
.work-card-link:hover { color: var(--coral); }
.work-card-link--muted { color: var(--ink-tertiary); }
.work-card-link--muted:hover { color: var(--ink-tertiary); }

/* ═══════════════════════════════════════════════
   CLIENTS STRIP
   ═══════════════════════════════════════════════ */
.clients {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--space-section);
    text-align: center;
}
.clients-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: 28px;
}
.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 28px;
}
.clients-list li {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    opacity: 0.55;
    transition: opacity var(--transition-base);
}
.clients-list li:hover { opacity: 1; }

/* ═══════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════ */
.services { padding: var(--space-section) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
    position: relative;
    padding: 40px 32px;
    background: rgba(255,255,255,0.45);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.5);
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    will-change: transform;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    transform-style: preserve-3d;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(0,144,179,0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,144,179,0.3), rgba(230,75,60,0.2), rgba(111,174,42,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10,14,12,0.1), 0 0 30px rgba(0,144,179,0.06);
    border-color: rgba(0,144,179,0.2);
}
.service-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: rgba(10,14,12,0.04);
    pointer-events: none;
    transition: color 0.4s;
}
.service-card:hover .service-number { color: rgba(0,144,179,0.10); }
.service-icon { width: 48px; height: 48px; margin-bottom: 24px; color: var(--cyan); transition: transform 0.6s var(--ease-out-expo), color 0.4s; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); color: var(--coral); }
.service-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
}
.service-desc { font-size: 14px; line-height: 1.6; color: var(--ink-secondary); position: relative; }

/* ═══════════════════════════════════════════════
   METHOD
   ═══════════════════════════════════════════════ */
.method { padding: var(--space-section) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.method-header { margin-bottom: 72px; }
.method-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line { position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.timeline-line-progress { width: 100%; height: 0%; background: linear-gradient(180deg, var(--cyan), var(--coral)); border-radius: 2px; }
.timeline-step {
    position: relative;
    padding-left: 80px;
    padding-bottom: 64px;
    opacity: 0.32;
    transform: translateX(-20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.timeline-step.active { opacity: 1; transform: translateX(0); }
.timeline-step:last-child { padding-bottom: 0; }
.step-marker {
    position: absolute;
    left: 0; top: 0;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
    transform: scale(0.85);
    opacity: 0.5;
}
.timeline-step.active .step-marker {
    border-color: var(--cyan);
    box-shadow: 0 0 0 6px rgba(0,144,179,0.08), 0 0 20px rgba(0,144,179,0.15);
    transform: scale(1);
    opacity: 1;
}
.step-content { transform: translateY(20px); opacity: 0; transition: transform 0.8s var(--ease-out-expo), opacity 0.8s; }
.timeline-step.active .step-content { transform: translateY(0); opacity: 1; }
.step-content h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.step-content p { font-size: 15px; line-height: 1.6; color: var(--ink-secondary); }

/* ═══════════════════════════════════════════════
   WHY AMEVIA
   ═══════════════════════════════════════════════ */
.why { padding: var(--space-section) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.why-header { margin-bottom: 80px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.why-item { position: relative; padding-top: 48px; }
.why-number {
    position: absolute; top: 0; left: 0;
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 800; line-height: 0.8;
    background: var(--gradient-accent);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; opacity: 0.10;
}
.why-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 16px; position: relative;
}
.why-desc { font-size: 16px; line-height: 1.7; color: var(--ink-secondary); position: relative; }

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq { padding: var(--space-section) var(--gutter); max-width: 860px; margin: 0 auto; }
.faq-header { margin-bottom: 48px; text-align: center; }
.faq-header .section-title { margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), border-left-color 0.3s;
    border-left: 3px solid transparent;
}
.faq-item[open], .faq-item:hover { border-color: var(--line-strong); border-left-color: var(--cyan); }
.faq-item[open] { box-shadow: 0 10px 40px rgba(10,14,12,0.06); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e0c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform var(--transition-base);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer { padding: 0 28px; max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo); }
.faq-item[open] .faq-answer { padding: 0 28px 26px; max-height: 600px; }
.faq-answer p { font-size: 15px; line-height: 1.65; color: var(--ink-secondary); }

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact { position: relative; padding: var(--space-section) var(--gutter); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: var(--gradient-hero); opacity: 1; }
.contact-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.contact-desc { font-size: 18px; line-height: 1.6; color: var(--ink-secondary); margin-bottom: 48px; }
.contact-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { position: relative; margin-bottom: 20px; }
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    font-family: var(--font);
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--cyan); box-shadow: 0 1px 0 0 var(--cyan); }
.form-field label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 16px;
    color: var(--ink-tertiary);
    pointer-events: none;
    transition: transform 0.3s var(--ease-out-expo), font-size 0.3s, color 0.3s;
    transform-origin: left top;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-24px) scale(0.85);
    color: var(--cyan);
}
.form-field textarea { min-height: 120px; }
.form-status {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}
.form-status.is-success { color: var(--lime); }
.form-status.is-error { color: var(--coral); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer { padding: 88px var(--gutter) 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--ink-secondary); }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-social a { font-size: 14px; font-weight: 500; color: var(--ink-secondary); transition: color 0.3s; display: inline-block; position: relative; }
.footer-links a::after, .footer-social a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1.5px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s var(--ease-out-expo);
}
.footer-links a:hover::after, .footer-social a:hover::after { transform: scaleX(1); }
.footer-links a:hover, .footer-social a:hover { color: var(--ink); }
.footer-bottom {
    max-width: var(--maxw);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-tertiary);
}

/* ═══════════════════════════════════════════════
   HERO AURORA
   ═══════════════════════════════════════════════ */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0,144,179,0.10), transparent 70%),
        radial-gradient(ellipse 70% 50% at 75% 60%, rgba(230,75,60,0.08), transparent 65%),
        radial-gradient(ellipse 60% 70% at 50% 80%, rgba(111,174,42,0.07), transparent 60%),
        radial-gradient(ellipse 90% 40% at 60% 10%, rgba(0,144,179,0.06), transparent 55%);
    background-size: 200% 200%, 180% 180%, 160% 160%, 220% 220%;
    animation: auroraShift 18s ease-in-out infinite alternate;
    will-change: background-position;
}
@keyframes auroraShift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 30% 70%;
    }
    25% {
        background-position: 30% 50%, 70% 30%, 80% 20%, 50% 40%;
    }
    50% {
        background-position: 60% 100%, 40% 60%, 20% 80%, 80% 20%;
    }
    75% {
        background-position: 80% 30%, 20% 80%, 60% 40%, 10% 90%;
    }
    100% {
        background-position: 100% 60%, 0% 40%, 40% 70%, 60% 10%;
    }
}

/* ═══════════════════════════════════════════════
   MARQUEE TICKER
   ═══════════════════════════════════════════════ */
.marquee {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 56px) 0;
    margin-top: clamp(48px, 7vw, 80px);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.06;
    line-height: 1;
    padding-right: 0;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(40px, 8vw, 120px);
    z-index: 2;
    pointer-events: none;
}
.marquee-fade--left {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}
.marquee-fade--right {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}
.marquee.is-paused .marquee-track {
    animation-play-state: paused;
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════ */
.testimonials {
    padding: var(--space-section) var(--gutter);
    max-width: var(--maxw);
    margin: 0 auto;
}
.testimonials-header {
    text-align: center;
    margin-bottom: 72px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.testimonial-card {
    position: relative;
    padding: 44px 32px 36px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 4px 32px rgba(10,14,12,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    overflow: hidden;
}
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,144,179,0.2), rgba(230,75,60,0.1), rgba(111,174,42,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10,14,12,0.08), 0 0 30px rgba(0,144,179,0.05);
    border-color: rgba(0,144,179,0.15);
}
.testimonial-quote-mark {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(100px, 12vw, 140px);
    font-weight: 400;
    font-style: italic;
    line-height: 0.6;
    color: var(--cyan);
    opacity: 0.12;
    margin-bottom: 12px;
    pointer-events: none;
    user-select: none;
}
.testimonial-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 28px;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.testimonial-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.testimonial-role {
    font-size: 13px;
    color: var(--ink-tertiary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   SPLIT TEXT + REVEAL
   ═══════════════════════════════════════════════ */
.char, .word { display: inline-block; overflow: hidden; vertical-align: top; }
.char-inner, .word-inner { display: inline-block; will-change: transform; }
/* Hidden start states apply ONLY when JS is active (html.js).
   If JS is disabled or fails to load, content stays visible. */
html.js [data-reveal="fade-up"] { opacity: 0; transform: translateY(40px); }
html.js [data-reveal="fade-right"] { opacity: 0; transform: translateX(-40px); }
html.js [data-reveal="fade-left"] { opacity: 0; transform: translateX(40px); }
html.js [data-reveal="fade"] { opacity: 0; }
/* Failsafe: if GSAP/ScrollTrigger fails, JS adds .reveal-all to force everything visible */
html.reveal-all [data-reveal],
html.reveal-all .hero-eyebrow,
html.reveal-all .hero-desc,
html.reveal-all .hero-actions,
html.reveal-all .hero-microcopy,
html.reveal-all .hero-scroll,
html.reveal-all .hero-title .line,
html.reveal-all .word-inner,
html.reveal-all .char-inner,
html.reveal-all .testimonial-card,
html.reveal-all .why-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
}
.magnetic { display: inline-flex; transition: transform 0.3s var(--ease-out-expo); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(244,246,242,0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out-expo);
        z-index: 99;
    }
    body.menu-open .nav-links { opacity: 1; pointer-events: all; }
    .nav-link { font-size: 26px; font-weight: 700; color: var(--ink); }
    .nav-link::after { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; z-index: 100; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
    .hero-title { font-size: clamp(34px, 11vw, 60px); }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { flex-direction: column; align-items: center; }
    .footer-links, .footer-social { align-items: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .timeline-line { left: 15px; }
    .timeline-step { padding-left: 48px; }
    .step-marker { width: 32px; height: 32px; font-size: 14px; }
    body { cursor: auto; }
    button { cursor: pointer; }
    a, summary { cursor: pointer; }
    .cursor, .cursor-trail, .noise-overlay { display: none; }
    .faq-item summary { cursor: pointer; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION — full static fallback
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    body { cursor: auto; }
    .preloader { display: none !important; }
    .cursor, .cursor-trail, .scroll-line-fill { display: none !important; }
    /* Ensure all animated-in content is visible without JS motion */
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero-title .line { clip-path: none !important; }
    .hero-eyebrow, .hero-desc, .hero-actions, .hero-microcopy, .hero-scroll { opacity: 1 !important; transform: none !important; }
    .hero-video { transform: scale(1.05) !important; filter: none !important; opacity: 0.5 !important; }
    .timeline-step { opacity: 1 !important; transform: none !important; }
    .step-content { opacity: 1 !important; transform: none !important; }
    /* Aurora: no animation, static gradient visible */
    .hero-aurora { animation: none !important; }
    /* Marquee: static, no scroll */
    .marquee-track { animation: none !important; }
    /* Testimonials: visible without animation */
    .testimonial-card { opacity: 1 !important; transform: none !important; }
    /* Why section: visible without animation */
    .why-item { opacity: 1 !important; transform: none !important; }
    /* Hero word animation: visible without animation */
    .hero-title .word-inner { opacity: 1 !important; transform: none !important; filter: none !important; }
}


/* ═══════════════════════════════════════════════
   LEGAL PAGE
   ═══════════════════════════════════════════════ */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: calc(var(--header-height) + clamp(48px, 8vw, 96px)) var(--gutter) var(--space-section);
}
.legal-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 16px 0 12px;
}
.legal-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-secondary);
    margin-bottom: 56px;
    max-width: 60ch;
}
.legal-article {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px 24px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}
.legal-article:last-child { border-bottom: 1px solid var(--line); }
.legal-article .legal-num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--cyan);
    padding-top: 4px;
}
.legal-article h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.legal-article p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-secondary);
}
.legal-article a { color: var(--cyan); font-weight: 600; }
.legal-article a:hover { color: var(--coral); }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-secondary);
    transition: color var(--transition-fast);
}
.legal-back:hover { color: var(--ink); }
@media (max-width: 600px) {
    .legal-article { grid-template-columns: 1fr; gap: 4px; }
    .legal-article .legal-num { padding-top: 0; }
}


/* ═══════════════════════════════════════════════
   PAGE BACKGROUND — animated aurora field + texture
   Fills the flat background with slow drifting colour.
   ═══════════════════════════════════════════════ */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;            /* above html bg color, below content */
    overflow: hidden;
    pointer-events: none;
}
/* Faint dot-grid texture, edges faded out */
.page-bg::before {
    content: '';
    position: absolute;
    inset: -10%;
    background-image: radial-gradient(rgba(10,14,12,0.045) 1px, transparent 1.4px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 35%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 35%, transparent 80%);
    opacity: 0.6;
}
.page-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}
.page-bg .blob-1 {
    width: 48vw; height: 48vw;
    top: -8%; left: -6%;
    background: radial-gradient(circle at 50% 50%, rgba(0,144,179,0.26), transparent 70%);
    animation: blobDrift1 28s var(--ease-in-out-circ) infinite alternate;
}
.page-bg .blob-2 {
    width: 42vw; height: 42vw;
    top: 28%; right: -10%;
    background: radial-gradient(circle at 50% 50%, rgba(230,75,60,0.20), transparent 70%);
    animation: blobDrift2 34s var(--ease-in-out-circ) infinite alternate;
}
.page-bg .blob-3 {
    width: 52vw; height: 52vw;
    bottom: -16%; left: 18%;
    background: radial-gradient(circle at 50% 50%, rgba(111,174,42,0.18), transparent 70%);
    animation: blobDrift3 31s var(--ease-in-out-circ) infinite alternate;
}
.page-bg .blob-4 {
    width: 34vw; height: 34vw;
    top: 56%; left: -8%;
    background: radial-gradient(circle at 50% 50%, rgba(201,138,0,0.14), transparent 70%);
    animation: blobDrift1 38s var(--ease-in-out-circ) infinite alternate-reverse;
}
@keyframes blobDrift1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(12vw, 8vh, 0) scale(1.18); }
}
@keyframes blobDrift2 {
    0%   { transform: translate3d(0, 0, 0) scale(1.1); }
    100% { transform: translate3d(-10vw, 12vh, 0) scale(0.92); }
}
@keyframes blobDrift3 {
    0%   { transform: translate3d(0, 0, 0) scale(0.95); }
    100% { transform: translate3d(8vw, -10vh, 0) scale(1.2); }
}
@media (max-width: 768px) {
    .page-bg .blob { filter: blur(50px); }
    .page-bg .blob-1 { width: 80vw; height: 80vw; }
    .page-bg .blob-2 { width: 75vw; height: 75vw; }
    .page-bg .blob-3 { width: 85vw; height: 85vw; }
    .page-bg .blob-4 { width: 70vw; height: 70vw; }
}
@media (prefers-reduced-motion: reduce) {
    .page-bg .blob { animation: none !important; }
}
