@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("/Roboto-Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("/Roboto-Medium.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("/Roboto-Bold.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; padding-top: var(--bar-height); background: var(--bg); color: var(--text); font: 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased; }
/* blue bar, light sweep once on load (§6.7, same as the Keycloak theme it2do) */
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: var(--bar-height); z-index: 20;
  background: linear-gradient(100deg, transparent 0%, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%, transparent 100%) no-repeat,
    var(--brand-blue);
  background-size: 40% 100%, auto; background-position: -45% 0, 0 0;
  animation: bar-sweep 1.2s var(--easing) .3s 1 both; }
@keyframes bar-sweep { from { background-position: -45% 0, 0 0; } to { background-position: 145% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
a:not([class]):focus-visible { border-radius: 4px; }

.wrap { width: min(1120px, 100% - 64px); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* watermark: signet cropped bottom right, only on large screens (§6.7) */
body::after { content: ""; position: fixed; right: -90px; bottom: -110px; width: 420px; height: 402px; z-index: -1;
  background: url("/signet-color.svg") center / contain no-repeat; opacity: .06; pointer-events: none; display: none; }
@media (min-width: 1200px) { body::after { display: block; } }

/* logo per theme: colour on light, white on dark (§5.2) */
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
:root[data-theme="dark"] body::after { background-image: url("/signet-white.svg"); opacity: .04; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
  :root:not([data-theme="light"]) body::after { background-image: url("/signet-white.svg"); opacity: .04; }
}

header.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.brand { display: block; }
.brand img { height: 48px; width: auto; }
.brand .logo-light { display: block; }
nav.main { display: flex; align-items: center; gap: 28px; font-weight: 500; }
nav.main > a { color: var(--text); }
nav.main > a:hover { color: var(--link); text-decoration: none; }
.tools { display: flex; align-items: center; gap: var(--space-2); }
/* theme toggle and language menu: two identical 36 px icon buttons (Keycloak theme it2do, components.css) */
.icon-button { flex: 0 0 auto; display: inline-grid; place-items: center; width: var(--control-height-sm);
  height: var(--control-height-sm); padding: 0; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-control); border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--duration) var(--easing), border-color var(--duration) var(--easing), color var(--duration) var(--easing); }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: var(--surface-hover); border-color: var(--line-control-hover); color: var(--text-on-hover); }
.icon-button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
@media (pointer: coarse) { .icon-button { width: var(--touch-target); height: var(--touch-target); } }
@media (max-width: 760px) {
  .brand img { height: 40px; }
  nav.main > a { display: none; }
}


h1, h2, h3 { color: var(--heading); margin: 0; }
p { margin: 0 0 1em; }

/* one pager: sections separated by a fine line, headings left, text right on wide screens */
.hero { padding: 64px 0 88px; max-width: 760px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.hero h1::after { content: ""; display: block; width: 40px; height: 3px; background: var(--brand-red); margin-top: 22px; }
.hero p { font-size: 19px; line-height: 1.55; color: var(--text-muted); margin: 22px 0 32px; max-width: 640px; }
@media (max-width: 640px) { .hero { padding: 36px 0 56px; } .hero p { font-size: 17px; } }

section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block > h2 { font-size: 28px; font-weight: 500; line-height: 1.25; margin-bottom: 8px; }
section.block > .lead { color: var(--text-muted); max-width: 640px; margin-bottom: 36px; }
@media (max-width: 640px) { section.block { padding: 48px 0; } section.block > h2 { font-size: 24px; } }

/* services: plain rows, term left, sentence right */
.rows { margin: 0; display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; column-gap: 40px; }
.rows dt { font-weight: 500; font-size: 18px; color: var(--heading); padding: 20px 0; border-top: 1px solid var(--line); }
.rows dd { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); max-width: 720px; }
@media (max-width: 760px) { .rows { grid-template-columns: 1fr; } .rows dd { border-top: 0; padding-top: 0; } }

/* projects: screenshot and text side by side, alternating */
.projects { list-style: none; margin: 0; padding: 0; }
.project { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; padding: 28px 0; }
.project:nth-child(even) .shot { order: 2; }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-muted); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.project .where { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.project.text-only { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; gap: 16px; } .project:nth-child(even) .shot { order: 0; } }

/* team */
.person { display: flex; gap: 24px; align-items: center; max-width: 720px; }
.avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: #0069b4; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: .02em; }
.person h3 { font-size: 20px; font-weight: 500; }
.person .role { color: var(--text-muted); font-size: 15px; margin: 2px 0 8px; }
.person p:last-child { margin: 0; }

/* contact: form left, address and map right */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.field label .req { color: var(--brand-red); margin-left: 2px; }
.field label .opt { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; min-height: var(--control-height); padding: 12px 16px;
  font: 16px/1.4 var(--font-sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-control);
  border-radius: var(--radius); transition: border-color var(--duration) var(--easing), box-shadow var(--duration) var(--easing); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line-control-hover); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: var(--focus-ring); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .hint { font-size: 13px; color: var(--error); margin: 6px 0 0; }
