/* ==========================================================================
   Soulven GmbH – site stylesheet (relaunch)
   Design tokens follow the "Soulven Relaunch" design system:
   one brand colour, a dark and a light theme, Inter and JetBrains Mono.
   Themes are switched with data-theme on <body> or on any section:
     dark (default) · light · auto (follows the visitor's system setting)
   Fonts are self-hosted (see assets/fonts/LICENSES.txt). No third-party CSS.

   Contents
     1. Fonts and tokens           8. Start page: doors, who we are
     2. Themes                     9. Worlds and game page
     3. Base                      10. Consulting
     4. Buttons, badges, tags     11. Job pages, Insights, articles
     5. Header and "On this page" 12. Text pages, Creator Program, Join
     6. Footer                    13. Cookie banner, Soulven Quest
     7. Sections, cards, carousel 14. 404, reduced motion, print
   ========================================================================== */

/* ---------- 1. Fonts and tokens ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  /* brand */
  --brand: #15a1a1;
  --brand-hover: #15a1a1d9;
  --brand-glow: #15a1a159;
  --accent-light: #33f2f2;
  --accent-dark: #00b2b2;
  --amber: #f2b872;                 /* only in motion: end of the seam, quest points */

  /* semantic */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* type */
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --header-h: 72px;
  --subnav-h: 48px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;

  /* motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms; --t-base: 300ms; --t-slow: 500ms;

  /* names the Soulven Quest and older blocks still use */
  --ink: #171717;
  --ink-2: #202020;
  --teal: var(--brand);
}

