/* ============================================
   SIMPLICITY DESIGN AGENCY — MASTER STYLESHEET
   Version 4.0 — $50K Homepage Edition
   ============================================ */

/* ============================================
   RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --obsidian: #0a0a0a;
    --porcelain: #f5f5f0;
    --current: #c8a97e;
    --concrete: #6b6b6b;
    --silver: #999999;
    --bone: #e8e4de;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--obsidian);
    background: var(--porcelain);
    overflow-x: hidden;
    cursor: none;
    animation: pageIn 0.6s ease both;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
}

::selection {
    background: var(--obsidian);
    color: var(--porcelain);
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-leaving {
    animation: pageOut 0.3s ease both;
}

@keyframes pageOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--current);
    z-index: 10001;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    background: var(--current);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 100000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--current);
    outline-offset: 3px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease 0.2s, visibility 0.8s ease 0.2s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--white);
    margin-bottom: 2rem;
    animation: loaderFadeIn 0.6s ease forwards;
}

.loader-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--current);
    animation: loaderSlide 1.2s ease-in-out infinite;
}

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

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(10, 10, 10, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s var(--ease), border-color 0.3s ease, background 0.3s ease, width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--obsidian);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.3s ease;
    opacity: 0;
}

.cursor.visible {
    opacity: 1;
}

.cursor-dot.visible {
    opacity: 1;
}

.cursor.hover {
    width: 64px;
    height: 64px;
    border-color: var(--current);
    background: rgba(200, 169, 126, 0.1);
}

.cursor.hover + .cursor-dot,
.cursor.hover ~ .cursor-dot {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

body:active .cursor {
    transform: translate(-50%, -50%) scale(0.85);
}

body.dark-page .cursor {
    border-color: rgba(255, 255, 255, 0.5);
}

body.dark-page .cursor-dot {
    background: var(--white);
}

body.dark-page .cursor.hover {
    border-color: var(--current);
    background: rgba(200, 169, 126, 0.15);
}

@media (max-width: 1024px) {
    .cursor,
    .cursor-dot {
        display: none !important;
    }
}

/* ============================================
   NAVIGATION — Base Styles
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.75rem 0;
    transition: all 0.5s var(--ease);
}

#navbar.scrolled {
    background: rgba(245, 245, 240, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.05);
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--obsidian);
    z-index: 1001;
    transition: color 0.3s ease;
}

#navbar ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

#navbar ul li a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--concrete);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--obsidian);
    transition: width 0.4s var(--ease);
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: var(--obsidian);
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--obsidian) !important;
    color: var(--white) !important;
    padding: 0.7rem 2rem !important;
    border-radius: 100px;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: all 0.4s var(--ease) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--current) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    z-index: 1002;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--obsidian);
    transition: all 0.4s var(--ease);
    transform-origin: center;
    display: block;
}

.menu-toggle.active span {
    background: var(--white) !important;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   NAVIGATION — Dark Nav for Subpages
   ============================================ */
.dark-nav .logo {
    color: var(--white) !important;
}

.dark-nav ul li a {
    color: rgba(255, 255, 255, 0.55) !important;
}

.dark-nav ul li a::after {
    background: var(--white) !important;
}

.dark-nav ul li a:hover,
.dark-nav ul li a.active {
    color: var(--white) !important;
}

.dark-nav .nav-cta {
    background: var(--white) !important;
    color: var(--obsidian) !important;
}

.dark-nav .nav-cta:hover {
    background: var(--current) !important;
    color: var(--white) !important;
}

.dark-nav .menu-toggle span {
    background: var(--white) !important;
}

