:root {
    color-scheme: dark;
    --bg: #030303;
    --panel: #0b0b0d;
    --panel-soft: #121216;
    --text: #f7f7f8;
    --muted: #a7a7ad;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #d8f6ff;
    --accent-strong: #6ee7ff;
    --emerald: #58f5bd;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    backdrop-filter: blur(22px);
    background: rgba(3, 3, 3, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    height: 72px;
    justify-content: space-between;
    left: 0;
    padding: 0 clamp(20px, 4vw, 56px);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, #f8f8f8, #8a8a92);
    border-radius: 50%;
    color: #050505;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.custom-logo {
    display: block;
    height: auto;
    max-height: 42px;
    width: auto;
}

.primary-nav,
.menu {
    align-items: center;
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 600;
    transition: color 180ms ease;
}

.primary-nav a:hover {
    color: var(--text);
}

.nav-cta,
.button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 13px 22px;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    background: transparent;
    border: 0;
    display: none;
    height: 38px;
    padding: 8px;
    width: 38px;
}

.nav-toggle span {
    background: #fff;
    display: block;
    height: 2px;
    margin: 7px 0;
    width: 22px;
}

.hero {
    min-height: 100vh;
    overflow: hidden;
    padding: 140px clamp(20px, 5vw, 72px) 32px;
    position: relative;
}

.hero-media,
.hero-overlay {
    inset: 0;
    position: absolute;
}

.hero-media {
    background-image: url("../images/mimrd-hero.png");
    background-position: center right;
    background-size: cover;
    transform: scale(1.02);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.16) 100%),
        linear-gradient(0deg, #030303 0%, rgba(3, 3, 3, 0) 32%);
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(48px, 7vw, 96px);
    letter-spacing: 0;
    line-height: 0.96;
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(34px, 4vw, 62px);
    letter-spacing: 0;
    line-height: 1.02;
    margin-bottom: 22px;
}

h3 {
    font-size: 24px;
    line-height: 1.16;
    margin-bottom: 14px;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2vw, 22px);
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button.primary {
    background: #f5f5f7;
    color: #050505;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hero-strip {
    align-items: center;
    border-top: 1px solid var(--line);
    bottom: 0;
    color: rgba(255, 255, 255, 0.74);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 12px;
    grid-template-columns: repeat(5, 1fr);
    left: clamp(20px, 5vw, 72px);
    min-height: 76px;
    position: absolute;
    right: clamp(20px, 5vw, 72px);
    text-transform: uppercase;
    z-index: 2;
}

.content-shell {
    margin: 0 auto;
    max-width: var(--max);
    padding: 110px 24px;
}

.intro-band {
    text-align: center;
}

.intro-band p:last-child {
    margin: 0 auto;
    max-width: 760px;
}

.services-section {
    padding-top: 84px;
}

.section-head {
    margin-bottom: 34px;
    max-width: 820px;
}

.service-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 0;
}

.service-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
        #08080a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    min-height: 430px;
    overflow: hidden;
    padding: 0 28px 30px;
    position: relative;
}

.service-card::after {
    background: linear-gradient(180deg, transparent, rgba(110, 231, 255, 0.07));
    content: "";
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    position: absolute;
}

.service-card h3,
.service-card p,
.service-card span {
    position: relative;
    z-index: 1;
}

.service-visual {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(8, 8, 10, 0.42)),
        url("../images/mimrd-hero.png");
    background-position: right bottom;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 142px;
    margin: 0 -28px 24px;
}

.visual-education {
    background-position: right bottom;
}

.visual-cutting {
    background-position: 88% 82%;
}

.visual-certification {
    background-position: 82% 82%;
}

.visual-3d {
    background-position: right center;
}

.visual-colour {
    background-position: 78% 82%;
}

.visual-register {
    background-position: center bottom;
}

.visual-microscope {
    background-position: right top;
}

.visual-mining {
    background-position: left bottom;
}

.service-card span {
    color: var(--emerald);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 58px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.64;
}

.split-band {
    align-items: start;
    background: linear-gradient(180deg, #08080a, #030303);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    padding: 120px max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.standards-list {
    border-top: 1px solid var(--line);
}

.standards-list div {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: 120px 1fr;
    padding: 22px 0;
}

.standards-list strong {
    color: #fff;
}

.standards-list span {
    color: var(--muted);
    line-height: 1.6;
}

.proof-band {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 70px;
    padding-top: 70px;
}

.proof-band div {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.proof-band strong,
.proof-band span {
    display: block;
}

.proof-band span {
    color: var(--muted);
    margin-top: 10px;
}

.contact-band {
    background:
        radial-gradient(circle at 70% 20%, rgba(110, 231, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #101014, #030303);
    text-align: center;
}

.contact-inner {
    max-width: 820px;
}

.page-content {
    padding-top: 140px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max);
    padding: 34px 24px;
}

.footer-inner p {
    font-size: 14px;
    margin: 4px 0 0;
}

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

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        background: rgba(5, 5, 6, 0.96);
        border-bottom: 1px solid var(--line);
        display: none;
        left: 0;
        padding: 18px 24px 24px;
        position: fixed;
        right: 0;
        top: 72px;
    }

    .primary-nav.is-open,
    .primary-nav.is-open .menu,
    .menu {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .hero {
        min-height: 92vh;
        padding-top: 118px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.70) 100%),
            linear-gradient(0deg, #030303 0%, rgba(3, 3, 3, 0) 40%);
    }

    .split-band,
    .proof-band {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-height: 390px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 0 18px;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-strip {
        grid-template-columns: repeat(2, 1fr);
        left: 18px;
        min-height: auto;
        padding: 16px 0;
        position: relative;
        right: auto;
        top: 32px;
    }

    h1 {
        font-size: 43px;
    }

    .standards-list div {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}
