/* ============================================================
   Qortex — Hero exploration
   Tokens
   ============================================================ */
:root {
  --ink: #1B2A3A;
  --ink-soft: #4a5663;
  --ink-mute: #8a929b;
  --paper: #FAFAF8;
  --paper-2: #F2F0EA;
  --rule: #E5E2D9;
  --accent: #D4C5A9;
  --tint: #EDE6D6;
  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

:root[data-heading="fraunces"]    { --font-display: "Instrument Serif", "Times New Roman", Times, serif; }
:root[data-heading="space-grotesk"] { --font-display: "Space Grotesk", "Inter Tight", sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--ink); }

/* ============================================================
   Sticky top nav
   ============================================================ */
.qx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.qx-nav__logo {
  display: inline-flex;
  align-items: center;
  height: 42px;
  width: 132px;
  overflow: hidden;
}
.qx-nav__logo img {
  /* original art = wordmark + tagline stacked at ~2.67:1; we crop to wordmark
     only by oversizing the image and anchoring to top so the tagline clips. */
  width: 132px;
  height: auto;
  display: block;
  margin-top: -4px;
  /* image is ~70% wordmark vertically; container height 42 hides the tagline */
}
.qx-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  flex-wrap: nowrap;
}
.qx-nav__links a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .15s ease;
}
.qx-nav__links a:hover { color: var(--ink); }
.qx-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.qx-nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 860px) {
  .qx-nav__links { display: none; }
  .qx-nav { grid-template-columns: auto auto; justify-content: space-between; }
}

/* ============================================================
   Buttons
   ============================================================ */
.qx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font: 500 14px/1 var(--font-body);
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.qx-btn--lg { padding: 16px 24px; font-size: 15px; }
.qx-btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.qx-btn--primary:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.qx-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.qx-btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   Shared bits
   ============================================================ */
.qx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.qx-eyebrow--muted { color: var(--ink-mute); }
.qx-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 40%, transparent);
}

.qx-lede {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.qx-lede--center { margin: 0 auto; text-align: center; }

.qx-underline {
  background-image: linear-gradient(transparent 78%, var(--accent) 78%, var(--accent) 96%, transparent 96%);
  padding: 0 .05em;
  white-space: nowrap;
}

/* ============================================================
   Display type
   ============================================================ */
.qx-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(56px, 11vw, 184px);
  color: var(--ink);
  text-wrap: balance;
}
.qx-display em {
  font-style: italic;
  font-weight: 400;
  font-family: "Instrument Serif", "Times New Roman", serif;
  letter-spacing: -0.02em;
}
.qx-display__line { display: block; }
.qx-display__line--accent { color: var(--ink); }
.qx-display--md { font-size: clamp(48px, 6.5vw, 96px); }

:root[data-heading="fraunces"] .qx-display { font-weight: 400; letter-spacing: -0.02em; }
:root[data-heading="fraunces"] .qx-display em { font-family: "Instrument Serif", serif; }
:root[data-heading="space-grotesk"] .qx-display { letter-spacing: -0.03em; font-weight: 500; }

/* ============================================================
   Variant A — Editorial
   ============================================================ */
.qx-hero--editorial {
  position: relative;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(60px, 8vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.qx-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 6vw, 88px);
}
.qx-hero__foot {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 48px;
  align-items: end;
}
@media (max-width: 820px) {
  .qx-hero__foot { grid-template-columns: 1fr; gap: 28px; align-items: stretch; }
}
.qx-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.qx-ctas--center { justify-content: center; }

