/* OmegaBee shared styles.
   Light or dark theme follows the visitor's system setting, unless the visitor picks
   one with the theme button in the header (html[data-theme], see script/theme.js).
   The brand font is used only for the wordmark; text uses the system UI font.
   All animations are CSS only and switch off when the visitor prefers reduced motion. */

/* ---------- brand font: Outfit Thin, SIL Open Font License 1.1 (see static/OUTFIT-LICENSE.txt) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../static/outfit-thin.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}

/* ---------- theme colours ----------
   No choice or "System": follows prefers-color-scheme.
   html[data-theme="light"] or [data-theme="dark"] forces a theme chosen with the header button.
   Header and footer always use the dark colours ("ink frame"), so in the light theme only the page is light. */
:root {
  --bg: #f6f2e9; --fg: #1f1c15; --text: #38342b; --muted: #665f4f;
  --rule: #e3dccb; --brand: #fec800; --on-brand: #1f1c15; --link: #7a5a00;
  --panel: #fdfbf6;
  --primary-bg: #1f1c15; --primary-fg: #fec800; --secondary-border: #1f1c15;
  --hb: 1.6;
  --hex-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5' fill='none' stroke='%23c99400' stroke-width='3.2'/%3E%3C/svg%3E");
  --hex-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5' fill='%23c99400' fill-opacity='.2' stroke='%23c99400' stroke-width='3.2'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15140f; --fg: #f3efe5; --text: #dcd6c8; --muted: #a8a08c;
    --rule: #34302a; --link: #fcd34d;
    --panel: #1d1b15;
    --primary-bg: #fec800; --primary-fg: #1f1c15; --secondary-border: #fec800;
    --hb: 1;
    --hex-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5' fill='none' stroke='%23fec800' stroke-width='2.5'/%3E%3C/svg%3E");
    --hex-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5' fill='%23fec800' fill-opacity='.14' stroke='%23fec800' stroke-width='2.5'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"],
.site-header, .site-footer {
  --bg: #15140f; --fg: #f3efe5; --text: #dcd6c8; --muted: #a8a08c;
  --rule: #34302a; --link: #fcd34d;
  --panel: #1d1b15;
  --primary-bg: #fec800; --primary-fg: #1f1c15; --secondary-border: #fec800;
  --hb: 1;
  --hex-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5' fill='none' stroke='%23fec800' stroke-width='2.5'/%3E%3C/svg%3E");
  --hex-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 91,26.5 91,73.5 50,97 9,73.5 9,26.5' fill='%23fec800' fill-opacity='.14' stroke='%23fec800' stroke-width='2.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { flex: 1; }
main, .site-footer { position: relative; z-index: 1; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--fg); line-height: 1.25; text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -.01em; }
h2 { margin: 2.5rem 0 .6rem; font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .25rem 0; }
strong { color: var(--fg); font-weight: 650; }
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.container.wide { max-width: 1000px; }

/* ---------- animated hexagons in the page background ---------- */
.hexagon-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hexagon-background i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1;
  background: var(--hex-line) center / contain no-repeat; opacity: 0;
  animation:
    hexagon-fade var(--d) ease-in-out var(--w) infinite,
    hexagon-spin var(--r, 40s) linear var(--w) infinite var(--dir, normal),
    hexagon-drift calc(var(--d) * 2.3) ease-in-out var(--w) infinite alternate;
}
.hexagon-background i:nth-child(even) { --dir: reverse; }
.hexagon-background i:nth-child(3n)   { background-image: var(--hex-fill); }
.hexagon-background i:nth-child(3n+1) { --r: 28s; }
.hexagon-background i:nth-child(3n+2) { --r: 52s; }
/* position (x, y), size, fade duration, start offset, peak opacity */
.hexagon-background i:nth-child(1)  { --x: 1%;  --y: 8%;  --s: 90px; --d: 11s; --w: -2s;  --o: .9; }
.hexagon-background i:nth-child(2)  { --x: 7%;  --y: 38%; --s: 46px; --d: 9s;  --w: -6s;  --o: .7; }
.hexagon-background i:nth-child(3)  { --x: 2%;  --y: 62%; --s: 96px; --d: 14s; --w: -9s;  --o: .8; }
.hexagon-background i:nth-child(4)  { --x: 8%;  --y: 84%; --s: 34px; --d: 8s;  --w: -1s;  --o: .9; }
.hexagon-background i:nth-child(5)  { --x: 6%;  --y: 22%; --s: 28px; --d: 10s; --w: -4s;  --o: 1;  }
.hexagon-background i:nth-child(6)  { --x: 91%; --y: 12%; --s: 64px; --d: 12s; --w: -7s;  --o: .8; }
.hexagon-background i:nth-child(7)  { --x: 89%; --y: 44%; --s: 80px; --d: 15s; --w: -3s;  --o: .7; }
.hexagon-background i:nth-child(8)  { --x: 95%; --y: 70%; --s: 40px; --d: 9s;  --w: -5s;  --o: 1;  }
.hexagon-background i:nth-child(9)  { --x: 92%; --y: 88%; --s: 72px; --d: 13s; --w: -10s; --o: .8; }
.hexagon-background i:nth-child(10) { --x: 96%; --y: 30%; --s: 30px; --d: 10s; --w: -8s;  --o: .9; }
@keyframes hexagon-fade {
  0%, 100% { opacity: 0; transform: scale(.85) rotate(0deg); }
  45%, 55% { opacity: calc(var(--o) * var(--k, 1) * var(--hb, 1)); transform: scale(1) rotate(8deg); }
}
@keyframes hexagon-spin { to { rotate: 360deg; } }
@keyframes hexagon-drift {
  0%   { translate: 0 0; }
  33%  { translate: 28px -22px; }
  66%  { translate: -18px -40px; }
  100% { translate: 12px 18px; }
}
/* fainter when there is no free margin beside the text */
@media (max-width: 1360px) { .hexagon-background { --k: .25; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; padding: .85rem 0;
  border-top: 4px solid var(--brand); border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand b {
  display: block; color: var(--fg); font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300; font-size: 1.4rem; letter-spacing: .03em; line-height: 1.1;
}
.brand small { display: block; color: var(--muted); font-size: .85rem; }
.brand.small { gap: .5rem; }
.brand.small b { font-size: 1.15rem; }
.main-navigation { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
.main-navigation a:not(.button) { color: var(--fg); text-decoration: none; transition: color .2s ease; }
.navigation-icon { display: none; }
.main-navigation a:not(.button):hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }

/* ---------- theme button in the header (script/theme.js): System -> Light -> Dark ----------
   The icon and the tooltip follow html[data-theme], so they are right before any script runs. */
.theme-toggle {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: 10px; color: var(--fg);
  font: inherit; cursor: pointer; transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle svg {
  display: none; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
:root:not([data-theme]) .theme-toggle .theme-icon-system,
:root[data-theme="light"] .theme-toggle .theme-icon-light,
:root[data-theme="dark"] .theme-toggle .theme-icon-dark { display: block; }
.theme-toggle::after {
  content: "Theme: System";
  position: absolute; top: calc(100% + .55rem); right: 0; z-index: 1;
  padding: .3rem .65rem; border-radius: 6px; white-space: nowrap;
  background: var(--fg); color: var(--bg); font-size: .8rem; font-weight: 600; line-height: 1.3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  opacity: 0; translate: 0 -3px; pointer-events: none; transition: opacity .15s ease, translate .15s ease;
}
:root[data-theme="light"] .theme-toggle::after { content: "Theme: Light"; }
:root[data-theme="dark"] .theme-toggle::after { content: "Theme: Dark"; }
.theme-toggle:hover::after, .theme-toggle:focus-visible::after, .theme-toggle.show-tip::after { opacity: 1; translate: none; }

/* ---------- buttons ---------- */
.button {
  display: inline-block; padding: .65rem 1.15rem; border-radius: 8px;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 2px solid var(--secondary-border); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .2s ease, background-color .2s ease;
}
.button:hover { filter: brightness(.96); }
.button.small { padding: .4rem .9rem; font-size: .9rem; }
.primary { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
.secondary { background: transparent; color: var(--fg); }
.action-buttons { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 2rem 0 0; }

/* ---------- sections shared by all pages ---------- */
.section { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
.section-label { margin: 0 0 .75rem; color: var(--link); font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.section-header { text-align: center; max-width: 36em; margin: 0 auto 2.75rem; }
.section-header h2 { margin: 0 0 .6rem; font-size: 2rem; font-weight: 700; }
.section-header p:last-child { margin: 0; color: var(--muted); }
.introduction-text { font-size: 1.2rem; color: var(--text); margin: 0 auto; max-width: 38em; }

/* ---------- cards with icon, title, text and separator ---------- */
.card {
  margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
  padding: 2rem 1.6rem 1.75rem; text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card h3 { margin: 1rem 0 .5rem; font-size: 1.2rem; font-weight: 650; }
.card > p { color: var(--text); font-size: 1rem; margin: 0 0 1.25rem; }
.icon { width: 52px; height: 52px; display: block; margin: 0 auto; transition: transform .5s ease; }
.icon-hexagon { fill: color-mix(in srgb, var(--brand) 22%, transparent); stroke: var(--brand); stroke-width: 2; }
.icon-stroke { fill: none; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checklist { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--rule); text-align: left; font-size: .95rem; }
.checklist li { position: relative; padding-left: 1.4rem; margin: .45rem 0; }
.checklist li::before {
  content: ""; position: absolute; left: .1rem; top: .5em; width: .55rem; height: .3rem;
  border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg);
}

/* ---------- home page ---------- */
.page-introduction { text-align: center; padding: 5rem 0 4.5rem; }
.page-introduction h1 { font-size: 3rem; line-height: 1.12; margin: 0 auto 1.25rem; max-width: 16em; }
.page-introduction .introduction-text { font-size: 1.2rem; max-width: 36em; }
.page-introduction .action-buttons,
.about-introduction .action-buttons,
.contact-call .action-buttons { justify-content: center; }
/* each service card spans 4 shared rows (icon, title, text, list) so the parts line up across cards */
.service-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-cards > .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.service-cards .checklist { align-self: start; }
.ai-approach .container { max-width: 920px; }
.ai-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.ai-principles li { margin: 0; }
.ai-principles li::before {
  content: ""; display: block; width: 1.1rem; height: 1.25rem; margin: 0 auto .8rem; background: var(--brand);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ai-principles h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.ai-principles p { margin: 0 auto; max-width: 20em; font-size: 1rem; color: var(--text); }
.contact-call { text-align: center; }
.contact-call h2 { margin: 0 0 .5rem; font-size: 2rem; font-weight: 700; }
.contact-call p { color: var(--muted); }

/* ---------- about page ---------- */
.about-introduction { text-align: center; padding: 4.5rem 0 3.5rem; }
.about-introduction h1 { font-size: 2.75rem; margin: 0 0 .5rem; }
.about-introduction .job-title { margin: 0 0 1.25rem; color: var(--fg); font-size: 1.15rem; font-weight: 600; }
.source-note { margin: 1.5rem auto 0; color: var(--muted); font-size: .9rem; }
/* each key-figure card spans 3 shared rows (icon, number, text) */
.key-figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.key-figures .key-figure { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.key-figure b { display: block; margin: 1rem 0 0; color: var(--fg); font-size: 2.4rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.key-figure span { display: block; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); color: var(--text); font-size: 1rem; }
.domain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.domain-list li {
  margin: 0; display: flex; align-items: center; gap: .65rem; padding: .85rem 1.15rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; color: var(--fg); font-weight: 550;
}
.domain-list li::before {
  content: ""; width: .8rem; height: .9rem; flex: none; background: var(--brand);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.skill-groups > div { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; }
.skill-groups h3 { margin: 0 0 .9rem; font-size: 1.05rem; }
.skill-groups .highlighted-skill { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--brand) 45%, var(--rule)); }
.skill-groups .highlighted-skill p { margin: -.4rem 0 .9rem; color: var(--text); font-size: .95rem; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li {
  margin: 0; padding: .3rem .7rem; border-radius: 999px; font-size: .9rem; color: var(--fg);
  background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
}
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--rule); }
.timeline > li { position: relative; margin: 0 0 2rem; padding-left: 2.25rem; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand);
}
.timeline > li.current-position::before { background: var(--brand); }
.timeline .period { margin: 0; color: var(--link); font-size: .85rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.timeline h3 { margin: .2rem 0 .1rem; font-size: 1.15rem; }
.timeline .organisation { margin: 0 0 .4rem; color: var(--muted); }
.timeline .technologies { margin: 0; font-size: .95rem; }
.timeline details { margin-top: .5rem; }
.timeline summary { cursor: pointer; color: var(--link); font-weight: 600; }
.timeline details[open] summary { margin-bottom: 1rem; }
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.info-cards > div { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; }
.info-cards h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { margin: 0 0 .6rem; }
.simple-list small { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- legal pages: centred heading, left-aligned text ---------- */
.document-header { text-align: center; padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.document-header h1 { font-size: 2.5rem; margin: 0 0 .5rem; }
.last-updated { margin: 0; color: var(--muted); font-size: .9rem; }
.document-body { padding-bottom: 4rem; }
.fact-list { margin: 1rem 0 1.25rem; display: grid; grid-template-columns: 12rem 1fr; border-top: 1px solid var(--rule); }
.fact-list dt, .fact-list dd { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.fact-list dt { color: var(--fg); font-weight: 600; padding-right: 1rem; }
.back-link { margin-top: 3rem; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--rule); padding: 2.5rem 0 2.25rem; font-size: .9rem; color: var(--muted); text-align: center; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: .9rem; flex-wrap: wrap; }
.site-footer address { font-style: normal; line-height: 1.6; }
.legal-navigation { display: flex; justify-content: center; gap: .4rem 1.25rem; flex-wrap: wrap; }
.legal-navigation a, .legal-navigation button {
  color: var(--link); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
}
.copyright { margin: 0; font-size: .85rem; }

/* ---------- cookie notice (script/consent.js), shown until the visitor accepts it ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 10;
  max-width: 640px; margin: 0 auto; background: var(--panel); color: var(--text);
  border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.cookie-banner p { font-size: .95rem; margin: 0 0 .9rem; }
.cookie-banner .button-group { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (min-width: 640px) {
  .cookie-banner { display: flex; align-items: center; gap: 1.25rem; }
  .cookie-banner p { margin: 0; }
  .cookie-banner .button-group { flex: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .service-cards { grid-template-columns: 1fr; max-width: 30rem; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .ai-principles { grid-template-columns: 1fr; gap: 1.75rem; }
  .key-figures, .skill-groups, .info-cards { grid-template-columns: 1fr; }
  .about-introduction h1 { font-size: 2.1rem; }
}
@media (max-width: 720px) {
  .fact-list { grid-template-columns: 1fr; }
  .fact-list dt { border-bottom: 0; padding-bottom: 0; }
  .fact-list dd { padding-top: .15rem; }
}
@media (max-width: 600px) {
  .page-introduction { padding: 3rem 0; }
  .page-introduction h1 { font-size: 2.1rem; }
  .section { padding: 3.25rem 0; }
  .section-header h2, .contact-call h2 { font-size: 1.6rem; }
  .document-header { padding: 2.5rem 0 1.75rem; }
  .document-header h1 { font-size: 1.9rem; }
  /* mobile header: logo and name side by side, icon-only navigation */
  .site-header { padding: .6rem 0; }
  .site-header .container { flex-wrap: nowrap; }
  .site-header .brand small { white-space: nowrap; }
  .main-navigation { gap: .6rem; }
  .main-navigation a {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--rule); border-radius: 10px; color: var(--fg);
  }
  .main-navigation a.button { padding: 0; border: 2px solid var(--brand); color: var(--on-brand); }
  .main-navigation a:not(.button):hover { text-decoration: none; border-color: var(--brand); }
  .theme-toggle { width: 44px; height: 44px; }
  .theme-toggle svg { width: 22px; height: 22px; }
  .navigation-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .navigation-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 420px) {
  .site-header .container { padding: 0 .9rem; }
  .site-header .brand { gap: .5rem; }
  .site-header .brand img { width: 34px; height: 34px; }
  .site-header .brand b { font-size: 1.1rem; }
  .site-header .brand small { font-size: .7rem; }
  .main-navigation { gap: .4rem; }
  .main-navigation a, .theme-toggle { width: 40px; height: 40px; }
}
@media (max-width: 370px) {
  .main-navigation { gap: .3rem; }
  .main-navigation a, .theme-toggle { width: 36px; height: 36px; }
  .navigation-icon, .theme-toggle svg { width: 20px; height: 20px; }
}
@media (max-width: 335px) {
  .site-header .container { gap: .5rem; }
  .site-header .brand small { display: none; }
  .main-navigation { gap: .25rem; }
  .main-navigation a, .theme-toggle { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  main { padding-top: 1.5rem; }
  .introduction-text { font-size: 1.1rem; }
}

/* ---------- light animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* uses `translate` so it does not fight the hover `transform` */
  @keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }

  /* page openings: elements rise one after the other */
  .page-introduction .section-label, .page-introduction h1, .page-introduction .introduction-text, .page-introduction .action-buttons,
  .about-introduction .container > *, .document-header .container > * {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .page-introduction h1, .about-introduction .job-title, .document-header h1 { animation-delay: .08s; }
  .page-introduction .introduction-text, .about-introduction .introduction-text, .document-header .last-updated { animation-delay: .16s; }
  .page-introduction .action-buttons, .about-introduction .action-buttons { animation-delay: .24s; }

  /* hover effects */
  .card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 36px rgba(0, 0, 0, .10); }
  .card:hover .icon { transform: rotate(60deg); }
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: none; }

  /* content appears while scrolling (browsers that support scroll-driven animations) */
  @supports (animation-timeline: view()) {
    .section-header, .card, .contact-call .container > *,
    .ai-principles li, .domain-list li, .skill-groups > div, .timeline > li, .info-cards > div {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hexagon-background i { animation: none; rotate: 15deg; opacity: calc(var(--o) * var(--k, 1) * var(--hb, 1) * .5); }
}
