/* ==========================================================================
   Golden Age Transformation — Theme Stylesheet
   Converted 1:1 from React/Tailwind source. All class names map back to the
   original Tailwind utilities used in the React components.
   ========================================================================== */

/* ─── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy:        #0B1628;
    --navy-light:  #112240;
    --navy-dark:   #080F1C;
    --gold:        #C9A065;
    --gold-light:  #D4AE78;
    --gold-dark:   #A07840;
    --cream:       #F5F0E8;
    --gray-100:    #F5F5F5;
    --gray-200:    #E5E7EB;
    --gray-300:    #D1D5DB;
    --gray-400:    #9CA3AF;
    --gray-500:    #6B7280;
    --gray-600:    #4B5563;
    --gray-700:    #374151;
    --gray-800:    #1F2937;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
em { font-style: italic; }
input, textarea, select, button { font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1024px) {
    .container { padding: 0 2.5rem; }
}

.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-sans  { font-family: 'Inter', system-ui, sans-serif; }

.bg-navy       { background-color: var(--navy); }
.bg-navy-light { background-color: var(--navy-light); }
.bg-navy-dark  { background-color: var(--navy-dark); }
.text-white    { color: #fff; }
.text-navy     { color: var(--navy); }
.text-gold     { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }

/* ─── Site wrapper ─────────────────────────────────────────────────────── */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main    { flex: 1 1 auto; }

/* ─── Navbar ───────────────────────────────────────────────────────────── */
.site-nav { background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 50; }

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
@media (min-width: 1024px) { .nav-row { height: 5rem; } }

.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand-logo { flex-shrink: 0; }
.nav-brand-text { line-height: 1.15; }
.nav-brand-line1 {
    display: block;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.nav-brand-line1-white { color: #fff; }
.nav-brand-line2 {
    display: block;
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.primary-nav-list, .mobile-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.primary-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.2s;
}
.primary-nav-link:hover { color: var(--navy); }
.primary-nav-link.is-active { color: var(--navy); }

.nav-desktop { display: none; }
@media (min-width: 1024px) { .nav-desktop { display: flex; align-items: center; } }
.nav-cta-desktop { display: none; }
@media (min-width: 1024px) { .nav-cta-desktop { display: block; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; color: var(--navy); padding: 0.5rem; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle-icon { display: none; }
.nav-toggle[aria-expanded="false"] .nav-toggle-open  { display: block; }
.nav-toggle[aria-expanded="true"]  .nav-toggle-close { display: block; }

.nav-mobile {
    padding: 1rem 0 1rem;
    border-top: 1px solid var(--gray-100);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile .mobile-nav-list { flex-direction: column; gap: 0.5rem; }
.nav-mobile .mobile-nav-list a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}
.nav-mobile .mobile-nav-list a:hover { color: var(--navy); }
.nav-mobile .mobile-cta { margin-top: 1rem; display: inline-flex; width: 100%; justify-content: center; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.btn-pill { border-radius: 9999px; padding: 1rem 2rem; }
.btn-sm   { padding: 0.75rem 1.5rem; font-size: 0.875rem; }

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-navy {
    background: var(--navy);
    color: #fff;
}
.btn-navy:hover { background: var(--navy-light); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid var(--gray-500);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-waves {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}
.hero-inner {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
}
@media (min-width: 1024px) { .hero-inner { padding: 8rem 0; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #4B5563;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 2.5rem;
}
.hero-badge-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--gold); }
.hero-badge-text { color: #D1D5DB; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 2rem;
    max-width: 64rem;
}
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 6rem; } }
.hero-title-em { color: var(--gold); font-style: normal; font-weight: 400; }

.hero-sub {
    color: #9CA3AF;
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 42rem;
    margin-bottom: 3rem;
}
@media (min-width: 1024px) { .hero-sub { font-size: 1.25rem; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── Stats Bar ────────────────────────────────────────────────────────── */
.stats-bar { border-top: 1px solid var(--gray-800); }
.stats-bar .container { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) {
    .stats-bar .container { padding-top: 4rem; padding-bottom: 4rem; }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.stat { text-align: center; }
@media (min-width: 1024px) { .stat { text-align: left; } }
.stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
@media (min-width: 1024px) { .stat-num { font-size: 1.875rem; } }
.stat-label { color: #9CA3AF; font-size: 0.875rem; }

/* ─── Generic section ──────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-white { background: #fff; }
.section-cream { background: var(--cream); }
.section-navy  { background: var(--navy); color: #fff; }
.section-centered { text-align: center; }
.section-centered .section-head { margin-bottom: 2.5rem; }

.section-head { margin-bottom: 3.5rem; }
@media (min-width: 1024px) { .section-head { margin-bottom: 4rem; } }

.eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-title-light { color: #fff; }
.section-title-left  { text-align: left; }

.section-sub {
    color: var(--gray-500);
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 36rem;
}
.section-sub-light { color: #9CA3AF; }

.em-gold { color: var(--gold); font-style: italic; font-weight: 400; }
.section-title em, .section-title-light em, .section-title .em-gold { color: var(--gold); }

.centered-block { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }
.centered-block .section-title { margin-bottom: 1.5rem; }
.centered-block .section-sub   { margin-bottom: 2.5rem; margin-left: auto; margin-right: auto; }
.centered-block .btn { display: inline-flex; }

/* ─── Card grids ───────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .cards-4 { grid-template-columns: repeat(4, 1fr); }
    .cards-3-bottom { margin-top: 1.5rem; }
}

/* ─── Service card ─────────────────────────────────────────────────────── */
.service-card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}
.service-card:hover { border-color: rgba(201, 160, 101, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--navy);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
}
.service-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .service-title { font-size: 1.5rem; } }
.service-desc { color: var(--gray-500); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.5rem; }
.service-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-bullets li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--gray-600); }
.bullet-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--gold); flex-shrink: 0; }

.service-cta-card {
    background: var(--navy);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
}
@media (min-width: 1024px) { .service-cta-title { font-size: 1.875rem; } }
.service-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 2rem;
    transition: color 0.2s;
}
.service-cta-link:hover { color: var(--gold-light); }