.dark-nav.scrolled {
    background: rgba(245, 245, 240, 0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(10, 10, 10, 0.05) !important;
}

.dark-nav.scrolled .logo {
    color: var(--obsidian) !important;
}

.dark-nav.scrolled ul li a {
    color: var(--concrete) !important;
}

.dark-nav.scrolled ul li a:hover,
.dark-nav.scrolled ul li a.active {
    color: var(--obsidian) !important;
}

.dark-nav.scrolled ul li a::after {
    background: var(--obsidian) !important;
}

.dark-nav.scrolled .nav-cta {
    background: var(--obsidian) !important;
    color: var(--white) !important;
}

.dark-nav.scrolled .nav-cta:hover {
    background: var(--current) !important;
    color: var(--white) !important;
}

.dark-nav.scrolled .menu-toggle span {
    background: var(--obsidian) !important;
}

/* ============================================
   CONTAINERS
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.75rem;
    background: var(--obsidian);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 100px;
    cursor: none;
    transition: all 0.5s var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--current);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200, 169, 126, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--obsidian);
    color: var(--obsidian);
}

.btn-outline:hover {
    background: var(--obsidian);
    color: var(--white);
    border-color: var(--obsidian);
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.15);
}

.btn-light {
    background: var(--white);
    color: var(--obsidian);
}

.btn-light:hover {
    background: var(--current);
    color: var(--white);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.section-number {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--concrete);
    margin-bottom: 1.5rem;
}

.large-text {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--obsidian);
}

.label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--current);
    margin-bottom: 1.5rem;
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4% 6rem;
    background: var(--porcelain);
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: var(--obsidian);
    max-width: 1000px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 300;
    color: var(--concrete);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero .hero-bg-text {
    position: absolute;
    bottom: -5%;
    right: 4%;
    font-size: clamp(8rem, 20vw, 22rem);
    font-weight: 900;
    color: rgba(10, 10, 10, 0.03);
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ============================================
   PAGE HERO (Subpages with Dark Background)
   ============================================ */
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 10rem 4% 6rem;
    background: var(--obsidian);
    overflow: hidden;
}

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

.page-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 900px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.page-hero .section-number {
    color: var(--current);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    line-height: 1.7;
    opacity: 0;
    animation: subtitleIn 0.8s ease 0.7s forwards;
}

.hero-bg-text {
    position: absolute;
    bottom: -5%;
    right: 4%;
    font-size: clamp(8rem, 20vw, 22rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* ============================================
   HERO TEXT SPLIT ANIMATION
   ============================================ */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
}

.word-inner {
    display: inline-block;
    transform: translateY(105%);
    animation: wordReveal 0.9s var(--ease) forwards;
}

@keyframes wordReveal {
    to {
        transform: translateY(0);
    }
}

.word-wrap:nth-child(1) .word-inner { animation-delay: 0.1s; }
.word-wrap:nth-child(2) .word-inner { animation-delay: 0.17s; }
.word-wrap:nth-child(3) .word-inner { animation-delay: 0.24s; }
.word-wrap:nth-child(4) .word-inner { animation-delay: 0.31s; }
.word-wrap:nth-child(5) .word-inner { animation-delay: 0.38s; }
.word-wrap:nth-child(6) .word-inner { animation-delay: 0.45s; }
.word-wrap:nth-child(7) .word-inner { animation-delay: 0.52s; }
.word-wrap:nth-child(8) .word-inner { animation-delay: 0.59s; }
.word-wrap:nth-child(9) .word-inner { animation-delay: 0.66s; }
.word-wrap:nth-child(10) .word-inner { animation-delay: 0.73s; }

@keyframes subtitleIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.case-meta {
    opacity: 0;
    animation: subtitleIn 0.8s ease 0.9s forwards;
}

/* ============================================
   CASE STUDY COMPONENTS
   ============================================ */

.case-meta {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.meta-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--current);
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}