.qx-hero__sidemeta {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
.qx-sidemeta__row { display: inline-flex; gap: 14px; align-items: center; }
.qx-sidemeta__row span:first-child { color: var(--accent); }
@media (max-width: 1100px) { .qx-hero__sidemeta { display: none; } }

/* ============================================================
   Variant B — Script (handwritten lead, mirrors the logo)
   ============================================================ */
.qx-hero--script {
  position: relative;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(60px, 8vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.qx-script-head {
  margin: clamp(40px, 6vw, 96px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 16px);
  line-height: 1;
}
.qx-script-head__sans {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.92;
  color: var(--ink);
}
.qx-script-head__script {
  display: block;
  font-family: "Italianno", "Sacramento", "Brush Script MT", cursive;
  font-weight: 400;
  /* Italianno's x-height is tiny — pump the size and rein in the line-box */
  font-size: clamp(96px, 18vw, 296px);
  line-height: 0.78;
  letter-spacing: -0.005em;
  color: var(--ink);
  /* Pull script left so its tall ascenders align with the sans line above */
  margin-left: -0.04em;
  margin-top: -0.18em;
  text-wrap: balance;
  /* Match the logo's stroke quality: very thin, optical kern */
  font-feature-settings: "calt", "liga", "dlig";
  -webkit-text-stroke: 0.4px var(--ink);
}
.qx-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.qx-hero__foot--script {
  margin-top: clamp(56px, 8vw, 112px);
}

/* ============================================================
   Variant C — Manifesto / centered
   ============================================================ */
.qx-hero--manifesto {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 140px) var(--gutter) clamp(60px, 8vw, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 80px);
  justify-content: center;
}
.qx-manifesto__top { margin-bottom: 8px; }
.qx-manifesto__head {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(56px, 9.5vw, 152px);
  text-wrap: balance;
}
.qx-manifesto__head em {
  font-style: italic;
  font-weight: 400;
  font-family: "Instrument Serif", serif;
}
.qx-manifesto__accent { color: var(--ink-soft); }
.qx-bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  font: 500 13px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.qx-bullets li { display: inline-flex; align-items: center; gap: 10px; }
.qx-bullets li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 999px;
}

/* ============================================================
   Q-group bar (below hero)
   ============================================================ */
.qx-qgroup-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.qx-qgroup-bar__logo {
  height: 28px;
  width: auto;
  /* original logo is dark; ensure it sits well against paper */
  filter: none;
}
.qx-qgroup-bar__link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 13px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: color .15s ease, border-color .15s ease;
}
.qx-qgroup-bar__link:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 640px) {
  .qx-qgroup-bar { flex-wrap: wrap; gap: 12px; }
  .qx-qgroup-bar__link { margin-left: 0; }
}


/* ============================================================
   Section primitives — used by all sections 02–08
   ============================================================ */
.qx-section {
  position: relative;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.qx-section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 140px) var(--gutter);
}
.qx-sechead {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: clamp(40px, 6vw, 80px);
  max-width: 60ch;
}
.qx-sechead--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.qx-sechead__top {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.qx-sechead__num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
}
.qx-sechead__rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--accent);
}
.qx-sechead__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(40px, 5.4vw, 84px);
  text-wrap: balance;
  color: var(--ink);
}
.qx-sechead__accent {
  color: var(--ink-soft);
  font-style: italic;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.qx-sechead__lede {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================================
   02 · Vad vi gör — Services
   ============================================================ */
.qx-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 820px) { .qx-services { grid-template-columns: 1fr; } }
.qx-service {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.qx-service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s ease;
}
.qx-service:hover {
  border-color: color-mix(in oklab, var(--ink) 18%, var(--rule));
  box-shadow: 0 24px 48px -32px color-mix(in oklab, var(--ink) 35%, transparent);
}
.qx-service:hover::before { opacity: 1; }
.qx-service__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.qx-service__num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.qx-service__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1;
  color: var(--ink);
}
.qx-service__lede {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.qx-service__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.qx-service__tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.qx-service__tags li {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--paper-2);
  padding: 8px 12px;
  border-radius: 999px;
}

/* ============================================================
   03 · Hur vi tänker — Method
   ============================================================ */
