@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;600;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #e6e6e6;
    --accent-vibrant: #006341;
    /* Inspired by section_color_bg.jpg */
    --text-main: #000000;
    --text-muted: #666666;
    --pill-bg: #000000;
    --pill-text: #ffffff;
    --grid-gap: 2rem;
    --container-max: 1400px;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 4rem;
}

section {
    padding: 8rem 0;
}

/* Typography Hierarchy */
h1 {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    /* Reduced size */
    font-weight: 300;
    line-height: 1.1;
    /* Relaxed leading */
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(1.8rem, 4.2vw, 3.2rem);
    text-transform: uppercase;
    font-weight: 300;
    /* Lighter as requested */
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 600px;
}

/* Components */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    /* ~30% smaller than first version */
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.65rem;
    /* ~30% smaller than first version */
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.btn-pill::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-pill:hover {
    background-color: #333;
    color: #fff;
    transform: translateX(5px);
}

.btn-pill:hover::after {
    transform: translateX(3px);
}

.align-right {
    display: flex;
    justify-content: flex-end;
}

/* Header */
header {
    padding: 0.6rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(193, 193, 193, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-main);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

/* Navigation Dropdown */
.nav-dropdown-container {
    position: relative;
    list-style: none;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    display: flex;
    gap: 1.5rem;
    padding: 0.6rem 1.5rem;
    /* Reduced vertical padding for a thinner look */
    background-color: rgba(193, 193, 193, 0.65);
    /* Same as header */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
    white-space: nowrap;
    margin-top: 0.85rem;
    /* Increased slightly to add the requested 5px gap */
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: rgba(193, 193, 193, 0.65);
    /* Matches the menu transparency */
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.nav-dropdown-container:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #444 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-dropdown-menu a:hover {
    color: var(--accent-vibrant) !important;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: #ffffff;
}

.hero-loop-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: end;
    position: relative;
    z-index: 3;
    /* Ensure text is above the canvas */
}

.hero-statement {
    border-left: 2px solid #000000;
    padding-left: 3rem;
}

/* Force hero text to be pure black for maximum contrast */
.hero-content h1,
.hero-content h3,
.hero-content p {
    color: #000000;
}

/* Stats Section (Vibrant) */
.section-stats {
    background-color: var(--accent-vibrant);
    color: white;
}

.section-stats h2,
.section-stats p {
    color: white;
}

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

.stat-item .number {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 600;
    line-height: 1;
    display: block;
}

.stat-item .label {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 1rem;
}

/* Database Tables */
.section-database {
    background-color: var(--bg-secondary);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 4rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--text-main);
}

td {
    padding: 2rem 1rem;
    border-bottom: 1px solid #eeeeee;
    font-size: 1.125rem;
}

tr:hover td {
    background-color: #fafafa;
}

.category-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-transform: uppercase;
}

.gallery-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: #000;
    color: #fff;
}

/* Data Viz (Dark / Negro) */
.section-viz {
    background-color: #000000;
    color: #ffffff;
    text-align: left;
    min-height: 80vh;
}

.section-viz h2,
.section-viz h3 {
    color: #ffffff;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}


/* Internal Pages Specific Styles */

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.detail-grid,
.project-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    margin-top: 2rem;
}

/* Detail Pages Swiss Header */
.view-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 !important;
    /* Override global section padding */
    padding-top: 1rem !important;
    margin-bottom: 1rem;
    align-items: start;
}

/* Reset padding for any section within detail views */
.foundry-view section,
.designer-view section,
.academy-view section,
.award-view section {
    padding: 6rem 0rem;
}

.view-header-left h2 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 0.95;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.04em;
    text-transform: none;
}

.view-header-meta {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
}

.view-header-right {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #333;
    font-weight: 400;
}

.view-header-right p {
    margin-top: 0;
}

@media (max-width: 900px) {

    .detail-grid,
    .project-grid,
    .view-header-grid {
        grid-template-columns: 1fr;
    }
}

.tech-column {
    border-right: 1px solid #ddd;
    padding-right: 2rem;
}

.tech-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.tech-value {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.tech-value a {
    color: inherit;
    text-decoration: underline;
}

.content-body p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 850px;
}

