@import url('https://fonts.googleapis.com/css2?family=Amethysta&family=Bebas+Neue&display=swap');

html {
    overflow-x: hidden;
}

:root {
    /* CG Carbon Inspired B2B Design Tokens */
    --bg-body: #eef4fa;
    --bg-card: #ffffff;
    --text-primary: #191b1d;
    --text-secondary: #5e6266;
    
    --color-primary: #7c5594;        /* Brand slate blue */
    --color-primary-hover: #7c5594;
    --color-primary-light: rgba(124, 85, 148, 0.06);
    
    --color-accent: #2ecc71;         /* Adsorption status green */
    --border-color: #eaeaea;
    --border-hover: #cbcbcb;
    
    --font-header: 'Bebas Neue', sans-serif;
    --font-body: 'Amethysta', serif;
    
    --max-width: 1440px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --box-shadow: 0 4px 12px rgba(25, 27, 29, 0.04);
    --box-shadow-hover: 0 12px 24px rgba(25, 27, 29, 0.08);
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Page load transition */
body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.fade-in {
    opacity: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem; /* Reduced margin to spread content out wider */
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem; /* Standard mobile padding */
    }
}

section {
    padding: 6rem 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.25;
}

p {
    text-align: justify;
}

/* Header & Sticky Navbar */
header.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: var(--transition);
}

header.site-header.scrolled {
    padding: 0.2rem 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.logo-img {
    height: 48px;
    width: auto;
}

/* Navigation Links */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Amethysta', serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-family: 'Amethysta', serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.5rem;
    border: 1px solid transparent;
}

/* Specific Navbar Button to avoid alignments issues */
.nav-btn {
    margin-left: 1rem;
    padding: 0.5rem 1.2rem !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
    font-family: 'Amethysta', serif !important;
}
.nav-btn:hover {
    transform: none !important;
    box-shadow: 0 4px 14px rgba(124, 85, 148, 0.25) !important;
    background-color: var(--color-primary) !important;
}
.nav-btn:hover span {
    transform: none !important;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 85, 148, 0.25);
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 85, 148, 0.35);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background-color: #fcfcfc;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 7rem;
    background-image: radial-gradient(circle at 80% 20%, rgba(124, 85, 148, 0.03) 0%, transparent 50%), 
                      radial-gradient(circle at 10% 80%, rgba(46, 204, 113, 0.02) 0%, transparent 40%);
    text-align: center;
    background-color: #ffffff;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Spec and Science Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--border-hover);
}

.spec-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Applications Card Grid */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-form-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--border-hover);
}

/* Call to Action Box */
.cta-box-glow {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 4rem 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Site Footer */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 5rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 1rem;
    max-width: 320px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-nav-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-nav-col ul li a svg {
    transition: transform 0.3s ease, fill 0.3s ease;
    fill: rgba(255, 255, 255, 0.7);
}

.footer-nav-col ul li a:hover svg {
    fill: #ffffff !important;
    transform: translateY(-2px);
}

.footer-nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 1.05rem !important;
}

.footer-nav-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-nav-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Mobile responsive navigation toggles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        display: block;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
        z-index: 9999 !important;
        pointer-events: none; /* Prevent closed mobile menu from swallowing clicks/touches */
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto !important; /* Restore clicks/touches when menu is open */
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
        padding: 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

/* Natural scrolling viewport section styles */
.home-snap-section, .app-snap-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .home-snap-section, .app-snap-section {
        padding: 4rem 0;
        min-height: auto;
    }
}


















/* Horizontal Interactive Accordion Deck Layout */
.app-stack-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centering the deck solves the unequal right margin issue */
    height: 540px;
    gap: 0.4rem; /* Reduced space between cards */
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.app-stack-card {
    height: 100%;
    width: 60px; /* Reduced collapsed card width */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 25px 75px rgba(0, 0, 0, 0.08);
    border: 1px solid #7c5594;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-sizing: border-box;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex-grow: 0;
    flex-shrink: 0;
}

.app-stack-card.active {
    width: 740px; /* Header 60px + Body 680px = 740px total */
    box-shadow: 0 15px 40px rgba(124, 85, 148, 0.12), 0 30px 90px rgba(0, 0, 0, 0.08);
    border-color: #7c5594;
}

.app-stack-card-header {
    width: 60px; /* Reduced header bar width */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 0;
    box-sizing: border-box;
    border-right: 1px solid #7c5594;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    flex-shrink: 0;
    background: #ffffff;
    transition: background 0.3s ease;
}

