/*
 * Digital Longhouse - Styles
 */

/* Self-hosted Google Fonts */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/lora-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/lora-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/archivo-light.woff2') format('woff2');
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/archivo-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/archivo-semibold.woff2') format('woff2');
}

/* Color palette and transitions */
:root {
    --bg-deep: #0B0D12;
    --bg-dark: #151820;
    --bg-card: #1F2228;
    --text-muted: #6B7280;
    --text-secondary: #9CA3AF;
    --text-primary: #D1D5DB;
    --accent: #D4A765;
    --accent-hover: #B58863;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

p:last-child { margin-bottom: 0; }

ul li, ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

ul li:last-child, ol li:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* Background pattern - subtle shimmer effect */
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(212, 167, 101, 0.02) 50%, transparent 52%),
        linear-gradient(-30deg, transparent 48%, rgba(212, 167, 101, 0.02) 50%, transparent 52%);
    background-size: 80px 80px;
    animation: shimmer 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.05; }
}

.content {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}


/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 2.5rem 6%;
    background: rgba(11, 13, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 167, 101, 0.1);
    transition: box-shadow var(--transition-base);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.logo:hover { opacity: 0.85; }

.logo-icon {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-base);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(212, 167, 101, 0.4));
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-links a:hover::after { width: 100%; }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: rgba(212, 167, 101, 0.3);
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-base);
    pointer-events: none;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav { padding: 1.5rem 5%; }
    .mobile-menu-toggle { display: flex; }

    /* iOS Safari needs inline styles via JS for reliable behavior */
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: -webkit-fill-available;
        background: rgba(11, 13, 18, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1000;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; }

    .nav-links a {
        display: block;
        font-size: 1.5rem;
        color: var(--text-primary);
        padding: 1rem 2rem;
    }

    .nav-links a:hover,
    .nav-links a:active { color: var(--accent); }

    .nav-links a::after { display: none; }

    .logo { font-size: 1rem; }
    .logo-icon { width: 35px; height: 23px; }
}

@media (max-width: 1024px) {
    .logo-icon { width: 40px; height: 27px; }
}

@media (max-width: 480px) {
    .logo { font-size: 0.9rem; }
    .logo-icon { width: 30px; height: 20px; }
}