.qx-section--method { background: var(--paper-2); }
.qx-method {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.qx-method__row {
  display: grid;
  grid-template-columns: clamp(72px, 10vw, 140px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 64px) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.qx-method__row:last-child { border-bottom: 1px solid var(--rule); }
.qx-method__num {
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 12px;
}
.qx-method__word {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(56px, 8vw, 128px);
  color: var(--ink);
}
.qx-method__word span {
  color: var(--accent);
}
.qx-method__body p {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ============================================================
   04 · I urval — Cases
   ============================================================ */
.qx-filters {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 999px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.qx-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.qx-filter:hover { color: var(--ink); }
.qx-filter.is-active {
  background: var(--ink);
  color: var(--paper);
}
.qx-filter__count {
  font: 500 11px/1 var(--font-mono);
  opacity: 0.7;
}

.qx-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 880px) { .qx-cases { grid-template-columns: 1fr; } }
.qx-case {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.qx-case:hover {
  border-color: color-mix(in oklab, var(--ink) 18%, var(--rule));
  box-shadow: 0 24px 48px -32px color-mix(in oklab, var(--ink) 35%, transparent);
}
.qx-case__top { display: flex; justify-content: space-between; align-items: center; }
.qx-case__idx {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.qx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: var(--paper);
}
.qx-tag--tech { color: var(--ink); border-color: var(--ink); }
.qx-tag--pp { color: var(--ink); background: var(--tint); border-color: transparent; }
.qx-case__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--ink);
  text-wrap: balance;
}
.qx-case__meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.qx-case__meta dt {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.qx-case__meta dd { margin: 0; font-size: 14px; color: var(--ink); }
.qx-case__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.qx-case__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qx-case__by { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink); }
.qx-case__avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.qx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 13px/1 var(--font-body);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.qx-link:hover { gap: 10px; color: var(--ink); }

/* ============================================================
   05 · Teamet
   ============================================================ */
.qx-team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
@media (max-width: 1100px) { .qx-team { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .qx-team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .qx-team { grid-template-columns: repeat(2, 1fr); } }
.qx-person {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qx-person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--tint);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qx-person__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in oklab, var(--ink) 8%, transparent) 14px 15px);
  z-index: -1;
}
.qx-person__placeholder {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
}
.qx-person__meta { display: flex; flex-direction: column; gap: 4px; }
.qx-person__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--ink);
}
.qx-person__role {
  font: 500 12px/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.qx-person__bio {
  margin: 8px 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.qx-person__li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.qx-person__li:hover { color: var(--ink); }

/* ============================================================
   06 · Del av Q-group
   ============================================================ */
.qx-section--qgroup { background: var(--paper-2); }
.qx-qgroup-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .qx-qgroup-band { grid-template-columns: 1fr; } }
.qx-qgroup-band__left { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.qx-qgroup-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(36px, 4.6vw, 72px);
  color: var(--ink);
  text-wrap: balance;
}
.qx-qgroup-band__title em {
  font-style: italic;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink-soft);
}
.qx-qgroup-band__body {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.qx-qgroup-band__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.qx-qgroup-band__logo {
  height: 56px;
  width: auto;
  align-self: flex-start;
}
.qx-qgroup-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
}
.qx-qgroup-stats > div { display: flex; flex-direction: column; gap: 4px; }
.qx-qgroup-stats dt {
  font: 500 30px/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--paper);
}
.qx-qgroup-stats dd {
  margin: 0;
  font: 500 10.5px/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}
@media (max-width: 1100px) and (min-width: 881px),
       (max-width: 480px) {
  .qx-qgroup-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   07 · Karriär
   ============================================================ */
.qx-career {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
@media (max-width: 880px) { .qx-career { grid-template-columns: 1fr; } }
.qx-career__points {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.qx-career__points li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.qx-career__points li:last-child { border-bottom: 1px solid var(--rule); }
.qx-career__num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.qx-career__points h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink);
}
.qx-career__points p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.qx-career__card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 100px;
}
.qx-career__name {
  margin: 6px 0 2px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 28px;
  color: var(--ink);
}
.qx-career__role {
  font-size: 14px;
  color: var(--ink-soft);
}
.qx-career__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.qx-career__contact a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.qx-career__contact a:hover { border-color: var(--ink); }
.qx-career__card .qx-btn { margin-top: 8px; align-self: flex-start; }