.app-stack-header-num {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.app-stack-header-title {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.8px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.app-stack-card-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    height: 100%;
    width: calc(100% - 70px); /* Fluid width matching active card minus header width */
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.app-stack-card.active .app-stack-card-body {
    opacity: 1;
}

.app-stack-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.app-stack-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background: #ffffff;
}

/* Responsive Fallback: Transform back to vertical accordion deck on Mobile/Tablet viewports */
@media (max-width: 850px) {
    .app-stack-container {
        flex-direction: column;
        height: auto;
    }
    .app-stack-card {
        width: 100%;
        height: 50px;
        flex-direction: column;
        margin-bottom: 0.8rem;
        flex-grow: 0 !important;
        flex-shrink: 0;
    }
    .app-stack-card.active {
        height: 540px;
        width: 100% !important;
    }
    .app-stack-card-header {
        width: 100%;
        height: 50px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .app-stack-header-num {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    .app-stack-header-title {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .app-stack-card-body {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
        min-width: 100%;
        height: 490px;
    }
}

.app-stack-tag {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.8rem;
}

.app-stack-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 2.5rem 0;
    text-align: justify;
}

/* Mobile responsive styles */
@media (max-width: 900px) {
    .app-stack-card {
        height: auto !important;
        position: relative !important;
        top: auto !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    .app-stack-card-header {
        padding: 0 1.5rem;
        height: 60px;
        cursor: pointer;
    }
    .app-stack-card-body {
        grid-template-columns: 1fr !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        display: none; /* Collapsed by default on mobile */
    }
    .app-stack-card.active .app-stack-card-body {
        display: block !important; /* Expanded on active */
        opacity: 1 !important;
    }
    .app-stack-img {
        height: 250px;
        width: 100%;
    }
    .app-stack-content {
        padding: 2rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    .app-stack-desc {
        text-align: left;
        margin-bottom: 1.5rem;
    }
}


/* Horizontal Accordion Stack for Form-based Carbon */
.form-accordion-container {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    height: 440px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 2rem;
}

.form-accordion-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 60px;
    min-width: 60px;
    width: 60px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-sizing: border-box;
}

.form-accordion-panel.active {
    flex-grow: 1;
    flex-basis: 0;
    min-width: 65%;
    cursor: default;
    border-color: rgba(124, 85, 148, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06), 0 25px 75px rgba(0, 0, 0, 0.09);
}

/* Vertical Header Tab */
.form-accordion-header {
    width: 60px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 0;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.form-accordion-panel:hover .form-accordion-header {
    background: #fafafa;
}

.form-accordion-panel.active .form-accordion-header {
    background: #ffffff;
    border-right: 1px solid var(--border-color);
}

.form-header-num {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary); /* Brand green */
    margin-bottom: 2.5rem;
}

.form-header-title {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1.2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Expandable Content Body */
.form-accordion-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    height: 100%;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease 0.25s, visibility 0.4s ease 0.25s;
    box-sizing: border-box;
}

.form-accordion-panel.active .form-accordion-body {
    opacity: 1;
    visibility: visible;
}

.form-body-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.form-body-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background: #ffffff;
}

.form-body-tag {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.8rem;
}

.form-body-content h4 {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0 0 1rem 0;
}

.form-body-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Mobile Responsive Accordion Reset (converts to vertical stack) */
@media (max-width: 900px) {
    .form-accordion-container {
        flex-direction: column !important;
        height: auto !important;
        gap: 2rem !important;
    }
    .form-accordion-panel {
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        flex-basis: auto !important;
        min-width: auto !important;
        cursor: default !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.03) !important;
    }
    .form-accordion-header {
        width: 100% !important;
        height: 50px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0 1.5rem !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    .form-header-num {
        margin-bottom: 0 !important;
        margin-right: 1.5rem !important;
    }
    .form-header-title {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        font-size: 0.9rem !important;
    }
    .form-accordion-body {
        grid-template-columns: 1fr !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }
    .form-body-img {
        height: 220px !important;
    }
    .form-body-content {
        padding: 2rem 1.5rem !important;
    }
}


/* Scroll-Driven Horizontal Accordion Layout */
.form-scroll-track {
    position: relative;
    height: 320vh; /* Scroll track depth for pinning */
    background: #eef4fa;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
}

.form-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile responsive resets */
@media (max-width: 900px) {
    .form-scroll-track {
        height: auto !important;
        padding: 5rem 0 !important;
    }
    .form-scroll-sticky {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }
}


/* Form-Based Activated Carbon Geometry Cards Grid */
.geometry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    width: 100%;
    margin-top: 2rem;
    box-sizing: border-box;
}

.geometry-card-3d {
    background: transparent;
    border-radius: 20px;
    perspective: 1000px;
    cursor: pointer;
    box-sizing: border-box;
}

.geometry-card-inner {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    transform-style: preserve-3d;
    box-sizing: border-box;
    will-change: transform;
}

.geometry-card-3d:hover .geometry-card-inner {
    box-shadow: 0 20px 50px rgba(124, 85, 148, 0.18);
    border-color: rgba(124, 85, 148, 0.4);
}

.geometry-img {
    width: 100%;
    height: 260px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.geometry-content {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
    background: #ffffff;
}

.geometry-tag {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.8rem;
}

.geometry-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.geometry-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

@media (max-width: 900px) {
    .geometry-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .geometry-img {
        height: 220px;
    }
    .geometry-content {
        padding: 2rem 1.5rem;
    }
}

.editorial-hero-section {
    background: #ffffff;
    padding: 6rem 0; /* Remove horizontal padding from section to align with grid */
    font-family: 'Amethysta', serif;
    color: #191b1d;
    box-sizing: border-box;
    position: relative;
    min-height: 100vh;
    --slider-translate: -772px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem; /* Matches container padding exactly */
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Common Card Styling - Hidden initially for Video Intro */
.editorial-card {
    background: #ffffff;
    border-radius: 4px; /* Clean sharp corners like editorial print layout */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Entrance animation when video ends */
.cards-visible .editorial-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Cinematic Video Gradient Overlay for High Contrast Text Readability */
.editorial-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 12, 25, 0.65) 0%, rgba(20, 15, 30, 0.45) 50%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 2;
    opacity: 1;
    transition: opacity 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}
.editorial-hero-section.cards-visible::before {
    opacity: 0;
}

/* Hide background video to reveal plain white background and watermark */
.editorial-hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
    object-fit: cover !important;
    object-position: center !important;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.editorial-hero-section.cards-visible video {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.03);
}

#hero-watermark {
    opacity: 0 !important;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

@media (min-width: 992px) {
    #hero-watermark {
        position: absolute !important;
        left: -10px !important;
        top: -35px !important;
        width: 620px !important;
        height: auto !important;
        max-width: none !important;
    }
}

.cards-visible #hero-watermark {
    opacity: 0.6 !important;
}

