/* ==========================================================================
   CELTADECO Core Architecture - CSS Design Tokens & Reset
   ========================================================================== */

:root {
    --bg-primary: #fcfcfc;
    --bg-secondary: #f5f5f3;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --accent: #b5a48c; /* Editorial Warm Taupe */
    --accent-subtle: #a38f68;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.25rem 4%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container,
.main-nav {
    flex: 1;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
}

.header-logo {
    max-height: 190px;
    width: auto;
    display: block;
}

.hero-title-block {
    flex: 2;
    text-align: center;
    padding: 0 1rem;
}

.hero-title-block h1 {
    font-size: 1.75rem;
    margin: 0 0 4px 0;
    color: #fcfcfc;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-title-block .subtitle {
    font-size: 0.95rem;
    color: #d4c5b0;
    margin: 0 0 2px 0;
}

.hero-title-block .sub-subtitle {
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #fcfcfc;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.main-nav a:hover {
    color: #d4c5b0;
}

/* ==========================================================================
   Structural Layouts & Sections
   ========================================================================== */

.section-container {
    padding: 3rem 4%;
}

.alternative-bg {
    background-color: var(--bg-secondary);
}

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

.tracer {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.split-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.project-card img, 
.media-block img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.media-block img.profile-brand-mark {
    width: auto !important;
    height: auto !important;
    max-width: 180px;      
    object-fit: contain;   
    margin: 0 auto;
    opacity: 0.8;
}

/* ==========================================================================
   Project List Accordion Architecture
   ========================================================================== */

.project-accordion-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e0e0e0;
}

.project-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.project-list-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    cursor: pointer;
    list-style: none;
}

.project-list-trigger::-webkit-details-marker {
    display: none;
}

.trigger-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.project-loc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.accordion-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.project-accordion-item[open] .accordion-arrow {
    transform: rotate(45deg);
}

.project-drawer-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 0 4rem 0;
    animation: fadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-figure {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.drawer-thumbnail-container h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.drawer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    animation: fadeIn 0.4s ease;
}

.drawer-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.drawer-thumbnail:hover {
    opacity: 0.8;
}

/* Thumbnail Animations & Scroll Engines */
.portfolio-thumb-link {
    display: block;
    max-width: 380px;
    width: 100%;
    overflow: hidden;
}

.rotating-thumb {
    width: 100% !important;
    max-width: 280px !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 4px;
}

.project-card figure {
    width: 100%;           
    max-width: 450px;       
    height: 500px;          
    margin: 0 auto;        
    display: flex;
    flex-direction: column; 
    position: relative;     
    overflow: hidden;       
}

.project-card .img-scroll-container {
    width: 100%;
    flex-grow: 1;           
    height: 100%;           
    overflow: hidden !important; 
    position: relative;
    cursor: zoom-in;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.project-card .img-scroll-container img.main-showcase-img {
    width: 100%;            
    height: 100%;           
    display: block;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(1);
}

/* ==========================================================================
   Approach Table
   ========================================================================== */

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

.approach-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
}

.approach-table thead tr {
    border-bottom: 2px solid #1a1a1a;
}

.approach-table th {
    padding: 1rem 1.25rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-dark);
}

.approach-table td {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
    color: var(--text-dark);
}

.col-phase { width: 8%; }
.col-title { width: 27%; }
.col-details { width: 65%; }

.phase-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.phase-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.table-list {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    list-style-type: square;
}

.table-list li {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

/* ==========================================================================
   About / Bio Section
   ========================================================================== */

.bio-headline {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0.5rem 0 1.5rem 0;
    color: var(--text-dark);
}

.bio-intro {
    font-size: 1.1rem;
}

.bio-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-social {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a1a1a;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-social:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.bio-portrait {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer, .site-footer {
    height: auto !important;            
    padding: 2rem 4% !important;
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;     
    justify-content: center !important;
    text-align: center;
    font-size: 0.8rem;
    color: #777777;
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-container {
    height: auto !important;
    margin: 0 auto !important;
}

img.footer-logo,
.site-footer img {
    height: 200px !important;            
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    filter: invert(1) brightness(2);    
}

.site-footer .footer-info {
    margin-top: 1rem !important;     
}

.site-footer p {
    margin: 0 !important;
    font-size: 0.75rem !important;
    color: #777777 !important;
    line-height: 1.4 !important;        
}

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

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .logo-container, .main-nav {
        justify-content: center;
    }
    .project-drawer-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .approach-table th, 
    .approach-table td {
        padding: 1rem 0.75rem;
    }
    .col-phase { width: 12%; }
    .col-title { width: 33%; }
    .col-details { width: 55%; }
}
