:root {
    --bg: #0d1626;
    --ink: #1b2433;
    --card: rgba(27, 36, 51, 0.72);
    --card-solid: #1b2433;
    --border: #2a3446;
    --line: #3a4456;
    --text: #f5f7fa;
    --soft: #cfd5df;
    --muted: #a0a8b6;
    --dim: #8a93a3;
    /* Orange is the mark colour; text accents use the light tone for contrast on navy. */
    --brand: #e07a10;
    --brand-light: #ffa53d;
    --on-brand: #0d1626;
    --radius: 1rem;
    --max: 72rem;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-light);
    text-decoration: none;
}

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

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: var(--bg);
    border-radius: 0.5rem;
}

/* Header */
.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 40px;
}

.lang {
    display: flex;
    gap: 0.9rem;
    font-size: 0.875rem;
}

.lang a {
    color: var(--muted);
}

.lang a:hover {
    color: #fff;
}

.lang a[aria-current="page"] {
    color: var(--brand-light);
    font-weight: 600;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg) url("img/hero-poster.svg") center bottom / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 22, 38, 0.85), rgba(13, 22, 38, 0.55) 50%, var(--bg));
}

.hero-body {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 7rem;
}

.hero-mark {
    position: absolute;
    right: 4%;
    top: 3rem;
    width: min(36vw, 22rem);
    opacity: 0.1;
    pointer-events: none;
}

.eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-light);
}

.hero h1 {
    max-width: 48rem;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 700;
}

.hero .tagline {
    max-width: 46rem;
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--soft);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--brand);
    color: var(--on-brand);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: var(--brand-light);
    color: var(--on-brand);
}

.hint {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Sections */
main section {
    margin-bottom: 5rem;
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.flow {
    counter-reset: step;
}

.flow .card {
    border-color: rgba(224, 122, 16, 0.35);
    font-size: 0.9rem;
}

.flow .card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--brand-light);
}

.roles h3 {
    font-size: 1rem;
}

.roles p,
.platform .card {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.platform .card {
    margin-top: 0;
    color: var(--soft);
}

@media (min-width: 640px) {
    .cols-2,
    .cols-4,
    .cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Modules */
.modules {
    display: grid;
    gap: 3.5rem;
}

.module {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.module h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.module p {
    margin-top: 0.75rem;
    color: var(--muted);
}

.module figure {
    margin: 0;
}

.shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-solid);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    cursor: zoom-in;
    transition: border-color 0.15s, transform 0.15s;
}

.shot:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

@media (min-width: 900px) {
    .module {
        grid-template-columns: 2fr 3fr;
        gap: 3rem;
    }

    .module:nth-child(even) {
        grid-template-columns: 3fr 2fr;
    }

    .module:nth-child(even) > div {
        order: 2;
    }
}

/* Footer */
.site-footer {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.site-footer .sep {
    margin: 0 0.5rem;
    color: var(--line);
}

.site-footer strong {
    font-weight: 500;
    color: var(--soft);
}

/* Dialogs */
dialog {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}

dialog::backdrop {
    background: rgba(13, 22, 38, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.panel {
    width: min(28rem, calc(100vw - 2rem));
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(27, 36, 51, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.panel h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.panel p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--soft);
}

.owner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.owner img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(224, 122, 16, 0.7);
    border-radius: 50%;
    object-fit: cover;
}

.owner p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.owner a {
    overflow-wrap: anywhere;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-ghost {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand-light);
}

.lightbox {
    max-width: 96vw;
    max-height: 94vh;
}

.lightbox img {
    width: min(96vw, 86vh * 16 / 9);
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-solid);
    cursor: zoom-out;
}

.lightbox p {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .shot,
    .btn {
        transition: none;
    }
}