/* Hero */
.hero {
    position: relative;
    padding: 13rem 6% 11rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Ghost ship decoration */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    width: 550px;
    height: 550px;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg"><g opacity="0.08"><path d="M60,150 Q58,165 60,172 L240,172 Q242,165 240,150 L225,150 L75,150 Z" fill="%231F2228" stroke="%23D4A765" stroke-width="5"/><path d="M75,157 L225,157" stroke="%23B58863" stroke-width="2" opacity="0.7"/><path d="M73,162 L227,162" stroke="%23B58863" stroke-width="2" opacity="0.7"/><path d="M71,167 L229,167" stroke="%23B58863" stroke-width="2" opacity="0.7"/><path d="M240,150 Q255,143 263,128 Q267,118 262,110 Q259,107 254,109" fill="none" stroke="%23D4A765" stroke-width="5"/><circle cx="261" cy="118" r="4" fill="%23D4A765"/><path d="M254,109 Q251,104 254,100 L257,96 L260,93" fill="none" stroke="%23D4A765" stroke-width="4"/><path d="M257,93 L254,88 L260,88 L257,93" fill="%23D4A765"/><path d="M60,150 Q45,143 37,128 Q33,118 38,110 Q41,107 46,109" fill="none" stroke="%23D4A765" stroke-width="5"/><circle cx="39" cy="118" r="4" fill="%23D4A765"/><path d="M46,109 Q49,104 46,100 L43,96 L40,93" fill="none" stroke="%23D4A765" stroke-width="4"/><path d="M43,93 L46,88 L40,88 L43,93" fill="%23D4A765"/><circle cx="95" cy="153" r="9" fill="none" stroke="%23D4A765" stroke-width="3"/><circle cx="95" cy="153" r="4" fill="%23D4A765"/><circle cx="125" cy="153" r="9" fill="none" stroke="%23D4A765" stroke-width="3"/><circle cx="125" cy="153" r="4" fill="%23D4A765"/><circle cx="155" cy="153" r="9" fill="none" stroke="%23D4A765" stroke-width="3"/><circle cx="155" cy="153" r="4" fill="%23D4A765"/><circle cx="185" cy="153" r="9" fill="none" stroke="%23D4A765" stroke-width="3"/><circle cx="185" cy="153" r="4" fill="%23D4A765"/><circle cx="215" cy="153" r="9" fill="none" stroke="%23D4A765" stroke-width="3"/><circle cx="215" cy="153" r="4" fill="%23D4A765"/><path d="M150,50 L150,150 L190,143 Z" fill="none" stroke="%23D4A765" stroke-width="4.5"/><path d="M150,50 L150,150 L110,143 Z" fill="none" stroke="%23B58863" stroke-width="3" opacity="0.7"/><line x1="150" y1="50" x2="150" y2="158" stroke="%23D4A765" stroke-width="5"/><circle cx="150" cy="50" r="7" fill="none" stroke="%23D4A765" stroke-width="4"/><circle cx="150" cy="50" r="4" fill="%23D4A765"/><text x="150" y="108" font-size="28" fill="%23D4A765" text-anchor="middle" font-family="serif" font-weight="bold">ᚼ</text><line x1="100" y1="158" x2="92" y2="178" stroke="%23B58863" stroke-width="3" opacity="0.6"/><line x1="115" y1="158" x2="107" y2="178" stroke="%23B58863" stroke-width="3" opacity="0.6"/><line x1="130" y1="158" x2="122" y2="178" stroke="%23B58863" stroke-width="3" opacity="0.6"/><line x1="170" y1="158" x2="178" y2="178" stroke="%23B58863" stroke-width="3" opacity="0.6"/><line x1="185" y1="158" x2="193" y2="178" stroke="%23B58863" stroke-width="3" opacity="0.6"/><line x1="200" y1="158" x2="208" y2="178" stroke="%23B58863" stroke-width="3" opacity="0.6"/><path d="M45,188 Q75,180 105,188 Q135,196 165,188 Q195,180 225,188 Q255,196 270,188" fill="none" stroke="%23D4A765" stroke-width="3" opacity="0.4" stroke-dasharray="5,3"/><path d="M125,169 Q135,172 145,169 Q155,172 165,169" fill="none" stroke="%23D4A765" stroke-width="2.5" opacity="0.5"/><rect x="145" y="155" width="10" height="17" fill="none" stroke="%23D4A765" stroke-width="2.5"/><line x1="150" y1="155" x2="150" y2="172" stroke="%23D4A765" stroke-width="2"/><circle cx="150" cy="163.5" r="2.5" fill="%23D4A765"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 6rem;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hero-description {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 4.5rem;
    font-weight: 300;
    max-width: 750px;
}

.btn-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .hero::after { width: 400px; height: 400px; right: -10%; }
}

@media (max-width: 768px) {
    .hero { padding: 8rem 5% 6rem; }
    .hero::after { display: none; }
    .hero-title { font-size: 2.5rem; line-height: 1.1; }
    .hero-description { font-size: 1rem; line-height: 1.6; }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-group .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
}


/* Buttons */
.btn {
    position: relative;
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
    transition: all var(--transition-slow);
}

/* Ripple effect added via JS */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 167, 101, 0.35);
}

.btn-secondary {
    border: 1.5px solid var(--text-muted);
    color: var(--text-primary);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* Shared section styles */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-label::before {
    content: '';
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    max-width: 800px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 700px;
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.75rem; }
}


/* About section */
.about {
    padding: 11rem 6%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 167, 101, 0.1);
}

.about-container {
    max-width: 1500px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-stats {
    display: grid;
    gap: 3rem;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateX(10px);
    box-shadow: -10px 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .about-content { grid-template-columns: 1fr; gap: 4rem; }
}


/* Values section */
.values {
    padding: 11rem 6%;
    background: var(--bg-deep);
}

.values-container {
    max-width: 1500px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.value-card {
    padding: 3.5rem;
    background: var(--bg-dark);
    border: 1px solid rgba(212, 167, 101, 0.1);
    transition: all var(--transition-slow);
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.value-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    transition: all var(--transition-slow);
}

.value-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-slow);
}

.value-card:hover .value-icon {
    transform: scale(1.1) translateY(-3px);
}

.value-card:hover .value-icon svg {
    filter: drop-shadow(0 6px 12px rgba(212, 167, 101, 0.4));
}

.value-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.value-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

@media (max-width: 1024px) {
    .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .value-icon { width: 80px; height: 80px; }
    .value-card h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .value-card { padding: 1.5rem; }
}


/* Services section */
.services {
    padding: 11rem 6%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 167, 101, 0.1);
}

.services-container {
    max-width: 1500px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    padding: 4rem 3.5rem;
    border-left: 3px solid transparent;
    transition: all var(--transition-slow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 167, 101, 0.03), transparent);
    transition: width var(--transition-slow);
}

