/* ── Fonts (self-hosted variable fonts; latin-ext covers Polish) ── */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-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: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-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;
}

/* ── Tokens ── */
:root {
  --bg: #202020;
  --surface: #252525;
  --surface-sunk: #222222;
  --surface-band: #232323;
  --surface-hover: #2A2A2A;
  --hover: #2F2F2F;
  --selected: #343434;
  --line: #2F2F2F;
  --line-2: #343434;
  --border: #3A3A3A;
  --border-2: #444444;
  --border-hover: #555555;
  --ring-dash: #3C3C3C;
  --ring-dash-2: #484848;
  --grid-dot: #333333;
  --text: #E8EAF0;
  --text-2: #C4CAD4;
  --text-3: #AEB5C2;
  --muted: #9AA3B2;
  --white: #FFFFFF;
  --garden: #8BE28B;
  --font-sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 77px; /* desktop header: one 76px row plus its border */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* Sections hidden by the page scripts stay hidden whatever their layout. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: #5AB8FF; }
a:hover { color: #9AD3FF; }
button { font: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.dot { display: inline-block; flex-shrink: 0; border-radius: 50%; background: var(--c, currentColor); }

:is(a, button):focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ── Language switch ── */
.lang {
  display: flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface);
}
.lang-btn {
  min-width: 48px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.lang-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-btn[aria-pressed="false"]:hover { color: var(--text); }

/* ══ Skills sphere (home) ══ */
@keyframes sk-fade { from { opacity: 0; } to { opacity: 1; } }

.home {
  position: relative;
  padding-top: 24px; padding-bottom: 40px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-x: clip; /* outermost tags may poke past the edge while spinning */
  animation: sk-fade .4s ease;
}
.home-intro { display: flex; flex-direction: column; gap: 18px; }
.home-eyebrow {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.home-copy { display: flex; flex-direction: column; gap: 16px; }
.home-copy h1 { font-size: 38px; line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; }
.home-copy p { font-size: 16px; line-height: 1.5; color: var(--text-3); }

.legend, .caption { display: none; }

.hint { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-height: 18px; }

.area-row {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px;
  scrollbar-width: none;
}
.area-row::-webkit-scrollbar { display: none; }
.area-chip {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: 999px;
  color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.area-chip:hover { color: var(--text); background: var(--hover); }
.area-chip .dot { width: 8px; height: 8px; }
.area-chip .count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Sphere */
.sphere {
  position: relative; flex-shrink: 0;
  width: 100%; max-width: 600px; align-self: center; aspect-ratio: 1 / 1;
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab; isolation: isolate;
}
.sphere.is-dragging { cursor: grabbing; }
.sphere-glow {
  position: absolute; left: 50%; top: 50%;
  width: 53%; height: 53%; transform: translate(-50%, -50%);
  border-radius: 50%; background: #1B3A63; opacity: 0.5; filter: blur(50px);
  transition: background-color .6s, opacity .6s;
  pointer-events: none;
}
.sphere-ring {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--line-2);
  pointer-events: none;
}
.sphere-ring.is-dashed { border: 1px dashed var(--ring-dash); }
.tag {
  position: absolute; left: 50%; top: 50%;
  white-space: nowrap; padding: 4px 9px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; text-decoration: none;
  will-change: transform, opacity;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
  -webkit-user-drag: none;
}
.tag[data-w="1"] { font-size: 11px; font-weight: 400; }
.tag[data-w="2"] { font-size: 13px; font-weight: 500; }
.tag[data-w="3"] { font-size: 16px; font-weight: 600; }

@media (min-width: 1024px) {
  /* The hero fills the first screen below the header; the footer follows below it. */
  .home {
    min-height: calc(100svh - var(--header-h));
    padding-top: 40px; padding-bottom: 40px;
    flex-direction: row; align-items: center; gap: 40px;
  }
  .home-intro { width: clamp(360px, 36vw, 520px); flex-shrink: 0; gap: 22px; }
  .home-eyebrow { font-size: 13px; letter-spacing: 0.18em; line-height: normal; }
  .home-copy { gap: 22px; }
  .home-copy h1 { font-size: 46px; line-height: 1.02; }
  .home-copy p { font-size: 18px; line-height: 1.55; }

  .legend { display: flex; flex-direction: column; gap: 4px; }
  .legend-item {
    --halo: transparent;
    display: flex; align-items: center; gap: 14px;
    min-height: 40px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 10px;
    color: var(--text); text-decoration: none; font-size: 16px;
    transition: background-color .2s, border-color .2s;
  }
  .legend-item:hover { color: var(--text); }
  .legend-item.is-on {
    --halo: color-mix(in srgb, var(--c) 20%, transparent);
    border-color: color-mix(in srgb, var(--c) 50%, transparent);
    background: color-mix(in srgb, var(--c) 7.8%, transparent);
  }
  .legend-item .dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px var(--halo); }
  .legend-item .label { flex-grow: 1; }
  .legend-item .count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
  .legend-item svg { color: var(--muted); }

  /* Room for two lines (the longest hint wraps) so hovering never resizes the centred intro. */
  .caption {
    display: flex; align-items: flex-start; gap: 10px; min-height: 3em;
    font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--muted);
  }
  .caption .dot { width: 8px; height: 8px; margin-top: calc((1.5em - 8px) / 2); background: var(--c, transparent); }

  .sphere { flex: 1 1 0; min-width: 0; max-width: min(680px, calc(100svh - var(--header-h) - 80px)); }
  .sphere-glow { width: 44%; height: 44%; filter: blur(80px); }
  .tag { padding: 6px 12px; }
  .tag[data-w="1"] { font-size: 13px; }
  .tag[data-w="2"] { font-size: 16px; }
  .tag[data-w="3"] { font-size: 21px; }

  .hint, .area-row { display: none; }
}

/* ══ Area page ══ */
@keyframes sk-spin { to { rotate: 360deg; } }
@keyframes sk-unspin { to { rotate: -360deg; } }
@keyframes sk-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.area-page { position: relative; overflow-x: hidden; }
.area-page a { color: var(--area-ink); }
.area-page a:hover { color: var(--area-hover); }
.wrap {
  max-width: 1320px; margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.empty {
  padding: 24px; border-radius: 14px; border: 1px dashed var(--border-2);
  color: var(--text-3); font-size: 15px; line-height: 1.5;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; min-height: 76px;
  padding-top: 12px; padding-bottom: 12px;
}
.header-right { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s;
}
:is(.site-header, .site-footer) .nav-link { color: var(--text-2); }
:is(.site-header, .site-footer) .nav-link:hover, .site-header .nav-link[aria-current] { background: var(--hover); color: var(--white); }
.site-header .brand { margin-left: -8px; padding: 0 8px; border-radius: 10px; }
.site-header .brand:hover { background: var(--hover); }
.brand img { display: block; width: auto; height: 24px; }

/* Main column */
.area-main {
  display: flex; flex-direction: column; gap: 96px;
  padding-top: 32px; padding-bottom: 96px;
}

/* Hero */
.hero { display: flex; flex-direction: column; gap: 24px; animation: sk-rise .6s var(--ease-out) both; }
.crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.area-page .crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }
.area-page .crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--text); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow .dot {
  width: 10px; height: 10px; background: var(--area);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--area) 20%, transparent);
}
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.hero-lead { max-width: 620px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); }
.facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts li { display: flex; align-items: baseline; gap: 10px; }
.facts .n { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.facts .label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* Orbit decoration */
.orbit { flex: 1 1 340px; max-width: 440px; width: 100%; aspect-ratio: 1 / 1; position: relative; }
.orbit-glow { position: absolute; inset: 22%; border-radius: 50%; background: var(--area); opacity: 0.18; filter: blur(60px); }
.orbit-dashed { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--ring-dash-2); animation: sk-spin 200s linear infinite reverse; }
.orbit-ring { position: absolute; inset: 24%; border-radius: 50%; border: 1px solid var(--border); }
.orbit-core {
  position: absolute; inset: 33%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--area) 40%, transparent); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--area);
}
.orbit-core .slug { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.orbit-spin { position: absolute; inset: 0; animation: sk-spin 110s linear infinite; }
.orbit-chip {
  position: absolute; translate: -50% -50%;
  white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--area) 33%, transparent);
  background: var(--surface); color: var(--area);
  font-size: 14px; font-weight: 500;
  animation: sk-unspin 110s linear infinite;
  transition: background-color .2s, border-color .2s, color .2s;
}
.orbit-chip.is-major { font-size: 16px; font-weight: 600; }
.orbit-chip.is-on { background: var(--area); border-color: var(--area); color: var(--bg); }