/* Text card contrast colors during video vs cards state */
#card-l-top {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#card-l-top .hero-sub-tag {
    color: #f3e8ff;
    transition: color 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cards-visible #card-l-top .hero-sub-tag {
    color: var(--color-primary);
}

#card-l-top .editorial-title {
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: color 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), text-shadow 1.2s ease;
}
.cards-visible #card-l-top .editorial-title {
    color: #191b1d;
    text-shadow: none;
}



.editorial-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 1 !important;
}



.editorial-card:not(.editorial-text-card) {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 2.5rem 2.5rem 1.125rem 2.5rem !important;
}

/* Premium Background Zoom & Brightness Filters */
.editorial-card[data-bg] {
    position: relative;
    overflow: hidden;
}

.editorial-card[data-bg]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.72) contrast(1.02);
    transition: filter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Gradient overlay to guarantee text legibility */
.editorial-card[data-bg]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.68) 95%);
    z-index: 2;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

/* Hover States: Zoom, Keep dark enough to read text! */
.editorial-card[data-bg]:hover::before {
    filter: brightness(0.78) contrast(1.02);
    transform: scale(1.04);
}

.editorial-card[data-bg]:hover::after {
    opacity: 0.85;
}

/* Force all inline child content to render above the pseudo-element layers */
.editorial-card[data-bg] > * {
    position: relative;
    z-index: 3;
}

/* Card Heading and Link Spacing Consistency */
.editorial-card h3 {
    margin: 0 0 0.5rem 0 !important;
}
.editorial-card .editorial-more-btn {
    margin: 0 !important;
}

/* Left Column Card (White Text Card) */
.editorial-text-card {
    padding: 4rem 3rem;
    justify-content: center;
    background: #ffffff;
    height: 100%;
    box-sizing: border-box;
}

.editorial-tagline {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.editorial-title {
    font-size: 8.5rem;
    line-height: 0.95;
    font-weight: 400;
    margin-bottom: 0.4rem;
    color: #191b1d;
    max-width: 100%;
}

.editorial-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #191b1d;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.editorial-more-btn:hover {
    color: var(--color-primary);
}

.editorial-more-btn span {
    border: 1px solid #191b1d;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 2px;
}

/* Image blocks with color overlays */
.editorial-img-block {
    height: 310px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.editorial-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

.overlay-orange {
    background: rgba(211, 137, 72, 0.35); /* Orange overlay like photo */
}

.overlay-red {
    background: rgba(124, 85, 148, 0.3); /* Purple/red branded overlay */
}

.overlay-gold {
    background: rgba(188, 170, 117, 0.35); /* Gold/olive overlay */
}

.editorial-img-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #ffffff;
    z-index: 5;
}