.service-card:hover::before { width: 100%; }

.service-card:hover {
    border-left-color: var(--accent);
    transform: translateX(12px);
    background: rgba(31, 34, 40, 0.7);
    box-shadow: -15px 25px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2.5rem;
    transition: all var(--transition-slow);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-slow);
}

.service-card:hover .service-icon {
    transform: scale(1.08) translateY(-5px);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 8px 16px rgba(212, 167, 101, 0.4));
}

.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg line {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.service-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}

.service-features { margin-top: 2rem; }

.service-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 167, 101, 0.05);
    transition: color var(--transition-base);
}

.service-features li:last-child { border-bottom: none; }

.service-features li::before {
    content: '›';
    color: var(--accent);
    margin-right: 0.75rem;
    font-weight: bold;
}

.service-card:hover .service-features li { color: var(--text-secondary); }

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .service-icon { width: 80px; height: 80px; }
    .service-card h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .service-card { padding: 1.5rem; }
}


/* Team section */
.team {
    padding: 11rem 6%;
    background: var(--bg-dark);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin-top: 6rem;
}

.team-member {
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-base);
    -webkit-tap-highlight-color: rgba(212, 167, 101, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.team-member:hover { transform: translateY(-10px); }

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.team-photo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.team-member:hover .team-photo {
    box-shadow: 0 0 30px rgba(212, 167, 101, 0.4);
    transform: scale(1.05);
}

.team-name {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-title {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Team modal */
.team-modal-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 167, 101, 0.2);
}

.team-modal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-modal-photo svg {
    width: 100%;
    height: 100%;
}

.team-modal-info { flex: 1; }
.team-modal-info h2 { margin-bottom: 0.5rem; }

.team-modal-title {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 500;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(212, 167, 101, 0.1);
    border: 1px solid rgba(212, 167, 101, 0.3);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; gap: 4rem; }
    .team-photo { width: 180px; height: 180px; }

    .team-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .team-modal-photo { width: 100px; height: 100px; }
    .skills-tags { justify-content: center; }
}


/* Case studies */
.cases {
    padding: 11rem 6%;
    background: var(--bg-deep);
}

.cases-container {
    max-width: 1400px;
    margin: 0 auto;
}

.case-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    padding: 5rem;
    background: var(--bg-dark);
    margin-bottom: 4rem;
    border-top: 3px solid rgba(212, 167, 101, 0.15);
    transition: all var(--transition-slow);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(212, 167, 101, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.case-card:hover {
    border-top-color: var(--accent);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.case-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(212, 167, 101, 0.08);
    padding: 0.6rem 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    border: 1px solid rgba(212, 167, 101, 0.2);
}

.case-card h3 {
    font-family: 'Lora', serif;
    font-size: 2.75rem;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
}

.case-card > div > p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.case-metrics {
    background: var(--bg-card);
    padding: 3.5rem;
    display: grid;
    gap: 3rem;
    align-self: start;
}

.metric {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(212, 167, 101, 0.1);
    transition: transform var(--transition-base);
}

.metric:last-child {
    border: none;
    padding-bottom: 0;
}

.metric:hover { transform: translateX(5px); }

.metric-value {
    font-family: 'Lora', serif;
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .case-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .case-card { padding: 2rem; }
    .case-card h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .case-card { padding: 1.5rem; }
}


/* Testimonials */
.testimonials {
    padding: 11rem 6%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 167, 101, 0.1);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-slider {
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    position: relative;
    min-height: 350px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-quote p {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 167, 101, 0.2);
}

.author-name {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.testimonial-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot:hover { background: var(--accent); }
.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .testimonial-card { padding: 2rem; min-height: 300px; }
    .testimonial-quote p { font-size: 1rem; line-height: 1.6; }
    .testimonial-controls { margin-top: 2rem; }
}

@media (max-width: 480px) {
    .testimonial-card { padding: 1.5rem; min-height: 350px; }
}


/* FAQ */
.faq {
    padding: 11rem 6%;
    background: var(--bg-deep);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-list { margin-top: 4rem; }

.faq-item {
    border-bottom: 1px solid rgba(212, 167, 101, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-base);
}

.faq-question:hover { color: var(--accent); }

.faq-question span:first-child {
    flex: 1;
    padding-right: 2rem;
}

.faq-icon {
    font-size: 2rem;
    color: var(--accent);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 2rem;
}

.faq-answer p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

@media (max-width: 768px) {
    .faq-question { font-size: 1.1rem; padding: 1.2rem 0; }
}


/* Contact */
.contact {
    padding: 11rem 6%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 167, 101, 0.1);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-weight: 300;
    max-width: 700px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.contact-method h4 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-method a {
    color: var(--accent);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--accent);
    transition: all var(--transition-base);
    padding-bottom: 0.25rem;
}

.contact-method a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.contact-form { max-width: 700px; }

.form-group { margin-bottom: 2rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 167, 101, 0.1);
    color: var(--text-primary);
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 167, 101, 0.1);
}

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

