/* Brunotec – site styles. Graphite theme, IBM Plex (self-hosted). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #121417;
  --bg-alt: #181B1F;
  --panel: #1F2328;
  --placeholder: #23272D;
  --footer: #0C0E10;
  --rule: #2C3138;
  --rule-strong: #F1EFEA;
  --field: #4A5059;
  --text: #F1EFEA;
  --text-2: #C4C1BA;
  --muted: #94918A;
  --link: #8FB0DA;
  --link-hover: #B5CCEA;
  --brand: #31598B;
  --brand-hover: #3C6AA4;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.mono, .mono-label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mono-label { font-size: 12px; margin: 0 0 8px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; min-height: 84px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 46px; width: auto; }
@media (max-width: 600px) { .logo img { height: 36px; } .header-row { min-height: 72px; } }
.menu { display: flex; align-items: center; gap: 8px 32px; flex-wrap: wrap; }
.nav-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 8px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--text); }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--field); border-radius: 2px; color: var(--text); text-decoration: none; font-size: 15px; }
.btn-outline:hover, .btn-outline.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; background: transparent; color: var(--text); border: 1px solid var(--field); border-radius: 2px; font: inherit; font-size: 15px; cursor: pointer; }

@media (max-width: 960px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .menu { display: none; width: 100%; padding: 8px 0 20px; flex-direction: column; align-items: stretch; }
  .js .menu.open { display: flex; }
  .js .nav-links { flex-direction: column; }
  .js .nav-links a { padding: 0; border-bottom: 1px solid var(--rule); width: 100%; }
  .js .header-actions { justify-content: space-between; padding-top: 12px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: 2px; background: var(--brand); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-hover); color: #fff; }
.link-strong { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* ---------- Page header & hero ---------- */
.page-head { padding: 88px 0 64px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 22px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; max-width: 880px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 740px; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px; font-size: 15px; }
.hero { padding: 112px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.hero-text { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.facts { flex: 1 1 300px; border-top: 1px solid var(--rule-strong); font-size: 15px; }
.facts > div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { flex: 0 0 110px; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.facts dd.mono-dd { font-family: var(--mono); font-size: 13px; line-height: 1.75; }
.figure { padding: 0 0 104px; }
.figure picture { display: block; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--rule-strong); }
.section.soft { border-top-color: var(--rule); }
.section.alt { background: var(--bg-alt); }
.section.last { padding-bottom: 104px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.split-label { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.split-label h2 { font-size: 26px; font-weight: 400; line-height: 1.25; }
.split-label p { font-size: 15px; color: var(--muted); }
.split-body { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.statement { font-size: clamp(21px, 2.2vw, 27px); font-weight: 300; line-height: 1.45; max-width: 780px; }
.body-text { font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 760px; }

/* rows (lists of links) */
.group-title { padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); font-family: var(--mono); font-size: 13px; }
.rows { display: flex; flex-direction: column; gap: 36px; }
.row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 8px; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; }
a.row:hover { background: #1A1D21; color: var(--text); }
a.row:hover .row-name { color: var(--link); }
.row-name { flex: 1 1 200px; font-size: 19px; }
.row-desc { flex: 999 1 380px; font-size: 15px; color: var(--text-2); }
.row-date { flex: 0 0 120px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row-type { flex: 0 0 130px; font-family: var(--mono); font-size: 13px; color: var(--link); }
.row-title { flex: 999 1 300px; font-size: 17px; }

.plain-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* services */
.service { display: flex; flex-direction: column; gap: 12px; padding: 36px 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.service:first-child { padding-top: 0; border-top: 0; }
.service:last-child { padding-bottom: 0; }
.service h3 { font-size: 22px; font-weight: 500; }
.service p { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.service .results { font-size: 15px; color: var(--text); }
.service .results span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 10px; }

/* definition list (NIS2 etc.) */
.deflist > div { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.deflist > div:first-child { padding-top: 0; }
.deflist > div:last-child { border-bottom: 0; padding-bottom: 0; }
.deflist dt { flex: 1 1 220px; font-size: 17px; font-weight: 500; }
.deflist dd { flex: 999 1 360px; font-size: 16px; line-height: 1.7; color: var(--text-2); }

/* numbered steps / principles */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 28px; }
.steps li, .principles > div { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--brand); }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--link); }
.steps strong, .principles h3 { font-weight: 500; font-size: 17px; }
.steps span:last-child, .principles p { font-size: 15px; color: var(--text-2); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; }

.head-split { align-items: flex-end; }
.callout { flex: 1 1 300px; padding: 28px; background: var(--panel); border-top: 2px solid var(--brand); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.link-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); font-size: 17px; }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; align-items: center; min-height: 58px; text-decoration: none; }

/* logos / placeholders */
.ph { background: var(--placeholder); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.logo-box { border: 1px solid var(--rule); min-height: 88px; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
.logo-box img { max-height: 56px; width: auto; }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.logo-row .logo-box { min-width: 120px; min-height: 64px; padding: 12px; }
.logo-row.coop .logo-box { flex: 1 1 0; min-width: 96px; }
.logo-row.coop .logo-box img { max-height: 40px; max-width: 100%; height: auto; }

/* partner entries */
.entry { display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 32px 0; border-top: 1px solid var(--rule); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-logo { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.entry-body { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.entry-body h3 { font-size: 24px; font-weight: 400; }
.entry-body .kind { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.entry-body p, .entry-body ul { color: var(--text-2); line-height: 1.75; }
.entry-body ul { padding-left: 18px; }

/* industries tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.tablist { flex: 1 1 260px; display: flex; flex-direction: column; }
.tablist button { display: flex; align-items: center; min-height: 54px; padding: 0 14px; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid var(--rule); background: transparent; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.tablist button[aria-selected="true"] { border-left-color: var(--link); background: var(--panel); color: var(--text); }
.tabpanels { flex: 999 1 600px; min-width: 0; }
.tabpanel { display: flex; flex-direction: column; gap: 26px; }
.tabpanel[hidden] { display: none; }
.tabpanel h2 { font-size: 32px; font-weight: 300; line-height: 1.2; }
.tabpanel .cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.tabpanel .cols > div:first-child { flex: 999 1 340px; min-width: 0; }
.tabpanel .cols > div:last-child { flex: 1 1 200px; }
.tabpanel ul.points { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.tabpanel ul.points li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tabpanel ul.std { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; }
/* without JS every panel is shown in sequence */
html:not(.js) .tablist { display: none; }
html:not(.js) .tabpanel[hidden] { display: flex; margin-top: 56px; }

/* team */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 48px 32px; align-items: start; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person .photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.person h3 { font-size: 20px; font-weight: 500; }
.person .role { color: var(--link); font-size: 15px; }
.person p { font-size: 15px; color: var(--text-2); }
.person details summary { cursor: pointer; color: var(--link); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; list-style: none; }
.person details summary::-webkit-details-marker { display: none; }
.person details[open] summary .closed, .person details:not([open]) summary .opened { display: none; }
.cv { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; }
.cv ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cv li span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* news */
.filters { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--rule-strong); }
.filters button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.filters .count { font-family: var(--mono); font-size: 12px; opacity: .75; }
.news-item { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.news-item[hidden] { display: none; }
.news-thumb { flex: 0 0 176px; aspect-ratio: 16 / 9; background: var(--panel); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.news-body h3 { font-size: 20px; font-weight: 400; line-height: 1.35; }
.news-body p { font-size: 15px; color: var(--text-2); }
.news-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.news-meta .type { color: var(--link); }
.empty { padding: 28px 0; color: var(--muted); }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--placeholder); width: 100%; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background-size: cover; background-position: center; }
.video-consent .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-consent > :not(.poster) { position: relative; }
.video-consent p { max-width: 460px; font-size: 13px; color: var(--muted); background: rgba(18,20,23,.8); padding: 6px 10px; }
.play { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--text); background: rgba(18,20,23,.6); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.play:hover { background: var(--brand); border-color: var(--brand); }
.featured { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; padding-bottom: 64px; }
.featured .video { flex: 999 1 560px; min-width: 0; width: auto; }
.featured-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.featured-text h2 { font-size: 28px; font-weight: 300; line-height: 1.3; }

/* forms */
.form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.form input[type=text], .form input[type=email], .form select, .form textarea { min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 2px; background: var(--bg-alt); color: var(--text); font: inherit; font-size: 16px; }
.form textarea { resize: vertical; min-height: 160px; }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; line-height: 1.55; }
.form .check input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 24px 28px; background: var(--panel); border-top: 2px solid var(--brand); }
.notice.error { border-top-color: #E0A458; }
.contact-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 32px; }
.contact-aside dl > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-aside dl { border-top: 1px solid var(--rule); }
.contact-aside dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* legal prose */
.prose { max-width: 760px; color: var(--text-2); overflow-wrap: anywhere; }
.prose h2 { font-size: 22px; font-weight: 500; color: var(--text); margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); border-top: 1px solid var(--rule); color: var(--text-2); padding-top: 72px; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.footer-cta-text { max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.footer-cta-head { font-size: 32px; font-weight: 300; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }
.footer-cta-sub { font-size: 17px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 600px) { .footer-cta-head { font-size: 26px; } }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; }
.footer-contact a { color: var(--text); text-decoration-color: var(--link); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding: 48px 0; font-size: 14px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols img { height: 30px; width: auto; align-self: flex-start; margin-bottom: 6px; }
.footer-cols a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; align-self: flex-start; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-note { padding: 20px 0 28px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--muted); }
#team .people { margin-top: 40px; }
.person .photo.ph { font-size: 34px; font-family: var(--sans); font-weight: 300; color: var(--link); }
.news-video { max-width: 640px; margin-top: 10px; }
.h-sm { font-size: 22px; font-weight: 400; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