.editorial-img-title h4 {
    font-size: 1.4rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
}

.editorial-img-title p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

/* Video Block (Middle Column Top) */
.editorial-video-card {
    height: 240px;
    position: relative;
    background: #000000;
}

.editorial-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Black Block (Middle Column Bottom) */
.editorial-black-card {
    background: #0c0d08;
    color: #ffffff;
    padding: 3.5rem 2.5rem;
    justify-content: space-between;
    height: 380px;
    box-sizing: border-box;
}

.editorial-black-title {
    font-size: 1.6rem;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
    font-weight: 700;
}

.editorial-black-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cccccc;
    margin: 0;
}

.editorial-black-num {
    font-size: 4.5rem;
    font-weight: 700;
    align-self: flex-end;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
}

/* Tall Purple Block (Right Column) */
.editorial-tall-card {
    background-color: #3b2847; /* Deep purple branded background */
    color: #ffffff;
    padding: 2.2rem 2rem;
    height: 260px; /* Reduced by half from 520px */
    justify-content: space-between;
    box-sizing: border-box;
}

.editorial-app-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2-column list to save vertical space */
    gap: 0.8rem 2rem;
}

.editorial-app-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.editorial-app-item a:hover {
    color: #2ecc71;
    padding-left: 0.4rem;
    border-bottom-color: #2ecc71;
}

