/* ==========================================================================
   Awwwards-Level Theme - "Editorial Contrast"
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Manrope:wght@300;400;500;700&display=swap');

:root {
    --color-light: #F4F4F0;
    --color-dark: #0A0A0A;
    --color-accent: #2563EB;
    /* Royal Blue */
    --color-border: rgba(10, 10, 10, 0.1);
    --color-border-light: rgba(244, 244, 240, 0.15);

    --font-display: 'Cinzel', serif;
    --font-sans: 'Manrope', sans-serif;

    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
    --header-height: 100px;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--color-light);
}

body {
    font-family: var(--font-sans);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--color-dark);
    color: var(--color-light);
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a,
button {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    cursor: none;
    outline: none;
}

ul {
    list-style: none;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--ease-out);
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--color-accent);
    mix-blend-mode: multiply;
}

.cursor-follower.hover {
    opacity: 0;
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    a,
    button {
        cursor: pointer !important;
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

.display-text {
    font-size: clamp(4rem, 10vw, 9rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(3rem, 6vw, 6rem);
}

.heading-md {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.body-lg {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
}

.text-accent {
    color: var(--color-accent);
    font-style: italic;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-pad {
    padding: 8rem 0;
}

.border-top {
    border-top: 1px solid var(--color-border);
}

.dark-section {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.dark-section .border-top {
    border-color: var(--color-border-light);
}

/* --- Animation Utilities --- */
.split-line {
    overflow: hidden;
    display: block;
}

.split-word {
    display: inline-block;
    transform: translateY(110%);
    transform-origin: top left;
    transition: transform 1.2s var(--ease-out);
}

.is-inview .split-word {
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* --- Global Button --- */
.btn-editorial {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light);
    background: var(--color-dark);
    border: 1px solid var(--color-dark);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    transition: color 0.4s;
}

.btn-editorial::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-accent);
    transition: height 0.4s var(--ease-out);
    z-index: 0;
}

.btn-editorial:hover::before {
    height: 100%;
}

.btn-editorial span {
    position: relative;
    z-index: 1;
}

.dark-section .btn-editorial {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}

/* --- 1. Header (Strict Site-Wide) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 2000;
    transition: background 0.4s, padding 0.4s;
    background: var(--color-dark);
}

.site-header.scrolled {
    height: 80px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.nav-desktop {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hamburger {
    display: none;
    width: 40px;
    height: 20px;
    position: relative;
    z-index: 2001;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-light);
    transition: 0.4s var(--ease-in-out);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Fullscreen Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-dark);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.8s var(--ease-in-out);
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.menu-list a {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-light);
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s var(--ease-out);
}

.menu-overlay.active .menu-list a {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.active .menu-list a:nth-child(1) {
    transition-delay: 0.3s;
}

.menu-overlay.active .menu-list a:nth-child(2) {
    transition-delay: 0.4s;
}

.menu-overlay.active .menu-list a:nth-child(3) {
    transition-delay: 0.5s;
}

.menu-overlay.active .menu-list a:nth-child(4) {
    transition-delay: 0.6s;
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .btn-header {
        display: none !important;
    }

    .hamburger {
        display: block;
    }
}

/* --- 2. Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    padding-top: calc(var(--header-height) + 2rem);
    position: relative;
}

.hero-content {
    max-width: 1200px;
}

.hero-tag {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.hero-img {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 40vw;
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop') center/cover;
    z-index: -1;
    filter: grayscale(100%) opacity(0.15);
}

/* --- 3. Marquee --- */
.marquee-wrapper {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-light);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-text {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.marquee-text span {
    color: var(--color-accent);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* --- 4. Editorial Intro --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.intro-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.stat-item h4 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.stat-item p {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* --- 5. Accordion Services --- */
.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3rem;
    transition: padding 0.4s var(--ease-out);
}

.service-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
    background: rgba(0, 0, 0, 0.02);
}

.srv-num {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-accent);
}

.srv-title {
    font-size: 3.5rem;
    transition: transform 0.4s;
}

.service-item:hover .srv-title {
    transform: translateX(20px);
}

.srv-icon {
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.4s;
}

.service-item:hover .srv-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .srv-title {
        font-size: 2rem;
    }
}

/* --- 6. Industry Reveal --- */
.industry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-border-light);
}

.ind-card {
    padding: 4rem;
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
    transition: background 0.4s;
}

.ind-card:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

.ind-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.ind-card p {
    font-family: var(--font-sans);
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .industry-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- 7. Minimalist Calculator --- */
.calc-ui {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.calc-range {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    background: var(--color-dark);
    outline: none;
    margin: 2rem 0;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.5);
}

.val-display {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.output-box {
    border-left: 2px solid var(--color-accent);
    padding-left: 2rem;
    margin-bottom: 2rem;
}

/* --- 8. Abstract Dashboard Mockup --- */
.dash-container {
    border: 1px solid var(--color-border);
    padding: 3rem;
    background: #fff;
}

.dash-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.dash-btn {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.dash-btn.active {
    color: var(--color-dark);
}

.dash-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 300px;
    gap: 2%;
}

.bar {
    flex: 1;
    background: var(--color-dark);
    transform-origin: bottom;
    animation: grow 1.5s var(--ease-out) forwards;
    opacity: 0;
}

@keyframes grow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* --- 9. Editorial Testimonials --- */
.testi-block {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.quote-large {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.4;
    margin-bottom: 3rem;
}

.author-info {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- 10. Forms & Chat --- */
.form-line {
    position: relative;
    margin-bottom: 3rem;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 2rem;
    outline: none;
    transition: 0.3s;
}

.form-input::placeholder {
    color: #ccc;
}

.form-input:focus {
    border-bottom-color: var(--color-dark);
}

.chat-bubble {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--color-dark);
    color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-box {
    position: fixed;
    bottom: 110px;
    right: 40px;
    width: 350px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s var(--ease-out);
}

.chat-box.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-top {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 1.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.chat-mid {
    height: 250px;
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chat-bot {
    display: flex;
    border-top: 1px solid var(--color-border);
}

.chat-bot input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
}

.chat-bot button {
    padding: 0 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
    cursor: pointer;
}

/* --- 11. Footer (Strictly Site-Wide) --- */
.site-footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 8rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.footer-logo {
    display: block;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-heading {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    font-family: var(--font-display);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    margin-left: 2rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--color-light);
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 1rem;
    }
}

/* --- Legal Pages --- */
.legal-hero {
    padding: 12rem 0 4rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 0;
}

.legal-wrap h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    font-family: var(--font-display);
}

.legal-wrap p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.legal-wrap ul {
    padding-left: 2rem;
    list-style: square;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.legal-wrap li {
    margin-bottom: 0.5rem;
}