/* panquest.com: one stylesheet, no external fonts, no scripts. System fonts keep the site fast and private. */

:root {
  --ink: #161616;
  --ink-soft: #393939;
  --muted: #5e5e5e;
  --line: #d9d4ca;
  --band: #efece6;
  --paper: #f8f6f2;
  --accent: #6c3db7;
  --accent-dark: #52298f;
  --accent-soft: #f1ebfb;
  --mast: #161616;
  --mast-ink: #f4f4f4;
  --max: 1200px;
  --gutter: 24px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---- masthead ---------------------------------------------------------------------------------------------- */
.mast { background: var(--mast); color: var(--mast-ink); border-bottom: 1px solid #2a2a2a; }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mast-ink); font-weight: 600; font-size: 20px; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #c6c6c6; padding: 20px 12px; font-size: 15px; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.nav { margin-left: auto; }
.mast .cta { color: #fff; background: var(--accent); padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.mast .cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ---- hero -------------------------------------------------------------------------------------------------- */
.hero { background: var(--mast); color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  border: 60px solid rgba(108, 61, 183, 0.38); border-radius: 50%; pointer-events: none;
}
.hero .eyebrow { color: #c9b3f5; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; font-weight: 300; margin: 12px 0 20px; max-width: 18em; }
.hero h1 strong { font-weight: 600; }
.hero p.lead { font-size: 20px; color: #d0d0d0; max-width: 40em; margin: 0 0 32px; }
.hero.compact { padding: 64px 0 64px; }
.hero.compact h1 { font-size: clamp(30px, 4vw, 44px); }

.eyebrow { font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 22px; font-size: 16px; font-weight: 600; border: 2px solid var(--accent); background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; border-color: #8d8d8d; }
.btn.ghost:hover { border-color: #fff; background: transparent; }
.btn.line { background: transparent; color: var(--accent); }
.btn.line:hover { background: var(--accent-soft); }

/* ---- sections ---------------------------------------------------------------------------------------------- */
section { padding: 80px 0; }
section.band { background: var(--band); }
section.tight { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 400; margin: 8px 0 20px; max-width: 24em; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.intro { font-size: 19px; color: var(--ink-soft); max-width: 44em; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.grid > * { background: var(--paper); padding: 32px; }
.band .grid > * { background: var(--paper); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.grid p:last-child { margin-bottom: 0; }
.grid .num { font-size: 40px; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.card-link { display: inline-block; margin-top: 8px; font-weight: 600; }
.card-link::after { content: " \2192"; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.wide-left { grid-template-columns: 3fr 2fr; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
ul.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; margin: 24px 0; color: var(--ink-soft); }
.small { font-size: 14px; color: var(--muted); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--band); padding: 1px 5px; }

/* regulation table */
table.plain { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 16px; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--line); }
table.plain th { font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
table.plain td:first-child { font-weight: 600; white-space: nowrap; }

/* the architecture figure */
figure.diagram { margin: 40px 0 0; border: 1px solid var(--line); background: var(--paper); padding: 24px; }
figure.diagram svg { width: 100%; height: auto; display: block; }
figure.diagram figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* offices */
.office { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--paper); }
.office .photo { aspect-ratio: 3 / 2; background: var(--band); overflow: hidden; }
.office .photo img { width: 100%; height: 100%; object-fit: cover; }
.office .photo.pending { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 15px; padding: 24px;
  background: repeating-linear-gradient(45deg, #efece6, #efece6 12px, #e7e3db 12px, #e7e3db 24px); }
.office .body { padding: 28px 32px; }
.office address { font-style: normal; color: var(--ink-soft); }
.credit { font-size: 12px; color: var(--muted); padding: 6px 12px 0; }

/* call to action strip */
.cta-strip { background: var(--accent); color: #fff; padding: 56px 0; }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-strip h2 { color: #fff; margin: 0; font-size: clamp(24px, 3vw, 32px); }
.cta-strip .btn { background: #f8f6f2; color: var(--accent); border-color: #f8f6f2; }
.cta-strip .btn:hover { background: var(--accent-soft); }

/* ---- footer ------------------------------------------------------------------------------------------------ */
.foot { background: var(--mast); color: #c6c6c6; padding: 56px 0 32px; font-size: 15px; }
.foot a { color: #e0e0e0; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot .privacy { margin-top: 40px; padding-top: 20px; border-top: 1px solid #393939; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot .privacy strong { color: #fff; font-weight: 600; }

/* ---- small screens ----------------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .split, .split.wide-left { grid-template-columns: 1fr; gap: 32px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .nav a { padding: 10px 8px; }
  .mast .wrap { padding-top: 8px; padding-bottom: 8px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .grid > * { padding: 24px; }
  table.plain td:first-child { white-space: normal; }
  .foot .cols { grid-template-columns: 1fr; }
}

@media print {
  .mast .nav, .cta-strip, .hero::after { display: none; }
  .hero { background: none; color: var(--ink); padding: 24px 0; }
  .hero p.lead { color: var(--ink-soft); }
}

/* ---- pieces the pages use (no inline styles: the Content Security Policy allows none) ---------------------- */
.foot-about { margin-top: 16px; max-width: 26em; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 40px; }
.wrap.narrow { max-width: 860px; }
.wrap.narrow h2 + p, .wrap.narrow h2 { scroll-margin-top: 16px; }
.wrap.narrow p + h2 { margin-top: 48px; }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; } }

/* the architecture diagram's shapes and text */
figure.diagram .b { fill: #f8f6f2; stroke: #161616; stroke-width: 1.5; }
figure.diagram .q { fill: #f1ebfb; stroke: #6c3db7; stroke-width: 2; }
figure.diagram .t { font: 600 15px var(--font); fill: #161616; }
figure.diagram .s { font: 13px var(--font); fill: #5e5e5e; }
figure.diagram .a { stroke: #161616; stroke-width: 1.5; fill: none; marker-end: url(#ah); }

/* the hero text always sits above the decorative ring; the ring stays away from small screens, where it would
   run behind the text; smaller heroes use a heavier headline so it stays legible on the dark ground */
.hero .wrap { position: relative; z-index: 1; }
.hero.compact h1 { font-weight: 400; }
@media (max-width: 960px) { .hero::after { display: none; } }

/* the company details on the legal page: a compact two column list */
table.plain.facts { margin: 8px 0 24px; }
table.plain.facts td { padding: 10px 16px 10px 0; }
table.plain.facts td:first-child { color: var(--muted); font-weight: 400; width: 16em; }
@media (max-width: 640px) {
  /* a label longer than its English one (Dutch, German) must not push the value past the screen's edge */
  table.plain.facts td:first-child { width: auto; }
  table.plain.facts td { overflow-wrap: anywhere; }
}

/* a second heading inside a section, above its own grid */
h2.subhead { font-size: clamp(22px, 2.4vw, 28px); margin-top: 56px; margin-bottom: 0; }
h2.subhead + .intro { margin-top: 12px; }

/* narrow screens: PanQuest and Contact sales share the top row, the menu wraps onto its own row below them */
@media (max-width: 900px) {
  .mast .wrap { gap: 0 16px; }
  .brand { order: 1; flex: 1; }
  .mast .cta { order: 2; margin: 10px 0; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; }
}

/* phones: the PanQuest name already leads home, so the Home item makes room for the other four on one row */
@media (max-width: 640px) {
  .nav { justify-content: space-between; gap: 0; }
  .nav a { padding: 10px 4px; font-size: 14.5px; }
  .nav a[href="index.html"] { display: none; }
}
@media (max-width: 359px) { .nav a { font-size: 13px; padding: 10px 2px; } }

/* the language chooser in the masthead: four links behind a summary, so it needs no script and no cookie.
   The open panel is positioned against the masthead's own row rather than the page, so it cannot push the
   layout around when it opens. */
.lang { position: relative; margin-left: 4px; }
.lang > summary { list-style: none; cursor: pointer; color: #c6c6c6; font-size: 15px; padding: 8px 10px;
  border: 1px solid #3a3a3a; white-space: nowrap; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: ""; display: inline-block; margin-left: 8px; border: 4px solid transparent;
  border-top-color: currentColor; vertical-align: 2px; }
.lang > summary:hover, .lang[open] > summary { color: #fff; border-color: #6a6a6a; }
.lang > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px 0;
  list-style: none; background: #1c1c1c; border: 1px solid #3a3a3a; min-width: 160px; }
.lang li { margin: 0; }
.lang ul a { display: block; padding: 8px 14px; color: #c6c6c6; font-size: 15px; }
.lang ul a:hover { background: #2a2a2a; color: #fff; text-decoration: none; }
.lang ul a[aria-current="true"] { color: #fff; border-left: 3px solid var(--accent); padding-left: 11px; }

@media (max-width: 640px) {
  /* the masthead stacks here, so the panel opens in the flow instead of over it */
  .lang { order: 2; margin-left: 0; }
  .lang ul { position: static; min-width: 0; }
}
