:root {
    --bg-dark: #0b0e13;
    --bg-surface: #121721;
    --bg-panel: rgba(19, 25, 36, 0.86);
    --bg-card: rgba(25, 32, 46, 0.72);
    --steel-border: rgba(148, 163, 184, 0.15);
    --steel-strong: rgba(148, 163, 184, 0.28);
    --cad-line: rgba(148, 163, 184, 0.05);
    --cad-accent: rgba(245, 158, 11, 0.075);
    --amber: #f59e0b;
    --amber-bright: #fbbf24;
    --orange-deep: #ea580c;
    --emerald: #10b981;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* CAD Grid Background */
.cad-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--cad-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--cad-line) 1px, transparent 1px),
        linear-gradient(to right, var(--cad-accent) 1px, transparent 1px),
        linear-gradient(to bottom, var(--cad-accent) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
}

.radial-glow {
    position: fixed;
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
    height: 620px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.11) 0%, rgba(234, 88, 12, 0.04) 45%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 19, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--steel-border);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.brand-name span {
    color: var(--amber);
}

.brand-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--amber-bright);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    background: var(--bg-panel);
    border: 1px solid var(--steel-border);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--amber), var(--orange-deep));
    color: #0b0e13;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 9px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber), var(--orange-deep));
    color: #0b0e13;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-color: var(--steel-strong);
}

.btn-outline:hover {
    border-color: var(--amber);
    color: var(--amber-bright);
    background: rgba(245, 158, 11, 0.06);
}

/* Hero Section */
.hero {
    padding: 76px 0 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    color: var(--amber-bright);
    letter-spacing: 0.06em;
}

.tech-badge.secondary {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4.3vw, 3.55rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--amber-bright), var(--orange-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.06rem;
    max-width: 600px;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    border-top: 1px solid var(--steel-border);
    padding-top: 24px;
}

.metric-item strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--amber-bright);
}

.metric-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CAD/CAE Visual Panel */
.cad-panel {
    background: var(--bg-panel);
    border: 1px solid var(--steel-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.cad-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--amber);
    border-style: solid;
    opacity: 0.75;
}
.cad-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.cad-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.cad-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.cad-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.cad-panel-head {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    border-bottom: 1px dashed var(--steel-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.cad-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.gear-main {
    transform-origin: 120px 115px;
    animation: spinCW 20s linear infinite;
}

.gear-pinion {
    transform-origin: 222px 72px;
    animation: spinCCW 10s linear infinite;
}

@keyframes spinCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.cad-telemetry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--steel-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
}

.telemetry-box {
    background: rgba(255, 255, 255, 0.025);
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--steel-border);
}

.telemetry-box span {
    display: block;
    color: var(--text-dim);
    font-size: 0.65rem;
}

.telemetry-box strong {
    color: var(--amber-bright);
}

/* Generic Section Styling */
section {
    padding: 76px 0;
    position: relative;
    z-index: 2;
}

.section-head {
    max-width: 680px;
    margin-bottom: 44px;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--amber);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.18;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Ecosystem & Corporate Identity Banner */
.ecosystem-strip {
    background: var(--bg-panel);
    border-top: 1px solid var(--steel-border);
    border-bottom: 1px solid var(--steel-border);
    padding: 36px 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eco-card {
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--steel-border);
    border-left: 3px solid var(--amber);
    border-radius: 10px;
}

.eco-card small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eco-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    margin: 5px 0 4px;
}

.eco-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 6-Card Capabilities Grid */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-border);
    border-radius: 14px;
    padding: 26px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.cap-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--amber);
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 9px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 5px;
}

.cap-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.18rem;
    margin-bottom: 10px;
}

.cap-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cap-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    border: 1px solid var(--steel-border);
    padding: 3px 8px;
    border-radius: 4px;
}

/* 4-Step Methodology Timeline */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--bg-panel);
    border: 1px solid var(--steel-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.28);
    line-height: 1;
    margin-bottom: 12px;
}

.step-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Founder & Leadership Section */
.founder-box {
    background: var(--bg-panel);
    border: 1px solid var(--steel-border);
    border-radius: 18px;
    padding: 38px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.founder-photo-wrap {
    position: relative;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.founder-photo-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.founder-caption {
    margin-top: 10px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--amber-bright);
}

.founder-details h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.founder-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    color: var(--amber);
    margin-bottom: 16px;
    display: block;
}

.founder-bio {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.96rem;
}

.founder-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.fh-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--steel-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.fh-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.82rem;
}

.fh-item span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.founder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Contact & Quote Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--steel-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.2s ease;
}

.contact-card:hover {
    border-color: var(--amber);
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.contact-card strong {
    font-size: 0.96rem;
}

.quote-form {
    background: var(--bg-panel);
    border: 1px solid var(--steel-border);
    border-radius: 14px;
    padding: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--steel-strong);
    background: rgba(11, 14, 19, 0.8);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber);
}

.form-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--steel-border);
    padding: 32px 0;
    font-size: 0.84rem;
    color: var(--text-dim);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.footer-links a:hover {
    color: var(--amber);
}

/* ==========================================================================
   MMBD AI MECHANICAL ENGINEERING ASSISTANT WIDGET
   ========================================================================== */
.ai-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-welcome-bubble {
    background: var(--bg-surface);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    max-width: 270px;
    margin-bottom: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ai-welcome-bubble button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.ai-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange-deep));
    color: #0b0e13;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease;
}

.ai-fab:hover {
    transform: translateY(-2px);
}

.ai-window {
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 110px);
    background: #10151f;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
}

.ai-window.open {
    display: flex;
}

.ai-header {
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid var(--steel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ai-title strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.94rem;
    display: block;
}

.ai-title span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: #34d399;
}

.ai-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: 88%;
    white-space: pre-wrap;
}

.ai-msg.bot {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--steel-border);
    color: var(--text-main);
    align-self: flex-start;
}

.ai-msg.user {
    background: linear-gradient(135deg, var(--amber), var(--orange-deep));
    color: #0b0e13;
    font-weight: 500;
    align-self: flex-end;
}

.ai-quick-chips {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    border-top: 1px solid var(--steel-border);
    background: rgba(0, 0, 0, 0.2);
}

.ai-chip {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--amber-bright);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    padding: 5px 9px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
}

.ai-chip:hover {
    background: rgba(245, 158, 11, 0.18);
}

.ai-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--steel-border);
    background: #0b0e13;
}

.ai-input-bar input {
    flex: 1;
    background: #141a26;
    border: 1px solid var(--steel-strong);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--text-main);
    font-size: 0.86rem;
}

.ai-input-bar input:focus {
    outline: none;
    border-color: var(--amber);
}

.ai-input-bar button {
    background: var(--amber);
    color: #0b0e13;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .hero-grid,
    .contact-grid,
    .founder-box {
        grid-template-columns: 1fr;
    }
    .founder-photo-wrap {
        max-width: 240px;
        margin: 0 auto;
    }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .eco-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .cap-grid,
    .eco-grid,
    .process-grid,
    .hero-metrics,
    .founder-highlights,
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   PROJECTS / PROTOTYPE GALLERY SECTION (DYNAMIC CMS)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0d121b;
    border-bottom: 1px solid var(--steel-border);
    overflow: hidden;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.04);
}

.gallery-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.gallery-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    flex: 1;
}

.brand-custom-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

@media (max-width: 980px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
