:root {
  --paper: #f4f2ee;
  --white: #ffffff;
  --ink: #111111;
  --muted: #6d6a65;
  --soft: #dedad3;
  --line: #c9c4bc;
  --red: #d91920;
  --max: 1420px;
  --pad: clamp(22px, 4.4vw, 72px);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: var(--red); color: var(--white); }
img { max-width: 100%; display: block; }

.lang-pl { display: none !important; }
html[data-lang="pl"] .lang-en { display: none !important; }
html[data-lang="pl"] .lang-pl { display: revert !important; }

.shell { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 12px 16px; background: var(--ink); color: white; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(244,242,238,.93); border-color: rgba(17,17,17,.17); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: .1em; }
.brand-mark { width: 10px; height: 10px; background: var(--red); display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.site-nav a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.active::after { right: 0; }
.lang-toggle { justify-self: end; border: 0; background: transparent; padding: 8px 0; cursor: pointer; font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.menu-toggle { display: none; }

.eyebrow { margin: 0 0 26px; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: 13px; vertical-align: middle; background: var(--red); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none; border: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--red); border-color: var(--red); }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-light:hover { background: var(--red); border-color: var(--red); color: white; }
.text-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 13px; font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.text-link span:last-child { transition: transform .2s ease; }
.text-link:hover span:last-child { transform: translate(3px,-3px); }

.hero { min-height: 100svh; padding-top: 82px; display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(390px, .87fr); gap: clamp(48px, 7vw, 110px); align-items: center; padding-top: clamp(62px, 7vw, 108px); padding-bottom: clamp(58px, 7vw, 96px); }
.hero-copy { max-width: 860px; position: relative; z-index: 2; }
.hero h1 { margin: 0; max-width: 930px; font-size: clamp(52px, 6.8vw, 108px); line-height: .91; letter-spacing: -.065em; font-weight: 700; }
.hero h1 span { color: var(--muted); }
.hero-lead { max-width: 700px; margin: 38px 0 0; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.45; letter-spacing: -.015em; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 40px; }
.hero-visual { align-self: stretch; min-height: 610px; background: var(--ink); color: var(--white); display: grid; grid-template-rows: auto 1fr auto; padding: 26px; position: relative; box-shadow: 26px 26px 0 rgba(17,17,17,.08); }
.hero-visual::after { content: ""; position: absolute; width: 13px; height: 110px; right: -13px; top: 14%; background: var(--red); }
.visual-topline { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.status { display: flex; align-items: center; gap: 8px; }
.status i { width: 6px; height: 6px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 5px rgba(217,25,32,.16); }
.document-field { margin: 44px 0 34px; border: 1px solid rgba(255,255,255,.34); position: relative; overflow: hidden; min-height: 390px; padding: 34px; background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 45%); }
.doc-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 66px; }
.doc-line { height: 1px; background: rgba(255,255,255,.5); margin-bottom: 37px; position: relative; }
.doc-line::before { content: ""; position: absolute; height: 8px; background: rgba(255,255,255,.14); top: -4px; left: 0; }
.line-1 { width: 92%; }.line-1::before { width: 35%; }
.line-2 { width: 72%; }.line-2::before { width: 67%; }
.line-3 { width: 86%; }.line-3::before { width: 44%; }
.line-4 { width: 58%; }.line-4::before { width: 78%; }
.scan-marker { position: absolute; left: 0; right: 0; top: 55%; height: 1px; background: var(--red); box-shadow: 0 0 22px rgba(217,25,32,.9); animation: scan 5s ease-in-out infinite; }
.scan-marker span { position: absolute; right: 26px; top: -18px; background: var(--red); color: white; padding: 3px 8px; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.visual-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.25); }
.visual-metrics div { min-height: 90px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 12px 0 0; border-right: 1px solid rgba(255,255,255,.25); }
.visual-metrics div:last-child { border-right: 0; padding-left: 12px; }
.visual-metrics div:nth-child(2) { padding-left: 12px; }
.visual-metrics span { color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.visual-metrics strong { font-size: 28px; font-weight: 500; }
.hero-index { position: absolute; left: -18px; bottom: -95px; font-size: 260px; font-weight: 800; line-height: 1; color: rgba(17,17,17,.035); pointer-events: none; }
@keyframes scan { 0%,100% { transform: translateY(-90px); opacity: .6; } 50% { transform: translateY(105px); opacity: 1; } }

.section { padding: clamp(86px, 10vw, 160px) 0; border-bottom: 1px solid var(--ink); }
.section-grid { display: grid; grid-template-columns: minmax(150px,.24fr) minmax(0,1fr); gap: clamp(40px, 7vw, 118px); }
.section-meta { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding-top: 7px; }
.section-meta > span { font-size: 13px; font-weight: 900; letter-spacing: .12em; color: var(--red); }
.section-meta p { margin: 0; font-size: 11px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.section-content h2, .split-copy h2, .page-intro h1, .article-hero h1 { margin: 0; font-size: clamp(42px, 5.4vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.section-content h2 span, .split-copy h2 span { color: var(--muted); }
.lead-copy { margin: 42px 0 0; max-width: 850px; font-size: clamp(19px,1.5vw,24px); line-height: 1.52; }
.two-column-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(30px, 5vw, 86px); margin-top: 58px; max-width: 1050px; }
.two-column-copy p { margin: 0; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.57; }
.two-column-copy p:first-child { font-weight: 600; }

.dark-section { background: var(--ink); color: var(--white); }
.dark-section .section-content h2 span { color: rgba(255,255,255,.42); }
.dark-section .section-meta p { color: rgba(255,255,255,.65); }
.product-preview-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: clamp(50px,8vw,130px); align-items: end; }
.product-preview-grid > div:last-child { color: rgba(255,255,255,.7); font-size: 18px; }
.capability-strip { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 68px; border-top: 1px solid rgba(255,255,255,.28); border-left: 1px solid rgba(255,255,255,.28); }
.capability-strip article { min-height: 220px; padding: 24px; border-right: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); display: flex; flex-direction: column; }
.cap-number { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.capability-strip h3 { margin: auto 0 10px; font-size: 25px; line-height: 1.05; letter-spacing: -.03em; }
.capability-strip p { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; }
.cem-inline { display: grid; grid-template-columns: .55fr 1.45fr auto; gap: clamp(28px,5vw,72px); align-items: center; margin-top: 60px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.cem-inline strong { font-size: clamp(58px,7vw,112px); line-height: .8; letter-spacing: -.08em; }
.cem-inline strong span { color: var(--red); }
.cem-inline p { margin: 0; color: rgba(255,255,255,.68); }
.cem-inline .text-link { color: white; white-space: nowrap; }

.home-duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-panel { min-height: 660px; padding: clamp(70px,7vw,110px) var(--pad); border-right: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.home-panel:last-child { border-right: 0; }
.home-panel.dark { background: var(--ink); color: white; }
.home-panel h2 { margin: 0; max-width: 610px; font-size: clamp(46px,5vw,76px); line-height: .95; letter-spacing: -.055em; }
.home-panel p { max-width: 570px; font-size: 18px; }
.home-panel .panel-meta { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.home-panel.dark p { color: rgba(255,255,255,.68); }
.home-panel.dark .text-link { color: white; }

.contact { background: var(--ink); color: var(--white); padding: clamp(95px,12vw,185px) 0; }
.contact-grid { display: grid; grid-template-columns: 1.28fr .72fr; gap: clamp(60px,9vw,140px); align-items: end; }
.contact h2 { margin: 0; font-size: clamp(48px,6.4vw,98px); line-height: .93; letter-spacing: -.06em; }
.contact h2 span { color: rgba(255,255,255,.42); }
.contact-action p { color: rgba(255,255,255,.72); font-size: 18px; margin: 0 0 30px; }

.page-hero { padding-top: 82px; border-bottom: 1px solid var(--ink); }
.page-hero-inner { min-height: 72svh; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: clamp(50px,8vw,125px); align-items: end; padding-top: clamp(90px,11vw,165px); padding-bottom: clamp(70px,9vw,125px); }
.page-intro h1 { font-size: clamp(58px,8vw,122px); line-height: .88; max-width: 980px; }
.page-intro h1 span { color: var(--muted); }
.page-intro > p:last-child { margin: 38px 0 0; max-width: 780px; font-size: clamp(19px,1.55vw,24px); }
.page-side-note { align-self: stretch; background: var(--ink); color: white; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 20px 20px 0 rgba(17,17,17,.08); }
.page-side-note .side-index { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.page-side-note p { margin: 0; color: rgba(255,255,255,.7); font-size: 18px; }
.page-side-note strong { font-size: clamp(58px,8vw,116px); line-height: .8; letter-spacing: -.08em; }
.page-side-note strong span { color: var(--red); }

.capability-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 72px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.capability-grid article { min-height: 275px; padding: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; }
.capability-grid h3 { margin: auto 0 12px; font-size: 30px; letter-spacing: -.035em; }
.capability-grid p { margin: 0; color: var(--muted); max-width: 470px; }
.capability-grid.dark-grid { border-color: rgba(255,255,255,.28); }
.capability-grid.dark-grid article { border-color: rgba(255,255,255,.28); }
.capability-grid.dark-grid p { color: rgba(255,255,255,.64); }

.audience-list { margin-top: 68px; border-top: 1px solid var(--ink); }
.audience-list div { display: grid; grid-template-columns: 90px 1fr; align-items: center; min-height: 112px; border-bottom: 1px solid var(--ink); transition: padding-left .2s ease, background .2s ease; }
.audience-list div:hover { padding-left: 18px; background: rgba(255,255,255,.45); }
.audience-list span { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.audience-list h3 { margin: 0; font-size: clamp(22px,2.3vw,36px); font-weight: 600; letter-spacing: -.035em; }

.red-section { background: var(--red); color: white; }
.red-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(55px,9vw,140px); }
.red-grid .eyebrow::before { background: white; }
.red-grid h2 { margin: 0; font-size: clamp(44px,5.5vw,84px); line-height: .98; letter-spacing: -.055em; }
.red-grid > div:last-child > p { margin: 0; font-size: clamp(18px,1.5vw,24px); font-weight: 600; }
.principle-points { margin-top: 52px; }
.principle-points p { display: flex; align-items: center; gap: 14px; padding: 17px 0; margin: 0; border-top: 1px solid rgba(255,255,255,.42); font-size: 14px; font-weight: 700; }
.principle-points p:last-child { border-bottom: 1px solid rgba(255,255,255,.42); }
.principle-points i { width: 7px; height: 7px; background: white; flex: 0 0 auto; }

.people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(30px,4vw,58px); margin-top: 72px; }
.person-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.person-card > a { text-decoration: none; display: block; }
.portrait-placeholder { aspect-ratio: 1.18 / 1; display: grid; place-items: center; background: #ddd9d2; overflow: hidden; position: relative; }
.portrait-placeholder::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg,#c5c0b7,#eeeae4); bottom: -39%; }
.portrait-placeholder::after { content: ""; position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #b7b1a8; top: 22%; }
.portrait-placeholder span { position: absolute; left: 22px; bottom: 16px; z-index: 2; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.portrait-dark { background: #282828; color: white; }
.portrait-dark::before { background: linear-gradient(145deg,#303030,#515151); }
.portrait-dark::after { background: #202020; }
.portrait-frame { aspect-ratio: 1 / 1; display: block; overflow: hidden; background: #d8d5cf; position: relative; }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(100%); transition: transform .5s ease, filter .35s ease; }
.person-card:hover .portrait-frame img { transform: scale(1.018); filter: grayscale(100%) contrast(1.03); }
.person-konrad .portrait-frame img { object-position: 50% 42%; }
.person-mateusz .portrait-frame img { object-position: 50% 38%; }
.person-info { padding-top: 24px; }
.person-role { margin: 0 0 10px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.person-info h2, .person-info h3 { margin: 0; font-size: clamp(29px,3vw,44px); letter-spacing: -.04em; }
.person-info > p:not(.person-role) { color: var(--muted); max-width: 620px; margin: 14px 0 22px; }

.profile-hero { padding-top: 82px; border-bottom: 1px solid var(--ink); }
.profile-grid { min-height: 78svh; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(45px,8vw,120px); align-items: center; padding-top: clamp(65px,8vw,110px); padding-bottom: clamp(65px,8vw,110px); }
.profile-portrait { aspect-ratio: .88 / 1; background: var(--ink); color: white; position: relative; overflow: hidden; box-shadow: 24px 24px 0 rgba(17,17,17,.08); }
.profile-portrait::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; left: 11%; bottom: -31%; background: linear-gradient(145deg,#292929,#555); }
.profile-portrait::after { content: ""; position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; left: 35%; top: 20%; background: #222; }
.profile-portrait span { position: absolute; left: 26px; bottom: 22px; z-index: 2; font-size: 13px; font-weight: 900; letter-spacing: .15em; }
.profile-portrait.profile-photo::before, .profile-portrait.profile-photo::after { display: none; }
.profile-portrait.profile-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 43%; filter: grayscale(100%); }
.profile-copy h1 { margin: 0; font-size: clamp(57px,7.8vw,118px); line-height: .88; letter-spacing: -.065em; }
.profile-copy h1 span { color: var(--muted); }
.profile-role { margin: 28px 0 0; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.profile-lead { margin: 30px 0 0; max-width: 800px; font-size: clamp(19px,1.55vw,24px); }
.profile-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; }

.credentials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 65px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.credential { min-height: 235px; padding: 26px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; }
.credential span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.credential h3 { margin: auto 0 10px; font-size: 27px; letter-spacing: -.03em; }
.credential p { margin: 0; color: var(--muted); }

.publication-list { margin-top: 68px; border-top: 1px solid var(--ink); }
.publication-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 30px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--ink); }
.publication-item > span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.publication-item h3 { margin: 0; font-size: clamp(22px,2.3vw,34px); letter-spacing: -.035em; }
.publication-item p { margin: 7px 0 0; color: var(--muted); }
.publication-item .publication-state { color: var(--muted); font-size: 12px; white-space: nowrap; }
.research-note { margin-top: 34px; padding: 22px 0; border-bottom: 1px solid var(--ink); color: var(--muted); }

.log-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px,8vw,120px); align-items: start; }
.log-feature { border-top: 1px solid var(--ink); padding-top: 24px; }
.log-meta { display: flex; gap: 24px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.log-feature h2 { margin: 50px 0 20px; font-size: clamp(42px,5vw,75px); line-height: .98; letter-spacing: -.055em; }
.log-feature > p { font-size: 18px; color: var(--muted); max-width: 780px; }
.log-list { border-top: 1px solid var(--ink); }
.log-list article { padding: 24px 0; border-bottom: 1px solid var(--ink); }
.log-list span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.log-list h3 { margin: 16px 0 8px; font-size: 25px; letter-spacing: -.03em; }
.log-list p { margin: 0; color: var(--muted); }

.article-hero { padding-top: 82px; border-bottom: 1px solid var(--ink); }
.article-hero-inner { max-width: 1160px; padding-top: clamp(95px,12vw,175px); padding-bottom: clamp(72px,9vw,125px); }
.article-hero h1 { font-size: clamp(54px,7.2vw,110px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 36px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-body { padding: clamp(75px,9vw,130px) 0; }
.article-layout { display: grid; grid-template-columns: minmax(150px,.25fr) minmax(0,1fr); gap: clamp(40px,7vw,120px); }
.article-aside { font-size: 12px; color: var(--muted); }
.article-aside p { position: sticky; top: 120px; margin: 0; }
.article-copy { max-width: 850px; }
.article-copy .standfirst { font-size: clamp(21px,1.8vw,28px); line-height: 1.45; font-weight: 600; margin-top: 0; }
.article-copy h2 { margin: 70px 0 22px; font-size: clamp(34px,4vw,55px); line-height: 1; letter-spacing: -.045em; }
.article-copy p { font-size: 18px; line-height: 1.7; }
.article-copy blockquote { margin: 58px 0; padding: 24px 0 24px 28px; border-left: 4px solid var(--red); font-size: clamp(24px,2.5vw,37px); line-height: 1.2; letter-spacing: -.03em; }
.article-disclaimer { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 14px !important; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.24); }
.footer-grid { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; font-size: 11px; letter-spacing: .06em; }
.footer-grid p { margin: 0; }
.footer-grid p:last-child { justify-self: end; }
.footer-brand { color: white; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .hero-grid, .page-hero-inner, .profile-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; max-width: 760px; }
  .page-side-note { min-height: 390px; max-width: 760px; }
  .profile-portrait { max-width: 620px; width: 100%; }
  .product-preview-grid, .red-grid, .contact-grid, .log-grid { grid-template-columns: 1fr; }
  .capability-strip { grid-template-columns: repeat(2,1fr); }
  .credentials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 70px; grid-template-columns: 1fr auto auto; gap: 20px; }
  .menu-toggle { display: grid; width: 32px; height: 32px; place-content: center; gap: 6px; border: 0; padding: 0; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 23px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 70px 0 0; background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 50px var(--pad); transform: translateX(100%); transition: transform .3s ease; border-top: 1px solid var(--ink); }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { width: 100%; font-size: 30px; letter-spacing: -.03em; text-transform: none; padding: 18px 0; border-bottom: 1px solid var(--ink); }
  .site-nav a::after { display: none; }
  .lang-toggle { order: 2; }
  .menu-toggle { order: 3; }
  .hero, .page-hero, .profile-hero, .article-hero { padding-top: 70px; }
  .hero-grid { padding-top: 62px; gap: 56px; }
  .hero h1 { font-size: clamp(47px,14vw,72px); }
  .hero-lead { margin-top: 30px; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-visual { min-height: 510px; padding: 20px; box-shadow: 14px 14px 0 rgba(17,17,17,.08); }
  .document-field { padding: 24px; min-height: 310px; }
  .visual-metrics span { font-size: 8px; }
  .section-grid, .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .section-meta { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 18px; align-items: center; }
  .section-meta p { writing-mode: initial; transform: none; }
  .section-content h2, .split-copy h2 { font-size: clamp(39px,12vw,62px); }
  .two-column-copy, .capability-grid, .people-grid { grid-template-columns: 1fr; }
  .capability-strip { grid-template-columns: 1fr; }
  .capability-strip article { min-height: 205px; }
  .cem-inline { grid-template-columns: 1fr; align-items: start; }
  .home-duo { grid-template-columns: 1fr; }
  .home-panel { min-height: 580px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .home-panel:last-child { border-bottom: 0; }
  .page-hero-inner { min-height: auto; padding-top: 75px; }
  .page-intro h1, .profile-copy h1 { font-size: clamp(54px,15vw,79px); }
  .page-side-note { min-height: 330px; box-shadow: 14px 14px 0 rgba(17,17,17,.08); }
  .red-grid { gap: 45px; }
  .audience-list div { grid-template-columns: 54px 1fr; min-height: 96px; }
  .publication-item { grid-template-columns: 1fr; gap: 9px; }
  .publication-item .publication-state { white-space: normal; }
  .profile-grid { padding-top: 55px; }
  .profile-portrait { box-shadow: 14px 14px 0 rgba(17,17,17,.08); }
  .profile-links { flex-direction: column; align-items: flex-start; gap: 17px; }
  .log-feature h2 { margin-top: 34px; }
  .article-aside { display: none; }
  .contact h2 { font-size: clamp(44px,13vw,66px); }
  .footer-grid { min-height: 150px; grid-template-columns: 1fr; gap: 8px; padding-top: 30px; padding-bottom: 30px; }
  .footer-grid p:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Language wrappers inherit heading colour; only the nested editorial emphasis is muted. */
.hero h1 > .lang-en, .hero h1 > .lang-pl,
.section-content h2 > .lang-en, .section-content h2 > .lang-pl,
.page-intro h1 > .lang-en, .page-intro h1 > .lang-pl,
.contact h2 > .lang-en, .contact h2 > .lang-pl,
.profile-copy h1 > .lang-en, .profile-copy h1 > .lang-pl,
.red-grid h2 > .lang-en, .red-grid h2 > .lang-pl { color: inherit; }
.hero h1 > .lang-en > span, .hero h1 > .lang-pl > span,
.section-content h2 > .lang-en > span, .section-content h2 > .lang-pl > span,
.page-intro h1 > .lang-en > span, .page-intro h1 > .lang-pl > span,
.contact h2 > .lang-en > span, .contact h2 > .lang-pl > span { color: var(--muted); }
.dark-section .section-content h2 > .lang-en > span,
.dark-section .section-content h2 > .lang-pl > span,
.contact h2 > .lang-en > span,
.contact h2 > .lang-pl > span { color: rgba(255,255,255,.42); }
.dark-section .section-content h2 > .lang-en,
.dark-section .section-content h2 > .lang-pl { color: inherit; }

/* v4: robust language switching and team-card layout */
html[data-lang="en"] .lang-pl,
html:not([data-lang]) .lang-pl,
html[data-lang="pl"] .lang-en {
  display: none !important;
  visibility: hidden !important;
}

html[data-lang="en"] .lang-en,
html[data-lang="pl"] .lang-pl {
  visibility: visible !important;
}

.people-grid {
  align-items: start;
}

.person-card {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.portrait-frame {
  width: 100%;
  max-width: 100%;
  isolation: isolate;
  contain: layout paint;
}

.portrait-frame img {
  position: relative;
  z-index: 0;
  max-width: none;
}

.person-info {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

@media (max-width: 1080px) {
  .people-grid {
    grid-template-columns: 1fr;
    gap: 72px;
    max-width: 760px;
  }

  .person-card {
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .people-grid {
    gap: 56px;
    max-width: none;
  }

  .portrait-frame {
    aspect-ratio: 4 / 5;
  }

  .person-konrad .portrait-frame img {
    object-position: 50% 38%;
  }

  .person-mateusz .portrait-frame img {
    object-position: 50% 34%;
  }
}


/* v5 — Build Log / founder timeline */
.build-log-page {
  --build-bg: #090909;
  --build-panel: #111111;
  --build-text: #f2f0eb;
  --build-muted: #9c9993;
  --build-line: rgba(242,240,235,.24);
  background: var(--build-bg);
  color: var(--build-text);
}
.build-log-page .site-header { color: var(--build-text); }
.build-log-page .site-header.scrolled { background: rgba(9,9,9,.91); border-color: rgba(242,240,235,.16); }
.build-log-page .site-nav a { color: var(--build-text); }
.build-log-page .lang-toggle { color: var(--build-text); }
.build-log-page .menu-toggle > span:not(.sr-only) { background: var(--build-text); }
.build-log-page .skip-link { background: var(--build-text); color: var(--build-bg); }

.build-hero { padding-top: 82px; border-bottom: 1px solid var(--build-line); overflow: hidden; }
.build-hero-grid { min-height: 88svh; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); gap: clamp(55px,9vw,150px); align-items: end; padding-top: clamp(90px,11vw,170px); padding-bottom: clamp(75px,9vw,130px); }
.build-hero-copy h1 { margin: 0; font-size: clamp(64px,8.4vw,138px); line-height: .86; letter-spacing: -.07em; font-weight: 700; max-width: 1050px; }
.build-hero-copy h1 em { color: var(--build-muted); font-style: normal; font-weight: 500; }
.build-lead { max-width: 820px; margin: 48px 0 0; font-size: clamp(19px,1.55vw,24px); line-height: 1.55; color: var(--build-muted); }
.build-signature { display: flex; align-items: center; gap: 18px; margin-top: 52px; }
.signature-line { width: 54px; height: 2px; background: var(--red); }
.build-signature strong, .build-signature small { display: block; }
.build-signature strong { font-size: 14px; letter-spacing: .04em; }
.build-signature small { margin-top: 3px; color: var(--build-muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.build-manifesto { min-height: 430px; border: 1px solid var(--build-line); padding: clamp(28px,4vw,56px); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.build-manifesto::after { content:""; width: 12px; height: 12px; position: absolute; right: -1px; top: -1px; background: var(--red); }
.manifesto-index { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.build-manifesto p { margin: 0; font-size: clamp(22px,2vw,31px); line-height: 1.18; letter-spacing: -.035em; }

.timeline-section { padding: clamp(95px,11vw,170px) 0 0; background: var(--build-bg); }
.timeline-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px,8vw,130px); align-items: end; padding-bottom: clamp(75px,8vw,120px); }
.timeline-head h2 { margin: 0; font-size: clamp(54px,6.5vw,104px); line-height: .92; letter-spacing: -.06em; }
.timeline-controls > p { margin: 0 0 32px; max-width: 620px; color: var(--build-muted); font-size: 17px; }
.order-toggle { display: inline-flex; border: 1px solid var(--build-line); }
.order-toggle button { border: 0; border-right: 1px solid var(--build-line); background: transparent; color: var(--build-muted); padding: 14px 18px; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.order-toggle button:last-child { border-right: 0; }
.order-toggle button[aria-pressed="true"] { background: var(--build-text); color: var(--build-bg); }

.timeline-wrap { position: relative; max-width: 1320px; }
.timeline-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 150px; padding: 0 0 26px; border-bottom: 1px solid var(--build-line); color: var(--build-muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.timeline-legend span:first-child { text-align: right; }
.timeline-track { display: flex; flex-direction: column; position: relative; }
.timeline-track.is-reversed { flex-direction: column-reverse; }
.timeline-track.is-reversed .timeline-side { flex-direction: column-reverse; }
.timeline-month { position: relative; min-height: var(--month-height); display: grid; grid-template-columns: minmax(0,1fr) 116px minmax(0,1fr); border-bottom: 1px solid rgba(242,240,235,.07); }
.timeline-axis { grid-column: 2; grid-row: 1; position: relative; }
.timeline-axis::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:1px; background:var(--build-line); }
.timeline-month-label { position: absolute; z-index: 3; left: 50%; top: 0; transform: translate(-50%,-50%); padding: 7px 10px; background: var(--build-bg); color: var(--build-muted); white-space: nowrap; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.timeline-month-label::before { content:""; display:inline-block; width:6px; height:6px; margin-right:9px; border:1px solid var(--build-muted); border-radius:50%; background:var(--build-bg); vertical-align:1px; }
.timeline-side { display:flex; flex-direction:column; justify-content:flex-start; gap:14px; padding-top:46px; padding-bottom:30px; }
.timeline-left { grid-column:1; grid-row:1; padding-right:58px; }
.timeline-right { grid-column:3; grid-row:1; padding-left:58px; }
.timeline-entry { position:relative; }
.timeline-card { width:100%; position:relative; border:0; border-top:1px solid var(--build-line); background:transparent; color:var(--build-text); padding:16px 18px 17px; text-align:left; cursor:pointer; transition:background .22s ease, transform .22s ease, border-color .22s ease; }
.timeline-entry-left .timeline-card::after, .timeline-entry-right .timeline-card::before { content:""; position:absolute; top:28px; width:58px; height:1px; background:var(--build-line); transition:background .22s ease; }
.timeline-entry-left .timeline-card::after { right:-58px; }
.timeline-entry-right .timeline-card::before { left:-58px; }
.timeline-entry-left::after, .timeline-entry-right::before { content:""; position:absolute; z-index:4; top:25px; width:7px; height:7px; border-radius:50%; border:1px solid var(--build-text); background:var(--build-bg); transition:background .22s ease, border-color .22s ease, transform .22s ease; }
.timeline-entry-left::after { right:-62px; }
.timeline-entry-right::before { left:-62px; }
.timeline-card:hover, .timeline-card:focus-visible { background:var(--build-panel); border-color:var(--red); outline:none; }
.timeline-entry-left .timeline-card:hover, .timeline-entry-left .timeline-card:focus-visible { transform:translateX(-9px); }
.timeline-entry-right .timeline-card:hover, .timeline-entry-right .timeline-card:focus-visible { transform:translateX(9px); }
.timeline-entry:has(.timeline-card:hover)::after, .timeline-entry:has(.timeline-card:focus-visible)::after,
.timeline-entry:has(.timeline-card:hover)::before, .timeline-entry:has(.timeline-card:focus-visible)::before { background:var(--red); border-color:var(--red); transform:scale(1.45); }
.timeline-entry-left:has(.timeline-card:hover) .timeline-card::after, .timeline-entry-left:has(.timeline-card:focus-visible) .timeline-card::after,
.timeline-entry-right:has(.timeline-card:hover) .timeline-card::before, .timeline-entry-right:has(.timeline-card:focus-visible) .timeline-card::before { background:var(--red); }
.timeline-card-meta { display:flex; align-items:center; justify-content:space-between; gap:15px; color:var(--red); font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.timeline-number { color:var(--build-muted); }
.timeline-date { display:block; margin-top:10px; color:var(--build-muted); font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.timeline-title { display:block; margin-top:8px; font-size:clamp(18px,1.45vw,24px); line-height:1.05; letter-spacing:-.035em; }
.timeline-preview { display:block; margin-top:9px; color:var(--build-muted); font-size:13px; line-height:1.45; }
.timeline-open { display:flex; align-items:center; justify-content:space-between; max-height:0; overflow:hidden; opacity:0; margin-top:0; color:var(--red); font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; transition:max-height .22s ease, opacity .22s ease, margin .22s ease; }
.timeline-card:hover .timeline-open, .timeline-card:focus-visible .timeline-open { max-height:30px; opacity:1; margin-top:12px; }
.timeline-month-empty { min-height:var(--month-height); }
.timeline-month-empty .timeline-month-label { opacity:.62; }
.timeline-note { margin: 0 auto; padding-top: 40px; padding-bottom: clamp(100px,11vw,170px); color:var(--build-muted); font-size:12px; text-align:center; }

.entry-dialog { width:min(860px,calc(100% - 36px)); max-height:calc(100svh - 36px); border:1px solid rgba(242,240,235,.3); padding:0; background:#111; color:var(--build-text); }
.entry-dialog::backdrop { background:rgba(0,0,0,.78); backdrop-filter:blur(7px); }
.entry-dialog-inner { position:relative; padding:clamp(34px,6vw,78px); }
.entry-dialog-close { position:absolute; right:22px; top:18px; width:42px; height:42px; border:1px solid var(--build-line); background:transparent; color:var(--build-text); cursor:pointer; font-size:28px; line-height:1; }
.entry-dialog-meta { display:flex; flex-wrap:wrap; gap:15px 24px; padding-right:55px; color:var(--red); font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.entry-dialog-meta span:last-child { margin-left:auto; color:var(--build-muted); }
.entry-dialog h2 { margin:40px 0 30px; max-width:700px; font-size:clamp(42px,5vw,72px); line-height:.96; letter-spacing:-.055em; }
.entry-dialog-body { max-width:720px; color:#d2cfca; font-size:18px; line-height:1.72; }
.entry-dialog-body p { margin:0 0 1.3em; }
.entry-dialog-footer { margin-top:50px; padding-top:20px; border-top:1px solid var(--build-line); display:flex; align-items:center; justify-content:space-between; gap:25px; color:var(--build-muted); font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.entry-dialog-footer button { border:0; background:transparent; color:var(--red); cursor:pointer; font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }

.build-end { border-top:1px solid var(--build-line); padding:clamp(95px,11vw,170px) 0; background:#111; }
.build-end-grid { display:grid; grid-template-columns:.3fr 1fr auto; gap:clamp(35px,6vw,90px); align-items:end; }
.build-end h2 { margin:0; font-size:clamp(48px,5.5vw,88px); line-height:.94; letter-spacing:-.055em; }
.build-end h2 em { color:var(--build-muted); font-style:normal; font-weight:500; }
.build-log-page .site-footer { background:var(--build-bg); }

@media (max-width: 980px) {
  .build-hero-grid, .timeline-head, .build-end-grid { grid-template-columns:1fr; }
  .build-manifesto { min-height:320px; max-width:740px; }
  .timeline-head { align-items:start; }
  .build-end-grid .button { justify-self:start; }
}

@media (max-width: 760px) {
  .build-log-page .site-nav { background:var(--build-bg); border-color:var(--build-line); }
  .build-log-page .site-nav a { border-color:var(--build-line); }
  .build-hero { padding-top:70px; }
  .build-hero-grid { min-height:auto; padding-top:70px; }
  .build-hero-copy h1 { font-size:clamp(54px,15vw,78px); }
  .build-lead { margin-top:34px; font-size:18px; }
  .build-manifesto { min-height:290px; }
  .timeline-head h2 { font-size:clamp(48px,14vw,72px); }
  .timeline-legend { display:none; }
  .timeline-month { min-height:auto !important; display:block; padding:55px 0 45px 44px; border-bottom:1px solid rgba(242,240,235,.1); }
  .timeline-axis { position:absolute; left:15px; top:0; bottom:0; width:1px; }
  .timeline-axis::before { left:0; }
  .timeline-month-label { left:15px; transform:translate(-15px,-50%); padding-left:0; }
  .timeline-side { display:flex; padding:0; gap:14px; }
  .timeline-left, .timeline-right { margin:0; }
  .timeline-right { margin-top:14px; }
  .timeline-track.is-reversed .timeline-side { flex-direction:column-reverse; }
  .timeline-entry-left .timeline-card::after, .timeline-entry-right .timeline-card::before { left:-29px; right:auto; width:29px; }
  .timeline-entry-left::after, .timeline-entry-right::before { left:-33px; right:auto; }
  .timeline-entry-left .timeline-card:hover, .timeline-entry-left .timeline-card:focus-visible,
  .timeline-entry-right .timeline-card:hover, .timeline-entry-right .timeline-card:focus-visible { transform:translateX(5px); }
  .timeline-card { padding-inline:15px; }
  .timeline-preview { font-size:14px; }
  .entry-dialog { width:calc(100% - 20px); max-height:calc(100svh - 20px); }
  .entry-dialog-inner { padding:58px 24px 30px; }
  .entry-dialog h2 { font-size:clamp(38px,12vw,58px); margin-top:32px; }
  .entry-dialog-body { font-size:17px; }
  .entry-dialog-footer { align-items:flex-start; flex-direction:column; }
  .build-end-grid { align-items:start; }
}


/* v6 — founder build log: chronological flow and month summaries */
.build-log-page .build-hero-grid {
  min-height: auto;
  grid-template-columns: minmax(0, 1050px);
  align-items: start;
  padding-top: clamp(105px, 13vw, 190px);
  padding-bottom: clamp(82px, 10vw, 145px);
}
.build-log-page .build-hero-copy h1 { max-width: 980px; }
.build-log-page .build-lead { max-width: 900px; }
.build-log-page .timeline-head { grid-template-columns: 1fr minmax(310px,.72fr); }
.build-log-page .timeline-track { flex-direction: column; }
.build-log-page .timeline-month {
  min-height: var(--month-height);
  grid-template-columns: minmax(0,1fr) 116px minmax(0,1fr);
  grid-template-rows: auto 1fr;
  border-bottom: 0;
}
.build-log-page .timeline-month-heading {
  grid-column: 1 / 4;
  grid-row: 1;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  color: var(--build-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.build-log-page .timeline-month-heading::before,
.build-log-page .timeline-month-heading::after {
  content: "";
  height: 1px;
  background: rgba(242,240,235,.19);
}
.build-log-page .timeline-month-heading::before { width: clamp(24px,4vw,70px); }
.build-log-page .timeline-month-heading::after { flex: 1; }
.build-log-page .timeline-axis {
  grid-column: 2;
  grid-row: 2;
  min-height: calc(var(--month-height) - 46px);
}
.build-log-page .timeline-month-summary {
  grid-column: 1;
  grid-row: 2;
  padding: 34px 58px 54px 18px;
  align-self: start;
}
.build-log-page .timeline-month-summary-block {
  padding: 0 0 28px;
  margin: 0 0 28px;
  border-bottom: 1px solid rgba(242,240,235,.10);
}
.build-log-page .timeline-month-summary-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.build-log-page .timeline-month-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.build-log-page .timeline-month-summary-block h3 {
  margin: 12px 0 13px;
  font-size: clamp(22px,1.75vw,30px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.build-log-page .timeline-month-summary-copy {
  color: var(--build-muted);
  font-size: 14px;
  line-height: 1.62;
}
.build-log-page .timeline-month-summary-copy p { margin: 0 0 1em; }
.build-log-page .timeline-month-summary-copy p:last-child { margin-bottom: 0; }
.build-log-page .timeline-right {
  grid-column: 3;
  grid-row: 2;
  padding-top: 34px;
  padding-bottom: 54px;
}
.build-log-page .timeline-month-empty .timeline-month-heading { color: rgba(242,240,235,.48); }
.build-log-page .timeline-month-empty .timeline-axis { min-height: calc(var(--month-height) - 46px); }
.build-log-page .timeline-card { border-top-color: rgba(242,240,235,.18); }
.build-log-page .build-end-grid { grid-template-columns: .3fr 1fr; }

@media (max-width: 760px) {
  .build-log-page .timeline-head { grid-template-columns: 1fr; }
  .build-log-page .timeline-month {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    grid-template-rows: auto auto auto;
    min-height: auto !important;
    padding: 0 0 42px;
  }
  .build-log-page .timeline-month-heading {
    grid-column: 1 / 3;
    grid-row: 1;
    margin-bottom: 5px;
  }
  .build-log-page .timeline-month-heading::before { width: 15px; }
  .build-log-page .timeline-axis {
    grid-column: 1;
    grid-row: 2 / 4;
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    min-height: 100%;
  }
  .build-log-page .timeline-axis::before { left: 15px; }
  .build-log-page .timeline-month-summary {
    grid-column: 2;
    grid-row: 2;
    padding: 28px 0 24px 12px;
  }
  .build-log-page .timeline-right {
    grid-column: 2;
    grid-row: 3;
    padding: 0 0 0 12px;
    margin-top: 6px;
  }
  .build-log-page .timeline-entry-right .timeline-card::before { left: -29px; width: 29px; }
  .build-log-page .timeline-entry-right::before { left: -33px; }
  .build-log-page .timeline-month-empty { min-height: var(--month-height) !important; }
  .build-log-page .timeline-month-empty .timeline-axis { min-height: calc(var(--month-height) - 46px); }
  .build-log-page .build-end-grid { grid-template-columns: 1fr; }
}

/* Keep language-specific inline elements in the intended timeline layout. */
html[data-lang="pl"] .timeline-title.lang-pl,
html[data-lang="en"] .timeline-title.lang-en,
html[data-lang="pl"] .timeline-preview.lang-pl,
html[data-lang="en"] .timeline-preview.lang-en,
html[data-lang="pl"] .timeline-date.lang-pl,
html[data-lang="en"] .timeline-date.lang-en {
  display: block !important;
}

/* v7: rebuilt Product page */
.product-hero-inner { align-items: stretch; }
.product-hero .page-intro { align-self: end; }
.product-hero .page-intro > p:last-child { max-width: 920px; }
.product-cem-note { min-height: 100%; }
.product-cem-note p { max-width: 410px; }

.problem-copy {
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr);
  gap: clamp(40px,6vw,100px);
  margin-top: 64px;
  max-width: 1120px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.problem-copy > p {
  margin: 0;
  font-size: clamp(21px,1.7vw,28px);
  line-height: 1.42;
  font-weight: 650;
  letter-spacing: -.02em;
}
.problem-copy > div { display: grid; gap: 28px; }
.problem-copy > div p { margin: 0; font-size: 18px; color: var(--muted); }

.results-lead {
  max-width: 900px;
  margin: 38px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(19px,1.5vw,24px);
}
.results-list { margin-top: 62px; border-top: 1px solid rgba(255,255,255,.36); }
.results-list article {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 26px;
  padding: 28px 0 30px;
  border-bottom: 1px solid rgba(255,255,255,.26);
}
.result-number { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .14em; padding-top: 7px; }
.results-list h3 { margin: 0; font-size: clamp(25px,2.5vw,38px); line-height: 1.05; letter-spacing: -.04em; }
.results-list p { margin: 10px 0 0; max-width: 850px; color: rgba(255,255,255,.62); font-size: 16px; }

.strategy-panel {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: clamp(30px,5vw,72px);
  margin-top: 70px;
  padding: 30px 0 4px;
  border-top: 3px solid var(--red);
}
.strategy-label { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.strategy-panel h3 { margin: 0; max-width: 850px; font-size: clamp(31px,3.5vw,52px); line-height: 1; letter-spacing: -.045em; }
.strategy-panel p { margin: 24px 0 0; max-width: 900px; color: rgba(255,255,255,.7); font-size: 18px; }

.cem-benefits {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 66px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.cem-benefits article {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cem-benefits article > span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.cem-benefits h3 { margin: auto 0 14px; font-size: clamp(24px,2.2vw,34px); line-height: 1.03; letter-spacing: -.04em; }
.cem-benefits p { margin: 0; color: var(--muted); font-size: 15px; }

.audience-list-detailed div {
  grid-template-columns: 70px minmax(260px,.75fr) minmax(300px,1.25fr);
  gap: 22px;
  padding: 24px 0;
  min-height: 0;
}
.audience-list-detailed div:hover { padding-left: 14px; }
.audience-list-detailed p { margin: 0; max-width: 720px; color: var(--muted); font-size: 15px; }
.product-role-section .red-grid { align-items: start; }
.product-role-section .red-grid > div:last-child > p { font-size: clamp(23px,2.2vw,34px); line-height: 1.28; letter-spacing: -.02em; }

@media (max-width: 980px) {
  .problem-copy { grid-template-columns: 1fr; }
  .strategy-panel { grid-template-columns: 1fr; }
  .cem-benefits { grid-template-columns: 1fr; border-left: 0; }
  .cem-benefits article { min-height: 230px; border-left: 1px solid var(--ink); }
  .audience-list-detailed div { grid-template-columns: 54px 1fr; }
  .audience-list-detailed p { grid-column: 2; }
}

@media (max-width: 680px) {
  .product-hero-inner { min-height: auto; }
  .product-cem-note { min-height: 430px; }
  .problem-copy { margin-top: 42px; padding-top: 18px; }
  .problem-copy > p { font-size: 21px; }
  .results-list article { grid-template-columns: 42px minmax(0,1fr); gap: 14px; padding-block: 23px; }
  .strategy-panel { margin-top: 52px; }
  .cem-benefits { margin-top: 44px; }
  .cem-benefits article { min-height: 220px; padding: 22px; }
  .audience-list-detailed div { gap: 10px; padding-block: 22px; }
  .audience-list-detailed h3 { font-size: 24px; }
}
.product-hero { overflow: hidden; }
@media (max-width: 680px) {
  .product-hero .page-intro h1 { font-size: clamp(46px,13vw,68px); }
}
/* Keep bilingual wrappers inside audience rows from inheriting number styling. */
.audience-list h3 span,
.audience-list p span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}


/* v6 — expanded team profiles and indexable publication records */
.person-bio p { color: var(--muted); max-width: 660px; margin: 14px 0 0; }
.person-bio p + p { margin-top: 12px; }
.person-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 24px; }
.publication-link { color: inherit; text-decoration: none; transition: background-color .22s ease, padding .22s ease; }
.publication-link h3 { transition: color .22s ease; }
.publication-link:hover { background: rgba(17,17,17,.035); padding-left: 14px; padding-right: 14px; }
.publication-link:hover h3 { color: var(--red); }
.publication-doi { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.publication-page .article-hero h1 { max-width: 1220px; font-size: clamp(42px,5.2vw,82px); overflow-wrap: anywhere; }
.publication-record h2 > .lang-en,
.publication-record h2 > .lang-pl { color: inherit; }
.publication-record h2 > .lang-en > span,
.publication-record h2 > .lang-pl > span { color: var(--muted); }
.bibliography-grid { margin-top: 34px; border-top: 1px solid var(--ink); }
.bibliography-row { display: grid; grid-template-columns: minmax(150px,.28fr) minmax(0,1fr); gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--ink); }
.bibliography-row > span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.bibliography-row strong { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.bibliography-row a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.publication-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.button-dark { background: var(--ink); color: white; border-color: var(--ink); }
.button-dark:hover { background: var(--red); border-color: var(--red); }
.citation-box { padding: 24px 26px; border: 1px solid var(--ink); background: rgba(17,17,17,.035); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .person-links { align-items: flex-start; flex-direction: column; gap: 16px; }
  .publication-link:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .bibliography-row { grid-template-columns: 1fr; gap: 7px; }
  .publication-actions { align-items: flex-start; flex-direction: column; }
}

/* Privacy link in the global footer */
.site-footer p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
  transition: border-color 160ms ease, color 160ms ease;
}
.site-footer p a:hover,
.site-footer p a:focus-visible {
  color: #c5221f;
  border-bottom-color: #c5221f;
}