/* Skill filter */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 24px; flex-wrap: wrap;
}
.skills { display: flex; flex-direction: column; gap: 18px; }
.skills h2 {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.skills .help { font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--area) 33%, transparent);
  background: color-mix(in srgb, var(--area) 6.3%, transparent);
  color: var(--area-ink);
  font-size: 16px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip.is-major { font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--area); border-color: var(--area); color: var(--bg); }

/* Case studies */
.cases { display: flex; flex-direction: column; gap: 28px; }
.cases-head { align-items: flex-end; gap: 16px 24px; }
.cases-head > div { display: flex; flex-direction: column; gap: 10px; }
.cases-head .eyebrow { color: var(--area); }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 300px; min-width: 0;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .25s;
}
.card:hover { border-color: var(--border-hover); }
.card.has-diagram { flex: 2 1 600px; }
.card.is-placeholder { border: 1px dashed var(--border-2); }
.card-visual {
  margin: 16px 16px 0; height: 150px; border-radius: 12px; border: 1px dashed var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.card-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-type { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--area); }
.status {
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-2);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
}
.card :is(h2, h3) { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-3); flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-2);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.tag-pill.is-hit { border-color: var(--area); color: var(--area-ink); }
.cards > .empty { flex: 1 1 100%; padding: 28px; border-radius: 20px; font-size: 16px; }