.editorial-app-item a span {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Responsive Grid styling */
@media (max-width: 1024px) {
    .editorial-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .editorial-tall-card {
        height: auto;
        grid-column: span 2;
    }
    .editorial-grid-two {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .hero-grid-placeholder {
        display: none;
    }
}

@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
    .editorial-tall-card {
        grid-column: span 1;
    }
    .editorial-hero-section {
        padding: 2rem 1rem;
    }
}

/* Visual Card Label Tag for User Navigation */
.card-label {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(124, 85, 148, 0.1);
    color: #7c5594;
    border: 1px solid rgba(124, 85, 148, 0.25);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-family: monospace;
    border-radius: 3px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    pointer-events: none; /* Make sure it doesn't block card clicks */
}

.editorial-grid-two {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Matches top grid columns exactly */
    gap: 2.5rem;
    max-width: var(--max-width); /* Matches top grid max-width exactly */
    margin: 2.5rem auto 0 auto;
    box-sizing: border-box;
    font-family: 'Amethysta', serif;
}

.editorial-bottom-card {
    padding: 3.5rem 2.5rem;
    height: 360px;
    justify-content: center;
    box-sizing: border-box;
}

.hero-grid-placeholder {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .editorial-grid-two {
        grid-template-columns: 1fr;
        margin-top: 1.2rem;
    }
    .editorial-bottom-card {
        height: auto;
        padding: 2.5rem 1.5rem;
    }
    .hero-grid-placeholder {
        display: none;
    }
}

/* ==========================================
   ODECARB Graphic Poster Section Styling
   ========================================== */
.odecarb-graphic-section {
    background: #ffffff;
    padding: 8rem 0 12rem 0;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.odecarb-graphic-wrapper {
    position: relative;
    width: 100%;
    height: 840px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}



/* Horizontal Flow/Filter Bed Line crossing columns */
.graphic-flow-line {
    position: absolute;
    top: 220px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #eef4fa;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

.flow-item {
    position: absolute;
    font-size: 0.8rem;
    color: #7c5594;
    animation: flowMove linear infinite;
}

.particle-1 { left: 10%; animation-duration: 25s; }
.particle-2 { left: 45%; animation-duration: 30s; }
.particle-3 { left: 80%; animation-duration: 22s; }

@keyframes flowMove {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(1700px); }
}

.graphic-columns-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.6rem;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.graphic-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 6px;
    overflow: visible;
}

.col-top-vector {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    transition: var(--transition);
}

.col-divider-gap {
    height: 12px;
    background: transparent;
    z-index: 4;
}

.col-bottom-img {
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.5rem;
    overflow: hidden; /* Clips the letters at the rounded bottom corners */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners matching the card profile */
    transition: var(--transition);
}

.col-img-overlay {
    display: none;
}

/* Stacked Gradient Overlays fading from solid color at the base to transparent on the background photo */
.col-orange .col-top-vector { background: #7c5594; } /* Purple */
.col-orange .col-bottom-img {
    background-color: #7c5594;
    background-image: linear-gradient(to top, rgba(124, 85, 148, 1) 0%, rgba(124, 85, 148, 0.95) 15%, rgba(124, 85, 148, 0.3) 100%), url('../assets/applications/app_water.jpg');
}

.col-sage .col-top-vector { background: #7c5594; } /* Purple */
.col-sage .col-bottom-img {
    background-color: #7c5594;
    background-image: linear-gradient(to top, rgba(124, 85, 148, 1) 0%, rgba(124, 85, 148, 0.95) 15%, rgba(124, 85, 148, 0.3) 100%), url('../assets/applications/app_gas.jpg');
}

.col-rose .col-top-vector { background: #7c5594; } /* Purple */
.col-rose .col-bottom-img {
    background-color: #7c5594;
    background-image: linear-gradient(to top, rgba(124, 85, 148, 1) 0%, rgba(124, 85, 148, 0.95) 15%, rgba(124, 85, 148, 0.3) 100%), url('../assets/applications/app_food.jpg');
}

.col-blue .col-top-vector { background: #9fc841; } /* Green */
.col-blue .col-bottom-img {
    background-color: #9fc841;
    background-image: linear-gradient(to top, rgba(159, 200, 65, 1) 0%, rgba(159, 200, 65, 0.95) 15%, rgba(159, 200, 65, 0.3) 100%), url('../assets/applications/app_pharma.jpg');
}

.col-gold .col-top-vector { background: #9fc841; } /* Green */
.col-gold .col-bottom-img {
    background-color: #9fc841;
    background-image: linear-gradient(to top, rgba(159, 200, 65, 1) 0%, rgba(159, 200, 65, 0.95) 15%, rgba(159, 200, 65, 0.3) 100%), url('../assets/applications/app_gold.jpg');
}

.col-purple .col-top-vector { background: #9fc841; } /* Green */
.col-purple .col-bottom-img {
    background-color: #9fc841;
    background-image: linear-gradient(to top, rgba(159, 200, 65, 1) 0%, rgba(159, 200, 65, 0.95) 15%, rgba(159, 200, 65, 0.3) 100%), url('../assets/applications/app_catalyst.jpg');
}

.col-forest .col-top-vector { background: #9fc841; } /* Green */
.col-forest .col-bottom-img {
    background-color: #9fc841;
    background-image: linear-gradient(to top, rgba(159, 200, 65, 1) 0%, rgba(159, 200, 65, 0.95) 15%, rgba(159, 200, 65, 0.3) 100%), url('../assets/applications/app_petrochemical.jpg');
}
.col-forest { height: 100%; }

/* Large letters stenciled out at the bottom base of the columns */
.col-letter {
    position: absolute;
    bottom: -1.6rem; /* Sits flush and overflows slightly at the bottom to clip */
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-header);
    font-size: 9.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -2px;
    transition: var(--transition);
}

.graphic-col:hover .col-letter {
    transform: scale(1.1);
}


@media (max-width: 991px) {
    .odecarb-graphic-wrapper {
        height: auto;
    }
    .graphic-columns-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    .graphic-col:nth-child(n+5) {
        display: none; /* collapse nicely on tablet */
    }

}

@media (max-width: 576px) {
    .graphic-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .graphic-col:nth-child(n+3) {
        display: none;
    }
}

.temp-number-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c; /* Bright red for high visibility of symbols/images */
    color: #ffffff !important;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 3px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    line-height: 1;
    display: inline-block;
}

.temp-tail-label {
    top: auto;
    bottom: 6.5rem; /* Float above the letter inside the solid area */
    background: #2ecc71; /* Bright green to distinguish the tail/letter blocks */
}







/* Navigation Dropdown Menu styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0;
    z-index: 1000;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    display: block;
    font-family: 'Amethysta', serif;
    font-size: 1.0rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
}

.dropdown-content a:hover, .dropdown-content a.active {
    background-color: #f7f5f9;
    color: var(--color-primary);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Horizontal scrollbar prevention for viewports >= 991px */
@media (min-width: 991px) {
    html, body {
        overflow-x: hidden;
    }
}

/* Tablet Landscape & Small Laptop Adjustments (992px - 1199px) */
@media (min-width: 991px) and (max-width: 1199px) {
    .main-nav ul {
        gap: 0.9rem !important;
    }
    .nav-item {
        font-size: 0.95rem !important;
    }
    .nav-btn {
        margin-left: 0.6rem !important;
        padding: 0.45rem 0.9rem !important;
        font-size: 0.9rem !important;
    }
    .container, .editorial-grid {
        max-width: 94% !important;
        width: 94% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 1.2rem !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    /* Hero Title & Watermark */
    .editorial-title {
        font-size: 4.8rem !important;
        line-height: 0.92 !important;
        letter-spacing: 0.5px !important;
    }
    .hero-sub-tag {
        font-size: 1.35rem !important;
    }
    #hero-watermark {
        left: -15px !important;
        top: -15px !important;
        width: 420px !important;
        max-width: 100% !important;
    }

    /* Staggered 3-Column Layout Matching 1440x787 Proportions */
    #card-l-top {
        height: 250px !important;
    }
    #card-l-bottom {
        position: relative !important;
        top: 140px !important;
        left: 0 !important;
        height: 240px !important;
    }
    #editorial-col-2 {
        position: relative !important;
        top: 60px !important;
        height: 530px !important;
        overflow: hidden !important;
    }
    #card-m-top {
        height: 215px !important;
    }
    #card-m-bottom {
        height: 285px !important;
    }
    #editorial-col-3 {
        position: relative !important;
        top: 0px !important;
    }
    #card-r-tall {
        height: 240px !important;
    }
    #card-r-bottom {
        height: 255px !important;
    }
    .editorial-card h3 {
        font-size: 1.55rem !important;
    }
}

