/* Sofia Sans, self-hosted (SIL Open Font License). Latin + Latin Extended covers Polish. */
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/sofia-sans-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/sofia-sans-latin.woff2") format("woff2");
  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: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/fonts/sofia-sans-extra-condensed-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2");
  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: "Sofia Sans Semi Condensed";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/sofia-sans-semi-condensed-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans Semi Condensed";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/sofia-sans-semi-condensed-latin.woff2") format("woff2");
  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;
}

/* Palette taken from VFR aeronautical charts. */
:root {
  --paper: #edf1ee;
  --ink: #14284b;
  --muted: #4a5a6e;
  --route: #a3195b;
  --chart: #3a6ea5;
  --grid: #c8d2cf;
  --on-route: #ffffff;

  --sans: "Sofia Sans", system-ui, sans-serif;
  --semi: "Sofia Sans Semi Condensed", var(--sans);
  --cond: "Sofia Sans Extra Condensed", var(--sans);

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1c33;
    --ink: #e3e9ef;
    --muted: #a3b1c2;
    --route: #e66aa3;
    --chart: #7fa8d6;
    --grid: #26385a;
    --on-route: #0f1c33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1c33;
  --ink: #e3e9ef;
  --muted: #a3b1c2;
  --route: #e66aa3;
  --chart: #7fa8d6;
  --grid: #26385a;
  --on-route: #0f1c33;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--route);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

/* Header */
.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.wordmark {
  margin-right: auto;
  font: 700 1.5rem/1 var(--semi);
  text-decoration: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--grid);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--route); color: var(--route); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 600px) {
  .site-head nav { order: 3; width: 100%; }
}
.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.site-head nav a {
  font: 500 1rem/1 var(--semi);
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}
.site-head nav a:hover { color: var(--route); }

/* Hero: a faint chart graticule behind the headline */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 128px) var(--gutter) clamp(40px, 6vw, 72px);
  --graticule: color-mix(in srgb, var(--grid) 55%, transparent);
  background-image:
    linear-gradient(var(--graticule) 1px, transparent 1px),
    linear-gradient(90deg, var(--graticule) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: var(--gutter) 0;
}
.hero h1 {
  font: 800 clamp(3rem, 9vw, 7.5rem)/0.92 var(--cond);
  letter-spacing: -0.01em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-body {
  margin-top: clamp(28px, 4vw, 48px);
  margin-left: auto;
  max-width: 34rem;
  background: var(--paper);
  padding: 8px 0;
}
.lede {
  font-size: 1.3125rem;
  line-height: 1.5;
}
.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.button {
  display: inline-block;
  background: var(--route);
  color: var(--on-route);
  font: 700 1.125rem/1 var(--semi);
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 2px;
}
.button:hover { background: var(--ink); color: var(--paper); }
.text-link {
  font: 600 1.125rem/1 var(--semi);
  color: var(--route);
  text-underline-offset: 4px;
}

/* Route: career as a flight track */
.route {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.route h2,
.block h2,
.contact h2 {
  font: 800 clamp(2.25rem, 5vw, 3.5rem)/1 var(--cond);
  text-wrap: balance;
}
.route ol {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.route ol::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--route) 0 14px, transparent 14px 22px);
  transform-origin: left center;
  animation: track-x 1.8s cubic-bezier(.6, 0, .2, 1) .3s both;
}
.route li {
  position: relative;
  padding-top: 44px;
}
.route li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 21px;
  height: 21px;
  border: 3px solid var(--route);
  border-radius: 50%;
  background: var(--paper);
}
.route li.now::before {
  width: 28px;
  height: 28px;
  top: -4px;
  border: 0;
  border-radius: 0;
  background: var(--route);
  /* Aircraft silhouette, pointing along the track */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(90 12 12)' d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(90 12 12)' d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.when {
  font: 600 1rem/1 var(--semi);
  color: var(--route);
}
.route h3 {
  margin-top: 8px;
  font: 700 1.3125rem/1.15 var(--semi);
  overflow-wrap: anywhere;
}
.platform {
  margin-top: 4px;
  font: 500 1rem/1.3 var(--semi);
  color: var(--chart);
}
.route li p:last-child {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

@keyframes track-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes track-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Content blocks: heading column + body column */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--grid);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: start;
}

