/* =========================================
   1. GLOBAALIT TYYLIT & ETUSIVU (style.css)
   ========================================= */

/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #D8A84F; 
    --font-main: 'Satoshi', sans-serif;
    --container-max: 1240px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: block;
    width: 100%;
    padding-top: 0; 
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- RESPONSIVE TYPOGRAPHY UTILITIES --- */
.mobile-only-title { display: none; }
.desktop-only-title { display: block; }

/* Lisää massiivisuutta ja tiiviyttä isoihin otsikoihin (Satoshi-optimoitu) */
.hero-title, 
.case-title, 
.bg-text-layer,
.footer-cta {
    font-weight: 900;      /* Satoshin upea Black-paino käyttöön */
    letter-spacing: -0.5px; /* Montserrat-asetusta kevyempi, hienovaraisempi tiivistys */
}

/* --- REUSABLE UTILITIES --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px;
    background: transparent;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--text-main); color: var(--bg-dark); border-color: var(--text-main); }
.btn-primary:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* =========================================
   FIXED NAVIGATION HEADER & ACTIVE INDICATOR
   ========================================= */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    background: transparent; backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease; padding: 20px 0; 
}

.main-header.scrolled {
    background: rgba(10, 10, 10, 0.9); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a; 
    padding: 0; 
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-logo { 
    text-decoration: none; 
    display: flex; 
    height: 40px; 
}

.nav-logo img { 
    height: 100%; 
    width: auto; 
    object-fit: contain; 
}

/* Navigointilinkit (Yhdistetty sääntö) */
.nav-links a {
    position: relative;
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-left: 20px;
    padding-bottom: 6px; /* Tilaa kultaiselle viivalle */
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { 
    color: #ffffff; 
}

/* Kultainen aksenttiviiva linkin alle */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent); /* Brändin kultainen väri */
    transform: scaleX(0); /* Oletuksena näkymätön */
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kultaisen viivan aktivointi Hover- ja Active-tiloissa */
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- CV BUTTON (Jätetään kultainen viiva pois napista) --- */
.nav-links .btn-nav {
    padding: 8px 16px; 
    font-size: 0.85rem; 
    background: var(--accent); 
    color: var(--bg-dark) !important; 
    font-weight: 700; 
    border: none;
    margin-left: 30px; 
    border-radius: 4px; 
    cursor: pointer;
}

.nav-links .btn-nav::after {
    display: none; /* Ei kultaista viivaa painikkeen alle */
}

.nav-links .btn-nav:hover { 
    background: white; 
    color: var(--bg-dark) !important; 
}
/* Hover- ja Active-tilan efekti */
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: #ffffff; /* Aktiivisen tekstin väri */
    font-weight: 600;
}

/* --- HAMBURGER MENU ICON --- */
.menu-toggle {
    display: none; flex-direction: column; gap: 6px; cursor: pointer;
    position: relative !important; z-index: 9999 !important; 
}
.menu-toggle .bar {
    pointer-events: none; width: 25px; height: 2px;
    background-color: var(--text-main); transition: all 0.3s ease;
}
.mobile-menu-logo { display: none; }