/* Fluid container layouts for widescreen and high-res displays (1200px and up) */
@media (min-width: 1200px) {
    .container, .editorial-grid {
        max-width: 92% !important;
        width: 92% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Full-Screen Fluid Widescreen Scaling (1440px to 2700px+) */
@media (min-width: 1440px) {
    .hero-sub-tag {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
    }
    .editorial-title {
        font-size: 8.5rem !important;
        line-height: 0.92 !important;
        letter-spacing: 1px !important;
        max-width: 100% !important;
    }
    #hero-watermark {
        position: absolute !important;
        left: -80px !important;
        top: -30px !important;
        width: 780px !important;
        max-width: none !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    .editorial-card h3 {
        font-size: 1.65rem !important;
    }
    .editorial-hero-section {
        min-height: 100vh !important;
        padding: 100px 0 2rem 0 !important;
        box-sizing: border-box !important;
    }

    /* Accordion Deck Scaling (1440px to 1800px) */
    .app-stack-container {
        height: 600px !important;
        gap: 0.5rem !important;
    }
    .app-stack-card {
        width: 75px !important;
    }
    .app-stack-card.active {
        width: calc(100% - 6 * 75px - 6 * 0.5rem) !important;
    }
    .app-stack-card-header {
        width: 75px !important;
        padding: 3rem 0 !important;
    }
    .app-stack-header-num {
        font-size: 1.6rem !important;
        margin-bottom: 2.5rem !important;
    }
    .app-stack-header-title {
        font-size: 1.2rem !important;
    }
    .app-stack-card-body {
        grid-template-columns: 1fr 1.1fr !important;
    }
    .app-stack-content {
        padding: 2.5rem !important;
        justify-content: center !important;
    }
    .app-stack-desc {
        font-size: 1.05rem !important;
        margin-bottom: 1.8rem !important;
        line-height: 1.65 !important;
    }
    .app-stack-content .btn-primary {
        font-size: 1rem !important;
        padding: 0.8rem 1.6rem !important;
    }
}

/* Force all form submit buttons to use Amethysta font */
button[type="submit"] {
    font-family: 'Amethysta', serif !important;
}

/* Sticky RFQ Widget */
.sticky-rfq-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #7c5594;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(124, 85, 148, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.sticky-rfq-widget a {
    background: #ffffff;
    color: #7c5594;
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}
.sticky-rfq-widget a:hover {
    background: #f5f2eb;
}
@media (max-width: 768px) {
    .sticky-rfq-widget {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: space-between;
        border-radius: 8px;
        padding: 0.8rem 1rem;
    }
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.5s;
}
.scroll-down-indicator span {
    font-family: 'Inter', sans-serif;
    opacity: 0.7;
}
.scroll-down-indicator svg {
    animation: indicatorBounce 2s infinite;
}
.cards-visible .scroll-down-indicator {
    opacity: 0;
    visibility: hidden;
}
@keyframes indicatorBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Global Application Subpage Border Grid Cards Hover Physics */
.border-grid-card {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.border-grid-card:hover {
    background: #ffffff !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(124, 85, 148, 0.12) !important;
    border-radius: 8px !important;
    border-color: transparent !important;
    position: relative;
    z-index: 2;
}

/* Mobile & Tablet Responsiveness Grid Overrides for Homepage & About Grid */
@media (max-width: 991px) {
    .editorial-hero-section {
        padding: 4rem 2rem !important;
    }
    .editorial-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
    }
    .editorial-title {
        font-size: 5.5rem !important;
    }

    #card-l-top {
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
        padding: 1.5rem 0 !important;
    }
    #card-l-bottom {
        width: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        height: 280px !important;
    }
    #editorial-col-2 {
        height: auto !important;
        overflow: visible !important;
        left: 0 !important;
    }
    #middle-column-slider {
        transform: none !important;
        gap: 1.5rem !important;
    }
    #editorial-col-3 {
        left: 0 !important;
        grid-column: span 2 !important;
        flex-direction: row !important;
        gap: 1.5rem !important;
    }
    #hero-watermark {
        width: 760px !important;
        left: -40px !important;
        top: -95px !important;
    }
    #editorial-col-3 > div {
        flex: 1 !important;
    }
    .editorial-card:not(.editorial-text-card) {
        width: 100% !important;
        padding: 2.2rem 2rem !important;
    }
}