.award-item {
    border-left: 4px solid var(--accent-vibrant);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.citation-box {
    background: var(--bg-secondary);
    padding: 2.5rem;
    margin-top: 5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.citation-box h4 {
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.citation-box p {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
}

/* Functional Pages: Search & Indexing */
.search-container {
    margin-bottom: 4rem;
}

.search-input {
    width: 100%;
    padding: 1.5rem 0;
    font-size: 2rem;
    font-weight: 300;
    background: transparent;
    border: none;
    border-bottom: 2px solid #000;
    color: #000;
    text-transform: uppercase;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input::placeholder {
    color: #ccc;
}

.search-input:focus {
    border-bottom-color: var(--accent-vibrant);
}

/* Table Grid System (Fixed Alignment) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* Rigid grid */
}

.data-table th,
.data-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
    box-sizing: border-box;
}

.data-table th {
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background-color: #fafafa;
}

/* Column Widths */
.col-name {
    width: 22%;
}

.col-year {
    width: 6%;
    min-width: 60px;
}

.col-author {
    width: 20%;
}

.col-class {
    width: 10%;
}

.col-class-meta {
    width: 14%;
}

.col-access {
    width: 8%;
}

.col-actions {
    width: 20%;
    min-width: 170px;
    text-align: right;
}

.data-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table td.font-name,
.data-table td div.font-name,
.data-table td.font-author,
.data-table td div.font-author {
    white-space: normal;
    overflow: visible;
}

/* Details & Metadata Typography */
.font-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #000;
    text-transform: none;
    letter-spacing: -0.01em;
}

.font-year {
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    color: #666;
}

.font-author {
    font-size: 0.8rem;
    color: #444;
}

/* Minimalist Button */
.btn-detail {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-decoration: none;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-detail:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Access Link Style */
.link-access {
    color: #888;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.link-access:hover {
    color: #006341;
}

/* Resources & Links Styles */
.resources-view a {
    color: #777;
    /* Default gray links */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.resources-view a:hover {
    color: var(--accent-vibrant) !important;
    /* Green rollover */
}

.resource-card h4 {
    font-weight: 500 !important;
    /* Specific weight for resources */
    letter-spacing: -0.01em;
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: #c1c1c1;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.credits {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.6rem;
    transition: var(--transition-smooth);
}

/* New Two-Column Gallery Layout */
.gallery-layout-wrapper {
    display: flex;
    position: relative;
    padding-left: 5vw;
}

.gallery-info-column {
    width: 420px;
    background: #fff;
    z-index: 20;
    position: relative;
    padding-right: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Blurred edge effect */
.gallery-info-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: -120px;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 25;
}



.gallery-info-column .description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    max-width: 350px;
}

.gallery-display-column {
    flex: 1;
    z-index: 10;
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
}

.gallery-nav-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.gallery-horizontal-scroll {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: smooth;
}

.gallery-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.specimen-card-horizontal {
    flex: 0 0 350px;
    transition: var(--transition-smooth);
}

.specimen-card-horizontal:hover {
    transform: translateY(-10px);
}

.specimen-card-horizontal .card-image-link {
    display: block;
    aspect-ratio: 4/5;
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
}

.specimen-card-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.specimen-card-horizontal:hover img {
    filter: grayscale(0%);
}

.specimen-card-horizontal .card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specimen-card-horizontal .font-year {
    color: #bbb;
}

/* Masonry Gallery Styles */
.masonry-container {
    column-count: 4;
    column-gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    background: #fff;
    border: none;
    padding: 10px;
    transition: var(--transition-smooth);
    break-inside: avoid;
    text-decoration: none;
    color: inherit;
}

.masonry-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.masonry-item:hover .masonry-title {
    color: #006341;
    /* Tipomap Green */
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.masonry-item:hover img {
    filter: grayscale(0%);
}

.masonry-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.masonry-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.masonry-year {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .masonry-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-container {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-container {
        column-count: 1;
    }
}

.page-wrapper {
    min-height: 100vh;
}

/* Consolidation of Layout Classes */
.main-content-padding {
    padding-top: 12rem;
    padding-bottom: 8rem;
}

.hero-mx {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4)), url('../img/4049483.jpg') center/cover no-repeat;
}

.stats-header,
.viz-header {
    max-width: 800px;
    margin-bottom: 4rem;
}

.stats-desc,
.viz-desc {
    color: rgba(255, 255, 255, 0.8);
}

.btn-stats,
.btn-gallery-explore,
.btn-viz-explore {
    margin-top: 2rem;
    display: inline-block;
}

.btn-viz-explore {
    background: #fff;
    color: #000;
}

.section-viz-mx {
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('../img/data_viz.jpg') center/cover no-repeat;
}

.viz-header h3 {
    font-weight: 400;
    letter-spacing: 0.3em;
    opacity: 0.8;
}

.viz-header {
    position: relative;
    z-index: 2;
}


/* Consolidation of Detail Views */
.back-nav {
    margin-bottom: 3rem;
}

.back-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #666;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: #000;
}

.view-header-cta {
    margin-top: 2.5rem;
}

.btn-visit-web {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
}

.portfolio-title {
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.text-right {
    text-align: right;
}

.degree-title {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1rem;
}

.designer-photo {
    margin-top: 3rem;
}

.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 1px solid #eee;
}

.detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
}

/* Consolidated Typography Detail View Classes */
.underlined-link {
    text-decoration: underline;
}

.tech-column {
    display: flex;
    flex-direction: column;
}

.tech-item {
    margin-bottom: 2rem;
}

.tech-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tech-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.tech-id {
    font-size: 0.9rem;
    font-family: monospace;
}

