:root {
    color-scheme: dark;
    --ink: #071015;
    --panel: rgba(10, 22, 28, 0.84);
    --panel-solid: #0b171d;
    --text: #e9ece8;
    --muted: #a9b2ad;
    --sand: #c39a67;
    --sand-light: #e7c99d;
    --radiation: #b9e545;
    --line: rgba(210, 189, 151, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 18%, rgba(185, 229, 69, 0.08), transparent 19rem),
        linear-gradient(145deg, #071015 0%, #10191b 55%, #211a14 100%);
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.65;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    opacity: 0.16;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 100% 4px;
    pointer-events: none;
}

.dust-canvas {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 13, 17, 0.88);
    backdrop-filter: blur(16px);
}

nav {
    width: min(1180px, calc(100% - 2rem));
    min-height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-weight: 650;
}

.logo small {
    display: block;
    color: var(--sand);
    font-size: .58rem;
    letter-spacing: .18em;
}

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--sand-light); }

.menu-button {
    display: none;
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
    padding: .55rem .8rem;
}

.hero {
    position: relative;
    height: clamp(34rem, 60vh, 40rem);
    display: grid;
    align-items: start;
    justify-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(3,10,14,.78), rgba(3,10,14,.26) 62%, rgba(19,18,13,.40)),
        url("assets/images/normion-hero-wide.png") center/cover;
}

.hero::after {
    position: absolute;
    width: 32rem;
    height: 32rem;
    right: -11rem;
    top: -13rem;
    content: "";
    border: 1px solid rgba(185,229,69,.32);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(185,229,69,.14), inset 0 0 80px rgba(185,229,69,.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 2rem));
    padding: 5rem 0 3rem;
}

.eyebrow {
    color: var(--radiation);
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .74rem;
}

h1, h2, h3 { line-height: 1.14; font-weight: 560; }
h1 { max-width: 850px; margin: .8rem 0 1.2rem; font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }

.hero-copy { max-width: 670px; color: #d6d9d5; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .58rem .9rem;
    border: 1px solid rgba(231, 201, 157, .35);
    border-radius: 7px;
    color: var(--sand-light);
    background: rgba(231, 201, 157, .09);
    text-decoration: none;
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button::after { content: "→"; margin-left: .5rem; opacity: .65; }
.button:hover, .button:focus-visible { border-color: rgba(231, 201, 157, .65); color: var(--text); background: rgba(231, 201, 157, .16); }
.button.secondary { border-color: transparent; background: transparent; color: var(--muted); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: transparent; color: var(--sand-light); background: transparent; }
.sound-button {
    width: 2rem;
    height: 2rem;
    padding: .2rem;
    border: 0;
    color: var(--muted);
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.sound-icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sound-icon .wave { display: none; }
.sound-icon .mute-mark { display: block; }
.sound-button.is-playing { color: var(--radiation); }
.sound-button.is-playing .wave { display: block; }
.sound-button.is-playing .mute-mark { display: none; }

main { width: min(1180px, calc(100% - 2rem)); margin: auto; }
.section { padding: 6rem 0; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading p, .card p, .prose p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(14,31,37,.9), rgba(16,20,19,.88));
}
.card::before { display: block; width: 2.2rem; height: 2px; margin-bottom: 2.8rem; content: ""; background: var(--radiation); box-shadow: 0 0 18px var(--radiation); }
.card img { width: calc(100% + 3rem); height: 190px; margin: -1.5rem -1.5rem 1.25rem; object-fit: cover; filter: saturate(.66) contrast(1.08); }
.card img + h3 { margin-top: 0; }
.card-link { display: inline-flex; margin-top: 1.2rem; color: var(--sand-light); font-size: .8rem; font-weight: 650; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.card-link::after { margin-left: .55rem; content: "→"; }
.card-link:hover { color: var(--radiation); }

.signal {
    border-block: 1px solid var(--line);
}

.prose { max-width: 790px; margin: auto; }
.prose h2 { margin-top: 4rem; color: var(--sand-light); }
.prose h2[id] { scroll-margin-top: 6rem; }
.story-prose h2::before { display: block; width: 2.2rem; height: 2px; margin-bottom: 1rem; content: ""; background: var(--radiation); box-shadow: 0 0 14px rgba(185, 229, 69, .32); }
.story-prose h2:first-child { margin-top: 0; }
.story-prose p { margin: 0 0 1.25rem; }
.story-lead { color: var(--text) !important; font-size: 1.16rem; }
.signal-text { color: var(--radiation); font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.contact-panel { padding: 2rem; border: 1px solid var(--line); background: var(--panel); }
.contact-panel a { color: var(--sand-light); }
.contact-panel .button { color: var(--sand-light); }

footer { padding: 2rem 1rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .86rem; }

@media (max-width: 800px) {
    .menu-button { display: block; }
    .nav-links { display: none; position: absolute; inset: 70px 0 auto; padding: 1.5rem; flex-direction: column; background: var(--panel-solid); }
    .nav-links.open { display: flex; }
    .grid, .contact-layout { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .dust-canvas { display: none; }
}

/* Keep service links at the bottom of each card. */
.service-card { display: flex; flex-direction: column; }
.service-card::before, .service-card img { flex-shrink: 0; }
.service-card .service-link {
    margin: auto 0 0;
    padding-top: 1.2rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 400;
    text-decoration: none;
}
.service-card .service-link::after { margin-left: .45rem; content: "→"; }
.service-card .service-link:hover, .service-card .service-link:focus-visible { color: var(--sand-light); }

.service-detail-list { display: grid; gap: 1rem; }
.service-detail {
    scroll-margin-top: 6rem;
    padding: 2rem;
    border: 1px solid var(--line);
    background: var(--panel);
}
.service-detail h2 { margin: 0 0 1rem; color: var(--sand-light); }
.service-detail p { max-width: 760px; color: var(--muted); }
.service-detail .service-status { margin-bottom: 0; color: var(--radiation); font-size: .85rem; }
