/* ----------------------------------------------------
   THE BARROW'S DEN - DESIGN SYSTEM & BRANDING
   ---------------------------------------------------- */

:root {
    /* Color Palette */
    --bg-darkest: #050506;
    --bg-darker: #0d0e11;
    --bg-dark: #15171b;
    --bg-card: #1b1e23;
    
    --text-primary: #e6e8ed;
    --text-secondary: #a4a9b6;
    --text-muted: #6f7482;
    
    --accent-gold: #d4af37;
    --accent-gold-hover: #f3e5ab;
    --accent-ember: #ff5e24;
    --accent-ember-glow: rgba(255, 94, 36, 0.5);
    
    /* Faction Glow Colors */
    --glow-cinder: rgba(255, 150, 96, 0.35);
    --glow-high: rgba(118, 200, 255, 0.35);
    --glow-iron: rgba(255, 119, 110, 0.35);
    --glow-letheos: rgba(195, 178, 255, 0.35);
    --glow-night: rgba(132, 244, 254, 0.35);
    --glow-pallid: rgba(167, 228, 254, 0.35);
    --glow-sun: rgba(255, 189, 92, 0.35);
    --glow-whispering: rgba(242, 255, 168, 0.35);
    
    /* Layout Tokens */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --max-width: 1200px;
    --header-height: 80px;
}

/* ----------------------------------------------------
   BASE STYLES & RESET
   ---------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darkest);
    background-image: url('bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: #252830;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ----------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
    font-weight: 600;
}

p {
    font-weight: 300;
    color: var(--text-secondary);
}

.text-amber {
    color: var(--accent-gold) !important;
}

/* ----------------------------------------------------
   REUSABLE UTILITIES
   ---------------------------------------------------- */

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-ember);
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------------------- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: background var(--transition-speed);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.nav-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.logo-link:hover .nav-logo {
    transform: rotate(5deg) scale(1.05);
}

.studio-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-speed);
    position: relative;
    padding: 8px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width var(--transition-speed);
}

.nav-item:hover {
    color: var(--accent-gold);
}

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
    animation: emblemPulse 4s infinite alternate ease-in-out;
    position: relative;
    z-index: 10;
}

@keyframes emblemPulse {
    0% {
        transform: scale(0.96);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.45));
    }
}

/* Radial Vignette */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5,5,6,0) 20%, rgba(5,5,6,0.95) 85%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    margin-bottom: 35px;
}

.hero-title span {
    display: block;
}

.hero-title .line-1,
.hero-title .line-3 {
    font-size: clamp(2.2rem, 6.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.22em;
    margin-right: -0.22em; /* Offset letter-spacing to center text perfectly */
    color: var(--text-primary);
    text-shadow: 0 0 35px rgba(255, 94, 36, 0.45);
}

.hero-title .line-2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.45em;
    margin-right: -0.45em; /* Offset letter-spacing to center text perfectly */
    color: var(--accent-gold);
    margin: 8px 0;
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.hero-glow-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,94,36,0) 0%, var(--accent-ember) 50%, rgba(255,94,36,0) 100%);
    margin: 0 auto 40px;
    box-shadow: 0 0 10px var(--accent-ember);
}

.cta-button {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--bg-darkest);
    background-color: var(--accent-gold);
    padding: 16px 45px;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent-gold);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.scroll-indicator a:hover {
    color: var(--accent-gold);
}

/* ----------------------------------------------------
   ABOUT SECTION
   ---------------------------------------------------- */

.about-section {
    background-color: var(--bg-darker);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 400;
}

.about-text-content p {
    margin-bottom: 20px;
}

.studio-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-gold);
    flex: 1;
}

.stat-number {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.visual-card {
    position: relative;
    width: 320px;
    height: 320px;
}

.about-emblem-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 5;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(0, 255, 240, 0.15));
}