/* ─── Service list (Services page) ─────────────────────────────────────── */
.service-list { display: flex; flex-direction: column; gap: 6rem; }
.service-list-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .service-list-row { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.service-list-num {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.service-list-left .service-icon { margin-bottom: 1.5rem; }
.service-list-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 400;
    font-size: 1.875rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}
@media (min-width: 1024px) { .service-list-title { font-size: 2.25rem; } }
.service-list-desc { color: var(--gray-500); font-size: 1rem; line-height: 1.625; }

.service-list-bullets-card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
}
.service-list-bullets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.service-list-bullet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}
.bullet-ring {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(201, 160, 101, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bullet-ring .bullet-dot { width: 0.375rem; height: 0.375rem; }

/* ─── Why grid ─────────────────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--gray-300);
    border-radius: 1rem;
    overflow: hidden;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-cell {
    padding: 2rem;
    background: var(--cream);
    border-right: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}
.why-cell:nth-child(3n)   { border-right: none; }
.why-cell:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 1023px) {
    .why-cell { border-right: none; }
    .why-cell:not(:last-child) { border-bottom: 1px solid var(--gray-300); }
}
.why-num {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.why-divider { width: 100%; height: 1px; background: rgba(201, 160, 101, 0.3); margin-bottom: 1rem; }
.why-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.why-desc { color: var(--gray-600); font-size: 0.875rem; line-height: 1.625; }

/* ─── Industry card ────────────────────────────────────────────────────── */
.industry-card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}
.industry-card:hover { border-color: rgba(201, 160, 101, 0.4); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.industry-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.industry-icon { color: var(--gold); display: inline-flex; }
.industry-tag {
    color: var(--gray-400);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.industry-label {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.industry-desc { color: var(--gray-500); font-size: 0.75rem; line-height: 1.625; }

/* ─── STEP Framework ───────────────────────────────────────────────────── */
.step-section { position: relative; overflow: hidden; }
.step-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.1; }
.step-bg svg { width: 100%; height: 100%; }
.step-section > .container { position: relative; z-index: 10; }
.step-section .section-head { margin-bottom: 2rem; }
.step-section .section-head .section-title { margin-bottom: 0; }

.step-grid { margin-top: 0; }
.step-card {
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
}
.step-card-light { border-color: var(--gray-200); }
.step-letter {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 3.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}
.step-card-light .step-letter { opacity: 0.7; }
.step-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.step-card-light .step-title { color: var(--navy); }
.step-desc { color: #9CA3AF; font-size: 0.875rem; line-height: 1.625; }

/* ─── Product card (AI Solutions) ──────────────────────────────────────── */
.product-card {
    background: var(--navy);
    border-radius: 1rem;
    padding: 2rem;
}
.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.product-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(201, 160, 101, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.75rem;
}
.product-tag {
    color: var(--gray-500);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.product-name {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
@media (min-width: 1024px) { .product-name { font-size: 2.25rem; } }
.product-subtitle { color: #9CA3AF; font-size: 0.875rem; margin-bottom: 1.5rem; }
.product-desc { color: #D1D5DB; font-size: 0.875rem; line-height: 1.625; }

/* ─── Case study card (homepage preview) ───────────────────────────────── */
.case-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}
.case-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.case-sector {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}
.case-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.case-desc { color: var(--gray-500); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.5rem; }
.case-confidential { color: var(--gray-400); font-size: 0.75rem; font-style: italic; }

/* ─── Case studies page cards ──────────────────────────────────────────── */
.cases-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) { .cases-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.case-card-full {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s;
}
.case-card-full:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.case-card-full-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.case-card-num {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 1.875rem;
    opacity: 0.6;
}
.case-card-full .case-title { font-size: 1.5rem; }
.case-card-bottom {
    border-top: 1px solid var(--gray-100);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.case-card-bottom .case-confidential { margin: 0; }
.case-request-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.case-request-link:hover { color: var(--gold); }

/* ─── Partner ecosystem ────────────────────────────────────────────────── */
.partner-card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
}
.partner-icon { color: var(--gold); margin-bottom: 1rem; display: inline-flex; }
.partner-label {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.partner-desc { color: var(--gray-500); font-size: 0.875rem; line-height: 1.625; }

/* ─── Feature card (AI Solutions dark section) ─────────────────────────── */
.feature-card {
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
}
.feature-icon { color: var(--gold); margin-bottom: 1rem; display: inline-flex; }
.feature-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.feature-desc { color: #9CA3AF; font-size: 0.875rem; line-height: 1.625; }

/* ─── Page hero (sub-pages) ────────────────────────────────────────────── */
.page-hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}
@media (min-width: 1024px) { .page-hero { padding: 9rem 0; } }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.15; }
.page-hero-bg svg { position: absolute; bottom: 0; right: 0; width: 100%; height: 100%; }
.page-hero > .container { position: relative; z-index: 10; }
.page-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.15;
    max-width: 64rem;
}
@media (min-width: 1024px) { .page-hero-title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .page-hero-title { font-size: 4.5rem; } }
.page-hero-title em { color: var(--gold); font-style: normal; }
.page-hero-sub {
    color: #9CA3AF;
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 42rem;
    margin-top: 2rem;
}
@media (min-width: 1024px) { .page-hero-sub { font-size: 1.25rem; } }

/* ─── About — Mission ──────────────────────────────────────────────────── */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) { .mission-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.mission-left .eyebrow { margin-bottom: 1.5rem; }
.mission-left .section-title { text-align: left; margin-bottom: 2rem; }
.mission-prose p { color: var(--gray-600); font-size: 1rem; line-height: 1.75; margin-bottom: 1.25rem; }
.mission-prose p:last-child { margin-bottom: 0; }

.mission-quote-card {
    background: var(--cream);
    border-radius: 1rem;
    padding: 2.5rem;
}
.mission-quote-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.mission-quote-card p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.625; }

/* ─── Contact form ─────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--navy);
    font-size: 0.875rem;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea { resize: none; }

.contact-submit { align-self: flex-start; }
.contact-form-footnote { font-size: 0.75rem; color: var(--gray-500); }
.contact-form-footnote.is-success { color: #2F855A; }
.contact-form-footnote.is-error   { color: #C53030; }

.contact-info-wrap { padding-top: 0; }
@media (min-width: 1024px) { .contact-info-wrap { padding-top: 4rem; } }
.contact-info-card {
    background: var(--cream);
    border-radius: 1rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-info-block .eyebrow { margin-bottom: 1rem; }
.contact-info-row { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--navy); }
.contact-info-icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.contact-info-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.contact-info-value { color: var(--gray-500); font-size: 0.875rem; transition: color 0.2s; }
a.contact-info-value:hover { color: var(--gold); }
.contact-info-muted { color: var(--gray-500); }
.contact-quote {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
}
.contact-quote p {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ─── CTA Banner ───────────────────────────────────────────────────────── */
.cta-banner {
    background: var(--navy);
    padding: 6rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) { .cta-banner { padding: 8rem 0; } }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.1; }
.cta-inner { position: relative; z-index: 10; max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.cta-eyebrow { color: var(--gold); margin-bottom: 1.5rem; }
.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2rem;
}
@media (min-width: 1024px) { .cta-title { font-size: 3rem; } }
@media (min-width: 1280px) { .cta-title { font-size: 3.75rem; } }
.cta-title em { color: var(--gold); font-style: normal; }
.cta-sub { color: #9CA3AF; font-size: 1.125rem; margin-bottom: 2.5rem; }
.cta-btn { padding: 1rem 2.5rem; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #fff; }
.site-footer .container { padding: 4rem 1.5rem 2rem; }
@media (min-width: 1024px) { .site-footer .container { padding: 5rem 2.5rem 2rem; } }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: 3rem; } }

.footer-brand .nav-brand { margin-bottom: 1.5rem; }
.footer-brand-desc { color: var(--gray-400); font-size: 0.875rem; line-height: 1.625; max-width: 20rem; }

.footer-h4 {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-list a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-list a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: var(--gray-400); }
.footer-contact-item { display: flex; flex-direction: column; gap: 0.125rem; }
.footer-contact-label {
    color: var(--gold);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer-email { transition: color 0.2s; }
.footer-email:hover { color: #fff; }
.footer-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}
.footer-cta-link:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: 3.5rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.footer-bottom p { color: var(--gray-600); font-size: 0.75rem; margin: 0; }

/* ─── Coal Quality Prediction System (AI Solutions flagship demo) ─────────
   Follows the same design tokens as the rest of the theme: navy/gold/cream
   palette, Playfair Display for headings, Inter for body copy. Reuses
   .service-card / .cards-grid patterns elsewhere for visual consistency. */
.coal-section { position: relative; }

/* ─── Coal Quality Prediction dashboard (AI Solutions, Case in Focus) ───── */
.cqp {
    background: #fff;
    border: 1px solid rgba(201, 160, 101, 0.28);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(11, 22, 40, 0.07);
}

/* Masthead — the site's navy band in place of the source's electric blue */
.cqp-masthead {
    background: linear-gradient(100deg, var(--navy) 0%, var(--navy-light) 100%);
    border-bottom: 3px solid var(--gold);
    padding: 1.5rem 1.5rem;
}
@media (min-width: 1024px) {
    .cqp-masthead { display: flex; align-items: center; gap: 2rem; padding: 1.75rem 2.25rem; }
}
.cqp-masthead-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
    flex: 0 0 auto;
    max-width: 26rem;
}
@media (min-width: 1024px) { .cqp-masthead-title { font-size: 1.75rem; } }
.cqp-masthead-sub {
    color: var(--gold-light);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.55;
    margin-top: 0.5rem;
}
@media (min-width: 1024px) { .cqp-masthead-sub { margin-top: 0; } }

/* Two-column body */
.cqp-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
    .cqp-body { grid-template-columns: 19rem 1fr; }
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.cqp-side {
    background: var(--cream);
    border-right: 1px solid rgba(11, 22, 40, 0.07);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cqp-badge {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    border: 1px solid rgba(201, 160, 101, 0.35);
    border-radius: 0.625rem;
    padding: 1rem 1.125rem;
    text-align: center;
}
.cqp-badge h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.cqp-badge p { color: #D8DCE3; font-size: 0.8125rem; line-height: 1.55; }

.cqp-kicker {
    color: var(--gold-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid rgba(201, 160, 101, 0.4);
}
.cqp-block p {
    color: var(--gray-600);
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-bottom: 0.875rem;
}
.cqp-block p:last-child { margin-bottom: 0; }
.cqp-block strong { color: var(--navy); font-weight: 600; }

.cqp-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.cqp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.8125rem;
    line-height: 1.5;
}
.cqp-list strong { color: var(--navy); font-weight: 600; }
.cqp-check { color: var(--gold-dark); flex: 0 0 auto; margin-top: 0.0625rem; }
.cqp-check svg { display: block; }

/* ── Main column ────────────────────────────────────────────────────────── */
.cqp-main { padding: 1.5rem; }
@media (min-width: 1024px) { .cqp-main { padding: 1.75rem 2rem 2rem; } }

.cqp-chart-card {
    background: var(--cream);
    border: 1px solid rgba(201, 160, 101, 0.35);
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem 1.5rem;
}
.cqp-chart-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}
@media (min-width: 1024px) { .cqp-chart-title { font-size: 1.25rem; } }

.cqp-plots { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .cqp-plots { grid-template-columns: 1fr 1fr; } }
.cqp-plot img { width: 100%; height: auto; display: block; }
.cqp-plot-cap {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.cqp-plot-cap span { display: block; font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; }
.cqp-plot-cap--baseline { color: var(--navy); }
.cqp-plot-cap--adaptive { color: var(--gold-dark); }

/* KPI strip — the source's neon callout, in navy and gold */
.cqp-kpi {
    margin-top: 1rem;
    background: var(--navy);
    border: 1px solid rgba(201, 160, 101, 0.45);
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    text-align: center;
}
.cqp-kpi-lead {
    color: var(--gold);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.375rem;
}
@media (min-width: 1024px) { .cqp-kpi-lead { font-size: 1.0625rem; } }
.cqp-kpi-lead strong { color: #fff; font-weight: 700; }
.cqp-kpi-row { color: #D8DCE3; font-size: 0.8125rem; line-height: 1.7; }
.cqp-kpi-foot {
    color: var(--gold-light);
    font-size: 0.6875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.cqp-note {
    color: var(--gray-500);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    margin-top: 0.875rem;
}
.cqp-note--fine { font-size: 0.6875rem; color: var(--gray-400); margin-top: 0.25rem; }

/* Feature cards */
.cqp-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .cqp-cards { grid-template-columns: 1fr 1fr; } }
.cqp-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--gold);
    border-radius: 0.5rem;
    padding: 1rem 1.125rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.cqp-card:hover { box-shadow: 0 10px 26px rgba(11, 22, 40, 0.08); border-color: rgba(201, 160, 101, 0.5); border-left-color: var(--gold-dark); }
.cqp-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cqp-card-icon { color: var(--gold-dark); display: inline-flex; }
.cqp-card-desc { color: var(--gray-600); font-size: 0.8125rem; line-height: 1.65; }
.cqp-card-desc strong { color: var(--navy); font-weight: 600; }

/* ─── Coal simulation — "mine that learns" widget ──────────────────────── */
.coal-sim-head { margin-top: 4rem; margin-bottom: 2.5rem; max-width: 42rem; }
.coal-sim-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .coal-sim-title { font-size: 2rem; } }
.coal-sim-sub { color: var(--gray-500); font-size: 1rem; line-height: 1.625; }

.coal-sim-frame {
    background: #0F1419;
    border: 1px solid rgba(201, 160, 101, 0.18);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem 1.25rem;
    overflow: hidden;
}
@media (min-width: 1024px) { .coal-sim-frame { padding: 2rem 2.25rem 1.5rem; } }

.coal-sim-eyebrow {
    color: var(--gold);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

/* Stage: block model on the left, act panel on the right */
.coal-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 430px;
}
@media (min-width: 900px) {
    .coal-stage { grid-template-columns: 1fr 1fr; gap: 2rem; min-height: 400px; }
}

/* ── Block model cloud ──────────────────────────────────────────────────── */
.coal-model { position: relative; }
.coal-cloud {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    transition: opacity 0.6s ease, filter 0.6s ease;
}
@media (min-width: 900px) { .coal-cloud { min-height: 380px; } }
.coal-cloud.is-dimmed { opacity: 0.18; filter: saturate(0.5); }

.coal-cell {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    opacity: 0;
    transform: scale(0.4);
    transition: background 0.55s ease, box-shadow 0.25s ease;
}
@media (min-width: 1024px) { .coal-cell { width: 15px; height: 15px; border-radius: 3.5px; } }
.coal-cell.is-in { animation: coalCellIn 0.45s ease forwards; }
@keyframes coalCellIn { to { opacity: 1; transform: scale(1); } }

.coal-cell.is-picked {
    box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(232, 163, 23, 0.55);
    z-index: 4;
}
.coal-cell.is-gold    { background: #E8A317 !important; }
.coal-cell.is-cyan    { background: #29B6D8 !important; }
.coal-cell.is-flagged { background: #F5A623 !important; box-shadow: 0 0 10px rgba(245, 166, 35, 0.6); }

/* Source tooltip */
.coal-tooltip {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 6;
    white-space: nowrap;
}
.coal-tooltip.is-active { opacity: 1; }
.coal-tip-src { display: block; color: #fff; font-size: 0.8125rem; }
.coal-tip-ash { display: block; color: var(--gold); font-size: 0.9375rem; font-weight: 700; }

/* Payload flying from pit to stockpile */
.coal-payload {
    position: absolute;
    top: 0; left: 0;
    margin: -7px 0 0 -7px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}
.coal-payload.is-active { opacity: 1; }
.coal-payload-label {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
}
.coal-payload-chip { display: block; width: 14px; height: 14px; border-radius: 3px; }

/* Problem-zone marquee */
.coal-zone {
    position: absolute;
    border: 2px dashed var(--gold);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}
.coal-zone.is-active { opacity: 1; }

/* ── Act panels (right column) ──────────────────────────────────────────── */
.coal-panels { position: relative; display: flex; align-items: center; }
.coal-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}
.coal-panel.is-active { opacity: 1; visibility: visible; transform: none; }

/* ── Panel: material flow ───────────────────────────────────────────────── */
.coal-flow { display: flex; align-items: center; gap: 0.5rem; }
.coal-flow-col { flex: 1; text-align: center; }
.coal-flow-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}
.coal-flow-title--rom  { color: var(--gold); }
.coal-flow-title--wash { color: #29B6D8; }
.coal-flow-title--prod { color: #22C55E; }

.coal-flow-box {
    height: 108px;
    border-radius: 8px;
    background: #161E2C;
    border: 2px solid;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    padding: 5px;
    overflow: hidden;
}
.coal-flow-box--rom  { border-color: var(--gold); }
.coal-flow-box--wash { border-color: #29B6D8; align-items: center; justify-content: center; }
.coal-flow-box--prod { border-color: #22C55E; background: #0C2415; }
.coal-flow-box--wash.is-busy { background: #10394A; }

.coal-rom-bar, .coal-prod-bar {
    position: relative;
    flex: 0 0 20px;
    border-radius: 3px;
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.coal-rom-bar.is-in, .coal-prod-bar.is-in { opacity: 1; transform: none; }
.coal-rom-bar.is-out { opacity: 0; transform: translateX(-14px); }
.coal-prod-bar { background: #22C55E; }
.coal-rom-bar i, .coal-prod-bar i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
}
.coal-wash-value { color: #fff; font-size: 0.9375rem; font-weight: 700; }

.coal-flow-arrow { color: var(--gray-500); font-size: 1rem; flex: 0 0 auto; }
.coal-flow-caption { display: block; color: var(--gray-400); font-size: 0.75rem; margin-top: 0.5rem; }
.coal-flow-legend { color: var(--gray-500); font-size: 0.6875rem; text-align: center; margin-top: 0.25rem; }

.coal-flow-note {
    margin-top: 1.25rem;
    border: 1px solid rgba(201, 160, 101, 0.45);
    border-radius: 8px;
    background: rgba(201, 160, 101, 0.08);
    padding: 0.75rem 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.coal-flow-note.is-visible { opacity: 1; transform: none; }
.coal-flow-note strong { display: block; color: var(--gold); font-size: 0.875rem; font-weight: 700; }
.coal-flow-note span { color: var(--gray-500); font-size: 0.75rem; }

/* ── Panel: prediction accuracy ─────────────────────────────────────────── */
.coal-chart-card {
    background: #1B2333;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 1rem 0.75rem;
    text-align: center;
}
.coal-chart-card h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 0.125rem; }
.coal-chart-card > p { color: var(--gray-400); font-size: 0.8125rem; margin-bottom: 0.5rem; }
.coal-chart-svg { width: 100%; height: 132px; overflow: visible; }
.coal-chart-baseline { fill: none; stroke: #E8A317; stroke-width: 1.6; stroke-dasharray: 4 3; }
.coal-chart-model    { fill: none; stroke: #29B6D8; stroke-width: 2; }
.coal-chart-head     { fill: #E8A317; }
.coal-chart-label    { font-size: 13px; }
.coal-chart-label--baseline { fill: #E8A317; }
.coal-chart-label--model    { fill: #29B6D8; }

.coal-chart-log {
    list-style: none;
    background: #182030;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-top: 0.875rem;
    padding: 0.625rem 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    min-height: 132px;
}
.coal-chart-log .coal-log-head { color: #fff; padding: 0 0.5rem 0.375rem; }
.coal-chart-log li {
    display: flex;
    gap: 0.5rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.coal-chart-log li.is-visible { opacity: 1; transform: none; }
.coal-chart-log li.is-current { background: rgba(41, 182, 216, 0.14); }
.coal-log-caret    { color: #29B6D8; width: 0.75rem; opacity: 0; }
li.is-current .coal-log-caret { opacity: 1; }
.coal-log-batch    { color: var(--gray-500); min-width: 6.5rem; }
li.is-current .coal-log-batch { color: #29B6D8; }
.coal-log-error    { color: #E8A317; min-width: 7.5rem; }
li.is-current .coal-log-error { color: #4ADE80; font-weight: 700; }
.coal-log-baseline { color: #4B5563; }

.coal-improve {
    position: absolute;
    left: 0; bottom: 0;
    z-index: 7;
    border: 1px solid rgba(74, 222, 128, 0.5);
    border-radius: 8px;
    background: rgba(16, 60, 34, 0.9);
    padding: 0.625rem 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.coal-improve.is-visible { opacity: 1; transform: none; }
.coal-improve b { display: block; color: #4ADE80; font-size: 1.25rem; font-weight: 700; }
.coal-improve strong { display: block; color: #fff; font-size: 0.8125rem; }
.coal-improve span { color: var(--gray-500); font-size: 0.6875rem; }

/* ── Panel: live batch counter ──────────────────────────────────────────── */
.coal-learn { text-align: center; }
.coal-learn-status { color: var(--gold); font-size: 0.875rem; margin-bottom: 0.5rem; }
.coal-learn-status.is-reliable { color: #29B6D8; }
.coal-learn-card {
    background: #1B2333;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 1rem 1rem;
}
.coal-learn-card-head { color: var(--gray-400); font-size: 0.75rem; margin-bottom: 0.5rem; }
.coal-learn-bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 120px; }
.coal-learn-bar {
    width: 22px;
    height: 0;
    border-radius: 2px;
    background: var(--gold);
    transition: height 0.2s linear;
}
.coal-learn-error {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.75rem;
}
.coal-learn-batch {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--gray-400);
    font-size: 0.875rem;
}
.coal-learn-teach, .coal-learn-converged {
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-top: 0.625rem;
}
.coal-learn-teach.is-visible, .coal-learn-converged.is-visible { opacity: 1; }
.coal-learn-teach { color: #E5E7EB; font-style: italic; font-size: 0.9375rem; }
.coal-learn-converged { color: #29B6D8; font-weight: 700; font-size: 0.9375rem; margin-top: 0.25rem; }

/* ── Panel: problem zone ────────────────────────────────────────────────── */
.coal-zone-card {
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(201, 160, 101, 0.08);
    padding: 1rem 1.25rem;
    text-align: center;
    max-width: 22rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.coal-zone-card.is-visible { opacity: 1; transform: none; }
.coal-zone-card strong { display: block; color: var(--gold); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.coal-zone-card span { color: #D1D5DB; font-size: 0.8125rem; line-height: 1.5; }

/* ── Full-stage overlays (question / outro) ─────────────────────────────── */
.coal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    z-index: 8;
}
.coal-overlay.is-active { opacity: 1; visibility: visible; }
.coal-overlay-title { color: #fff; font-size: 1.375rem; font-weight: 600; }
@media (min-width: 1024px) { .coal-overlay-title { font-size: 1.75rem; } }
.coal-overlay-sub { color: var(--gray-400); font-size: 0.9375rem; margin-top: 0.5rem; }

/* ── Tagline + chapter rail ─────────────────────────────────────────────── */
.coal-sim-tagline {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5rem;
    min-height: 2rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
@media (min-width: 1024px) { .coal-sim-tagline { font-size: 1.75rem; } }
.coal-sim-tagline.is-visible { opacity: 1; transform: none; }

.coal-sim-rail { display: flex; gap: 4px; margin-top: 1.25rem; }
.coal-sim-rail button {
    flex: 1;
    height: 3px;
    border: 0;
    padding: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.4s ease;
}
.coal-sim-rail button.is-done   { background: rgba(201, 160, 101, 0.45); }
.coal-sim-rail button.is-active { background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
    .coal-cell, .coal-panel, .coal-sim-tagline, .coal-payload { transition: none; animation: none; }
}

/* ── Compact variant + home-page teaser section ─────────────────────────── */
.coal-sim--compact .coal-stage { min-height: 340px; }
@media (min-width: 900px) { .coal-sim--compact .coal-stage { min-height: 320px; } }
.coal-sim--compact .coal-cloud { min-height: 260px; }
@media (min-width: 900px) { .coal-sim--compact .coal-cloud { min-height: 300px; } }
.coal-sim--compact .coal-cell { width: 11px; height: 11px; border-radius: 2.5px; }
@media (min-width: 1024px) { .coal-sim--compact .coal-cell { width: 12px; height: 12px; } }
.coal-sim--compact .coal-flow-box { height: 92px; }
.coal-sim--compact .coal-chart-svg { height: 148px; }
.coal-sim--compact .coal-learn-bars { height: 100px; }
.coal-sim--compact .coal-sim-tagline { font-size: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 1024px) { .coal-sim--compact .coal-sim-tagline { font-size: 1.5rem; } }

/* Anchor target for /ai-solutions#coal-case. The site nav is sticky, so
   offset the jump or the heading lands under the header. */
#coal-case { scroll-margin-top: 5.5rem; }

/* ─── Responsive video embed ────────────────────────────────────────────── */
.video-embed {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    border: 1px solid rgba(201, 160, 101, 0.28);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(11, 22, 40, 0.12);
}
.video-embed iframe,
.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: var(--navy);
}
.video-note {
    max-width: 62rem;
    margin: 0.875rem auto 0;
    color: var(--gray-500);
    font-size: 0.8125rem;
    text-align: center;
}
/* Older browsers without aspect-ratio support. */
@supports not (aspect-ratio: 16 / 9) {
    .video-embed { height: 0; padding-bottom: 56.25%; }
}

/* Captions rendered by the browser's native track display. */
.video-player::cue {
    background: rgba(11, 22, 40, 0.82);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9em;
    line-height: 1.4;
}