.diagram {
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  background-color: var(--surface-sunk);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex; flex-direction: column; gap: 18px;
}
.diagram-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.diagram-flow .arrow { color: var(--muted); }
.node {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--bg);
  display: flex; flex-direction: column; gap: 2px;
}
.node .title { font-size: 14px; font-weight: 600; }
.node .sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.node.is-accent { border-color: var(--area); background: color-mix(in srgb, var(--area) 7.8%, transparent); }
.node.is-accent .sub { color: var(--area-soft); }
.diagram-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Digital garden */
.garden { border-radius: 28px; border: 1px solid var(--border); background: var(--surface-band); }
.garden-inner { display: flex; flex-wrap: wrap; gap: 48px; padding: clamp(24px, 4vw, 56px); }
.garden-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.garden-intro .eyebrow { gap: 10px; color: var(--garden); }
.garden-intro > p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.stages { margin-top: 4px; display: flex; flex-direction: column; gap: 12px; }
.stages li { display: flex; align-items: center; gap: 12px; }
.stage-icon {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid currentColor; color: var(--c);
  display: flex; align-items: center; justify-content: center;
}
.stages .text { display: flex; flex-direction: column; gap: 1px; }
.stages .name { font-size: 15px; font-weight: 600; color: var(--c); }
.stages .desc { font-size: 14px; color: var(--muted); }
.garden-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.area-page .garden-cta .pill-btn { background: var(--garden); color: var(--bg); }
.garden-cta .url { font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

.garden-notes { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tabs {
  align-self: flex-start;
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab .dot { width: 8px; height: 8px; }
.tab .count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tab[aria-pressed="false"]:hover { color: var(--text); }
.tab[aria-pressed="true"] { background: var(--selected); color: var(--white); }
.tab[aria-pressed="true"] .count { color: var(--text-2); }

.notes { display: flex; flex-direction: column; gap: 10px; }
.area-page .note {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.area-page .note:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-hover); }
.note .stage-icon { width: 36px; height: 36px; }
.note-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.note-stage { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); }
.note-title { font-size: 18px; line-height: 1.3; font-weight: 600; }
.note-blurb { font-size: 15px; line-height: 1.55; color: var(--text-3); }
.note-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.note-tags .is-hit { color: var(--area-ink); }
.note-arrow { flex-shrink: 0; color: var(--muted); font-size: 18px; }

/* Prev / next */
.pager { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.area-page .pager a {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.area-page .pager a:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface); }
.pager .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pager .name { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; }
.pager .name .dot { width: 8px; height: 8px; }
.area-page .pager .home-link { align-items: center; justify-content: center; text-align: center; font-size: 16px; font-weight: 500; }
.pager .home-link svg { color: var(--muted); }
.area-page .pager .next { align-items: flex-end; text-align: right; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap; min-height: 88px;
  padding-top: 20px; padding-bottom: 20px;
  font-size: 14px; color: var(--muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-nav .nav-link { padding: 0 12px; font-size: 14px; font-weight: 400; }

/* ══ Contact page: the area-page layout with a neutral accent ══ */
.contact-page { --area: var(--text); --area-ink: var(--text); --area-soft: var(--text-2); --area-hover: var(--white); }
.contact-main { gap: 56px; }
.contact-page .hero h1 { max-width: 900px; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.contact-page .hero-lead { max-width: 720px; }
.contact-page .pill-btn { align-self: flex-start; background: var(--text); color: var(--bg); }
.contact-page .pill-btn:hover { background: var(--white); color: var(--bg); }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 18px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Phones: brand and language on one row, navigation below; a smaller orbit keeps its labels on screen. */
@media (max-width: 600px) {
  .header-right { display: contents; }
  .main-nav { order: 1; flex-basis: 100%; margin-left: -10px; }
  .site-header .main-nav .nav-link { padding: 0 10px; font-size: 14px; }
  .orbit { max-width: 280px; margin: 0 auto; }
  .orbit-chip { padding: 4px 10px; font-size: 12px; }
  .orbit-chip.is-major { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .home, .hero, .orbit-spin, .orbit-dashed, .orbit-chip { animation: none; }
}
