/* Master Blueprint: Museum Architecture */
:root {
    --bg-main: #ffffff;
    --text-main: #1a1a1a;
    /* Exact Alphabet Primary Text */
    --text-sub: #5f6368;
    /* Exact Alphabet Metadata Slate */
    --accent: #ea4335;
    --border: #eeeeee;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-px: 15vw;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
    :root {
        --container-px: 5vw;
    }
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
}

.museum-wrap {
    width: 100%;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

h1,
h2,
h3,
h4,
.hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Alphabet relies on scale, not bolding */
    color: var(--text-main);
    letter-spacing: -0.02em;
    /* The proprietary 'tightening' discovered on abc.xyz */
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Navigation Standardized - Professional Grade */
.nav-container {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding-top: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.scrolled .nav-container {
    padding-top: 15px;
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-brand.logo-text {
    font-size: 1.4rem;
    /* Balanced Scale */
    font-weight: 500;
    color: #000 !important;
    /* Professional Black */
    text-decoration: none;
    letter-spacing: -0.8px;
    transition: opacity 0.3s ease;
}

.navbar-brand.logo-text:hover {
    opacity: 0.7;
}

.nav-links .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #5f6368 !important;
    /* Alphabet Subtext Gray */
    margin-left: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 0 !important;
    position: relative;
    letter-spacing: -0.1px;
}

.nav-links .nav-link:hover {
    color: #1a1a1a !important;
}

.nav-links .nav-link.active {
    color: #ea4335 !important;
    /* Brand Active Red */
}

/* Subtle Active Underline (Professional UI) */
.nav-links .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ea4335;
    transform: translateY(4px);
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .nav-container {
        background: white !important;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid var(--border);
        padding-top: 20px;
        background: white;
    }

    .nav-links .nav-link {
        margin-left: 0;
        padding: 15px 0 !important;
        font-size: 1.1rem;
        border-bottom: 1px solid #f9f9f9;
        display: block;
    }

    .nav-links .nav-link:last-child {
        border-bottom: none;
    }
}

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

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

.search-btn {
    background: #f1f3f4;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background: #e8eaed;
    color: var(--text-primary);
}

/* Hero Section Upgraded - Split Layout */
.hero-section {
    padding: 240px var(--container-px) 200px;
    /* Increased Gap */
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-portrait-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #f8f8f8;
    overflow: hidden;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-portrait:hover {
    filter: grayscale(0%);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 900px;
}

.hero-story {
    max-width: 600px;
    color: var(--text-sub);
    font-weight: 300;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 150px;
    }
}

.hero-story p {
    margin-bottom: var(--spacing-md);
}

.signature-line {
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin: var(--spacing-lg) auto 0;
}

/* Alphabet Modular Grid Finalized */
.grid-container {
    padding: 0;
    max-width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin: 0;
}

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

.grid-block {
    padding: 60px 30px;
    /* Reduced horizontal padding for 4-column layout */
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.grid-block h3 {
    font-size: 1.25rem;
    /* Clamped for narrow columns */
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.grid-block p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.grid-block::after {
    content: 'VIEW PROJECT →';
    position: absolute;
    bottom: 40px;
    left: 30px;
    /* Aligned to new 30px padding */
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.grid-block:hover {
    background: #fafafa;
}

.grid-block:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.block-label {
    position: absolute;
    top: 2rem;
    left: 30px;
    font-size: 0.65rem;
    color: var(--text-main) !important;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.grid-block h3 {
    font-size: 1.25rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.grid-block p {
    font-size: 1rem;
    color: var(--text-sub);
    max-width: 300px;
}

/* Color Accents (Subtle) */
.block-blue:hover {
    background: #f1f3f4;
    color: var(--google-blue);
}

.block-red:hover {
    background: #fdf6f5;
    color: var(--accent);
}

.block-yellow:hover {
    background: #fffcf0;
    color: var(--google-yellow);
}

.block-green:hover {
    background: #f1f8f2;
    color: var(--google-green);
}

.block-blue,
.block-red,
.block-yellow,
.block-green,
.block-white {
    background-color: #ffffff !important;
    color: var(--text-main) !important;
}

/* Metrics Flat */
.metrics-section {
    padding: 120px 5%;
    /* Increased Gap */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    gap: 0;
}

.metric-item {
    padding: 3rem;
    border-right: 1px solid var(--border);
    text-align: left;
}

.metric-item:last-child {
    border-right: none;
}

.metric-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Alphabet Grid System */
.content-section {
    max-width: 1200px;
    margin: var(--spacing-lg) auto;
    padding: 150px var(--container-px);
    /* Increased Gap */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.experience-content {
    grid-column: 1;
}

.asym-visual {
    grid-column: 2;
    padding-top: 2rem;
}

.experience-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.experience-item {
    margin-bottom: var(--spacing-lg);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.experience-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.experience-list li::before {
    content: "•";
    color: var(--google-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Testimonial */
.testimonial-section {
    padding: var(--spacing-xl) 4%;
    background-color: var(--google-blue);
    color: white;
    text-align: center;
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Hover Effects Upgraded */
.grid-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
}

.block-blue:hover {
    background-color: #3367d6;
}

.block-red:hover {
    background-color: #d93025;
}

.block-yellow:hover {
    background-color: #f7cb4d;
}

.block-green:hover {
    background-color: #1e8e3e;
}

/* Data & Resources Section */
.resources-section {
    padding: var(--spacing-xl) 4%;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.quick-links h2,
.updates-feed h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.link-list {
    list-style: none;
}

.link-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #eee;
}

.link-list a {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.link-list a:hover {
    color: var(--google-blue);
    transform: translateX(10px);
}

.feed-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.feed-item .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.feed-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Alphabet-Style Simple Footer - ARCHITECTURAL RESOLUTION */
.footer-simple {
    background: #fff;
    padding: 80px 0 40px;
    /* More efficient vertical footprint */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Inter', sans-serif;
}

.footer-flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo-simple {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    /* Clinical scale */
    font-weight: 600;
    color: #ea4335;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.footer-navigation-simple {
    display: flex;
    gap: 25px;
}

.footer-navigation-simple a {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5f6368;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.1px;
}

.footer-navigation-simple a:hover {
    color: #000 !important;
}

.footer-legal-simple {
    font-size: 0.68rem;
    color: #9aa0a6;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal-simple span {
    display: inline-block;
}

@media (max-width: 991px) {
    .footer-flex-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-navigation-simple {
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .footer-legal-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .footer-flex-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-navigation-simple {
        flex-wrap: wrap;
        gap: 15px 30px;
    }
}

/* Mobile Responsiveness Upgraded */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding-top: 140px;
        min-height: auto;
    }

    .hero-story {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .metrics-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Museum Footer Global */
.footer {
    padding-top: 100px;
    padding-bottom: 50px;
    border-top: 1px solid var(--border);
}

.footer-links a {
    text-decoration: none;
    color: #5f6368 !important;
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 2rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

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

/* Swiper Exact Wireframe UI (Mesh Grid) */
.testimonials-swiper {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.swiper-slide {
    height: auto;
    display: flex;
    transition: all 0.5s ease;
}

.testimonial-card {
    width: 100%;
    border: none;
    border-right: 1px solid var(--border);
    /* Shared vertical separators */
    background: white;
    cursor: default;
}

.testimonial-card::after {
    content: none !important;
}

/* Wireframe Pagination Dots */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #000;
    opacity: 0.2;
    margin: 0 10px !important;
    transition: all 0.3s ease;
    border: none;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    position: relative;
    background: #000;
}

.swiper-pagination-bullet-active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid #000;
    border-radius: 50%;
}

.grab-cursor {
    cursor: grab;
}

.grab-cursor:active {
    cursor: grabbing;
}

.grayscale {
    filter: grayscale(1);
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.grayscale:hover {
    filter: grayscale(0);
    opacity: 1 !important;
}

.footer-signature {
    color: #9aa0a6;
    font-size: 0.7rem;
    margin-top: 2rem;
}

.capability-card {
    padding: 40px 25px;
    /* Precision padding for 4-column density */
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.capability-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.capability-card p {
    font-size: 1rem;
    color: var(--text-sub) !important;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1400px) {
    .capabilities-grid-system {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .capabilities-grid-system {
        grid-template-columns: 1fr;
    }

    .capability-card {
        padding: 30px;
        min-height: auto;
    }
}

/* Technical Utility: 3-Line Clamping */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Creative Micro-Animations: Image Scaling */
.gallery-item img,
.grid-block img,
.insight-ledger-item img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-item:hover img,
.grid-block:hover img {
    transform: scale(1.05);
}

/* Institutional Link Hover States */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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