.glowing-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0,255,240,0.1) 0%, rgba(0,255,240,0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulse 6s infinite alternate;
}

/* ----------------------------------------------------
   PRODUCTS SECTION: ASHENMARK
   ---------------------------------------------------- */

.ashenmark-section {
    background-color: var(--bg-dark);
}

.ashenmark-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
}

/* Dev Log container */
.dev-log-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.dev-log-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.dev-log-timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 30px;
    margin-left: 10px;
}

.dev-log-item {
    position: relative;
    margin-bottom: 35px;
}

.dev-log-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--text-muted);
}

.dev-log-item:has(.completed)::before {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
}

.dev-log-item:has(.active)::before {
    border-color: var(--accent-ember);
    background-color: var(--bg-card);
    animation: flash 1.5s infinite alternate;
}

.dev-log-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.dev-log-tag.completed {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.dev-log-tag.active {
    background-color: rgba(255, 94, 36, 0.1);
    color: var(--accent-ember);
    border: 1px solid rgba(255, 94, 36, 0.25);
}

.dev-log-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.dev-log-item p {
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   LINEAGES / REGIONS SECTION
   ---------------------------------------------------- */

.lineages-section {
    background-color: rgba(13, 14, 17, 0.4);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.lineages-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.lineage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ----------------------------------------------------
   RACES SECTION
   ---------------------------------------------------- */
.races-section {
    background-color: rgba(21, 23, 27, 0.4);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

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

.race-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.race-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.15);
}

.race-image-container {
    width: 100%;
    height: 340px;
    background-color: #08090a;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.race-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-speed) ease;
    filter: brightness(0.85) contrast(1.1);
}

.race-card:hover .race-image {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.15);
}

.race-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.race-info h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.race-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ----------------------------------------------------
   MAP THUMBNAILS (Within Lineage Cards)
   ---------------------------------------------------- */
.map-thumbnail-container {
    width: 100%;
    height: 150px;
    border-radius: calc(var(--border-radius) - 2px);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background-color: #000;
}

.map-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.lineage-card:hover .map-thumbnail {
    opacity: 0.85;
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

.lineage-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.01);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.card-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.lineage-crest {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
    transition: transform 0.4s ease;
}

.lineage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    z-index: 5;
}

.zone-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.faction-accent {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    position: relative;
    z-index: 5;
    transition: all var(--transition-speed);
}

/* Dynamic Hover Effects using Dataset attributes */
.lineage-card[data-glow="cinder"]:hover {
    border-color: rgba(255, 150, 96, 0.2);
    box-shadow: 0 10px 30px rgba(255, 150, 96, 0.1);
}
.lineage-card[data-glow="cinder"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-cinder) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="cinder"]:hover .faction-accent {
    color: #ff9660;
    background-color: rgba(255, 150, 96, 0.08);
}

.lineage-card[data-glow="high"]:hover {
    border-color: rgba(118, 200, 255, 0.2);
    box-shadow: 0 10px 30px rgba(118, 200, 255, 0.1);
}
.lineage-card[data-glow="high"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-high) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="high"]:hover .faction-accent {
    color: #76c8ff;
    background-color: rgba(118, 200, 255, 0.08);
}

.lineage-card[data-glow="iron"]:hover {
    border-color: rgba(255, 119, 110, 0.2);
    box-shadow: 0 10px 30px rgba(255, 119, 110, 0.1);
}
.lineage-card[data-glow="iron"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-iron) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="iron"]:hover .faction-accent {
    color: #ff776e;
    background-color: rgba(255, 119, 110, 0.08);
}

.lineage-card[data-glow="letheos"]:hover {
    border-color: rgba(195, 178, 255, 0.2);
    box-shadow: 0 10px 30px rgba(195, 178, 255, 0.1);
}
.lineage-card[data-glow="letheos"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-letheos) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="letheos"]:hover .faction-accent {
    color: #c3b2ff;
    background-color: rgba(195, 178, 255, 0.08);
}