@media (max-width: 768px) {
    #hero-watermark {
        width: 640px !important;
        left: -35px !important;
        top: -75px !important;
    }
    .editorial-hero-section {
        padding-top: 90px !important;
        padding-bottom: 2rem !important;
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
        min-height: auto !important;
        display: block !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    .editorial-hero-section video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 380px !important;
        object-fit: cover !important;
        object-position: center !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        z-index: 1 !important;
        transition: opacity 0.5s ease-in-out !important;
    }
    .editorial-hero-section.cards-visible video {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .editorial-hero-section::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 380px !important;
        opacity: 1 !important;
        background: linear-gradient(180deg, rgba(15, 12, 25, 0.65) 0%, rgba(20, 15, 30, 0.5) 60%, rgba(15, 12, 25, 0.85) 100%) !important;
        transition: opacity 0.5s ease-in-out !important;
        z-index: 2 !important;
    }
    .editorial-hero-section.cards-visible::before {
        opacity: 1 !important;
    }
    .editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        position: relative !important;
        z-index: 10 !important;
    }
    .editorial-title {
        font-size: 3.5rem !important;
        margin-left: 0 !important;
        letter-spacing: 0.5px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
    .hero-sub-tag {
        color: #f3e8ff !important;
    }

    #card-l-top {
        margin-top: 0 !important;
        padding: 1.5rem 1rem 2rem 1rem !important;
        height: 300px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10 !important;
    }
    #hero-watermark {
        display: none !important;
    }
    /* Always show application cards below the hero video section on mobile */
    .editorial-card:not(#card-l-top) {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    #card-l-bottom {
        margin-top: 1rem !important;
    }
    #editorial-col-3 {
        flex-direction: column !important;
        grid-column: span 1 !important;
    }
    .about-verticals-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Touchscreen Accessible Dropdown Links inside Mobile Menu Drawer */
    .dropdown .dropdown-content {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0.5rem 0 0.5rem 1.8rem !important;
        gap: 0.6rem !important;
        align-items: flex-start !important;
        opacity: 1 !important;
        visibility: visible !important;
        left: 0 !important;
        transform: none !important;
    }
    .dropdown-content a {
        font-size: 0.9rem !important;
        padding: 0.3rem 0 !important;
        color: #7c5594 !important;
        font-weight: 600 !important;
    }
    
    /* Uniform Application Card Heights on Mobile (All cards exact same size) */
    .editorial-card[data-bg],
    #card-l-bottom,
    #card-m-top,
    #card-m-bottom,
    #card-b-left,
    #card-b-right,
    #card-r-tall,
    #card-r-bottom {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }
    .form-grid-2col {
        grid-template-columns: 1fr !important;
    }
    .container-form {
        padding: 3rem 1.5rem !important;
        width: 95% !important;
    }
    .editorial-card:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    }
    .editorial-card[data-bg]:hover::before {
        transform: none !important;
    }
    .editorial-card[data-bg]:hover::after {
        opacity: 0.85 !important;
    }
}

@media (max-width: 480px) {
    .editorial-title {
        font-size: 3.0rem !important;
    }
    .editorial-card:not(.editorial-text-card) {
        padding: 1.8rem 1.2rem !important;
    }
    .editorial-card h3 {
        font-size: 1.8rem !important;
    }
    #hero-watermark {
        width: 480px !important;
        left: -25px !important;
        top: -55px !important;
    }
}

/* Global Responsive Table Styles (used in products.html and sub-pages) */
.spec-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.spec-table th {
    background: #7c5594;
    color: #ffffff;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-family: 'Amethysta', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.0rem;
    min-width: 130px;
}

.spec-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    min-width: 130px;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) {
    background: #fdfcff;
}

