/* ── HERO BANNER ── */
.hero {
    position: relative;
    background: var(--tml-navy);
    min-height: 88vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.hero__carousel {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.hero__slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out, transform 6s ease-out;
    transform: scale(1.05);
}
.hero__slide.active { opacity: 1; transform: scale(1); z-index: 1; }

.hero__overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(100deg, rgba(11,37,69, 0.95) 0%, rgba(22,58,107, 0.75) 45%, rgba(13,31,53, 0.2) 100%);
}
.hero__overlay::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(200,153,58,.04) 60px, rgba(200,153,58,.04) 61px);
}
.hero__dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent; cursor: pointer; transition: all 0.3s; padding: 0;
}
.hero__dot.active { border-color: var(--tml-gold); background: var(--tml-gold); transform: scale(1.2); }
.hero__inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 380px;
    gap: 3rem; align-items: stretch;
    max-width: 1280px; margin: 0 auto;
    padding: 5rem 1.5rem 0;
    flex: 1;
}
.hero__content { display: flex; flex-direction: column; justify-content: center; padding-bottom: 4rem; }
.hero__eyebrow {
    color: var(--tml-gold); font-size: .8rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: .75rem;
}
.hero__eyebrow::before {
    content: ''; display: block; width: 32px; height: 2px; background: var(--tml-gold);
}
.hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}
.hero__title span { color: var(--tml-gold); }
.hero__desc { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.7; max-width: 560px; margin-bottom: 2.5rem; }
.hero__btns { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.hero__cta {
    display: inline-flex; align-items: center; gap: .75rem;
    background: var(--tml-gold); color: #fff;
    padding: .9rem 2rem; border-radius: 2px;
    font-weight: 700; font-size: .95rem; letter-spacing: .04em;
    align-self: flex-start; transition: background .2s, transform .2s;
}
.hero__cta:hover { background: var(--tml-gold-l); transform: translateX(3px); }
.hero__cta svg { width: 18px; fill: #fff; }
.hero__cta--secondary {
    background: transparent !important;
    border: 2px solid #fff;
}
.hero__cta--secondary:hover { background: rgba(255,255,255,0.1) !important; }

/* search sidebar */
.hero__search {
    background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
    border-left: 1px solid rgba(255,255,255,.1);
    padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: center;
}
.hero__search h2 {
    color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.35;
    padding-bottom: .75rem; border-bottom: 2px solid var(--tml-gold);
    margin-bottom: 1.5rem;
}
.search-form { display: flex; background: rgba(255,255,255,.95); border-radius: 2px; overflow: hidden; width: 100%; margin-bottom: 2rem; }
.search-form input {
    flex: 1; border: none; outline: none; padding: .85rem 1rem;
    font-size: .95rem; color: var(--tml-dark); background: transparent;
}
.search-form button {
    background: var(--tml-gold); border: none; cursor: pointer;
    padding: .85rem 1.15rem; color: #fff; transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.search-form button:hover { background: var(--tml-gold-l); }
.search-form button svg { width: 18px; fill: #fff; }
.hero__search h3 {
    color: rgba(255,255,255,.6); font-size: 0.75rem; font-weight: 700; 
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 0.85rem;
}
.search-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-tag {
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
    padding: .35rem .75rem; border-radius: 4px; font-size: .8rem;
    transition: background .2s, color .2s; cursor: pointer; text-decoration: none;
}
.search-tag:hover { background: var(--tml-gold); color: #fff; }


/* ── MARKETS HEADER ── */
.markets-intro { background: var(--tml-light); padding: 4rem 0 2rem; }
.markets-intro__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--tml-navy2);
    margin-bottom: 1.25rem;
}
.section-eyebrow a { color: var(--tml-navy); border-bottom: 2px solid var(--tml-gold); padding-bottom: 1px; }
.section-eyebrow a:hover { color: var(--tml-gold); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--tml-navy); max-width: 800px; }

/* ── MARKET CARDS GRID ── */
.markets-grid-section { background: var(--tml-light); padding: 1.5rem 0 4rem; }
.markets-grid-section__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.markets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.market-card {
    position: relative; border-radius: 4px; overflow: hidden;
    aspect-ratio: 3/2; cursor: pointer;
    background: var(--tml-navy);
}
.market-card__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .4s;
}
.market-card:hover .market-card__bg { transform: scale(1.05); }
.market-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,37,69,.85) 0%, rgba(11,37,69,.2) 60%, transparent 100%);
}
.market-card__content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem 1.25rem;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.market-card__title { color: #fff; font-size: .9rem; font-weight: 700; }
.market-card__arrow { color: var(--tml-gold); font-size: 1rem; }

/* Specific market card background images */
.mc--oilgas .market-card__bg { background-image: url('/images/market1.jpg'); }
.mc--carbon .market-card__bg { background-image: url('/images/market2.jpg'); }
.mc--hydrogen .market-card__bg { background-image: url('/images/market3.jpg'); }
.mc--power .market-card__bg { background-image: url('/images/market4.jpg'); }
.mc--renewables .market-card__bg { background-image: url('/images/market5.jpg'); }
.mc--chemicals .market-card__bg { background-image: url('/images/market6.jpg'); }
.mc--lifesci .market-card__bg { background-image: url('/images/market7.jpg'); }
.mc--mining .market-card__bg { background-image: url('/images/market8.jpg'); }

/* ── CORE EXPERTISE ── */
.expertise-section { padding: 5rem 0; background: #fff; }
.expertise-section__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.expertise-card {
    border-radius: 4px; overflow: hidden;
    display: flex; flex-direction: column; background: var(--tml-light);
    box-shadow: 0 4px 16px rgba(11,37,69,.06); transition: transform .3s, box-shadow .3s;
}
.expertise-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(11,37,69,.12); }
.expertise-card__img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-bottom: 3px solid var(--tml-gold);
}
.expertise-card__content { padding: 2rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.expertise-card__num {
    font-size: 0.8rem; font-weight: 800; color: var(--tml-gold);
    letter-spacing: 0.15em; margin-bottom: 0.75rem; 
}
.expertise-card__title {
    font-size: 1.15rem; font-weight: 800; color: var(--tml-navy);
    line-height: 1.35; margin-bottom: 1rem;
}
.expertise-card__desc {
    font-size: 0.95rem; color: #555; line-height: 1.7; flex: 1;
}

/* ── TECHNICAL SOLUTIONS ── */
.tech-solutions-section { padding: 6rem 0; background: var(--tml-light); }
.tech-solutions-section__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.tech-solutions__header { max-width: 900px; margin: 0 auto 4rem; text-align: center; }
.tech-solutions__intro { font-size: 1.05rem; color: #555; line-height: 1.7; margin-top: 1.25rem; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.tech-card {
    border-radius: 4px; overflow: hidden; background: #fff;
    box-shadow: 0 4px 16px rgba(11,37,69,.06);
    display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(11,37,69,.12); }
.tech-card__img-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.tech-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tech-card:hover .tech-card__img { transform: scale(1.05); }
.tech-card__overlay-gradient {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(11,37,69,.5) 0%, transparent 50%);
}
.tech-card__content { padding: 2rem 1.75rem; flex: 1; display: flex; flex-direction: column; background: #fff; border-bottom: 3px solid var(--tml-gold); }
.tech-card__title { font-size: 1.2rem; font-weight: 800; color: var(--tml-navy); line-height: 1.35; margin-bottom: 0.85rem; }
.tech-card__desc { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* ── CEO SECTION ── */
.ceo-section { padding: 6rem 0; background: #fff; }
.ceo-section__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.ceo-section__img-wrapper { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 12px 40px rgba(11,37,69,.12); }
.ceo-section__img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4/5; }
.ceo-section__content { display: flex; flex-direction: column; }
.ceo-section__eyebrow { font-size: .8rem; font-weight: 800; color: var(--tml-gold); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem; }
.ceo-section__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--tml-navy); line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.ceo-section__desc { font-size: 1.05rem; color: #555; line-height: 1.8; margin-bottom: 2rem; }
.ceo-section__list { list-style: none; margin-bottom: 2.5rem; }
.ceo-section__list li { position: relative; padding-left: 1.75rem; margin-bottom: .85rem; font-size: .98rem; color: #444; line-height: 1.6; font-weight: 500; }
.ceo-section__list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--tml-gold); font-weight: 800; font-size: 1.1rem; line-height: inherit; }
.ceo-section__btn { display: inline-flex; align-items: center; gap: .75rem; background: var(--tml-navy); color: #fff; padding: 1rem 2rem; border-radius: 2px; font-weight: 700; font-size: .95rem; letter-spacing: .04em; align-self: flex-start; text-transform: uppercase; transition: background .2s, transform .2s, box-shadow .2s; }
.ceo-section__btn:hover { background: var(--tml-navy2); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(11,37,69,.15); }

/* ── CASE STUDIES ── */
.case-studies-header { background: var(--tml-navy); padding: 4rem 0 2rem; }
.case-studies-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.case-studies-header .section-eyebrow a { color: rgba(255,255,255,.7); border-color: var(--tml-gold); }
.case-studies-header .section-eyebrow a:hover { color: var(--tml-gold); }
.case-studies-header .section-title { color: #fff; }

.case-studies-grid-section {
    background: linear-gradient(to bottom, var(--tml-navy) 0%, var(--tml-light) 50%);
    padding: 1.5rem 0 4rem;
}
.case-studies-grid-section__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.cs-card {
    border-radius: 4px; overflow: hidden; background: #fff;
    box-shadow: 0 4px 24px rgba(11,37,69,.12);
    display: flex; flex-direction: column; cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(11,37,69,.18); }
.cs-card__image {
    aspect-ratio: 16/9; background-size: cover; background-position: center;
    flex-shrink: 0;
}
.cs-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.cs-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tml-gold); margin-bottom: .75rem; }
.cs-card__title { font-size: 1rem; font-weight: 700; color: var(--tml-navy); line-height: 1.4; flex: 1; margin-bottom: 1rem; }
.cs-card__arrow { display: flex; align-items: center; color: var(--tml-navy2); font-weight: 600; font-size: .85rem; gap: .4rem; }
.cs-card__arrow svg { width: 16px; }

/* ── FEATURE BLOCKS ── */
.feature-block { background: #fff; padding: 5rem 0; }
.feature-block__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.feature-block__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 4px 32px rgba(11,37,69,.12);
    min-height: 420px;
}
.feature-block__grid.reverse { direction: rtl; }
.feature-block__grid.reverse > * { direction: ltr; }
.feature-block__image { background-size: cover; background-position: center; min-height: 340px; }
.feature-block__content { padding: 3.5rem 3rem; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.feature-block__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tml-gold); margin-bottom: 1rem; }
.feature-block__title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 800; color: var(--tml-navy); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1rem; }
.feature-block__desc { color: #555; line-height: 1.7; font-size: .95rem; margin-bottom: 1.75rem; }
.btn-navy {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--tml-navy); color: #fff;
    padding: .75rem 1.5rem; border-radius: 2px;
    font-weight: 700; font-size: .875rem; letter-spacing: .04em;
    align-self: flex-start; transition: background .2s;
}
.btn-navy:hover { background: var(--tml-navy2); }