.field .hint[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-muted); margin: 4px 0 20px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-lg); font-size: 14px;
  margin-bottom: 20px; border: 1px solid var(--info-line); background: var(--info-bg); color: var(--text); }
.alert[hidden] { display: none; }
.alert.ok { border-color: var(--success-line); background: var(--success-bg); }
.alert.err { border-color: var(--error-line); background: var(--error-bg); }
.btn[disabled] { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-text); box-shadow: none; transform: none; cursor: not-allowed; }

.address { font-style: normal; font-size: 17px; line-height: 1.6; margin-bottom: 20px; }
.map { height: 380px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-muted); }
.map-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 640px) { .map { height: 300px; } }
/* MapLibre controls in the design system */
.map .maplibregl-ctrl-group { background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius); box-shadow: none; overflow: hidden; }
.map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
.map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.map .maplibregl-ctrl-group button:hover { background: var(--surface-hover); }
.map .maplibregl-ctrl-icon { filter: none; }
:root[data-theme="dark"] .map .maplibregl-ctrl-icon { filter: invert(1) brightness(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map .maplibregl-ctrl-icon { filter: invert(1) brightness(.9); } }
.map .maplibregl-ctrl-attrib, .map .maplibregl-ctrl-attrib.maplibregl-compact { background: var(--surface); color: var(--text-muted); font: 11px/1.4 var(--font-sans); }
:root[data-theme="dark"] .map .maplibregl-ctrl-attrib-button { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map .maplibregl-ctrl-attrib-button { filter: invert(1); } }
.map .maplibregl-ctrl-attrib a { color: var(--text-muted); }
.map .maplibregl-cooperative-gesture-screen { font: 15px/1.4 var(--font-sans); }
.pin { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-red);
  display: grid; place-items: center; box-shadow: var(--shadow-card); }
.pin img { width: 24px; height: 24px; }

/* buttons as in the Keycloak theme: 48 px, radius 8, same 1.5 px frame, neutral shadow, lift 1 px on hover */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--control-height);
  padding: .5rem 1.25rem; border-radius: var(--radius); font: var(--weight-medium) var(--text-md)/1.25 var(--font-sans);
  border: 1.5px solid transparent; box-shadow: var(--shadow-button); text-decoration: none;
  transition: background-color var(--duration) var(--easing), box-shadow var(--duration) var(--easing),
    transform var(--duration) var(--easing), color var(--duration) var(--easing); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--text-on-color); font-weight: var(--weight-bold); letter-spacing: .01em; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--text-on-color); }
.btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); }
.btn-secondary { background: transparent; border-color: var(--secondary); color: var(--secondary); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--secondary-hover-bg); color: var(--secondary); }
.btn-secondary:active { background: var(--secondary-active-bg); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-button-hover); } .btn:active { transform: none; } }
/* language menu (Keycloak theme it2do, it2do.css) */
.lang-menu { position: relative; }
.menu { position: absolute; top: calc(100% + .4rem); right: 0; z-index: 40; min-width: 11rem; margin: 0; padding: .35rem;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.menu[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); font-size: var(--text-sm); font-weight: var(--weight-regular); text-decoration: none; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-hover); color: var(--text); outline: none; text-decoration: none; }
.menu-item[aria-current="true"] { color: var(--link); font-weight: var(--weight-medium); }
.menu-item[aria-current="true"]:is(:hover, :focus-visible) { color: var(--text-on-hover); }
.menu-check { display: inline-grid; place-items: center; width: 1rem; color: var(--link); }
/* theme change: the new theme spreads from the toggle (site.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

footer.bottom { margin-top: 48px; border-top: 2px solid var(--brand-blue); padding: 18px 0 32px; font-size: 13px;
  color: var(--text-muted); text-align: center; }
footer.bottom span + span::before { content: "·"; margin: 0 10px; opacity: .7; }
footer.bottom a { color: var(--text-muted); }
@media (max-width: 640px) { footer.bottom span { display: block; } footer.bottom span + span::before { content: none; } }

/* legal pages: text max 680 px (§6.7) */
.page { max-width: 680px; padding: 56px 0 24px; }
.page h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.page h1::after { content: ""; display: block; width: 40px; height: 3px; background: var(--brand-red); margin: 16px 0 32px; }
.page h2 { font-size: 20px; font-weight: 500; margin: 36px 0 10px; }
.page p, .page ul { margin: 0 0 14px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.page .meta { color: var(--text-muted); font-size: 14px; margin-top: 40px; }
@media (max-width: 640px) { .page { padding-top: 32px; } .page h1 { font-size: 26px; } }