.full-width-image {
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    position: relative;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    will-change: transform;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.content-section {
    padding: 8rem 4%;
    background: var(--porcelain);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.result-stat h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--obsidian);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.result-stat p {
    font-size: 1rem;
    color: var(--concrete);
    line-height: 1.6;
}

.client-quote {
    margin-top: 5rem;
    padding: 4rem;
    background: var(--obsidian);
    border-radius: 2px;
    position: relative;
}

.client-quote::before {
    content: '\201C';
    position: absolute;
    top: 1.5rem;
    left: 2.5rem;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(200, 169, 126, 0.15);
    line-height: 1;
    font-family: Georgia, serif;
}

.client-quote p {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--white);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.client-quote cite {
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 500;
    color: var(--current);
    display: block;
}

.next-project {
    padding: 10rem 4%;
    text-align: center;
    background: var(--obsidian);
}

.next-project .label {
    color: var(--current);
}

.next-project h2 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.next-project a {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.25rem;
    transition: all 0.4s ease;
}

.next-project a:hover {
    color: var(--current);
    border-color: var(--current);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--obsidian);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section .section-number {
    color: var(--current);
}

.cta-section h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn {
    background: var(--white);
    color: var(--obsidian);
}

.cta-section .btn:hover {
    background: var(--current);
    color: var(--white);
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--obsidian);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--concrete);
    max-width: 500px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    background: var(--white);
    border: 1px solid rgba(10, 10, 10, 0.06);
    transition: all 0.5s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 10, 10, 0.08);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-card p {
    font-size: 1rem;
    color: var(--concrete);
    line-height: 1.7;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding: 5rem 0;
    border-top: 1px solid rgba(10, 10, 10, 0.06);
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.stat h3 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--obsidian);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    color: var(--concrete);
}

.work-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 0.8s ease;
    filter: grayscale(100%) brightness(0.95);
}

.work-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1);
}

.process-steps {
    counter-reset: step;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
    align-items: start;
}

.process-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--current);
    letter-spacing: 0.05em;
    padding-top: 0.25rem;
}

.process-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.process-step p {
    font-size: 1.0625rem;
    color: var(--concrete);
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
}

.team-member h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.9375rem;
    color: var(--concrete);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.value-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.value-item p {
    font-size: 1.0625rem;
    color: var(--concrete);
    line-height: 1.7;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.insight-card {
    display: block;
    background: var(--white);
    border: 1px solid rgba(10, 10, 10, 0.06);
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 10, 10, 0.08);
}

.insight-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.insight-card-body {
    padding: 2rem;
}

.insight-card-body span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--current);
}

.insight-card-body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0.75rem 0;
    letter-spacing: -0.02em;
}

.insight-card-body p {
    font-size: 1rem;
    color: var(--concrete);
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--obsidian);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(10, 10, 10, 0.15);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--obsidian);
    transition: border-color 0.3s ease;
    outline: none;
    cursor: none;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--current);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--silver);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.0625rem;
    color: var(--concrete);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-detail {
    margin-bottom: 2rem;
}

.contact-detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--current);
    margin-bottom: 0.5rem;
}

.contact-detail a,
.contact-detail p {
    font-size: 1.0625rem;
    color: var(--obsidian);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--current);
}

/* ============================================
   CONTACT FORM PROTECTION
   ============================================ */

.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.required {
    color: var(--current);
    font-weight: 400;
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d32f2f;
    min-height: 1.25rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.field-error.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-bottom-color: #d32f2f;
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-bottom-color: #2e7d32;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.25rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--silver);
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}

.char-count.warning {
    color: #f57c00;
}

.char-count.limit {
    color: #d32f2f;
    font-weight: 600;
}

.form-submit {
    margin-top: 1rem;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--silver);
    margin-top: 1rem;
    line-height: 1.6;
}

.form-disclaimer a {
    color: var(--concrete);
    text-decoration: underline;
}