/* digital img */
.digital-img { 
    background-image: linear-gradient(rgba(11,37,69,.4), rgba(11,37,69,.4)), url('/images/digital.jpg'); 
}
.careers-img { 
    background-image: linear-gradient(rgba(11,37,69,.4), rgba(11,37,69,.4)), url('/images/careers.jpg'); 
}

/* ── STATS BAR ── */
.stats-bar { background: var(--tml-navy); padding: 3.5rem 0; }
.stats-bar__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__number { font-size: 2.75rem; font-weight: 800; color: var(--tml-gold); line-height: 1; margin-bottom: .5rem; }
.stat__label { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.4; max-width: 140px; margin: 0 auto; }

/* ── HOMEPAGE RESPONSIVE ── */
@media (max-width: 1100px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; padding-top: 2rem; padding-bottom: 0; }
    .hero__search { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
    .markets-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-block__grid { grid-template-columns: 1fr; }
    .feature-block__grid.reverse { direction: ltr; } /* undo rtl for mobile stack */
}
@media (max-width: 768px) {
    .hero { min-height: auto; }
    .hero__title { font-size: 2.25rem; }
    .hero__content { padding-top: 5rem; padding-bottom: 2rem; }
    .expertise-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .cs-grid { grid-template-columns: 1fr; }
    .markets-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-block__content { padding: 2rem 1.5rem; }
    .ceo-section__inner { grid-template-columns: 1fr; gap: 2rem; }
    .stats-bar { padding: 2rem 0; }
    .stats-grid { gap: 1.5rem; }
    .stat__number { font-size: 2rem; }
}
@media (max-width: 480px) {
    .hero__btns { flex-direction: column; }
    .hero__cta { width: 100%; justify-content: center; }
    .markets-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