/* ---------- 2. Themes ---------- */
body, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #171717;
  --bg-alt: #1b1b1b;
  --bg-elevated: #202020;
  --bg-elevated-hover: #2a2a2a;
  --bg-footer: #141414;
  --card: #202020;
  --fg: #ffffff;
  --muted: #9aa0ae;
  --faint: #ffffff80;
  --border: #ffffff14;
  --border-2: #ffffff26;
  --border-3: #ffffff40;
  --accent-text: #2bbdbd;
  --accent-text-hover: #33f2f2;
  --on-action: #171717;
  --tint: #15a1a11f;
  --shadow: 0 24px 60px #00000066;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-elevated: #f3f4f6;
  --bg-elevated-hover: #e9ebef;
  --bg-footer: #f1f3f5;
  --card: #f3f4f6;
  --fg: #171717;
  --muted: #303030;
  --faint: #17171799;
  --border: #00000014;
  --border-2: #00000026;
  --border-3: #00000040;
  --accent-text: #0b7575;           /* brand teal, darkened so that text stays readable on white */
  --accent-text-hover: #15a1a1;
  --on-action: #171717;
  --tint: #15a1a11a;
  --shadow: 0 24px 60px #17171726;
}
@media (prefers-color-scheme: light) {
  body[data-theme="auto"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-elevated: #f3f4f6;
    --bg-elevated-hover: #e9ebef;
    --bg-footer: #f1f3f5;
    --card: #f3f4f6;
    --fg: #171717;
    --muted: #303030;
    --faint: #17171799;
    --border: #00000014;
    --border-2: #00000026;
    --border-3: #00000040;
    --accent-text: #0b7575;
    --accent-text-hover: #15a1a1;
    --on-action: #171717;
    --tint: #15a1a11a;
    --shadow: 0 24px 60px #17171726;
  }
}
[data-theme] { background-color: var(--bg); color: var(--fg); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Height of everything that sticks to the top of the window. */
body { --sticky-h: var(--header-h); }
body.has-subnav { --sticky-h: calc(var(--header-h) + var(--subnav-h)); }
[id] { scroll-margin-top: calc(var(--sticky-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-text-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-text);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
/* German: only long words in small headings may be hyphenated */
:lang(de) h3, :lang(de) h4, :lang(de) summary { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
p { margin: 0 0 1em; max-width: 70ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.875em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand); color: #171717; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--brand); color: #171717; padding: 10px 14px; font-weight: 700; text-decoration: none; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; color: #171717; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font: 500 0.8125rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 16px; max-width: none;
}
.eyebrow--wide { letter-spacing: 0.32em; }
.meta { display: inline-flex; align-items: center; gap: 6px; font: 400 0.8125rem/1.4 var(--font-mono); color: var(--muted); }
.fineprint { font-size: 0.9rem; color: var(--muted); max-width: 86ch; }
.fineprint strong { color: var(--fg); }

/* ---------- 4. Buttons, badges, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75em 1.5em;
  font: 700 0.875rem/1.2 var(--font-text); letter-spacing: 0.9px; text-transform: uppercase; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn img { width: 20px; height: 20px; }
.btn--primary { background: var(--brand); color: var(--on-action); }
.btn--primary:hover { background: var(--accent-light); color: #171717; box-shadow: 0 0 28px var(--brand-glow); }
.btn--outline { border-color: var(--border-3); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--brand); color: var(--accent-text); }
.btn--ghost { color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--bg-elevated-hover); color: var(--fg); }
.btn--small { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.8125rem; }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; color: #fff; }
.btn--steam { background: #1b2838; color: #fff; border-color: #ffffff26; }
.btn--steam:hover { background: #2a475e; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 0.8125rem/1.2 var(--font-text); letter-spacing: 0.9px; text-transform: uppercase;
  color: var(--accent-text); text-decoration: none;
}
.link-cta .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
a.link-cta:hover .icon, a:hover .link-cta .icon { transform: translateX(3px); }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--accent-text-hover); }
.back-link .icon { width: 16px; height: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: var(--r-full);
  font: 500 0.75rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--tint); color: var(--accent-text); border: 1px solid #15a1a166;
}
.badge--status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; max-width: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.tags > * { margin: 0; padding: 3px 12px; border: 1px solid var(--border-2); border-radius: var(--r-full); font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

/* ---------- 5. Header and "On this page" ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* The wordmark with the ghost: white on dark pages, dark on light pages. The picture is anchored
   on the right, so a narrower box shows the ghost alone (small phones). */
.site-logo__mark {
  height: 38px; aspect-ratio: 614 / 160; flex: none;
  background: url("../../images/soulven-logo-white.png") right center / auto 100% no-repeat;
}
[data-theme="light"] .site-logo__mark { background-image: url("../../images/soulven-logo-dark.png"); }
@media (prefers-color-scheme: light) { body[data-theme="auto"] .site-logo__mark { background-image: url("../../images/soulven-logo-dark.png"); } }
.branch-switch { display: inline-flex; padding: 4px; margin-inline: auto; border: 1px solid var(--border-2); border-radius: var(--r-full); background: var(--bg-elevated); }
.branch-switch a {
  padding: 8px 18px; border-radius: var(--r-full);
  font: 700 0.8125rem/1.2 var(--font-text); letter-spacing: 0.9px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.branch-switch a:hover { color: var(--fg); }
.branch-switch a[aria-current="true"] { background: var(--brand); color: var(--on-action); }
.site-nav ul { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.nav-link a { display: block; padding: 8px 4px; font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-link a:hover, .nav-link a[aria-current="page"] { color: var(--fg); }
/* the start page has no switch: its links stand on the right */
.site-logo + .nav-toggle { margin-left: auto; }
.site-logo + .nav-toggle + .site-nav { margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border-2); border-radius: var(--r-full); }
.lang-switch a { display: block; min-width: 38px; padding: 5px 10px; border-radius: var(--r-full); text-align: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.nav-toggle { display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--border-2); border-radius: var(--r-md); background: transparent; color: var(--fg); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
@media (max-width: 1120px) {
  :root { --header-h: 64px; }
  .site-header .site-logo__mark { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .branch-switch { margin-right: 0; }
  .branch-switch a { padding: 8px 12px; font-size: 0.75rem; letter-spacing: 0.6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-elevated); border-bottom: 1px solid var(--border-2); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-wrap: wrap; gap: 8px 20px; padding: 16px var(--gutter); }
  .site-nav .nav-lang { margin-left: auto; }
  .site-logo + .nav-toggle + .site-nav { margin-left: 0; }
}
@media (max-width: 520px) {
  .site-header .site-logo__mark { aspect-ratio: 149 / 160; }      /* the ghost alone */
  .site-header__bar { gap: 10px; }
  .branch-switch a { padding: 8px 9px; font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
}
/* The narrowest phones (320 px): the switch gives up a little room so nothing reaches past the edge */
@media (max-width: 350px) {
  .site-header__bar { gap: 6px; }
  .branch-switch { padding: 3px; }
  .branch-switch a { padding: 8px 6px; font-size: 0.6875rem; }
  .btn { max-width: 100%; padding-inline: 1em; font-size: 0.8125rem; letter-spacing: 0.2px; }
}

.subnav { position: sticky; top: var(--header-h); z-index: 90; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.subnav__bar { display: flex; align-items: center; gap: 20px; height: var(--subnav-h); }
.subnav__links { display: flex; align-items: stretch; gap: 4px; flex: 1; min-width: 0; height: 100%; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links li { margin: 0; flex: none; }
.subnav__links a { display: flex; align-items: center; height: 100%; padding: 0 12px; font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav__links a:hover { color: var(--fg); }
.subnav__links a[aria-current="location"] { color: var(--fg); border-bottom-color: var(--brand); }
.subnav__links li:first-child a { padding-left: 0; }
.subnav__side { display: flex; align-items: center; gap: 18px; flex: none; }
.subnav__page { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.subnav__page:hover { color: var(--fg); }
.subnav__cta { font: 700 0.75rem/1.2 var(--font-text); letter-spacing: 0.9px; text-transform: uppercase; color: var(--accent-text); text-decoration: none; }
@media (max-width: 900px) { .subnav__page { display: none; } .subnav__bar { gap: 8px; } .subnav__links a { padding: 0 10px; } }
@media (max-width: 560px) { .subnav__side { display: none; } }

/* ---------- 6. Footer ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border); font-size: 0.9375rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 40px 32px; padding-block: clamp(48px, 7vw, 80px) 40px; }
.site-footer h2 { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a, .site-footer .link-button { color: var(--fg); text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--accent-text-hover); }
.site-footer p, .site-footer address { color: var(--muted); max-width: 44ch; line-height: 1.6; }
.site-footer__brand .site-logo { margin-bottom: 16px; }
.site-footer__brand .site-logo__mark { height: 44px; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.site-footer__social li { margin: 0; }
.site-footer__social a { display: block; padding: 5px 12px; border: 1px solid var(--border-2); border-radius: var(--r-full); font-size: 0.8125rem; font-weight: 500; }
.site-footer__social a:hover { border-color: var(--brand); }
/* Network and location: association membership and the Games Hub (start page, consumer area) */
.card.partner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.partner__logos { display: flex; flex-wrap: wrap; gap: 12px; }
.partner__logos img { height: 56px; width: auto; padding: 10px 16px; background: #fff; border: 1px solid var(--border-2); border-radius: 10px; box-sizing: content-box; }
.card.partner h3 { margin: 6px 0 0; }
.card.partner p { color: var(--muted); margin: 0; }
.card.partner .link-cta { margin-top: auto; padding-top: 6px; }
@media (max-width: 520px) { .partner__logos img { height: 40px; padding: 8px 12px; } }
/* Links that leave soulven.com: a small icon after the text (added by the build, see externalLinks) */
.ext-mark { display: inline-block; width: 0.82em; height: 0.82em; margin-left: 0.32em; vertical-align: -0.06em; flex: none; opacity: 0.75; stroke-width: 2; }
.btn .ext-mark, .link-cta .ext-mark { margin-left: 0; }
/* Press page: the inquiry form */
.press-contact .quote-form { max-width: 820px; }
.press-contact .quote-form h2 { margin: 0 0 4px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.footer-member { display: flex; align-items: center; gap: 12px; margin-top: 20px; max-width: 44ch; font-size: 0.8125rem; line-height: 1.5; color: var(--muted) !important; }
.footer-member:hover { color: var(--fg) !important; }
.footer-member img { flex: none; height: 26px; width: auto; padding: 6px 10px; background: #fff; border: 1px solid var(--border-2); border-radius: 8px; box-sizing: content-box; }
.site-footer__legal { margin-top: 20px !important; padding-top: 16px !important; border-top: 1px solid var(--border); font-size: 0.875rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--border); font-size: 0.8125rem; }
.site-footer__bottom p { margin: 0; max-width: none; }
@media (max-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 7. Sections, cards, carousel ---------- */
.sec { padding-block: clamp(56px, 9vw, 112px); }
.sec--alt { background: var(--bg-alt); }
[data-theme="light"] .sec--alt { --card: #ffffff; }
@media (prefers-color-scheme: light) { body[data-theme="auto"] .sec--alt { --card: #ffffff; } }
.sec--center { text-align: center; }
.sec--center .eyebrow { justify-content: center; }
.sec--center p { margin-inline: auto; }
.sec--center .btn-row { justify-content: center; }
.sec__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head { max-width: 760px; }
.sec__head > :last-child { margin-bottom: 0; }
.sec__head p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }
.wrap > .sec__head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec__actions { display: flex; align-items: center; gap: 20px; flex: none; }
canvas.sec__art { width: 168px; height: 168px; flex: none; cursor: grab; touch-action: pan-y; }
canvas.sec__art:active { cursor: grabbing; }
.block-title { margin: clamp(40px, 6vw, 72px) 0 20px; }
@media (max-width: 760px) { .sec__top { flex-direction: column; align-items: flex-start; } canvas.sec__art { display: none; } }

.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }
.card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 32px); color: var(--fg); }
.card > :last-child { margin-bottom: 0; }
.card--quiet { background: transparent; border-color: var(--border-2); }
a.card { text-decoration: none; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-base) var(--ease); }
a.card:hover { color: var(--fg); border-color: var(--brand); transform: translateY(-3px); }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--tint); color: var(--accent-text); }
.card__icon .icon { width: 24px; height: 24px; }
.note { margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--tint); }
.note p { margin: 0; max-width: 90ch; }
.callout { margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--warning); border-radius: 0 var(--r-md) var(--r-md) 0; background: #f59e0b1a; }
.callout p { margin: 0; max-width: 90ch; }

.carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 min(84%, 384px); scroll-snap-align: start; }
.carousel--wide > * { flex-basis: min(88%, 520px); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-3); background: transparent; color: var(--fg); cursor: pointer; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.carousel-nav button:hover { border-color: var(--brand); color: var(--accent-text); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; border-color: var(--border-2); color: var(--fg); }
.carousel-nav .icon { width: 20px; height: 20px; }

/* Article cards (Insights). The covers are drawn here; no photos are loaded. */
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.article-card__cover {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #15a1a1 0%, #15a1a100 58%), linear-gradient(135deg, #1f2c2c, #171717);
}
.article-card__cover::after {
  content: ""; position: absolute; right: -4%; bottom: -22%; width: 46%; aspect-ratio: 1; background: #ffffff14;
  -webkit-mask: url("../../images/soulven-ghost.png") center / contain no-repeat;
  mask: url("../../images/soulven-ghost.png") center / contain no-repeat;
}
.article-card:nth-child(5n+2) .article-card__cover { background: radial-gradient(110% 150% at 100% 0%, #0f7c7c 0%, #0f7c7c00 60%), linear-gradient(200deg, #232323, #171717); }
.article-card:nth-child(5n+3) .article-card__cover { background: radial-gradient(90% 120% at 50% 120%, #15a1a1 0%, #15a1a100 62%), linear-gradient(180deg, #1b2424, #171717); }
.article-card:nth-child(5n+4) .article-card__cover { background: radial-gradient(120% 120% at 0% 100%, #1aa3a3 0%, #1aa3a300 55%), linear-gradient(45deg, #171717, #242424); }
.article-card:nth-child(5n+5) .article-card__cover { background: radial-gradient(100% 160% at 100% 100%, #128a8a 0%, #128a8a00 60%), linear-gradient(315deg, #202a2a, #171717); }
/* An article with a photo ("image" in content/site.json) shows it instead of the drawn cover. */
.article-card__cover--photo { background: #171717; }
.article-card__cover--photo::after { display: none; }
.article-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.article-card:hover .article-card__cover img { transform: scale(1.03); }
.article-card__cover--left img { object-position: left center; }
.article-card__cover--right img { object-position: right center; }
.article-card__cover--top img { object-position: center top; }
.article-card__cover--bottom img { object-position: center bottom; }
.article-card__cover .badge { position: absolute; left: 16px; top: 16px; background: #171717cc; color: #7fe3e3; border-color: #ffffff26; }
.article-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 24px 24px; }
.article-card__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.article-card__text { color: var(--muted); font-size: 0.9375rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.article-card__body .link-cta { margin-top: auto; padding-top: 8px; }
.article-card--plain .article-card__body { padding: 24px; }
.article-card--plain .badge { align-self: flex-start; }

/* ---------- 8. Start page: doors, who we are ---------- */
.hero { position: relative; }
.hero--image { isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(78vh, 760px); }
.backdrop { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; }
.hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #171717b3 0%, #171717cc 55%, #171717 100%); }
canvas.fireflies { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.hero__content { padding-block: clamp(64px, 10vw, 128px); text-align: center; }
.hero__content .eyebrow { justify-content: center; }
.hero__content .btn-row { justify-content: center; }
.hero__content > p { margin-inline: auto; }
.hero__content--left { text-align: left; }
.hero__content--left .eyebrow, .hero__content--left .btn-row { justify-content: flex-start; }
.hero__content--left > p { margin-inline: 0; }
.display { font-size: clamp(1.6rem, 7.4vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; text-transform: uppercase; margin-bottom: 0.4em; }
.display span { display: block; }
.display span:nth-child(2) { color: var(--brand); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.5; color: #ffffffd1; max-width: 46ch; }
[data-theme="light"] .hero__lead { color: var(--muted); }

/* The two doors: Consulting on the left, Worlds on the right. The right door overlaps the left one by --seam; its edge is cut into a
   slowly moving wave and a glowing line follows it (assets/js/ambient.js). */
.gateway { position: relative; display: flex; --seam: 112px; --door-pad: clamp(24px, 5vw, 72px); background: #171717; }
.door {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 50%; min-width: 0; min-height: clamp(440px, 64vh, 620px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 72px var(--door-pad); text-decoration: none;
  transition: flex-basis var(--t-slow) var(--ease);
}
.door:hover { color: var(--fg); }
.door--consumer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #171717a6, #171717e0); }
.door--consumer .backdrop { transition: transform 1.2s var(--ease); }
.door__content { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 30rem; }
.door__title { display: block; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 16px; }
.door__text { display: block; font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--muted); margin-bottom: 28px; }
.door--consumer .door__text { color: #ffffffd1; }
.door .link-cta { padding: 14px 22px; border: 1.5px solid var(--border-3); border-radius: var(--r-md); color: var(--fg); transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.door:hover .link-cta, .door:focus-visible .link-cta { background: var(--brand); border-color: var(--brand); color: #171717; }
.door:focus-visible { outline-offset: -6px; }
/* the gear model turns behind the Consulting text, always in the middle of its half */
.door__figure { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(86%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.2; pointer-events: none; }
.door__figure canvas { width: 100%; height: 100%; display: block; }
canvas.seam { display: none; position: absolute; left: 0; top: 0; z-index: 3; max-width: none; pointer-events: none; }
.gateway.has-seam canvas.seam { display: block; }
@media (min-width: 861px) {
  .door__text { min-height: 3.2em; }      /* two lines, so that both titles stand on one line */
  .gateway.has-seam .door--right { z-index: 2; margin-left: calc(-1 * var(--seam)); padding-left: calc(var(--door-pad) + var(--seam) / 2); }
  .gateway.has-seam .door:not(.door--right) { padding-right: calc(var(--door-pad) + var(--seam) / 2); }
}
@media (min-width: 861px) and (hover: hover) {
  .gateway:has(.door:hover) .door { flex-basis: 44%; }
  .gateway .door:hover { flex-basis: 56%; }
  .door--consumer:hover .backdrop { transform: scale(1.04); }
}
@media (max-width: 860px) {
  .gateway { flex-direction: column; }
  .door { min-height: 0; padding-block: 72px; }
  .gateway.has-seam .door--right { z-index: 2; margin-top: calc(-1 * var(--seam)); padding-top: calc(72px + var(--seam)); }
  .gateway.has-seam .door:not(.door--right) { padding-bottom: calc(72px + var(--seam)); }
}

.manifesto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.manifesto h1, .manifesto h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; }
.manifesto__text p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--muted); }
.manifesto__text p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .manifesto { grid-template-columns: 1fr; } }

/* ---------- 9. Worlds and game page ---------- */
[data-tilt] { transition: transform .35s ease; will-change: transform; }
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature__media { display: block; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.feature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body h2 { margin-bottom: 16px; }

/* Slideshow: the pictures lie on top of each other, the active one fades in above the one before.
   The dots and the pause button are added by the script (soulven.js, initSlideshows). */
.slideshow { position: relative; }
.slideshow__slides { position: relative; display: block; overflow: hidden; }
.slideshow__slides img { display: block; opacity: 0; transition: opacity .8s ease; }
.slideshow__slides img:not(:first-child) { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.slideshow__slides img.is-active { opacity: 1; z-index: 2; }
.slideshow__slides img.is-leaving { opacity: 1; z-index: 1; transition: none; }
.slideshow:not(.has-slides) .slideshow__slides img { opacity: 1; }
.slideshow__nav { position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; max-width: calc(100% - 20px); padding: 2px 6px; border-radius: 16px; background: #171717b8; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slideshow__dot, .slideshow__toggle { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.slideshow__dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #ffffff73; transition: width var(--t-base) var(--ease), background-color var(--t-fast) var(--ease); }
.slideshow__dot:hover::before { background: #fff; }
.slideshow__dot[aria-current="true"] { width: 34px; }
.slideshow__dot[aria-current="true"]::before { width: 22px; background: #fff; }
.slideshow__toggle { margin-left: 4px; opacity: 0.8; }
.slideshow__toggle:hover { opacity: 1; }
.slideshow__toggle .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.slideshow__dot:focus-visible, .slideshow__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.feature__body p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.game-card__media { position: relative; overflow: hidden; }
.game-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.game-card__media .badge { position: absolute; left: 16px; top: 16px; z-index: 3; background: #171717cc; color: #7fe3e3; border-color: #ffffff26; }
/* Hero of the consumer page: the games as quick links below the buttons */
.hero__games { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 28px 0 0; font-size: 0.875rem; }
.hero__games span { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-right: 4px; }
.hero__games a { padding: 6px 14px; border: 1px solid #ffffff4d; border-radius: var(--r-full); background: #1717178c; color: #fff; font-weight: 600; text-decoration: none; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.hero__games a:hover { border-color: var(--brand); background: #171717cc; }
/* Platforms a game is available for: icon and name, below the title */
.platforms { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 14px; padding: 0; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.platforms li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.platforms .icon { width: 16px; height: 16px; flex: none; }
/* A game without pictures yet shows its name on a drawn cover */
.game-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; padding: 16px; text-align: center; background: radial-gradient(120% 90% at 20% 10%, #15a1a14d 0%, transparent 60%), linear-gradient(135deg, #202020, #101010); }
.game-cover span { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--font-display, var(--font-text)); letter-spacing: -0.01em; color: #fff; }
.game-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.game-card__body h3 { margin-bottom: 12px; }
.game-card__body p { color: var(--muted); font-size: 0.9375rem; }
.game-card__body .btn-row { margin-top: auto; padding-top: 12px; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); }
.cta-band > div { flex: 1 1 420px; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.cta-band p:last-child { margin-bottom: 0; color: var(--muted); }

.community { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }
.channel-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.channel-list li { margin: 0; }
.channel-list a { display: block; padding: 10px 18px; border: 1px solid var(--border-3); border-radius: var(--r-full); font-size: 0.9375rem; font-weight: 600; color: var(--fg); text-decoration: none; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.channel-list a:hover { border-color: var(--brand); color: var(--accent-text-hover); }
.cta-stack { display: grid; gap: 12px; margin: 20px 0 16px; }
.cta-stack .btn { width: 100%; }
.join-card .fineprint { margin: 0; }

.hero--game { align-items: flex-end; min-height: min(72vh, 700px); }
.hero--game .hero__content { padding-block: clamp(96px, 14vw, 180px) clamp(40px, 6vw, 72px); }
.hero--game .back-link { color: #ffffffcc; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split p:not(.eyebrow):not(.fineprint) { color: var(--muted); font-size: 1.0625rem; }
.split h3 { margin-top: 1.6em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; margin: 0; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.info-card h3 { margin-top: 0; }
.info-card dl { margin: 0 0 16px; }
.info-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-card dt { color: var(--muted); font-size: 0.9375rem; }
.info-card dd { margin: 0; font-weight: 600; text-align: right; }
.info-card .fineprint { margin: 0; font-size: 0.9rem; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.media-grid figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.media-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- 10. Consulting ---------- */
.hero--business { padding-block: clamp(48px, 8vw, 104px); background: radial-gradient(80% 120% at 100% 0%, var(--tint), transparent 60%); }
.hero--business .hero__content { padding-block: 0; }
/* Offer switch in the business hero: two texts take turns (assets/js/soulven.js, initOffers). Without
   the script both texts stand below each other and the tabs stay hidden. */
.offer { margin: 20px 0 4px; }
.offer__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--border-2); border-radius: 26px; background: var(--bg); }
.offer__tabs[hidden] { display: none; }
.offer__tab { position: relative; overflow: hidden; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--muted); font: 600 0.875rem/1 var(--font-text); letter-spacing: 0.02em; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.offer__tab:hover { color: var(--fg); }
.offer__tab[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.offer__tab::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.offer__tab.is-running::after { animation: offer-progress var(--offer-ms, 8000ms) linear forwards; }
.offer.is-paused .offer__tab.is-running::after { animation-play-state: paused; }
.offer.is-static .offer__tab::after { animation: none; }
@keyframes offer-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.offer__panel + .offer__panel { margin-top: 12px; }
.offer.is-ready .offer__panels { display: grid; }
.offer.is-ready .offer__panel { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.offer.is-ready .offer__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.hero--business .display { text-transform: none; font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.06; }
.hero__split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__model { margin: 0; }
.hero__model canvas { width: 100%; aspect-ratio: 5 / 4; display: block; cursor: grab; touch-action: pan-y; }
.hero__model canvas:active { cursor: grabbing; }
.hero__model figcaption { font: 400 0.8125rem/1.4 var(--font-mono); color: var(--muted); text-align: center; margin-top: 4px; }
@media (max-width: 900px) { .hero__split { grid-template-columns: 1fr; } .hero__model { width: 100%; max-width: 360px; margin-inline: auto; } .hero__model canvas { aspect-ratio: 4 / 3; } }

.cards--services { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cards--services > * { grid-column: span 3; }
.cards--services > :nth-child(-n+3) { grid-column: span 4; }
@media (max-width: 1100px) { .cards--services > *, .cards--services > :nth-child(-n+3) { grid-column: span 6; } .cards--services > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 680px) { .cards--services > *, .cards--services > :nth-child(-n+3) { grid-column: 1 / -1; } }
.service h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service h4 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 0.9375rem; }
.service__details { padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.875rem !important; }

.model__sketch { display: block; width: 150px; height: 56px; margin-bottom: 20px; color: var(--accent-text); }
.model p { color: var(--muted); }
#engagement .fineprint { margin: 24px 0 0; }

.project-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project-card__media { display: block; overflow: hidden; }
.project-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 24px; }
.project-card__body .tags { margin: 0; }
.project-card__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.project-card__text { color: var(--muted); font-size: 0.9375rem; }
.project-card__body .link-cta { margin-top: auto; padding-top: 8px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; margin: 0; padding: 24px 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0.1em; color: var(--accent-text); margin-bottom: 16px; }
.steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 64px); }
.twocol > div { padding-top: 20px; border-top: 1px solid var(--border-2); }
.twocol p { color: var(--muted); margin: 0; }
@media (max-width: 680px) { .twocol { grid-template-columns: 1fr; } }

.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.rules > div > .icon { display: block; width: 24px; height: 24px; color: var(--accent-text); margin-bottom: 14px; }
.rules h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.rules p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
@media (max-width: 1024px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--border-2); }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { color: var(--muted); padding: 0 32px 20px 0; margin: 0; max-width: 74ch; }

.job-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.job-card__title { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.job-card__text { color: var(--muted); font-size: 0.9375rem; }
.job-card .link-cta { margin-top: auto; padding-top: 12px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-2); background: var(--card); border-radius: var(--r-lg); overflow: hidden; margin: 20px 0 22px; }
.trio > div { padding: 20px 22px; border-right: 1px solid var(--border-2); }
.trio > div:last-child { border-right: 0; }
.trio .trio__label { display: block; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.trio > div > strong { display: block; font-size: 1.0625rem; line-height: 1.35; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } .trio > div { border-right: 0; border-bottom: 1px solid var(--border-2); } .trio > div:last-child { border-bottom: 0; } }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__facts { margin: 32px 0 0; display: grid; gap: 20px; }
.contact__facts dt { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__facts dd { margin: 0; font-size: 1.0625rem; }
.quote-form { display: grid; gap: 16px; }
.quote-form h3 { margin: 0 0 4px; }
.quote-form label { display: grid; gap: 6px; }
.quote-form label > span { font-size: 0.875rem; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border-3); border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.quote-form textarea { resize: vertical; min-height: 110px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.quote-form .btn { justify-self: start; }
.quote-form .fineprint { margin: 0; }

/* Animated icons. A service card carries ".is-live" for as long as it is in view (assets/js/soulven.js);
   its icon then keeps showing, in a calm loop, what the service is about. The two collaboration
   sketches play once when they come into view and again on hover. Without the class, and with
   reduced motion, everything simply stands still. */
.service .icon *, .model__sketch * { transform-box: fill-box; transform-origin: center; }
@keyframes ic-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
/* a line is drawn, stands for a while and runs off again: something flows through it */
@keyframes ic-flow { 0% { stroke-dasharray: 1; stroke-dashoffset: 1; } 22% { stroke-dasharray: 1; stroke-dashoffset: 0; } 78% { stroke-dasharray: 1; stroke-dashoffset: 0; } 100% { stroke-dasharray: 1; stroke-dashoffset: -1; } }
/* written from the left, then wiped away */
@keyframes ic-write { 0% { stroke-dasharray: 1; stroke-dashoffset: -1; } 22% { stroke-dasharray: 1; stroke-dashoffset: 0; } 82% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; } }
@keyframes ic-fire { 0%, 46%, 100% { opacity: 0.38; stroke-width: 1.5; } 14% { opacity: 1; stroke-width: 2.1; } }
@keyframes ic-led { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0.15; } 100% { opacity: 1; } }
@keyframes ic-tap { 0%, 62%, 100% { transform: scale(1); } 72% { transform: scale(0.9); } 84% { transform: scale(1.05); } }
@keyframes ic-ring { 0%, 66%, 100% { opacity: 1; transform: scale(1); } 76% { opacity: 0.2; transform: scale(2.4); } 88% { opacity: 1; transform: scale(1); } }
@keyframes ic-look { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) translateX(-1px); } 75% { transform: rotate(5deg) translateX(1px); } }
@keyframes ic-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes ic-swing { 0%, 100% { transform: rotate(-13deg); } 50% { transform: rotate(13deg); } }
@keyframes ic-win { 0%, 58%, 100% { transform: none; } 68% { transform: scale(1.14) rotate(-7deg); } 80% { transform: scale(1.04) rotate(5deg); } 90% { transform: scale(1.08); } }
@keyframes ic-beacon { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.35); } 26% { transform: scale(1); } }
@keyframes sk-work { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
@keyframes sk-drop { 0% { transform: translateY(-22px); opacity: 0; } 70% { transform: translateY(2px); opacity: 1; } 100% { transform: none; } }
/* AI: activity in the brain. Signals fire from the stem outwards, fold after fold, again and again */
.is-live .icon--brain > * { animation: ic-fire 2.6s ease-in-out infinite; }
.is-live .icon--brain > :nth-child(1) { animation-delay: 0s; }
.is-live .icon--brain > :nth-child(2) { animation-delay: 0.22s; }
.is-live .icon--brain > :nth-child(3) { animation-delay: 0.44s; }
.is-live .icon--brain > :nth-child(4), .is-live .icon--brain > :nth-child(8) { animation-delay: 0.66s; }
.is-live .icon--brain > :nth-child(5), .is-live .icon--brain > :nth-child(7) { animation-delay: 0.88s; }
.is-live .icon--brain > :nth-child(6) { animation-delay: 1.1s; }
/* Backend: request and response, the two status lights keep answering each other */
.is-live .icon--server > :nth-child(3) { animation: ic-led 1.5s linear infinite; }
.is-live .icon--server > :nth-child(4) { animation: ic-led 1.5s linear -0.75s infinite; }
/* Frontend: the screen is drawn again and again, like a page that is being rendered */
.is-live .icon--monitor > :nth-child(1) { animation: ic-flow 4.8s var(--ease) infinite; }
/* App: a tap on the phone, the home button answers */
.is-live .icon--smartphone > :nth-child(1) { animation: ic-tap 2.8s var(--ease) infinite; }
.is-live .icon--smartphone > :nth-child(2) { animation: ic-ring 2.8s var(--ease) infinite; }
/* VR/AR: looking around; the lenses refocus one after the other */
.is-live .icon--glasses { animation: ic-look 5s ease-in-out infinite; }
.is-live .icon--glasses > :nth-child(1) { animation: ic-flow 5s var(--ease) infinite; }
.is-live .icon--glasses > :nth-child(2) { animation: ic-flow 5s var(--ease) -2.5s infinite; }
/* Training: the cap bobs, the tassel swings like a pendulum */
.is-live .icon--graduation-cap > :nth-child(1), .is-live .icon--graduation-cap > :nth-child(3) { animation: ic-bob 2.4s ease-in-out infinite; }
.is-live .icon--graduation-cap > :nth-child(2) { animation: ic-swing 2.4s ease-in-out infinite; transform-origin: 50% 0%; }
/* Gamification: the reward moment, every few seconds */
.is-live .icon--trophy { animation: ic-win 3.4s var(--ease) infinite; }
/* 3D renderings: the wireframe of the cube is drawn, outline first, and built again */
.is-live .icon--box > :nth-child(1) { animation: ic-flow 5.4s var(--ease) infinite; }
.is-live .icon--box > :nth-child(2) { animation: ic-flow 5.4s var(--ease) 0.5s infinite; }
.is-live .icon--box > :nth-child(3) { animation: ic-flow 5.4s var(--ease) 0.9s infinite; }
/* IT project management: the way from the start to the goal is walked again and again */
.is-live .icon--route > :nth-child(1) { animation: ic-flow 4s var(--ease) infinite; }
.is-live .icon--route > :nth-child(3) { animation: ic-beacon 4s var(--ease) infinite; }
.is-live .icon--route > :nth-child(2) { animation: ic-beacon 4s var(--ease) 0.9s infinite; }
/* Business analysis: the requirements are written down, line by line, on a fresh page each time */
.is-live .icon--file-text > :nth-child(3) { animation: ic-write 4.4s linear infinite; }
.is-live .icon--file-text > :nth-child(4) { animation: ic-write 4.4s linear 0.35s infinite; }
.is-live .icon--file-text > :nth-child(5) { animation: ic-write 4.4s linear 0.7s infinite; }
/* Complete projects: the team works, hands over, the product stands */
.is-live .sk-team circle { animation: sk-work 0.45s var(--ease); }
.is-live .sk-team circle:nth-child(2) { animation-delay: 0.08s; }
.is-live .sk-team circle:nth-child(3) { animation-delay: 0.16s; }
.is-live .sk-team circle:nth-child(4) { animation-delay: 0.24s; }
.is-live .sk-team circle:nth-child(5) { animation-delay: 0.32s; }
.is-live .sk-arrow { animation: ic-draw 0.45s var(--ease) 0.6s backwards; }
.is-live .sk-cube { animation: ic-draw 0.8s var(--ease) 1s backwards; }
/* Consulting and team extension: two consultants join the existing team */
.is-live .sk-join { animation: sk-drop 0.55s var(--ease) 0.15s backwards; }
.is-live .sk-join ~ .sk-join { animation-delay: 0.45s; }

/* ---------- 11. Job pages, Insights, articles ---------- */
.page-top { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--border); background: radial-gradient(70% 140% at 0% 0%, var(--tint), transparent 60%); }
.page-top h1 { max-width: 22ch; }
.page-top .lead { margin-bottom: 0; }
.page-top .tags { margin: 16px 0 0; }
.page-top--article { border-bottom: 0; padding-bottom: 8px; }
.page-top--article h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: none; }
.job__must { margin-top: 20px; font-weight: 600; }
.job__call { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--tint); color: var(--muted); max-width: 80ch; }
.job__call strong { color: var(--fg); }
.job-detail { padding-block: 0; }
.job-detail .note { margin: 32px 0; }
.article-figure { margin: 0 0 clamp(24px, 4vw, 40px); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-2); }
.article-figure img { width: 100%; height: auto; }
.article-figure--portrait { max-width: 420px; margin-inline: auto; }      /* posters and other upright pictures */
.article-body { padding-block: clamp(24px, 4vw, 40px) clamp(56px, 8vw, 96px); font-size: 1.0625rem; line-height: 1.75; }

/* ---------- 12. Text pages, Creator Program, Join ---------- */
.prose { max-width: 76ch; padding-block: clamp(40px, 6vw, 72px); }
.sec > .prose { padding-block: 0; }
.wrap--narrow.prose { max-width: none; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.6em; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 2em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: none; }
.prose address { margin-bottom: 1em; }
.prose .table-scroll { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-elevated-hover); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose .planning-note, .prose .modal-call-note { padding: 14px 18px; border-left: 3px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--tint); line-height: 1.7; }
.prose .planning-note { border-left-color: var(--warning); background: #f59e0b1a; }
.reveal-mail { font: inherit; font-weight: 600; padding: 4px 12px; border: 1px solid var(--border-3); border-radius: var(--r-full); background: var(--card); color: var(--fg); cursor: pointer; }
.reveal-mail:hover { border-color: var(--brand); color: var(--accent-text); }
.rules-list { list-style: none; padding: 0; }
.rules-list li { padding: 12px 0; border-top: 1px solid var(--border); margin: 0; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 20px 0 14px; }
.countdown div { background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 18px 8px; text-align: center; }
.countdown span { display: block; font: 500 clamp(2rem, 6vw, 3.2rem)/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--accent-text); }
.countdown small { color: var(--muted); font-size: 0.9rem; }
.accent-red { color: var(--error); }
.creator-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.creator-card { background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r-xl); padding: clamp(20px, 3.5vw, 32px); }
.creator-card.is-live { border-color: var(--brand); }
.creator-card__label { display: inline-block; font: 500 0.8125rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.sticker { margin: 16px 0; }
.sticker img { border-radius: var(--r-lg); width: 100%; }
.sticker figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.sticker--small img { max-width: 220px; margin-inline: auto; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.benefits > div { padding: 28px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); }
.benefits .icon { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 14px; display: block; }
.benefits h3 { margin: 0; }
@media (max-width: 800px) { .creator-hero { grid-template-columns: 1fr; } .benefits { grid-template-columns: 1fr; } }
.form-gate { background: var(--card); border: 1px dashed var(--border-3); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); text-align: left; }
.form-frame { border-radius: var(--r-xl); overflow: hidden; background: #fff; margin-top: 18px; }
.form-frame iframe { width: 100%; border: 0; display: block; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r-xl); }
.join-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.join-cards article { padding: 28px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); }
.join-cards .icon { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 12px; display: block; }
.join-cards p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .join-cards { grid-template-columns: 1fr; } }

/* ---------- 13. Cookie banner, Soulven Quest ---------- */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 300;
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px 18px;
  padding: 24px; border-radius: var(--r-xl);
  background: #1a1a1a; color: #fff; border: 1px solid #ffffff26; box-shadow: 0 24px 60px #00000080;
}
.consent__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #2a2a2a; color: #fff; }
.consent__icon .icon { width: 24px; height: 24px; }
.consent__title { margin: 0 0 8px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: #fff; }
.consent__text { margin: 0; max-width: none; font-size: 0.9375rem; line-height: 1.55; color: #b9bdc7; }
.consent a { color: var(--accent-light); font-weight: 600; text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.consent__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
/* Both buttons have the same size and stand side by side. Accept is filled, Decline is outlined. */
.consent__actions button {
  min-height: 48px; padding: 0 12px; border-radius: var(--r-md); border: 1.5px solid var(--brand);
  background: var(--brand); color: #171717; cursor: pointer;
  font: 700 0.875rem/1.2 var(--font-text); letter-spacing: 0.9px; text-transform: uppercase;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.consent__actions button:hover { background: var(--accent-light); border-color: var(--accent-light); }
.consent__actions .consent__decline { background: transparent; border-color: #ffffff73; color: #fff; }
.consent__actions .consent__decline:hover { background: #ffffff14; border-color: #fff; }
/* The cookie is "baked" when the card appears: the outline is drawn, the chocolate chips pop in, and
   the crumbs fly off from the bite. It plays once and never loops. */
@media (prefers-reduced-motion: no-preference) {
  .consent .icon--cookie { animation: ck-bite .45s 1.5s ease-out both; transform-origin: 50% 60%; }
  .consent .icon--cookie > * { transform-box: fill-box; transform-origin: center; }
  .consent .icon--cookie > :nth-child(2) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ck-bake .9s .15s ease-out forwards; }
  .consent .icon--cookie > :nth-child(1), .consent .icon--cookie > :nth-child(3), .consent .icon--cookie > :nth-child(4),
  .consent .icon--cookie > :nth-child(8), .consent .icon--cookie > :nth-child(9) { opacity: 0; animation: ck-chip .3s ease-out forwards; }
  .consent .icon--cookie > :nth-child(9) { animation-delay: .95s; }
  .consent .icon--cookie > :nth-child(3) { animation-delay: 1.05s; }
  .consent .icon--cookie > :nth-child(8) { animation-delay: 1.15s; }
  .consent .icon--cookie > :nth-child(4) { animation-delay: 1.25s; }
  .consent .icon--cookie > :nth-child(1) { animation-delay: 1.35s; }
  .consent .icon--cookie > :nth-child(5), .consent .icon--cookie > :nth-child(6), .consent .icon--cookie > :nth-child(7) { opacity: 0; animation: ck-crumb .55s 1.55s ease-out forwards; }
  .consent .icon--cookie > :nth-child(5) { --ck-x: 1.5px; --ck-y: 3.5px; }
  .consent .icon--cookie > :nth-child(6) { --ck-x: -3.5px; --ck-y: 2.5px; animation-delay: 1.62s; }
  .consent .icon--cookie > :nth-child(7) { --ck-x: -3.5px; --ck-y: -1.5px; animation-delay: 1.7s; }
}
@keyframes ck-bake { to { stroke-dashoffset: 0; } }
@keyframes ck-chip { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }
@keyframes ck-crumb { from { opacity: 0; transform: translate(var(--ck-x), var(--ck-y)); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ck-bite { 0% { transform: rotate(0); } 35% { transform: rotate(-14deg) scale(0.94); } 70% { transform: rotate(6deg); } 100% { transform: rotate(0); } }
@media (max-width: 760px) { .consent { left: 16px; bottom: 16px; padding: 20px; } }
@media (max-width: 400px) { .consent { grid-template-columns: minmax(0, 1fr); } .consent__icon { display: none; } }

/* Soulven Quest (assets/js/quest.js) – the small exploration game. Always dark. */
.quest { position: fixed; right: 16px; bottom: calc(16px + var(--consent-h, 0px)); z-index: 250; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--font-text); pointer-events: none; }
.quest > * { pointer-events: auto; }
.quest__pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 7px; border-radius: 999px; border: 1px solid #ffffff38; background: var(--ink); color: #fff; font: 650 0.95rem/1 var(--font-text); cursor: pointer; box-shadow: 0 10px 30px #00000047; }
.quest__pill:hover { border-color: var(--teal); }
.quest__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--quest-progress, 0deg), #ffffff29 0); }
.quest__icon svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--ink); color: var(--teal); }
/* the official Soulven icon, set into a black disc inside the progress ring */
.quest__icon img { width: 30px; height: 30px; padding: 3px; border-radius: 50%; background: #000; object-fit: contain; }
.quest__pill:not(.is-active) .quest__icon > * { animation: quest-float 5s ease-in-out infinite; }
.quest__count { color: #33d6d6; font-variant-numeric: tabular-nums; }
@keyframes quest-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px) rotate(-4deg); } }
.quest__panel { width: min(350px, calc(100vw - 32px)); max-height: calc(100vh - 150px - var(--consent-h, 0px)); max-height: calc(100dvh - 150px - var(--consent-h, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 20px; border-radius: 16px; border: 1px solid #ffffff24; background: var(--ink-2); color: #e6e8ec; font-size: 0.95rem; line-height: 1.45; box-shadow: 0 24px 60px #00000066; }
.quest__panel p { margin: 0 0 14px; max-width: none; }
/* title and "minimise" button stay at the top while the missions scroll */
.quest__head { position: sticky; top: -20px; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -20px -20px 0; padding: 20px 20px 8px; background: var(--ink-2); border-radius: 16px 16px 0 0; }
.quest__head .quest__title { margin: 0; padding-top: 6px; }
.quest__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -2px -6px 0 0; padding: 0; border: 1px solid #ffffff3d; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.quest__close:hover { border-color: #fff; background: #ffffff14; }
.quest__close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.quest__title { font: 700 1.2rem/1.2 var(--font-text); letter-spacing: 0; color: #fff; margin: 0 0 8px; }
.quest__meta { display: flex; justify-content: space-between; gap: 12px; color: #9aa0ae; font-size: 0.9rem; margin-bottom: 8px !important; }
.quest__meta strong { color: #fff; }
.quest__bar { height: 8px; border-radius: 999px; background: #ffffff1f; overflow: hidden; }
.quest__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width .6s ease; }
.quest__missions { list-style: none; margin: 14px 0 16px; padding: 0; }
.quest__missions li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0; padding: 9px 0; border-top: 1px solid #ffffff1a; color: #9aa0ae; font-size: 0.9rem; }
.quest__missions strong { color: #fff; font-size: 0.97rem; }
.quest__check { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid #ffffff4d; position: relative; }
.quest__missions li.is-done .quest__check { border-color: var(--teal); background: var(--teal); }
.quest__missions li.is-done .quest__check::after { content: ""; position: absolute; left: 4px; top: 4.5px; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.quest__missions li.is-done strong { color: #33d6d6; }
.quest__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quest__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #ffffff4d; background: transparent; color: #fff; font: 650 0.9rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; }
.quest__btn:hover { border-color: #fff; color: #fff; }
.quest__btn--primary { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.quest__btn--primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }
/* The ghost's speech bubble (greeting for visitors who have not touched the quest button) */
.quest__say { display: flex; justify-content: flex-end; }
.quest__bubble { position: relative; max-width: min(260px, calc(100vw - 32px)); margin: 0 6px 4px 0; padding: 10px 16px; border: 0; border-radius: 16px 16px 4px 16px; background: #fff; color: #171717; font: 650 0.95rem/1.35 var(--font-text); text-align: left; cursor: pointer; box-shadow: 0 10px 30px #00000059; opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: 100% 100%; transition: opacity .3s ease, transform .3s ease; }
.quest__bubble::after { content: ""; position: absolute; right: 18px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.quest__bubble.is-visible { opacity: 1; transform: none; }
.quest__bubble:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.quest__toast { max-width: min(350px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 14px; border: 1px solid var(--teal); background: var(--ink); color: #fff; font-size: 0.93rem; line-height: 1.35; box-shadow: 0 10px 30px #0000004d; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.quest__toast.is-visible { opacity: 1; transform: none; }
.quest__xp { color: var(--amber); font-weight: 700; }
.quest__confetti { position: fixed; inset: 0; z-index: 400; width: 100%; height: 100%; max-width: none; pointer-events: none; }
/* The hidden ghost of the last mission sits between the two lines at the very end of a page. */
.hidden-ghost { order: 1; width: 36px; height: 36px; margin: -8px 0; padding: 6px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .5s ease, opacity .5s ease; }
.hidden-ghost img { display: block; width: 24px; height: 24px; border-radius: 6px; opacity: 0.32; transition: opacity .2s ease; }
.hidden-ghost:hover img, .hidden-ghost:focus-visible img, .hidden-ghost.is-found img { opacity: 1; }
.hidden-ghost:hover, .hidden-ghost:focus-visible { transform: translateY(-3px); }
.hidden-ghost.is-found { transform: translateY(-26px) scale(1.5); opacity: 0; }
.site-footer__bottom > p:last-of-type { order: 2; }
/* The last strip of the page is kept free for the floating quest button. */
body:has(.quest) .site-footer__bottom { padding-bottom: 80px; }
@media (max-width: 520px) {
  .quest { right: 12px; bottom: calc(12px + var(--consent-h, 0px)); }
  .quest__pill { padding-right: 7px; gap: 0; }
  /* on a phone the panel takes at most a good half of the screen, so the page stays visible behind it */
  .quest__panel { width: min(340px, calc(100vw - 24px)); max-height: min(62vh, calc(100vh - 150px - var(--consent-h, 0px))); max-height: min(62dvh, calc(100dvh - 150px - var(--consent-h, 0px))); padding: 16px; font-size: 0.9rem; }
  .quest__head { top: -16px; margin: -16px -16px 0; padding: 16px 16px 8px; }
  .quest__missions li { padding: 7px 0; }
  .quest__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .quest__pill.is-active { padding-right: 14px; gap: 8px; }
}

/* ---------- 14. 404, reduced motion, print ---------- */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding-block: 80px; }
.notfound h1 { font-size: clamp(3rem, 12vw, 7rem); margin-bottom: 0.1em; }
.notfound p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media print {
  .site-header, .subnav, .site-footer, .consent, .quest, canvas.seam, canvas.fireflies, .carousel-nav, .slideshow__nav { display: none !important; }
  body, [data-theme] { background: #fff !important; color: #000 !important; }
}