.lineage-card[data-glow="night"]:hover {
    border-color: rgba(132, 244, 254, 0.2);
    box-shadow: 0 10px 30px rgba(132, 244, 254, 0.1);
}
.lineage-card[data-glow="night"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-night) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="night"]:hover .faction-accent {
    color: #84f4fe;
    background-color: rgba(132, 244, 254, 0.08);
}

.lineage-card[data-glow="pallid"]:hover {
    border-color: rgba(167, 228, 254, 0.2);
    box-shadow: 0 10px 30px rgba(167, 228, 254, 0.1);
}
.lineage-card[data-glow="pallid"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-pallid) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="pallid"]:hover .faction-accent {
    color: #a7e4fe;
    background-color: rgba(167, 228, 254, 0.08);
}

.lineage-card[data-glow="sun"]:hover {
    border-color: rgba(255, 189, 92, 0.2);
    box-shadow: 0 10px 30px rgba(255, 189, 92, 0.1);
}
.lineage-card[data-glow="sun"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-sun) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="sun"]:hover .faction-accent {
    color: #ffbd5c;
    background-color: rgba(255, 189, 92, 0.08);
}

.lineage-card[data-glow="whispering"]:hover {
    border-color: rgba(242, 255, 168, 0.2);
    box-shadow: 0 10px 30px rgba(242, 255, 168, 0.1);
}
.lineage-card[data-glow="whispering"]:hover .card-bg-glow {
    background: radial-gradient(circle, var(--glow-whispering) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
}
.lineage-card[data-glow="whispering"]:hover .faction-accent {
    color: #f2ffa8;
    background-color: rgba(242, 255, 168, 0.08);
}

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

/* ----------------------------------------------------
   TEAM SECTION
   ---------------------------------------------------- */

.team-section {
    background-color: var(--bg-darkest);
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-grid {
    display: flex;
    justify-content: center;
}

.team-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all var(--transition-speed);
}

.team-card:hover {
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-ember));
    z-index: 1;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.avatar-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: var(--accent-gold);
    z-index: 2;
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.role-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 20px;
}

.team-bio {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: scale(1.15);
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */

.main-footer {
    background-color: #030304;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 60px 20px 40px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 64px;
    width: 64px;
    object-fit: contain;
}

.footer-studio-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.footer-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.footer-social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.01);
    transition: all var(--transition-speed);
}

.footer-social-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
}

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

/* ----------------------------------------------------
   ANIMATIONS & MEDIA QUERIES
   ---------------------------------------------------- */

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes flash {
    0% { opacity: 0.4; }
    100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 94, 36, 0.6); }
}

/* Tablets (1024px and down) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual {
        order: -1;
    }
}

/* Mobiles (768px and down) */
@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-darkest);
        transition: left var(--transition-speed) ease-in-out;
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .main-nav.nav-active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 40px;
    }
    
    .nav-item {
        font-size: 1.25rem;
    }
}

/* ----------------------------------------------------
   ARCHETYPES SECTION
   ---------------------------------------------------- */

.archetypes-section {
    background-color: var(--bg-darkest);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.archetypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.archetype-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.archetype-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.archetype-icon-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: all var(--transition-speed);
    overflow: hidden;
    flex-shrink: 0;
}

.archetype-icon-wrapper img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.archetype-card:hover .archetype-icon-wrapper {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: scale(1.08);
}

.archetype-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.archetype-role {
    font-size: 0.72rem;
    color: var(--accent-ember);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.2;
}

.archetype-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 4px 0;
}

.archetype-resource {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
    padding-top: 8px;
}

/* ----------------------------------------------------
   FLOATING SOCIAL SIDEBAR
   ---------------------------------------------------- */

.social-sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-sidebar a:hover {
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

@media (max-width: 1024px) {
    .social-sidebar {
        display: none; /* Hide on smaller screens */
    }
}