/* --- 1. HERO SECTION --- */
.hero-section {
    height: 100vh; min-height: 700px; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
    padding: 0 5%; background: radial-gradient(circle at 30% 50%, #1e1e1e 0%, #000000 70%);
}
.hero-container {
    display: grid; grid-template-columns: 0.8fr 1fr; gap: 2vw;
    max-width: 1600px; width: 100%; height: 100%; align-items: center; position: relative;
}
.hero-text {
    text-align: right; display: flex; flex-direction: column;
    justify-content: center; align-items: flex-end; z-index: 2;
    animation: fadeUp 1s ease-out forwards;
}
.hero-name {
    font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
    font-weight: 600; color: var(--text-muted); margin-bottom: 1.5rem; display: block;
}
.hero-title {
    font-size: clamp(40px, 4.5vw, 80px); line-height: 1.1;
    font-weight: 800; color: #fff; margin-bottom: 2rem;
}
.no-break { white-space: nowrap; }
.text-accent { color: var(--accent); }
.hero-description { font-size: 1.1rem; color: #ccc; max-width: 480px; margin-bottom: 0; }
.scroll-indicator {
    position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center;
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    color: #555; animation: bounce 2s infinite; z-index: 5;
}
.hero-image-wrapper {
    height: 100%; display: flex; justify-content: flex-start;
    align-items: flex-end; padding-bottom: 80px; opacity: 1; 
}
.hero-img {
    height: 75vh; width: auto; object-fit: contain; transform-origin: bottom center;
    transform: scale(1.1); filter: drop-shadow(0px 10px 40px rgba(0,0,0,0.6));
    cursor: pointer; transition: transform 0.1s ease; 
}
.hero-img:active { transform: scale(1.08); }

/* --- 2. TRACTOR SHOWCASE --- */
.tractor-section {
    background: #050505; padding: 160px 0; overflow: hidden; position: relative;
    display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 70%);
}
.bg-text-layer {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: clamp(8rem, 20vw, 25rem); font-weight: 800;
    color: rgba(255, 255, 255, 0.03); white-space: nowrap; z-index: 1;
    letter-spacing: -0.05em; user-select: none; pointer-events: none;
}
.s-tractor-visual { width: 100%; display: flex; justify-content: center; padding: 0 20px; position: relative; z-index: 2; user-select: none; }
.drag-hint-overlay {
    position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
    display: flex; justify-content: center; align-items: center;
    pointer-events: none; user-select: none; z-index: 10; transition: opacity 0.4s ease;
}
.hint-arrows { display: flex; align-items: center; gap: 12px; color: #555; font-size: 1rem; }
.hint-icon { display: flex; align-items: center; justify-content: center; }
.hint-icon svg { color: #555; display: block; opacity: 0.8; }
.arrow-left { display: inline-block; animation: nudgeLeft 2s infinite ease-in-out; }
.arrow-right { display: inline-block; animation: nudgeRight 2s infinite ease-in-out; }
#tractor-video { max-width: 1400px; width: 100%; height: auto; display: block; will-change: transform; cursor: grab; }
#tractor-video:active { cursor: grabbing; }

.showcase-overlay {
    position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
    z-index: 3; width: 100%; max-width: 1240px; padding: 0 24px; display: flex; justify-content: flex-start;
}
.award-badge-group {
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 32px; border-radius: 4px;
    max-width: 450px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.award-badge-group h3 { font-size: 2rem; color: white; margin: 8px 0 12px; line-height: 1.1; }
.award-badge-group p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.5; }
.award-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.award-pill {
    display: flex; align-items: center; gap: 6px; font-size: 0.75rem;
    padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
    color: var(--text-muted); font-weight: 500;
}
.award-pill.highlight { border-color: var(--accent); color: white; background: rgba(216, 168, 79, 0.15); }
.award-svg { height: 12px; width: auto; object-fit: contain; }

/* --- 3. PROFILE / ABOUT --- */
.about-section { background: var(--bg-dark); padding: 140px 0; }
.profile-primary-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: start; margin-bottom: 100px; }
.about-content { display: flex; flex-direction: column; }
.profile-headline { font-size: 1.5rem; color: white; margin-bottom: 30px; line-height: 1.4; font-weight: 600; }
.about-content p { margin-bottom: 24px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.profile-image-wrapper { display: flex; justify-content: flex-end; }
.profile-portrait { width: 100%; height: auto; border-radius: 4px; filter: grayscale(100%) contrast(1.1); transition: filter 0.5s ease; }
.profile-portrait:hover { filter: grayscale(0%) contrast(1); }
.section-divider { height: 1px; background: #222; width: 100%; margin-bottom: 60px; }
.hobby-header { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.hobby-intro { color: var(--text-muted); max-width: 400px; text-align: right; font-size: 0.9rem; }
.hobby-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hobby-card { position: relative; }
.hobby-thumb { height: 250px; background: #151515; overflow: hidden; border-radius: 4px; margin-bottom: 12px; }
.hobby-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: all 0.5s ease; cursor: zoom-in; position: relative; z-index: 10; pointer-events: auto !important; }
.hobby-card:hover .hobby-thumb img { opacity: 1; transform: scale(1.05); }
.hobby-caption { font-size: 0.8rem; color: #555; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; transition: color 0.3s ease; }
.hobby-card:hover .hobby-caption { color: var(--accent); }

/* --- 4. CASE STUDY (ETUSIVUN ESITTELY) --- */
.case-study-section { background: #0f0f0f; padding: 140px 0; } 
.case-study-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; margin-bottom: 80px; }
.case-image { display: flex; justify-content: center; }
.case-image img { width: 70%; height: auto; object-fit: contain; filter: drop-shadow(0px 20px 50px rgba(0,0,0,0.4)); transform-origin: center center; will-change: transform; }
.case-label { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 16px; font-weight: 700; }
.case-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 40px; color: white;}
.stat-block { margin-bottom: 32px !important; }
.stat-block h4 { margin-bottom: 12px !important; font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.stat-block p { font-size: 1rem; color: var(--text-muted); }
.cs-info .stat-block:first-child { margin-top: 20px !important; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; background: #000; width: 100%; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.action-block { margin-top: 30px; }
.case-btn { display: inline-block; padding: 12px 28px; background-color: #1a1a1a; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: 1px solid #1a1a1a; }
.case-btn:hover { background-color: var(--accent); border-color: var(--accent); color: #000000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.case-btn .arrow { display: inline-block; transition: transform 0.3s ease; margin-left: 8px; }
.case-btn:hover .arrow { transform: translateX(4px); }

/* --- 5. PROJECTS --- */
.projects-section { padding: 140px 0; background: var(--bg-dark); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project-card { background: var(--bg-card); border-radius: 4px; overflow: hidden; cursor: pointer; transition: transform 0.3s ease; }
.project-card:hover { transform: translateY(-8px); }
.project-thumb { height: 280px; background: #1a1a1a; width: 100%; overflow: hidden; }
.project-thumb.padded { padding: 40px; background: #1a1a1a; }
.project-thumb.padded img { object-fit: contain; transform-origin: center; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; cursor: zoom-in; position: relative; z-index: 10; pointer-events: auto !important; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-details { padding: 24px; }
.project-details h3 { font-size: 1.25rem; margin-bottom: 8px; color: white; }
.project-details p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.tag { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* --- 6. AWARDS LIST --- */
.awards-list-section { padding: 120px 0; background: var(--bg-dark); }
.award-grid-visual { display: flex; flex-direction: column; border-top: 1px solid #222; }
.award-visual-row { display: flex; justify-content: space-between; align-items: center; padding: 32px 0; border-bottom: 1px solid #222; text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.award-info { display: flex; flex-direction: column; gap: 8px; }
.award-year { font-family: monospace; font-size: 0.85rem; color: #555; }
.award-project { color: white; font-size: 1.75rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.award-title { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.award-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; transition: transform 0.4s ease; opacity: 0.3; }
.award-icon img { width: 100%; height: auto; object-fit: contain; filter: grayscale(100%) invert(1) brightness(0.8); transition: filter 0.3s ease; }
.award-visual-row:hover { padding-left: 20px; padding-right: 20px; background: #111; }
.award-visual-row:hover .award-icon { opacity: 1; transform: scale(1.1); }
.award-visual-row:hover .award-icon img { filter: grayscale(100%) invert(1) brightness(2); }
.award-visual-row:hover .award-project { color: var(--accent); }

/* --- 7. FOOTER --- */
.footer-section { padding: 140px 0 60px; text-align: center; background: radial-gradient(circle at 50% 100%, #1a1a1a 0%, #000000 80%); }
.footer-label { color: #555; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-weight: 600; font-size: 0.85rem; }
.footer-cta { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 24px; color: white; line-height: 1; }
.footer-text { max-width: 500px; margin: 0 auto 50px; color: var(--text-muted); font-size: 1.1rem; }
.footer-links { margin-bottom: 80px; }
.copyright { color: #333; font-size: 0.85rem; }

/* =========================================
   LIGHTBOX (ADVANCED EDITORIAL STYLE)
   ========================================= */
.lightbox { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(12px); 
    display: flex; align-items: center; justify-content: center; 
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; 
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-close { 
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 3rem; 
    cursor: pointer; line-height: 1; transition: color 0.3s ease; z-index: 2010; 
}
.lightbox-close:hover { color: var(--accent); }

/* GRID: Kuva vasemmalla, tarina oikealla */
.lightbox-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    width: min(1300px, 90vw);
    max-height: 85vh;
}

.lightbox-image { 
    position: relative; /* Tärkeä laskurin asemointia varten */
    display: flex; 
    justify-content: flex-end; 
    min-width: 0; 
}
.lightbox-image img {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.lightbox.active .lightbox-image img { transform: scale(1); }

/* Tarinalehdykän typografia ja yhtenäistys */
.lightbox-story { 
    color: #ffffff; 
    text-align: left;
    font-family: 'Satoshi', sans-serif;
}

.lightbox-story .lb-label {
    display: block; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 0.12em; 
    color: var(--accent); 
    font-weight: 700; 
    margin-bottom: 12px;
}

.lightbox-story h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem); 
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: none; 
    letter-spacing: -0.3px;
}

.lightbox-story p {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: #e0e0e0; /* Vaaleampi harmaa kontrastin parantamiseksi */
    font-weight: 400;
    margin: 0 0 12px 0;
    text-transform: none; 
}

.lightbox-story p:last-child {
    margin-bottom: 0;
}

/* --- PIKKUKUVAT (THUMBNAILS) --- */
.lb-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.lb-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.4;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.lb-thumb:hover {
    opacity: 0.8;
}
.lb-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

/* --- NAVIGOINTI & LASKURI --- */
.lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2010;
    padding: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.lb-nav-btn:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* --- PISTEINDIKAATTORIT (DOTS) --- */
.lb-dots {
    position: absolute;
    bottom: 30px; /* Etäisyys ruudun alalaidasta */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* Pallojen väli */
    z-index: 2010;
}

.lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25); /* Himmeä oletusväri */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lb-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.lb-dot.active {
    background-color: var(--accent); /* Brändin kultainen väri aktiiviselle */
    transform: scale(1.1);
}

/* --- MOBIILIASETTELU --- */
@media (max-width: 900px) {
    .lightbox-content {
        grid-template-columns: 1fr; 
        overflow-y: auto; 
        align-items: start;
        padding: 60px 20px 40px; 
        gap: 2rem;
    }
    .lightbox-image { justify-content: center; }
    .lightbox-image img { max-height: 45vh; }
    .lightbox-story { max-width: 100%; }
    
    .lb-nav-btn { display: none; }
    .lb-counter { display: none; }
}

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }
@keyframes nudgeLeft { 0%, 100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(-4px); opacity: 1; } }
@keyframes nudgeRight { 0%, 100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(4px); opacity: 1; } }

/* =========================================
   RESPONSIVE (MOBILE) - MAIN SIVU
   ========================================= */
@media (max-width: 1024px) {
    .menu-toggle { display: flex !important; position: relative !important; z-index: 9999 !important; }
    .nav-links { position: fixed !important; top: 0 !important; right: -100% !important; width: 100% !important; height: 100vh !important; background: rgba(10, 10, 10, 0.98) !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important; z-index: 9000 !important; }
    .nav-links.active { right: 0 !important; }
    .mobile-menu-logo { display: block !important; margin-bottom: 40px; height: 50px; }
    .mobile-menu-logo img { height: 100%; width: auto; }
    .nav-links a { margin: 15px 0 !important; font-size: 1.5rem !important; margin-left: 0 !important; }
    .nav-links .btn-nav { margin: 20px 0 0 0 !important; padding: 12px 32px !important; font-size: 1.2rem !important; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-section { padding-top: 100px !important; height: auto !important; min-height: 100vh !important; display: flex !important; flex-direction: column !important; justify-content: center !important; background: radial-gradient(circle at 50% 100%, #1e1e1e 0%, #000000 80%) !important; position: relative !important; overflow: hidden !important; }
    .hero-container { display: flex !important; flex-direction: column !important; gap: 0 !important; width: 100% !important; position: static !important; }
    .hero-text { align-items: center !important; text-align: center !important; padding: 0 20px !important; position: relative !important; z-index: 10 !important; text-shadow: 0 2px 10px rgba(0,0,0,0.9); margin-top: 50px !important; }
    .hero-name { color: white !important; opacity: 0.9; }
    .hero-description { color: white !important; opacity: 0.8; max-width: 320px !important; }
    .scroll-indicator { bottom: 30px !important; z-index: 20 !important; }
    .hero-image-wrapper { position: absolute !important; transform: none !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; display: flex !important; justify-content: center !important; align-items: flex-start !important; padding: 0 !important; z-index: 1 !important; -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, rgba(0,0,0,0.2) 85%, transparent 100%) !important; mask-image: linear-gradient(to bottom, black 0%, black 65%, rgba(0,0,0,0.2) 85%, transparent 100%) !important; }
    .hero-img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: top center !important; transform: scale(1.35) translateY(30%) !important; filter: grayscale(100%) contrast(1.1) !important; opacity: 0.28 !important; display: block !important; }
        
    .tractor-section { padding: 60px 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    .bg-text-layer { top: 32% !important; font-size: clamp(6rem, 15vw, 12rem) !important; }
    .s-tractor-visual { width: 100% !important; padding: 0 !important; order: 1 !important; }
    #tractor-video { width: 100% !important; height: auto !important; transform: none !important; }
    .showcase-overlay { position: relative !important; bottom: auto !important; left: auto !important; transform: none !important; width: 100% !important; padding: 0 24px !important; margin-top: 30px !important; order: 2 !important; }
    .award-badge-group { text-align: center !important; margin: 0 auto !important; width: 100% !important; max-width: 100% !important; }
    .award-pill-list { justify-content: center !important; }

    .about-section, .case-study-section, .projects-section, .awards-list-section { padding: 60px 0 !important; }
    .profile-primary-grid, .case-study-grid { display: flex !important; flex-direction: column !important; margin-bottom: 40px !important; gap: 0 !important; }
    .section-divider { margin-bottom: 40px !important; }
    .desktop-only-title { display: none !important; }

    .mobile-only-title { display: block !important; width: 100% !important; text-align: left !important; margin-bottom: 32px !important; padding: 0 24px !important; }
    .mobile-only-title .section-label, .mobile-only-title .case-label { font-size: 1.8rem !important; font-weight: 800 !important; color: var(--text-main) !important; letter-spacing: -0.5px !important; text-transform: none !important; display: block !important; position: relative !important; padding-bottom: 12px !important; }
    .mobile-only-title .section-label::after, .mobile-only-title .case-label::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background-color: var(--accent); }

    .profile-primary-grid .mobile-only-title { order: 1; padding: 0 !important; }
    .profile-image-wrapper { order: 2 !important; width: 100% !important; justify-content: flex-start !important; margin-bottom: 32px; }
    .about-content { order: 3 !important; text-align: left !important; }

    .case-study-grid .mobile-only-title { order: 1; padding: 0 !important; }
    .case-image { order: 2 !important; width: 100% !important; justify-content: flex-start !important; margin-bottom: 32px; }
    .case-image img { width: 85% !important; max-width: 450px !important; margin: 0 !important; }
    .case-info { order: 3 !important; text-align: left !important; padding: 0 !important; }
    .case-info .case-title { font-size: 1.4rem !important; font-weight: 700 !important; color: var(--text-muted) !important; text-align: left !important; margin-bottom: 24px !important; }

    .projects-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 32px !important; }
    .hobby-gallery { display: grid !important; grid-template-columns: 1fr !important; gap: 24px !important; }
    .hobby-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
    .hobby-intro { text-align: left !important; }
}

/* --- COOKIE CONSENT BANNER --- */
.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-main);
}
.consent-text { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }
.consent-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.consent-btn {
    padding: 10px 20px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    background: transparent;
    border: 1px solid #444;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}
.consent-btn:hover { border-color: var(--text-main); }
.consent-btn-primary { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.consent-btn-primary:hover { filter: brightness(1.1); border-color: var(--accent); }
@media print { .consent-banner { display: none !important; } }