.services div {
  padding: 20px 0;
  border-bottom: 1px solid var(--grid);
}
.services div:first-child { padding-top: 0; }
.services dt {
  font: 700 1.5rem/1.2 var(--semi);
}
.services dd {
  margin-top: 6px;
  max-width: 36rem;
  color: var(--muted);
}

.case-body p,
.about-body p { max-width: 36rem; }
.about-body p + p { margin-top: 1em; }
.case-body ul {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.case-body li {
  position: relative;
  padding: 10px 0 10px 32px;
  font: 600 1.3125rem/1.3 var(--semi);
}
.case-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 3px;
  background: var(--route);
}

/* Contact */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  border-top: 3px solid var(--ink);
}
.contact h2 { max-width: 18ch; }
.contact > p:not(.elsewhere) {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 1.3125rem;
}
.mail {
  display: inline-block;
  margin-top: 32px;
  font: 800 clamp(2.25rem, 7vw, 4.5rem)/1.05 var(--cond);
  color: var(--route);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--ink); }
.elsewhere {
  margin-top: 24px;
  font: 600 1.125rem/1 var(--semi);
}
.elsewhere a { color: var(--chart); text-underline-offset: 4px; }

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--muted);
}
.consent-reopen {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent-reopen:hover { color: var(--route); }

/* Cookie consent: a chart-legend box pinned to the corner */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: 24px;
  z-index: 10;
  width: min(30rem, calc(100% - 2 * var(--gutter)));
  padding: 20px 24px 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--grid);
}
.consent[hidden] { display: none; }
.consent h2 {
  font: 700 1.3125rem/1.2 var(--semi);
}
.consent p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.consent-actions button {
  flex: 1 1 8rem;
  padding: 12px 20px;
  border: 2px solid var(--route);
  border-radius: 2px;
  font: 700 1rem/1 var(--semi);
  cursor: pointer;
}
.consent-accept { background: var(--route); color: var(--on-route); }
.consent-reject { background: transparent; color: var(--route); }
.consent-actions button:hover { border-color: var(--ink); }
.consent-accept:hover { background: var(--ink); color: var(--paper); }
.consent-reject:hover { color: var(--ink); }

/* Narrower screens: route turns vertical, blocks stack */
@media (max-width: 960px) {
  .route ol {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .route ol::before {
    top: 9px;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 3px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--route) 0 14px, transparent 14px 22px);
    transform-origin: center top;
    animation-name: track-y;
  }
  .route li { padding: 0 0 0 48px; }
  .route li.now::before {
    top: -2px;
    left: -3px;
    transform: rotate(90deg);
  }
  .route li p:last-child { max-width: 32rem; }
  .block { grid-template-columns: 1fr; }
  .hero-body { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route ol::before { animation: none; }
}

.site-foot a { color: inherit; text-underline-offset: 3px; }
.site-foot a:hover { color: var(--route); }
.consent p a { color: var(--route); text-underline-offset: 3px; }

/* Text pages, e.g. the privacy policy */
.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px);
}
.doc > * { max-width: 40rem; }
.doc h1 {
  font: 800 clamp(2.75rem, 7vw, 4.5rem)/0.95 var(--cond);
}
.doc-lede {
  margin-top: 24px;
  font-size: 1.3125rem;
}
.doc-updated {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted);
}
.doc section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--grid);
}
.doc h2 {
  font: 700 1.5rem/1.2 var(--semi);
}
.doc section > p { margin-top: 12px; }
.doc a { color: var(--route); text-underline-offset: 3px; }
.doc code {
  font: 600 0.95em/1 var(--semi);
  color: var(--chart);
}
.facts { margin-top: 16px; }
.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 4px 20px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--grid);
}
.facts dt { font: 600 1rem/1.5 var(--semi); }
.facts dd { color: var(--muted); }
@media (max-width: 600px) {
  .facts div { grid-template-columns: 1fr; }
}
