/* GetData Consultancy — site styles
   1 tokens · 2 fonts · 3 base · 4 header/footer · 5 shared parts
   6 hero + graph · 7 sections · 8 contact · 9 responsive */

/* 1 — tokens (colours taken from the GetData cube logo) */
:root {
  --night: #130f26;
  --panel: #1c1736;
  --line: #322a5a;
  --text: #eeebf9;
  --muted: #aba5ca;
  --orange: #f7941d;
  --magenta: #c2358f;
  --violet: #8f7bff;
  --teal: #2cc1b9;
  --brand: linear-gradient(120deg, var(--orange), var(--magenta) 55%, #6d4be8);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-code: "IBM Plex Mono", Consolas, monospace;

  --page: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 0.5rem;
}

/* 2 — fonts (self-hosted, SIL Open Font License) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* 3 — base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  padding: 0.5rem 0.9rem; background: var(--text); color: var(--night); border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* 4 — header and footer */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.6rem var(--gutter);
  background: rgb(19 15 38 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__logo { margin-right: auto; flex: none; }
.site-header__logo img { height: 3.75rem; width: auto; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav__link { padding: 0.5rem 0; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.site-nav__link:hover { color: var(--text); }
.lang-switch {
  padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.lang-switch:hover { border-color: var(--muted); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  max-width: var(--page); margin: 0 auto; padding: 2rem var(--gutter) 3rem;
  color: var(--muted); font-size: 0.95rem;
}

/* 5 — shared parts */
.button {
  display: inline-block; padding: 0.8rem 1.4rem; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.12); }
.button--small { padding: 0.55rem 1rem; font-size: 0.95rem; }

.text-link { display: inline-block; padding: 0.5rem 0; color: var(--text); font-weight: 500; text-underline-offset: 0.25em; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--orange); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 0.875rem;
}

.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 1.1rem; }

/* 6 — hero and graph */
.hero {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: var(--page); margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.hero__title { font-size: clamp(2.6rem, 5vw, 4.25rem); font-weight: 750; letter-spacing: -0.035em; line-height: 0.98; }
.hero__lead { margin-top: 1.5rem; max-width: 32rem; font-size: 1.2rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

.graph__svg { width: 100%; overflow: visible; }
.graph__edge { fill: none; stroke: #4a4080; stroke-width: 1.5; transition: stroke 0.15s, opacity 0.15s; }
.graph__node { cursor: pointer; transition: opacity 0.15s; }
.graph__hit { fill: transparent; }
.graph__dot { stroke: var(--night); stroke-width: 3; }
.graph__node--center .graph__dot { fill: url(#graph-center); }
.graph__node--source .graph__dot { fill: var(--orange); }
.graph__node--source.graph__node--hobby .graph__dot { fill: var(--teal); }
.graph__node--target .graph__dot { fill: var(--violet); }
.graph__label {
  fill: var(--text); font: 500 20px var(--font-body);
  paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round;
}
.graph__node--center .graph__label { font: 700 20px var(--font-display); fill: #fff; stroke: none; }
.graph__node--target .graph__label { fill: var(--muted); font-size: 19px; }

/* a node is selected: dim everything that is not connected to it */
.graph.has-selection .graph__node:not(.is-on) { opacity: 0.22; }
.graph.has-selection .graph__edge:not(.is-on) { opacity: 0.12; }
.graph__edge.is-on { stroke: var(--orange); stroke-width: 2; }
.graph__edge--hobby.is-on { stroke: var(--teal); }
.graph__node--target.is-on .graph__label { fill: var(--text); }

.graph__legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.graph__legend-item::before { content: ""; display: inline-block; width: 0.65rem; height: 0.65rem; margin-right: 0.45rem; border-radius: 50%; background: var(--orange); }
.graph__legend-item--hobby::before { background: var(--teal); }
.graph__legend-item--target::before { background: var(--violet); }
.graph__legend-item--both::before { background: linear-gradient(90deg, var(--orange) 50%, var(--teal) 50%); }
.graph__caption { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.graph__readout {
  margin-top: 0.75rem; padding: 0.85rem 1rem; min-height: 7.25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.graph__query { font: 400 0.85rem/1.5 var(--font-code); color: var(--teal); white-space: pre-wrap; overflow-wrap: anywhere; }
.graph__result { margin-top: 0.4rem; font-size: 0.95rem; }

/* complete skill map: sources left and right, targets in the middle, read-out stays in view */
.graph--map { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 0 3rem; align-items: start; }
.graph--map .graph__svg { grid-column: 1; grid-row: 1 / span 4; }
.graph--map .graph__legend { grid-column: 2; flex-direction: column; margin-top: 2.5rem; }
.graph--map .graph__caption { grid-column: 2; margin-top: 1rem; }
.graph--map .graph__readout { grid-column: 2; position: sticky; top: 6.5rem; margin-top: 1.25rem; }
.graph--map .graph__edge { stroke: rgb(247 148 29 / 0.16); stroke-width: 1.2; }
.graph--map .graph__edge--hobby { stroke: rgb(44 193 185 / 0.28); }
.graph--map .graph__edge.is-on { stroke: var(--orange); stroke-width: 1.8; }
.graph--map .graph__edge--hobby.is-on { stroke: var(--teal); }
.graph--map .graph__dot { stroke-width: 2; }
.graph--map .graph__label { font-size: 15px; stroke: none; }
.graph--map .graph__node--source .graph__label { font-weight: 600; }
.graph--map .graph__node--target.graph__node--work .graph__dot { fill: var(--orange); }
.graph--map .graph__node--target.graph__node--hobby .graph__dot:last-of-type { fill: var(--teal); }
.graph--map .graph__node--target.graph__node--work.graph__node--hobby .graph__label { fill: var(--text); font-weight: 600; }
.graph__category { fill: var(--violet); font: 600 14px var(--font-display); }

/* the one load animation: the graph draws itself from the centre outwards */
@media (prefers-reduced-motion: no-preference) {
  .graph__edge[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: graph-draw 0.7s ease-out forwards; }
  .graph__edge--ring2 { animation-delay: 0.45s; }
  .graph:not(.graph--map) .graph__node--source { animation: graph-appear 0.4s 0.35s both; }
  .graph:not(.graph--map) .graph__node--target { animation: graph-appear 0.4s 0.95s both; }
}
@keyframes graph-draw { to { stroke-dashoffset: 0; } }
@keyframes graph-appear { from { opacity: 0; } }

/* 7 — sections */
.section { max-width: var(--page); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); border-top: 1px solid var(--line); }
.section--first { border-top: 0; }
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; max-width: 26ch; margin-bottom: 2rem; }
.section__subtitle { font-size: 1.35rem; font-weight: 650; margin: 3rem 0 1.25rem; }
.section__intro { max-width: 40rem; margin: -0.75rem 0 2.5rem; font-size: 1.15rem; color: var(--muted); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 750; letter-spacing: -0.03em; max-width: 18ch; margin-bottom: 2rem; }

.aside__title { font: 600 1rem/1.3 var(--font-body); color: var(--muted); margin: 1.75rem 0 0.6rem; }
.quote {
  padding-left: 1.25rem; border-left: 3px solid; border-image: var(--brand) 1;
  font: 500 1.3rem/1.35 var(--font-display);
}

.services__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.5rem 3rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.services__row:last-child { border-bottom: 1px solid var(--line); }
.services dt { font: 650 1.3rem/1.2 var(--font-display); }
.services dd { color: var(--muted); max-width: 38rem; }

.timeline__item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.timeline__period { color: var(--orange); font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline__org { font-size: 1.45rem; font-weight: 700; }
.timeline__role { color: var(--muted); margin: 0.2rem 0 0.75rem; }
.timeline__body > p:not(.timeline__role) { max-width: 40rem; }
.timeline__body > .tags { margin-top: 0.9rem; }
.timeline__sub { font: 600 1rem/1.3 var(--font-body); color: var(--muted); margin-top: 1.75rem; }
.timeline--nested { margin-top: 0.75rem; padding-left: 1.25rem; border-left: 2px solid var(--line); }
.timeline--nested .timeline__item { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 0; border-top: 0; }
.timeline--nested .timeline__org { font-size: 1.2rem; }

.certs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 2rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.certs__name { font-weight: 500; }
.certs__by { color: var(--muted); }

.panel { padding: 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel__title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.75rem; }
.panel p + p { margin-top: 1rem; }

.cv-request { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem 3rem; margin-top: 3rem; }
.cv-request__intro p { color: var(--muted); }
.cv-request .form__field input { background: var(--night); }
.cv-request .form p + p { margin-top: 0; }

.prose--document h2 { font-size: 1.35rem; font-weight: 650; margin: 2.25rem 0 0.6rem; }
.prose--document h2 + p { margin-top: 0; }
.prose__meta { color: var(--muted); font-size: 0.95rem; }
.site-footer__link { text-underline-offset: 0.2em; display: inline-block; padding: 0.4rem 0; margin: -0.4rem 0; }
.site-footer__link:hover { color: var(--text); }
.lab-list > div + div { margin-top: 1.25rem; }
.lab-list dt { font: 650 1.15rem/1.2 var(--font-display); }
.lab-list dd { color: var(--muted); }

.demo-graph { max-width: 46rem; }

/* 8 — contact */
.form__field { margin-bottom: 1.1rem; }
.form__field label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.form__field input, .form__field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit;
}
.form__field input:focus-visible, .form__field textarea:focus-visible { outline-offset: 0; border-color: var(--orange); }
.form__field textarea { resize: vertical; }
.form__trap { position: absolute; left: -200vw; }
.form__check { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1.25rem; }
.form__check input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--violet); }
.form__check label { color: var(--muted); font-size: 0.95rem; }
.form__privacy a { color: inherit; text-underline-offset: 0.2em; }
.form__privacy a:hover { color: var(--text); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form__privacy { color: var(--muted); font-size: 0.9rem; }
.form__status { margin-bottom: 1.25rem; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid; }
.form__status--ok { border-color: var(--teal); background: rgb(44 193 185 / 0.12); }
.form__status--invalid, .form__status--error { border-color: var(--orange); background: rgb(247 148 29 / 0.12); }

.contact-direct .aside__title { margin-top: 0; }
.contact-direct p { margin-bottom: 0.2rem; }
.contact-direct__link { display: inline-block; padding: 0.4rem 0; font: 600 1.15rem/1.3 var(--font-display); text-underline-offset: 0.25em; text-decoration-color: var(--orange); overflow-wrap: anywhere; }
.contact-direct__link:hover { color: var(--orange); }
.contact-direct__place { margin-top: 1.5rem; color: var(--muted); }

/* 9 — responsive
   desktop > 62rem · tablet 54–62rem · small tablet and phone < 54rem · phone < 34rem */
@media (max-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__graph { max-width: 44rem; }
}
@media (max-width: 54rem) {
  html { scroll-padding-top: 7.5rem; }
  /* the menu moves to its own row under the logo */
  .site-header { flex-wrap: wrap; row-gap: 0; }
  .site-nav {
    order: 1; flex: 0 0 100%; justify-content: space-between; gap: 0.75rem;
    overflow-x: auto; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .split, .services__row, .cv-request { grid-template-columns: minmax(0, 1fr); }
  /* skill map: legend and caption above, read-out fixed to the bottom of the screen while you scroll the map */
  .graph--map { display: flex; flex-direction: column; }
  .graph--map .graph__legend { flex-direction: row; margin-top: 0; }
  .graph--map .graph__svg { margin-top: 1rem; }
  .graph--map .graph__readout { top: auto; bottom: 0.75rem; min-height: 0; margin-top: 0.75rem; box-shadow: 0 0 0 100vmax rgb(19 15 38 / 0), 0 -0.5rem 1.5rem rgb(19 15 38 / 0.85); }
  .timeline__item { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 34.01rem) and (max-width: 54rem) {
  .site-nav { justify-content: flex-start; gap: 2rem; }
}
@media (max-width: 34rem) {
  .site-header { column-gap: 0.6rem; }
  .site-header__logo img { height: 3rem; }
  .site-nav__link { font-size: 0.95rem; }
  .hero__lead { font-size: 1.1rem; }
  /* the graph uses the full screen width and larger labels and touch areas */
  .graph__svg { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .graph__label { font-size: 24px; }
  .graph__node--target .graph__label { font-size: 25px; }
  .graph--map .graph__label { font-size: 18px; }
  .graph--map .graph__category { font-size: 16px; }
  .graph--map .graph__hit { r: auto; }
  .graph__node--center .graph__label { font-size: 22px; }
  .graph__hit { r: 44px; }
  .graph__readout { min-height: 9.5rem; }
  .certs li { flex-direction: column; }
  .panel { padding: 1.25rem; }
  .form__actions .button { width: 100%; }
  .site-footer { flex-direction: column; }
}
/* phone held sideways: a fixed header would cover too much of the screen */
@media (max-height: 30rem) {
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