@media (max-width: 768px) {
    .contact-methods { grid-template-columns: 1fr; }
}


/* Footer */
.footer {
    background: var(--bg-deep);
    padding: 8rem 6% 4rem;
    border-top: 1px solid rgba(212, 167, 101, 0.1);
    text-align: center;
}

.footer-symbol {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    opacity: 0.5;
    transition: all var(--transition-slow);
    display: inline-block;
}

.footer-symbol:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-logo {
    font-family: 'Lora', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-base);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(212, 167, 101, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-legal a:hover { color: var(--accent); }

.footer-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-company-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .footer-links { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-divider { display: none; }
}


/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 1001;
    transition: width 0.1s;
}


/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 2.5rem;
    background: var(--accent);
    color: var(--bg-deep);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(212, 167, 101, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all var(--transition-slow);
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 167, 101, 0.5);
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
}

.sticky-cta:hover .cta-arrow { transform: translateX(5px); }

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .sticky-cta { padding: 0.8rem 1.2rem; font-size: 0.75rem; }
}


/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 18, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-dark);
    max-width: 1000px;
    max-height: 85vh;
    width: 100%;
    overflow-y: auto;
    border: 1px solid rgba(212, 167, 101, 0.2);
    z-index: 2001;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg-deep);
    font-size: 2.5rem;
    line-height: 1;
    z-index: 2002;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.modal-body {
    padding: 5rem;
    clear: both;
}

.modal-header { margin-bottom: 3rem; }

.modal-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(212, 167, 101, 0.1);
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 167, 101, 0.2);
}

.modal-header h2 {
    font-family: 'Lora', serif;
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.modal-overview {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.modal-section { margin-bottom: 3.5rem; }

.modal-section h3 {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.modal-section ul { margin-top: 1.5rem; }

.modal-section li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 167, 101, 0.05);
    font-weight: 300;
}

.modal-section li:last-child { border-bottom: none; }

.modal-section li::before {
    content: '›';
    color: var(--accent);
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .modal-content { width: 95%; max-width: 95%; max-height: 90vh; }
    .modal-body { padding: 2rem; }
    .modal-header h2 { font-size: 1.75rem; }
    .modal-section h3 { font-size: 1.3rem; }
}


/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 167, 101, 0.2);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-link {
    color: var(--accent);
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.cookie-link:hover { color: var(--accent-hover); }

.cookie-settings-btn {
    color: var(--text-muted);
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-base);
}

.cookie-settings-btn:hover { color: var(--accent); }

@media (max-width: 768px) {
    .cookie-banner { padding: 1.25rem; }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text { min-width: auto; }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-actions { flex-direction: column; }
    .cookie-btn { width: 100%; }
}


/* Contact form consent checkbox */
.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.consent-group input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.consent-group label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.consent-group label a {
    color: var(--accent);
    text-decoration: underline;
}

.consent-group label a:hover {
    color: var(--accent-hover);
}


/* Legal pages */
.legal-page { min-height: 100vh; }

.legal-page .nav { position: relative; }

.legal-page .logo {
    text-decoration: none;
    cursor: pointer;
}

.legal-page .logo:hover { opacity: 0.9; }

.legal-content {
    padding: 4rem 2rem;
    min-height: calc(100vh - 300px);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 167, 101, 0.1);
}

.legal-section { margin-bottom: 2.5rem; }

.legal-section h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-section ul li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: -1rem;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.legal-section a:hover { color: var(--accent-hover); }

@media (max-width: 768px) {
    .legal-content { padding: 6rem 1.5rem 3rem; }
    .legal-container h1 { font-size: 2rem; }
}


/* System fonts fallback when Google Fonts consent not given */
.no-google-fonts body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.no-google-fonts h1,
.no-google-fonts h2,
.no-google-fonts h3,
.no-google-fonts .hero-title,
.no-google-fonts .section-title,
.no-google-fonts .footer-logo {
    font-family: Georgia, 'Times New Roman', serif;
}
