/* Javelin Studio X-Plane projects. Dark by default (like the apps), light when the system asks for it. */
:root {
  --bg: #0b1017;
  --bg-2: #101722;
  --panel: #141c28;
  --panel-2: #1a2432;
  --line: #243041;
  --text: #e7ecf3;
  --muted: #93a0b2;
  --cm: #19b8ec;      /* Career Mode cyan */
  --we: #1cc28a;      /* World Editor 3D green */
  --xsh: #8b64f7;     /* Scripting House violet */
  --accent: var(--cm);
  --ok: #3ccf8e;
  --wait: #f2b84b;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 36px rgba(0, 0, 0, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-2: #eef2f7;
    --panel: #ffffff;
    --panel-2: #f2f5f9;
    --line: #dae1ea;
    --text: #121a26;
    --muted: #586579;
    --cm: #0b8fc0;
    --we: #0e946a;
    --xsh: #6a45e0;
    --ok: #17915c;
    --wait: #a86d00;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .07);
    color-scheme: light;
  }
}
.page-we3d { --accent: var(--we); }
.page-xsh { --accent: var(--xsh); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .05em .4em; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.soon { color: var(--muted); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.brand-tiles { display: flex; gap: 3px; }
.brand-tiles img { width: 22px; height: 22px; }
.brand-sub { color: var(--muted); font-weight: 500; margin-left: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.lang { color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
  font-size: .9rem; }
.lang:hover { background: var(--panel-2); }
@media (max-width: 900px) {
  .top-row { padding-top: 8px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--xsh) 14%, transparent), transparent 70%),
    var(--bg-2); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 40em; }
.hero-logo { justify-self: center; width: min(240px, 60vw); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.badges li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px;
  font-size: .85rem; color: var(--muted); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn:hover { background: var(--panel-2); }
.btn-primary { background: var(--accent); border-color: transparent; color: #04121b; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600;
  border: 1px solid currentColor; }
.chip-ok { color: var(--ok); }
.chip-wait { color: var(--wait); }
.chip-dev { color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.alt { background: var(--bg-2); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); min-width: 0; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card li { margin: .25em 0; }

/* project tiles on the home page */
.project { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text);
  transition: transform .18s ease, border-color .18s ease; }
.project:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--p) 55%, var(--line)); }
.project img { width: 72px; height: 72px; }
.project h3::before { display: none; }
.project h3 { margin: 4px 0 0; font-size: 1.3rem; }
.project p { color: var(--muted); margin: 0; }
.project .more { margin-top: auto; color: var(--p); font-weight: 600; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p-cm { --p: var(--cm); }
.p-we { --p: var(--we); }
.p-xsh { --p: var(--xsh); }

/* how they fit together */
.flow { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flow .card { position: relative; border-top: 3px solid var(--p); }
.flow .card h3::before { background: var(--p); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #04121b;
  background: var(--accent); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.req th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); width: 38%; }
.req { min-width: 0; }

/* figures */
figure { margin: 0; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #1b1d22; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* split blocks */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.1fr .9fr; } }

/* callouts */
.note { border-left: 3px solid var(--wait); background: var(--panel); border-radius: 0 12px 12px 0; padding: 14px 18px;
  color: var(--text); }
.note p:last-child { margin: 0; }

/* release block */
.release { display: grid; gap: 10px; justify-items: start; }
.release p { color: var(--muted); margin: 0; }
.release-files { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* download page */
.dl { display: grid; gap: 16px; }
.dl-item { display: grid; gap: 16px; grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
.dl-item img { width: 56px; height: 56px; }
.dl-item h3 { margin-top: 4px; }
.dl-item h3::before { display: none; }

/* roadmap */
.road { list-style: none; padding: 0; margin: 0; }
.road li { position: relative; padding: 0 0 14px 22px; }
.road li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--p, var(--accent)); }
.road li.done::before { background: var(--p, var(--accent)); }
.road li::after { content: ""; position: absolute; left: 5px; top: 1.4em; bottom: 0; width: 2px; background: var(--line); }
.road li:last-child::after { display: none; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 24px; margin-top: 0; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid a, .foot-grid .soon { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-brand { font-weight: 700; margin-bottom: 4px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot-legal p { margin: 0 0 6px; }

.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.center { text-align: center; }
.mt { margin-top: 28px; }

/* home: the three tiles */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 420px; justify-self: center; width: 100%; }
.trio img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.trio img:nth-child(2) { transform: translateY(-18px); }
@media (max-width: 899px) { .trio { max-width: 300px; } }

.hero-small { padding: 56px 0 40px; }
.hero-small .lead { margin-bottom: 0; }

ul.list { padding-left: 1.2em; }
ul.list li { margin: .35em 0; }

.road li.now::before { background: color-mix(in srgb, var(--p, var(--accent)) 45%, transparent); }

pre.code { margin: 0; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line);
  background: #0d1219; color: #dfe6ef; font: 13.5px/1.6 var(--mono); box-shadow: var(--shadow); }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
pre.code .c { color: #7d8a9c; }
pre.code .k { color: #c6a2ff; }
pre.code .s { color: #8fdcb0; }

/* light mode: darker accents carry white text */
@media (prefers-color-scheme: light) {
  :root { --cm: #0877a3; --we: #0b7a57; --xsh: #5b36d1; }
  .btn-primary, .steps li::before { color: #fff; }
  .hero-logo, .trio img { filter: drop-shadow(0 16px 26px rgba(16, 24, 40, .18)); }
}

/* grid children may shrink below their content (code blocks, tables scroll inside instead) */
.split > *, .hero-grid > *, .grid > * { min-width: 0; }
@media (max-width: 899px) { .hero-logo { width: 120px; justify-self: start; order: -1; } }

.p-cm h3::before, .p-we h3::before, .p-xsh h3::before { background: var(--p); }

/* click-to-play video */
.video-section { padding-top: 48px; }
.video { max-width: 960px; margin: 0 auto; }
.video-start, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); }
.video-start { position: relative; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 75% 15%, rgba(79, 216, 255, .45), transparent 70%),
    radial-gradient(50% 70% at 10% 100%, rgba(134, 91, 245, .30), transparent 70%),
    linear-gradient(135deg, #052f46, #071722 60%, #0b1017); }
.video-start::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px; }
.video-logo { position: absolute; left: 50%; top: 42%; width: clamp(56px, 12vw, 96px); height: auto;
  transform: translate(-50%, -50%); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4)); }
.video-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) translate(clamp(40px, 8vw, 70px), clamp(28px, 6vw, 50px));
  width: clamp(44px, 8vw, 64px); height: clamp(44px, 8vw, 64px); border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #03608c; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: transform .18s ease; }
.video-play svg { width: 46%; height: 46%; margin-left: 8%; }
.video-start:hover .video-play, .video-start:focus-visible .video-play {
  transform: translate(-50%, -50%) translate(clamp(40px, 8vw, 70px), clamp(28px, 6vw, 50px)) scale(1.08); }
.video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-weight: 600;
  font-size: clamp(.9rem, .8rem + .4vw, 1.1rem); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.video figcaption { margin-top: 12px; }
.video figcaption p { margin: 0 0 4px; font-size: .9rem; }
.video-note { color: var(--text); }
.video-privacy { color: var(--muted); }

section[id] { scroll-margin-top: 64px; }
@media (max-width: 900px) { section[id] { scroll-margin-top: 104px; } }

.project-small img { width: 56px; height: 56px; }
.project-small h3 { font-size: 1.15rem; }

.nw { white-space: nowrap; }

/* ---------- home: full-screen cinematic hero (the old site's look) ---------- */
.cinema { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center;
  min-height: calc(100svh - 61px); background: #070b14; color: #fff; padding: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .cinema { min-height: calc(100svh - 104px); } }
.cinema-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: -1; }
.cinema-video ~ .cinema-scene { display: none; }
.cinema-scene { position: absolute; inset: 0; z-index: -2; opacity: .6; }
.cinema-sky { position: absolute; inset: 0;
  background:
    radial-gradient(40% 18% at 50% 66%, rgba(255, 196, 120, .85), transparent 70%),
    linear-gradient(to bottom, #08132b 0%, #16305c 34%, #4a5f93 52%, #d98a5b 63%, #f3c27c 66%, #121826 66.4%, #0a0e17 100%); }
.cinema-clouds { position: absolute; left: -50%; width: 200%; top: 6%; height: 52%; filter: blur(10px);
  background:
    radial-gradient(9% 7% at 8% 40%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(14% 6% at 22% 62%, rgba(255, 230, 210, .45), transparent 70%),
    radial-gradient(11% 8% at 38% 30%, rgba(255, 255, 255, .5), transparent 70%),
    radial-gradient(16% 7% at 55% 70%, rgba(255, 215, 180, .5), transparent 70%),
    radial-gradient(10% 6% at 71% 45%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(13% 8% at 88% 60%, rgba(255, 225, 200, .5), transparent 70%);
  animation: cinema-drift 120s linear infinite; }
.cinema-clouds.c2 { top: 18%; height: 44%; opacity: .7; filter: blur(16px); transform: scaleX(-1);
  animation-duration: 75s; animation-direction: reverse; }
@keyframes cinema-drift { from { translate: 0 0; } to { translate: 25% 0; } }
.cinema-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; perspective: 260px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
.cinema-runway { position: absolute; left: 50%; bottom: -10%; width: 46%; height: 340%; transform-origin: 50% 100%;
  transform: translateX(-50%) rotateX(74deg); background:
    linear-gradient(90deg, transparent 0 4%, rgba(255, 255, 255, .8) 4% 5%, transparent 5% 95%, rgba(255, 255, 255, .8) 95% 96%, transparent 96%),
    #262b36; }
.cinema-runway::before, .cinema-runway::after { content: ""; position: absolute; top: 0; bottom: 0; animation: cinema-roll 1.1s linear infinite; }
.cinema-runway::after { left: 49.2%; width: 1.6%;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .9) 0 46px, transparent 46px 110px); }
.cinema-runway::before { left: -2%; right: -2%;
  background:
    radial-gradient(circle, #ffd88a 0 4px, rgba(255, 216, 138, .35) 6px, transparent 10px) 0 0 / 22px 110px repeat-y,
    radial-gradient(circle, #ffd88a 0 4px, rgba(255, 216, 138, .35) 6px, transparent 10px) 100% 0 / 22px 110px repeat-y; }
@keyframes cinema-roll { to { background-position-y: 110px; } }
.cinema-runway::before { animation-name: cinema-roll-lights; }
@keyframes cinema-roll-lights { from { background-position: 0 0, 100% 0; } to { background-position: 0 110px, 100% 110px; } }
.cinema-overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 70%, rgba(7, 11, 20, .9)),
    linear-gradient(135deg, rgba(10, 14, 39, .8), rgba(59, 130, 246, .35)); }
.cinema-content { max-width: 920px; padding: 56px 16px 88px; }
.cinema-content > * { animation: cinema-up 1s ease backwards; }
.cinema-content > :nth-child(2) { animation-delay: .1s; }
.cinema-content > :nth-child(3) { animation-delay: .2s; }
.cinema-content > :nth-child(4) { animation-delay: .3s; }
.cinema-content > :nth-child(5) { animation-delay: .4s; }
.cinema-content > :nth-child(6) { animation-delay: .5s; }
@keyframes cinema-up { from { opacity: 0; transform: translateY(30px); } }
.cinema-logo { width: 88px; height: 88px; margin: 0 auto 18px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); }
.cinema .eyebrow { color: #7fdcff; justify-content: center; }
.cinema h1 { color: #fff; font-size: clamp(2.4rem, 1.3rem + 4.8vw, 4.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.cinema .lead { color: #cbd5e1; max-width: 46em; margin: 0 auto; font-size: clamp(1.05rem, .95rem + .55vw, 1.4rem); }
.cinema .cta { justify-content: center; margin: 32px 0 26px; gap: 14px; }
.cinema .badges { justify-content: center; }
.cinema .badges li { background: rgba(59, 130, 246, .2); border-color: rgba(59, 130, 246, .45); color: #e7ecf3; }
.btn-big { padding: 14px 30px; font-size: 1.08rem; border-radius: 10px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.cinema .btn-primary { background: linear-gradient(135deg, #2fc6f3, #0b8fc0); color: #fff; box-shadow: 0 10px 30px rgba(25, 184, 236, .4); }
.cinema .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(25, 184, 236, .6); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .9); }
.btn-ghost:hover { background: #fff; color: #0b1017; }
.cinema-down { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; color: #fff; opacity: .7;
  animation: cinema-bob 2.2s ease-in-out infinite; }
.cinema-down:hover { opacity: 1; }
@keyframes cinema-bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .cinema *, .cinema *::before, .cinema *::after { animation: none !important; }
  .cinema-video { display: none; }
  .cinema-video ~ .cinema-scene { display: block; }
}

/* ---------- project pages: a picture in the hero, so the product shows at once ---------- */
.hero { padding: 56px 0 48px; }
@media (min-width: 900px) { .hero-grid.hero-media-grid { grid-template-columns: 1fr 1.08fr; gap: 44px; } }
.hero-media { margin: 0; position: relative; }
.hero-media .shot { display: block; width: 100%; height: auto; }
.hero-media figcaption { font-size: .85rem; }
.hero-code { position: relative; margin: -44px 0 0 auto; width: min(100%, 470px); padding: 12px 16px;
  font-size: 12px; line-height: 1.55; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (max-width: 520px) { .hero-code { margin-top: 10px; width: 100%; font-size: 11.5px; } }

/* Scripting House: the two ways, side by side, and the bridge between them */
.way { border-top: 3px solid var(--accent); display: flex; flex-direction: column; }
.way h3 { font-size: 1.45rem; }
.way h3::before { display: none; }
.way-kicker { color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
  margin: 0 0 6px; }
.way-for { font-weight: 600; margin-bottom: .35em; }
.way .more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; }
.together { display: grid; gap: 20px; }
.together > *, .bridge > * { min-width: 0; }
.bridge { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .bridge { grid-template-columns: 1fr 1fr; } }
.bridge li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.bridge h3 { font-size: 1.08rem; margin: 6px 0 .35em; }
.bridge p { margin: 0; color: var(--muted); }
.bridge .dir { display: inline-block; font: 600 .75rem var(--mono); color: var(--accent); letter-spacing: .03em;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 1px 9px; }

/* World Editor 3D: the airfield diagram (plan view) */
.ill { display: block; width: 100%; height: auto; background: var(--panel); }
.ill .ill-ground { fill: var(--panel); }
.ill-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.ill-runway { fill: color-mix(in srgb, var(--text) 16%, var(--panel)); }
.ill-centre { stroke: var(--text); stroke-width: 2; stroke-dasharray: 18 14; opacity: .7; fill: none; }
.ill-thr { stroke: var(--text); stroke-width: 3; opacity: .7; fill: none; }
.ill-pave { fill: color-mix(in srgb, var(--text) 9%, var(--panel)); }
.ill-taxi { stroke: color-mix(in srgb, var(--text) 9%, var(--panel)); stroke-width: 26; fill: none; }
.ill-tline { stroke: #e3b62b; stroke-width: 2; fill: none; }
.ill-trig { fill: color-mix(in srgb, var(--we) 14%, transparent); stroke: var(--we); stroke-width: 2; stroke-dasharray: 7 5; }
.ill-route { stroke: var(--we); stroke-width: 3; fill: none; stroke-dasharray: 2 0; }
.ill-pt { fill: var(--panel); stroke: var(--we); stroke-width: 3; }
.ill-cart { fill: #e3b62b; }
.ill-pin { fill: var(--we); }
.ill-obj { fill: color-mix(in srgb, var(--text) 22%, var(--panel)); stroke: var(--text); stroke-opacity: .5; stroke-width: 1.5; }
.ill-roof { stroke: var(--text); stroke-opacity: .35; stroke-width: 1; fill: none; }
.ill-sel { fill: none; stroke: var(--we); stroke-width: 2; stroke-dasharray: 5 4; }
.ill-rot { fill: none; stroke: #3b82f6; stroke-width: 2.5; opacity: .9; }
.ill-gx { stroke: #ef4444; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill-gy { stroke: #22c55e; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill-label { fill: var(--text); font: 600 13px var(--font, system-ui, sans-serif); paint-order: stroke;
  stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.ill-sub { fill: var(--muted); font: 12px var(--mono); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }

/* ---------- development galleries ---------- */
.gallery { min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: var(--radius); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-slide img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0b0f16; box-shadow: var(--shadow); }
.gallery-slide figcaption { margin-top: 12px; padding: 0 2px; line-height: 1.5; }
.gallery-slide .chip { margin-right: 6px; font-size: .72rem; padding: 1px 8px; vertical-align: 1px; }
.chip-sim { color: var(--ok); }
.chip-app { color: var(--cm); }
.chip-mockup { color: var(--wait); }
.gallery-date { color: var(--muted); font-size: .8rem; margin-right: 6px; }
.gallery-nav { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.gallery-nav[hidden] { display: none; }
.gallery-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.gallery-btn:hover { background: var(--panel-2); }
.gallery-btn:focus-visible, .gallery-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-dots { display: flex; gap: 4px; flex: 1; }
.gallery-dot { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid;
  place-items: center; }
.gallery-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  transition: background .2s, transform .2s; }
.gallery-dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
.gallery-count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.gallery-nav .gallery-btn[data-dir="1"] { order: 3; }
.gallery-nav .gallery-btn[data-dir="-1"] { order: 0; }
.gallery-nav .gallery-dots { order: 1; }
.gallery-nav .gallery-count { order: 2; }

/* home: the development section and the add-ons that come out first */
.dev-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .dev-grid { grid-template-columns: 1.55fr 1fr; } }
.dev-side h2 { margin-top: 0; }
.dev-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dev-list li { position: relative; padding-left: 26px; }
.dev-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--muted); }
.dev-list li.done::before { background: var(--ok); border-color: var(--ok); }
.dev-list li.now::before { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 35%, transparent); }
.chip-first { color: var(--ok); }
.first-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eyebrow .chip { margin-left: 6px; font-size: .72rem; letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.gallery-help { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
/* home while Career Mode is in development: the gallery is the top of the page (the cinema hero is parked) */
.dev-top { padding-top: 48px; }
.dev-top h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.dev-top .section-head .lead, .dev-top .section-head p:not(.eyebrow) { font-size: 1.05rem; }
/* "In development", stamped above the title */
.stamp { display: table; margin: 0 0 18px; padding: 5px 14px 4px; transform: rotate(-4deg); transform-origin: left center;
  border: 3px double var(--wait); border-radius: 6px; color: var(--wait); font-family: var(--font-display);
  font-weight: 800; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  background: color-mix(in srgb, var(--wait) 8%, transparent); }
.hero .stamp { margin-bottom: 14px; }
/* the stamp sits on the right of the title */
.dev-title { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  margin-bottom: 28px; }
.dev-title p:not(.stamp) { color: var(--muted); margin: 0; }
.dev-title .stamp { margin: 0; transform: rotate(5deg); transform-origin: center; font-size: 1.15rem; padding: 7px 18px 6px; }
.stamp-right { margin: 0 0 14px auto; transform: rotate(4deg); transform-origin: right center; }

/* ---------- pictures instead of paragraphs ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
.ic-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
  color: var(--p, var(--accent)); background: color-mix(in srgb, var(--p, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--p, var(--accent)) 30%, transparent); }

/* icon tiles: an icon, a title, one short line */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.tile h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.tile h3::before { display: none; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.tile a { color: var(--p, var(--accent)); }

/* a chain of steps with arrows; vertical on phones */
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chain li { display: flex; align-items: center; gap: 12px; position: relative; min-width: 0; }
.chain .ic-badge { width: 54px; height: 54px; border-radius: 50%; }
.chain .ic-badge .ic { width: 26px; height: 26px; }
.chain b { display: block; font-size: .98rem; }
.chain small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
@media (min-width: 760px) {
  .chain { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .chain li { flex-direction: column; text-align: center; padding: 0 10px; }
  .chain li + li::before { content: ""; position: absolute; top: 27px; right: calc(50% + 36px); width: calc(100% - 72px);
    border-top: 2px dashed color-mix(in srgb, var(--p, var(--accent)) 45%, var(--line)); }
  .chain li + li::after { content: ""; position: absolute; top: 21px; right: calc(50% + 30px); width: 0; height: 0;
    border: 6px solid transparent; border-left: 8px solid color-mix(in srgb, var(--p, var(--accent)) 70%, var(--line)); }
}
.loop-back { display: none; }
@media (min-width: 760px) {
  .loop-back { display: block; width: 100%; height: 40px; margin-top: 4px; overflow: visible;
    color: color-mix(in srgb, var(--p, var(--accent)) 55%, var(--line)); }
  .loop-back path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 5 5; }
  .loop-back polygon { fill: currentColor; }
}
.loop-label { text-align: center; color: var(--muted); font-size: .82rem; margin: 0; }

/* big numbers */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.stat { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--p, var(--accent)); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; }
.stat .icons { display: flex; gap: 10px; color: var(--p, var(--accent)); height: 2.2rem; align-items: center; }
.stat .icons .ic { width: 30px; height: 30px; }

/* checkride gauges */
.gauges { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gauge { text-align: center; padding: 14px 8px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); min-width: 0; }
.gauge svg { width: 100%; max-width: 150px; height: auto; display: block; margin: 0 auto; }
.gauge .g-track { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.gauge .g-band { fill: none; stroke: var(--ok); stroke-width: 10; }
.gauge .g-needle { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.gauge .g-hub { fill: var(--text); }
.gauge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; margin-top: 4px; }
.gauge span { color: var(--muted); font-size: .85rem; }

/* requirements as spec tiles */
.specs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.spec { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); min-width: 0; }
.spec b { display: block; font-size: .95rem; }
.spec small { color: var(--muted); font-size: .82rem; }

/* tech stack chips */
.tech { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.tech li { font-family: var(--mono); font-size: .8rem; padding: 4px 10px; border-radius: 8px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text); }

/* a timeline (roadmap), horizontal from tablets up */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: flex; align-items: center; gap: 12px; color: var(--muted); position: relative; }
.timeline .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 2px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; font-size: .85rem; }
.timeline .dot .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.timeline .done .dot { background: var(--p, var(--accent)); border-color: var(--p, var(--accent)); color: #fff; }
.timeline .now .dot { border-color: var(--p, var(--accent)); color: var(--p, var(--accent));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--p, var(--accent)) 22%, transparent); }
.timeline .done, .timeline .now { color: var(--text); }
.timeline b { font-weight: 600; }
.timeline .tl-now { display: block; font-size: .72rem; color: var(--p, var(--accent)); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 760px) {
  .timeline { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { flex-direction: column; text-align: center; padding: 0 6px; }
  .timeline li + li::before { content: ""; position: absolute; top: 16px; right: calc(50% + 21px); width: calc(100% - 42px);
    height: 2px; background: var(--line); }
  .timeline li.done + li::before { background: var(--p, var(--accent)); }
}

/* links between projects: logo, labelled arrow, logo */
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.links li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.links img { width: 40px; height: 40px; }
.links .via { position: relative; text-align: center; font-size: .88rem; color: var(--text); padding-bottom: 12px; }
.links .via::after { content: ""; position: absolute; left: 0; right: 10px; bottom: 3px; border-top: 2px dashed var(--line); }
.links .via::before { content: ""; position: absolute; right: 0; bottom: -2px; border: 6px solid transparent;
  border-left: 10px solid var(--muted); border-right: 0; }

/* XSH: Lua and graphs, and what goes between them */
.duo { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 820px) { .duo { grid-template-columns: 160px minmax(0, 1fr) 160px; } }
.duo-end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-align: center; font-weight: 700; }
.duo-end .ic { width: 42px; height: 42px; color: var(--xsh); }
.duo-mid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.duo-mid li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.duo-mid .dirn { display: flex; justify-content: center; color: var(--xsh); }
.duo-mid .dirn .ic { width: 32px; height: 32px; }
.duo-mid b { display: block; font-size: .95rem; }
.duo-mid code { font-size: .8rem; color: var(--muted); }

/* icon rows inside cards, and chips with icons */
.ic-list { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 10px; }
.ic-list li { display: flex; gap: 10px; align-items: center; }
.ic-list .ic { color: var(--p, var(--accent)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.chip-row li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: .88rem; }
.chip-row .ic { width: 18px; height: 18px; color: var(--p, var(--accent)); }
.note-s { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.sub-h { font-size: 1.05rem; margin: 30px 0 12px; color: var(--muted); font-weight: 600; }
@media (min-width: 900px) { .tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ic-list .ic-more { color: var(--p, var(--accent)); font-weight: 600; }
.way .way-for { margin: 14px 0 0; }
/* download page: the one official source */
.official { display: flex; gap: 14px; align-items: flex-start; max-width: 46em; margin-top: 18px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); }
.official .ic-badge { --p: var(--ok); }
.official b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.official p { margin: 0; color: var(--muted); }
.official a { color: var(--text); font-weight: 600; }
.bundle { margin: 10px 0 14px; }
.bundle img { width: 20px; height: 20px; }
.dl .bundle, .card ul.bundle { padding-left: 0; }