.form-disclaimer a:hover {
    color: var(--obsidian);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-success {
    text-align: center;
    padding: 4rem 2rem;
    animation: successIn 0.6s ease both;
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--obsidian);
    color: var(--current);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.form-success h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.form-success p {
    font-size: 1.125rem;
    color: var(--concrete);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.form-success a {
    color: var(--current);
    border-bottom: 1px solid var(--current);
}

.form-success a:hover {
    color: var(--obsidian);
    border-color: var(--obsidian);
}

.form-error-message {
    text-align: center;
    padding: 4rem 2rem;
    animation: successIn 0.6s ease both;
}

.form-error-message h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.form-error-message p {
    font-size: 1.125rem;
    color: var(--concrete);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.form-error-message a {
    color: var(--current);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.social-links a {
    font-size: 1rem;
    color: var(--obsidian);
    border-bottom: 1px solid rgba(10, 10, 10, 0.15);
    padding-bottom: 0.125rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--current);
    border-color: var(--current);
}

.response-guarantee {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.03);
    border-left: 3px solid var(--current);
}

.response-guarantee strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--current);
    margin-bottom: 0.75rem;
}

.response-guarantee p {
    font-size: 0.9375rem;
    color: var(--concrete);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem;
    background: var(--obsidian);
    position: relative;
    overflow: hidden;
}

.error-code {
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

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

.error-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--obsidian);
    padding: 6rem 4% 3rem;
    color: var(--white);
}

.next-project + footer,
.cta-section + footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.footer-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 320px;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--current);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none !important;
    }

    .btn,
    .menu-toggle,
    .form-group input,
    .form-group textarea,
    .form-group select {
        cursor: auto;
    }

    #navbar ul {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--obsidian);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    #navbar ul.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #navbar ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    #navbar ul.open li {
        opacity: 1;
        transform: translateY(0);
    }

    #navbar ul.open li:nth-child(1) { transition-delay: 0.1s; }
    #navbar ul.open li:nth-child(2) { transition-delay: 0.15s; }
    #navbar ul.open li:nth-child(3) { transition-delay: 0.2s; }
    #navbar ul.open li:nth-child(4) { transition-delay: 0.25s; }
    #navbar ul.open li:nth-child(5) { transition-delay: 0.3s; }
    #navbar ul.open li:nth-child(6) { transition-delay: 0.35s; }

    #navbar ul li a {
        font-size: 2rem !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.5) !important;
        padding: 0.5rem 1rem;
        display: block;
    }

    #navbar ul li a:hover,
    #navbar ul li a.active {
        color: var(--white) !important;
    }

    #navbar ul li a::after {
        display: none !important;
    }

    #navbar ul li:last-child a.nav-cta {
        margin-top: 1.5rem;
        font-size: 1rem !important;
        padding: 1rem 2.5rem !important;
        background: var(--white) !important;
        color: var(--obsidian) !important;
        border-radius: 100px;
    }

    #navbar ul li:last-child a.nav-cta:hover {
        background: var(--current) !important;
        color: var(--white) !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .page-hero {
        min-height: 60vh;
        padding: 8rem 4% 4rem;
    }

    .page-hero h1 {
        margin-bottom: 1rem;
    }

    .hero {
        min-height: 80vh;
        padding: 7rem 4% 4rem;
    }

    .hero h1 {
        margin-bottom: 1.5rem;
    }

    .content-section {
        padding: 5rem 4%;
    }

    .client-quote {
        padding: 2.5rem;
        margin-top: 3rem;
    }

    .client-quote::before {
        top: 0.5rem;
        left: 1.5rem;
        font-size: 4rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .case-meta {
        flex-direction: column;
        gap: 1.5rem;
    }

    .next-project {
        padding: 6rem 4%;
    }

    .next-project h2 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .hero-bg-text {
        font-size: clamp(5rem, 18vw, 10rem);
    }

    .full-width-image {
        max-height: 50vh;
    }

    .full-width-image img {
        min-height: 280px;
    }

    #navbar ul li a {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    #navbar ul li a {
        font-size: 1.5rem !important;
    }

    #navbar ul {
        gap: 1.5rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.875rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .client-quote p {
        font-size: 1.125rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .word-inner {
        transform: none !important;
        animation: none !important;
    }

    .hero-subtitle,
    .case-meta {
        opacity: 1 !important;
        animation: none !important;
    }

    body {
        animation: none !important;
    }

    body.page-leaving {
        animation: none !important;
    }
}