/* SJDK B.V. - night shift: navy from the dusk in the fleet photo,
   livery white / grey-blue / logo-blue pinstripe, amber marker lights.
   Kept deliberately quiet: small type, thin lines, little motion. */
:root {
    --night: #0b1a2e;
    --night-2: #10233b;
    --night-3: #162d4a;
    --line: rgba(151, 171, 191, .16);
    --line-2: rgba(151, 171, 191, .28);
    --cab: #f3f6f9;
    --panel: #97abbf;
    --sky: #52a2ce;
    --sky-hi: #7cc0e6;
    --marker: #f3a531;
    --text: #d3dee9;
    --muted: #8a9db1;

    --ets2: #52a2ce;
    --ats: #e0814a;
    --fs25: #9cc04b;
    --hunter: #c9a36a;

    --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
    --sans: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
    --cond: "Barlow Condensed", "Arial Narrow", sans-serif;

    --wrap: 68rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font: 400 .9375rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-hi); }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--slab); font-weight: 600; line-height: 1.15; margin: 0; color: #fff; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -0.005em; }
h3 { font-size: 1.0625rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marker); color: var(--night); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 600 .9375rem/1 var(--sans);
    text-decoration: none; padding: .65rem 1rem; border-radius: var(--radius);
    border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sky { background: var(--sky); color: var(--night); }