.tech-region {
    margin-bottom: 4rem;
}

.typo-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.btn-fit {
    width: fit-content;
}

.btn-specimen {
    width: fit-content;
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.typo-specimen {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 3rem;
    background: #fff;
}

.typo-specimen img {
    width: 100%;
    display: block;
}

.content-section-label {
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    border-bottom: 1px solid #000;
    display: inline-block;
    padding-bottom: 5px;
}

.description-text {
    margin-bottom: 4rem;
}

.awards-section,
.academy-section {
    margin-bottom: 5rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.award-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.academy-item {
    margin-bottom: 1.5rem;
}

.academy-degree {
    font-size: 1.1rem;
}

.text-muted {
    color: #666;
    font-size: 0.85rem;
}

.text-bold {
    font-weight: 700;
}

/* Distribution Progress Bars */
.distribution-container {
    margin-top: 5rem;
    max-width: 600px;
}

.distribution-title {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.dist-item {
    margin-bottom: 1.5rem;
}

.dist-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dist-bar-bg {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: #000;
    transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* PROJECT PAGE STYLES */
.project-view .section-title {
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.project-meta {
    border-right: 2px solid #000;
    padding-right: 2rem;
}

.project-meta-item {
    margin-bottom: 2rem;
}

.project-meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-meta-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.project-description {
    font-size: 1.4rem;
    line-height: 1.5;
}

.project-section-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 3rem;
    margin-top: 5rem;
}

/* Etapas */
.etapas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 0;
}

.etapa-item {
    padding: 2rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    transition: var(--transition-smooth);
}

.etapa-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #000;
}

.etapa-number {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #666;
}

.etapa-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    /* Grouped closer to text */
    text-transform: uppercase;
}

.etapa-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* Indexación */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 0;
}

.process-step {
    position: relative;
    padding: 2rem;
}

.process-step::after {
    content: "→";
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ccc;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.1;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    /* Grouped closer to text */
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Créditos */
.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 0;
}

.credits-block {
    margin-bottom: 3.5rem;
    /* Spacing between blocks */
}

.credits-block:last-child {
    margin-bottom: 0;
}

.credits-org {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    opacity: 0.8;
}




.credits-role {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.15em;
    /* Added expansion for contrast */
}


.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credits-list li {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.credits-list li span {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

/* Accordion Styles */
.accordion-item {
    border-bottom: 1px solid #000;
    margin-bottom: 0;
}

.accordion-header {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.accordion-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), padding 0.5s;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    /* Large enough for any content */
    padding-bottom: 4rem;
}

/* Specific adjustments for content inside accordion */
.accordion-content .project-section-title {
    display: none;
    /* Hide original titles inside accordion */
}

/* --- MOBILE RESPONSIVENESS & HAMBURGER MENU --- */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1500;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    #main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 300;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding: 0;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    /* Hero Responsive */
    h1 {
        font-size: 4rem;
    }

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

    /* Gallery Responsive */
    .gallery-layout-wrapper {
        flex-direction: column !important;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .gallery-info-column {
        width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 3rem;
        padding-top: 0 !important;
    }

    .gallery-info-column::after {
        display: none;
    }

    .gallery-display-column {
        padding-left: 0;
    }

    /* Grid Responsive */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .view-header-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .table-responsive-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 2rem 0;
        border: 1px solid #eee;
    }

    .data-table {
        min-width: 600px;
    }

    .main-content-padding {
        padding-top: 8rem;
    }

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

    .awards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- NEW GALLERY REDESIGN --- */
.gallery-layout-wrapper {
    display: flex !important;
    flex-direction: row !important;
    position: relative;
    padding-left: 5vw;
    width: 100%;
    align-items: flex-start;
}

.gallery-info-column {
    width: 420px !important;
    flex-shrink: 0;
    background: #fff;
    z-index: 20;
    position: relative;
    padding-right: 5rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-info-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: -120px;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 25;
}



.gallery-info-column .description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    max-width: 350px;
}

.gallery-display-column {
    flex: 1;
    z-index: 10;
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-nav-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.gallery-horizontal-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: smooth;
    width: 100%;
}

.gallery-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.specimen-card-horizontal {
    flex: 0 0 350px !important;
    transition: var(--transition-smooth);
}

.specimen-card-horizontal .card-image-link {
    display: block;
    aspect-ratio: 4/5;
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
}

.specimen-card-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.specimen-card-horizontal:hover img {
    filter: grayscale(0%);
}

.specimen-card-horizontal .card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specimen-card-horizontal .font-year {
    color: #bbb;
}

.section-gallery {
    padding: 4rem 0 !important;
    background-color: #ffffff;
}
/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Citation Module */
.citation-module {
    background: #f9f9f9;
    padding: 3rem;
    margin: 5rem 0;
    border-left: 5px solid #000;
}

.citation-module h4 {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #888;
}

.citation-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.citation-text em {
    font-style: italic;
}

/* Footer Grid Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