/* ============================================================
   08 · Kontakt (dark inverse)
   ============================================================ */
.qx-section--contact {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}
.qx-section--contact .qx-sechead__title { color: var(--paper); }
.qx-section--contact .qx-sechead__accent { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.qx-section--contact .qx-sechead__lede { color: color-mix(in oklab, var(--paper) 75%, transparent); }
.qx-section--contact .qx-sechead__num,
.qx-section--contact .qx-sechead__rule { background: var(--accent); color: var(--accent); }

.qx-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 880px) { .qx-contact { grid-template-columns: 1fr; } }
.qx-contact__left { display: flex; flex-direction: column; gap: 28px; }
.qx-contact__person { display: flex; gap: 18px; align-items: center; }
.qx-contact__avatar {
  width: 84px; height: 84px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  border: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
}
.qx-contact__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: 28px;
  color: var(--paper);
}
.qx-contact__role {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}
.qx-contact__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qx-contact__list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 12%, transparent);
}
.qx-contact__list a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.qx-contact__list a:hover { border-color: var(--paper); }
.qx-contact__cta {
  align-self: flex-start;
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.qx-contact__cta:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.qx-contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: color-mix(in oklab, var(--paper) 6%, transparent);
  padding: clamp(28px, 3vw, 44px);
  border-radius: 4px;
  border: 1px solid color-mix(in oklab, var(--paper) 10%, transparent);
}
.qx-field { display: flex; flex-direction: column; gap: 8px; }
.qx-field--full { grid-column: 1 / -1; }
.qx-field label {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in oklab, var(--paper) 65%, transparent);
}
.qx-field input,
.qx-field select,
.qx-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 22%, transparent);
  padding: 10px 0 12px;
  font: 400 16px/1.4 var(--font-body);
  color: var(--paper);
  outline: none;
  border-radius: 0;
  transition: border-color .15s ease;
}
.qx-field input::placeholder,
.qx-field textarea::placeholder {
  color: color-mix(in oklab, var(--paper) 35%, transparent);
}
.qx-field select option { color: var(--ink); }
.qx-field input:focus,
.qx-field select:focus,
.qx-field textarea:focus { border-color: var(--accent); }
.qx-field textarea { resize: vertical; min-height: 120px; }
.qx-field--actions { flex-direction: row; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.qx-field--actions .qx-btn { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.qx-field--actions .qx-btn:hover:not(:disabled) { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.qx-field--actions .qx-btn:disabled { opacity: 0.7; cursor: default; }
.qx-contact__note {
  font: 500 11px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  max-width: 36ch;
}

/* ============================================================
   Footer
   ============================================================ */
.qx-footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--paper) 10%, transparent);
}
.qx-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 720px) { .qx-footer__inner { grid-template-columns: 1fr; } }
.qx-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.qx-footer__logo {
  width: 152px;
  height: auto;
  /* invert the dark Qortex logo to read on dark bg */
  filter: invert(1) brightness(1.05);
  align-self: flex-start;
}
.qx-footer__addr {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 65%, transparent);
}
.qx-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 540px) { .qx-footer__cols { grid-template-columns: 1fr 1fr; } }
.qx-footer__cols ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.qx-footer__cols a {
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.qx-footer__cols a:hover { color: var(--paper); border-color: color-mix(in oklab, var(--paper) 30%, transparent); }
.qx-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  border-top: 1px solid color-mix(in oklab, var(--paper) 10%, transparent);
  font: 500 11px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  max-width: var(--max);
  margin: 0 auto;
}
.qx-footer__base a { color: inherit; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.qx-footer__base a:hover { border-color: currentColor; }

/* Tweak: dark sections invert the navigation backdrop tint when sticky overlaps */