.btn--sky:hover { background: var(--sky-hi); }
.btn--line { border-color: var(--line-2); color: #fff; }
.btn--line:hover { border-color: rgba(255,255,255,.55); }
.btn--small { padding: .45rem .8rem; font-size: .875rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 26, 46, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .6rem; }
.topbar__logo img { height: 30px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 1.5rem; }
.topbar__nav a:not(.btn) { color: var(--muted); text-decoration: none; font: 500 .9375rem/1 var(--sans); }
.topbar__nav a:not(.btn):hover { color: #fff; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(11,26,46,.96) 0%, rgba(11,26,46,.85) 40%, rgba(11,26,46,.35) 75%),
        linear-gradient(0deg, var(--night) 0%, rgba(11,26,46,0) 35%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; padding-block: clamp(5rem, 12vw, 8rem) 3rem; }
.hero__title { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
.hero__title .word--sky { color: var(--sky); display: block; }
.hero__lead { max-width: 34rem; margin-top: 1rem; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

/* Small status panel */
.hud { display: grid; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(11,26,46,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud__stats { display: grid; grid-template-columns: 1fr 1fr; }
.hud__stat { display: flex; flex-direction: column; padding: .8rem 1rem; }
.hud__stat + .hud__stat { border-left: 1px solid var(--line); }
.hud__num { font: 600 1.5rem/1 var(--cond); color: #fff; font-variant-numeric: tabular-nums; }
.hud__label { color: var(--muted); font-size: .8125rem; margin-top: .25rem; }
.hud__next { display: grid; gap: .15rem; text-decoration: none; color: var(--text); padding: .8rem 1rem; transition: background-color .15s; }
.hud__stats + .hud__next { border-top: 1px solid var(--line); }
.hud__next:hover { background: rgba(255,255,255,.03); }
.hud__kicker { color: var(--marker); font-size: .8125rem; }
.hud__event { font: 600 1rem/1.3 var(--slab); color: #fff; }
.hud__count { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .75rem 3rem; align-items: baseline; margin-bottom: 1.75rem; }
.head p { color: var(--muted); max-width: 34rem; }

section.games, section.agenda, section.fleet, section.join { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Games: tabs + a small "screen" that changes per game */
.games__ui { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem; }
.games__tabs { display: grid; gap: 2px; align-content: start; }
.gtab {
    --c: var(--sky);
    display: grid; gap: .1rem; text-align: left; padding: .65rem .85rem;
    background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    transition: background-color .15s, border-color .15s;
}
.gtab[data-game="ats"] { --c: var(--ats); }
.gtab[data-game="fs25"] { --c: var(--fs25); }
.gtab[data-game="hunter"] { --c: var(--hunter); }
.gtab:hover { background: var(--night-2); }
.gtab[aria-selected="true"] { border-left-color: var(--c); background: var(--night-2); }
.gtab__name { font: 600 .9375rem/1.3 var(--sans); color: #fff; }
.gtab__verb { color: var(--muted); font-size: .8125rem; }

.screen { position: relative; min-height: 20rem; border-radius: var(--radius); overflow: hidden; background: #0d1522; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; filter: saturate(.75) brightness(.85); }
.screen[data-active="ets2"] .scene--eu,
.screen[data-active="ats"] .scene--us,
.screen[data-active="fs25"] .scene--field,
.screen[data-active="hunter"] .scene--hunt { opacity: 1; }

.screen__panel {
    position: relative; margin: 1rem; padding: 1rem 1.15rem; max-width: 24rem;
    background: rgba(11,26,46,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius); border: 1px solid var(--line);
}
.screen__panel h3 { font-size: 1.0625rem; }
.screen__panel p { margin-top: .4rem; font-size: .875rem; }
.screen__next { color: var(--muted); }
.screen__next strong { color: #fff; font-weight: 600; }

/* Road scene (ETS2 / ATS): perspective road, static */
.scene--road { display: grid; grid-template-rows: 55% 45%; }
.scene__sky { position: relative; overflow: hidden; background: linear-gradient(#1c3557, #4f7aa3 70%, #a9c4d9); }
.scene--us .scene__sky { background: linear-gradient(#2a1d3d, #b0544a 55%, #f0a35c); }
.scene__sun { position: absolute; left: 64%; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: #ffd08a; box-shadow: 0 0 50px 10px rgba(255,170,90,.3); }
.scene__mesa { position: absolute; inset: auto 0 0 0; height: 46%; background: #3a2230; clip-path: polygon(0 100%, 0 60%, 8% 60%, 12% 30%, 26% 30%, 30% 62%, 48% 64%, 52% 40%, 60% 40%, 63% 66%, 80% 66%, 84% 20%, 94% 20%, 97% 58%, 100% 58%, 100% 100%); }
.scene__ground { position: relative; background: #31402e; overflow: hidden; }
.scene--us .scene__ground { background: #8a5a3a; }
/* 2D road from a vanishing point at 70% to the bottom edge */
.scene__lines { position: absolute; inset: 0; background: #e9edf1; clip-path: polygon(69.3% 0, 70.7% 0, 104% 100%, 36% 100%); }
.scene--us .scene__lines { background: #f2c94c; }
.scene__lines::before { content: ""; position: absolute; inset: 0; background: #2b3038; clip-path: polygon(69.5% 0, 70.5% 0, 100% 100%, 40% 100%); }
.scene__lines::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(180deg, #e9edf1 0 26px, transparent 26px 52px);
    clip-path: polygon(69.9% 0, 70.1% 0, 71.3% 100%, 68.7% 100%);
}

/* Field scene (FS25): top-down crop rows, half harvested */
.scene--field { background: #6f8f2e; }
.field__crop, .field__cut { position: absolute; inset: 0; }
.field__crop { background: repeating-linear-gradient(90deg, #c9a640 0 10px, #b08f2f 10px 16px); }
.field__cut { background: repeating-linear-gradient(90deg, #a39463 0 10px, #8d7f52 10px 16px); clip-path: inset(0 0 58% 0); }
.field__combine {
    position: absolute; left: 0; right: 0; height: 18px; top: 42%; margin-top: -9px;
    background:
        linear-gradient(#2c8a3c, #2c8a3c) 82% 0 / 44px 18px no-repeat,
        linear-gradient(#e7d27a, #e7d27a) 0 7px / 100% 4px no-repeat;
}

/* Hunt scene: topo map, a scope that follows the pointer */
.scene--hunt { background: radial-gradient(circle at 40% 45%, #2f4a32, #172618 75%); color: rgba(201,163,106,.45); }
.hunt__topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hunt__scope {
    --sx: 62%; --sy: 38%;
    position: absolute; left: var(--sx); top: var(--sy); width: 96px; height: 96px; margin: -48px 0 0 -48px;
    border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.2);
    transition: left .25s var(--ease), top .25s var(--ease);
}
.hunt__scope::before, .hunt__scope::after { content: ""; position: absolute; background: rgba(255,255,255,.6); }
.hunt__scope::before { left: 50%; top: 6px; bottom: 6px; width: 1px; }
.hunt__scope::after { top: 50%; left: 6px; right: 6px; height: 1px; }
.hunt__scope span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #e04a3a; }

/* Agenda */
section.agenda { background: var(--night-2); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.chip {
    --c: var(--cab);
    padding: .35rem .7rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent;
    font: 500 .8125rem/1 var(--sans); color: var(--muted);
    transition: background-color .15s, border-color .15s, color .15s;
}
.chip--ets2 { --c: var(--ets2); } .chip--ats { --c: var(--ats); } .chip--fs25 { --c: var(--fs25); } .chip--hunter { --c: var(--hunter); }
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { border-color: var(--c); color: #fff; background: rgba(255,255,255,.04); }

.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job {
    --c: var(--ets2);
    display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center;
    padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.job--ats { --c: var(--ats); } .job--fs25 { --c: var(--fs25); } .job--hunter { --c: var(--hunter); }
.job.is-hidden { display: none; }
.job__game { justify-self: start; font: 600 .75rem/1 var(--cond); letter-spacing: .05em; color: var(--c); padding: .25rem .4rem; border: 1px solid currentColor; border-radius: 2px; }
.job__title { font: 600 .9375rem/1.3 var(--sans); color: #fff; }
.job__detail { color: var(--muted); font-size: .875rem; margin-top: .1rem; }
.job__meta { display: grid; grid-template-columns: 6.5rem 10rem 8rem; gap: 1.25rem; margin: 0; }
.job__meta dt { font-size: .75rem; color: var(--muted); }
.job__meta dd { margin: 0; font-size: .875rem; color: var(--text); font-variant-numeric: tabular-nums; }
.job--next .job__count { color: var(--marker); }
.jobs__empty { padding: 1.25rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Fleet photo with hotspots */
.photo { position: relative; margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); }
.spot { position: absolute; left: var(--x); top: var(--y); }
.spot__btn {
    position: relative; display: block; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
    background: rgba(11,26,46,.7); border: 1.5px solid #fff;
    transition: background-color .15s;
}
.spot__btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--marker); }
.spot__btn:hover, .spot__btn[aria-expanded="true"] { background: var(--night); }
.spot__card {
    position: absolute; z-index: 2; left: 0; top: 18px; transform: translateX(-50%); width: 13rem;
    display: grid; gap: .2rem; padding: .7rem .85rem; border-radius: var(--radius);
    background: var(--cab); color: #3a4a5e; font-size: .8125rem; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.spot__card[hidden] { display: none; }
.spot__card strong { font: 600 .875rem/1.3 var(--sans); color: var(--night); }
.spot--left .spot__card { transform: none; left: -14px; }
.spot--right .spot__card { transform: none; left: auto; right: -14px; }

/* Live */
section.live { padding-block: clamp(3rem, 6vw, 4.5rem); background: var(--night-2); border-block: 1px solid var(--line); }
.live__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 3rem; align-items: center; }
.live__copy p { margin-top: .75rem; color: var(--muted); max-width: 28rem; }
.live__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.player { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0e0b1c url("../img/vloot-1000.jpg") center / cover; position: relative; border: 1px solid var(--line); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__start {
    position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: .4rem;
    background: rgba(11,18,32,.78); border: 0; color: #fff; transition: background-color .15s;
}
.player__start:hover { background: rgba(11,18,32,.68); }
.player__play { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fff; position: relative; }
.player__play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.player__label { font: 600 .9375rem/1.2 var(--sans); }
.player__start small { color: var(--muted); font-size: .8125rem; }

/* Join: three numbered steps */
.route { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: wp; }
.route li { counter-increment: wp; padding-top: .85rem; border-top: 1px solid var(--line-2); }
.route li::before { content: "0" counter(wp); display: block; margin-bottom: .4rem; color: var(--sky); font: 600 .8125rem/1 var(--cond); letter-spacing: .05em; }
.route p { margin-top: .35rem; color: var(--muted); font-size: .875rem; }
.join__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.join__cta small { color: var(--muted); font-size: .8125rem; }

/* Footer */
.footer { background: #07111f; color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: .5rem 2rem; padding-block: 1.5rem 1.75rem; align-items: center; }
.footer__name { font: 600 .9375rem/1.2 var(--slab); color: #fff; }
.footer__name span { font: 400 .8125rem/1 var(--sans); color: var(--muted); margin-left: .4rem; }
.footer__social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.25rem; }
.footer__social a { color: var(--text); text-decoration: none; }
.footer__social a:hover { color: #fff; }
.footer__note { grid-column: 1 / -1; padding-top: .75rem; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 1000px) {
    .hero__grid, .head, .games__ui, .live__grid { grid-template-columns: minmax(0, 1fr); }
    .games__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job { grid-template-columns: 3.5rem minmax(0, 1fr); }
    .job__meta { grid-column: 2; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
}
@media (max-width: 700px) {
    .topbar__nav a:not(.btn) { display: none; }
    .topbar__logo img { height: 26px; }
    .hero__grid { padding-block: 9rem 2rem; }
    .hero::before { background: linear-gradient(0deg, var(--night) 45%, rgba(11,26,46,.6) 75%, rgba(11,26,46,.25)); }
    .hero__media img { height: 55%; object-position: 30% 50%; }
    .games__tabs { grid-template-columns: minmax(0, 1fr); }
    .screen { min-height: 18rem; }
    .job { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
    .job__meta { grid-column: 1; grid-template-columns: repeat(2, minmax(0, auto)); gap: .5rem 1.25rem; }
    .route { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .spot__card { width: 11rem; }
    .footer__inner { grid-template-columns: minmax(0, 1fr); }
    .footer__social { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