/* 4K and Large Monitors Adaptation (1800px to 2700px+) */
@media (min-width: 1800px) {
    /* Header/Navbar Scaling */
    .nav-wrapper {
        height: 110px !important;
    }
    .logo-img {
        height: 70px !important;
    }
    .main-nav ul {
        gap: 2.2rem !important;
    }
    .nav-item {
        font-size: 1.5rem !important;
    }
    .nav-btn {
        font-size: 1.45rem !important;
        padding: 0.9rem 2.0rem !important;
        border-radius: 10px !important;
    }
    .dropdown-content {
        min-width: 300px !important;
        border-radius: 12px !important;
        padding: 1.0rem 0 !important;
    }
    .dropdown-content a {
        font-size: 1.35rem !important;
        padding: 1.0rem 2.2rem !important;
    }

    /* Container and Grid Layout Width */
    .container, .editorial-grid {
        max-width: 90% !important;
        width: 90% !important;
        gap: 3.5rem !important;
    }

    /* Hero Section Scaling */
    .editorial-hero-section {
        padding: 140px 0 4rem 0 !important;
        --slider-translate: -1036px !important;
    }
    .app-hero, .contact-section {
        margin-top: 110px !important;
    }
    .water-hero, .gas-hero, .food-hero, .pharma-hero, .gold-hero, .catalyst-hero, .petrochemical-hero {
        padding-top: 110px !important;
    }

    /* Watermark Scaling */
    #hero-watermark {
        left: -110px !important;
        top: -220px !important;
        width: 1300px !important;
    }

    /* Hero Typography Scaling */
    .hero-sub-tag {
        font-size: 2.8rem !important;
        letter-spacing: 3px !important;
    }
    .editorial-title {
        font-size: 13.0rem !important;
        line-height: 0.92 !important;
        letter-spacing: 2px !important;
    }
    .editorial-card h3 {
        font-size: 3.2rem !important;
        margin-bottom: 1.2rem !important;
    }
    .editorial-card .editorial-more-btn {
        font-size: 1.3rem !important;
        margin-top: 1.5rem !important;
    }
    .editorial-card .editorial-more-btn span {
        width: 2.5rem !important;
        height: 2.5rem !important;
        line-height: 2.3rem !important;
        font-size: 1.6rem !important;
    }

    /* Staggered Card Heights for Widescreen Layout Proportions */
    .editorial-card:not(.editorial-text-card) {
        width: 82% !important;
    }
    #card-l-top {
        height: 520px !important;
        margin-top: 40px !important;
    }
    #card-l-bottom {
        position: relative !important;
        top: 59px !important;
        left: 0 !important;
        margin-left: 18% !important;
        width: 82% !important;
        height: 480px !important;
    }
    #editorial-col-2 {
        position: relative !important;
        top: 100px !important;
        height: 980px !important;
        overflow: hidden !important;
        left: 80px !important;
    }
    #middle-column-slider {
        gap: 3.5rem !important;
    }
    #card-m-top {
        height: 390px !important;
    }
    #card-m-bottom {
        height: 534px !important;
    }
    #card-b-left {
        height: 400px !important;
    }
    #card-b-right {
        height: 524px !important;
    }
    #editorial-col-3 {
        position: relative !important;
        top: 0px !important;
        gap: 3.5rem !important;
    }
    #card-r-tall {
        height: 500px !important;
    }
    #card-r-bottom {
        height: 524px !important;
    }

    /* Accordion Deck Scaling (1800px to 2700px+) */
    .app-stack-container {
        height: 720px !important;
        gap: 0.6rem !important;
    }
    .app-stack-card {
        width: 85px !important;
    }
    .app-stack-card.active {
        width: calc(100% - 6 * 85px - 6 * 0.6rem) !important;
    }
    .app-stack-card-header {
        width: 85px !important;
        padding: 3.5rem 0 !important;
    }
    .app-stack-header-num {
        font-size: 2.0rem !important;
        margin-bottom: 3.5rem !important;
    }
    .app-stack-header-title {
        font-size: 1.45rem !important;
    }
    .app-stack-content {
        padding: 5rem !important;
    }
    .app-stack-desc {
        font-size: 1.4rem !important;
        margin-bottom: 3.5rem !important;
    }
    .app-stack-content .btn-primary {
        font-size: 1.35rem !important;
        padding: 1.2rem 2.4rem !important;
    }

    /* Sticky RFQ Widget Scaling for 4K / Widescreen */
    .sticky-rfq-widget {
        bottom: 3.5rem !important;
        right: 3.5rem !important;
        padding: 1.4rem 2.2rem !important;
        border-radius: 80px !important;
        gap: 1.8rem !important;
        font-size: 1.3rem !important;
        box-shadow: 0 15px 45px rgba(124, 85, 148, 0.4) !important;
    }
    .sticky-rfq-widget a:not([download]) {
        padding: 0.75rem 1.6rem !important;
        border-radius: 35px !important;
        font-size: 1.2rem !important;
    }
}

