/* A shared page frame; individual reading lines retain a readable measure. */
:root { --page-gutter: clamp(20px, 4vw, 80px); }
.layout-reviewed > .container,
.layout-reviewed > main > .container { max-width: none; padding-inline: var(--page-gutter); }
.layout-reviewed .site-header-inner { max-width: none; padding-inline: var(--page-gutter); }
.layout-reviewed h1 { text-wrap: balance; }
.layout-reviewed p { text-wrap: pretty; }
.layout-reviewed :is(a,button,input,select,textarea):focus-visible {
  outline: 2px solid var(--accent, #DDC39E); outline-offset: 5px;
}
.layout-reviewed summary:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.layout-reviewed .site-header nav { gap:32px; }
.layout-reviewed .site-header nav > a { margin:0; }
.nav-knowledge { position:relative; }
.nav-knowledge summary { cursor:pointer; list-style:none; color:var(--ink); opacity:.7; padding:14px 0; font-size:15px; }
.nav-knowledge summary::-webkit-details-marker { display:none; }
.nav-knowledge[open] summary,.nav-knowledge.is-current summary { opacity:1; }
.knowledge-menu { position:absolute; top:100%; left:-20px; min-width:180px; padding:12px 20px; background:#101010; border:1px solid var(--border); }
.layout-reviewed .site-header .knowledge-menu a { display:block; width:auto; margin:0; padding:12px 0; font-size:16px; text-align:left; opacity:1; }
.layout-reviewed .site-header a[aria-current="page"] { opacity:1; color:var(--ink); text-decoration:underline; text-underline-offset:6px; }
.layout-reviewed .cs-project-link-icon { display:none; }
.layout-reviewed .section-header a::after,
.layout-reviewed .featured-card a::after,
.layout-reviewed .read-more::after,
.layout-reviewed .posts-compact a::after { content:none; }
.layout-reviewed .cs-section ul li::before,
.layout-reviewed .cm-brief li::before,
.layout-reviewed .contact-scope-list li::before { content:'•'; }
.layout-reviewed .header-cta { background:transparent; border:1px solid rgba(232,222,206,.6); color:#E8DECE; padding:10px 18px; min-height:44px; display:inline-flex; align-items:center; font-size:14px; letter-spacing:0; }
.layout-reviewed .header-cta:hover { background:rgba(232,222,206,.08); border-color:#E8DECE; color:#E8DECE; }
.layout-reviewed .post-content a { color:#E8DECE; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; border:0; }
.demo-action,
.layout-reviewed .post-content a.demo-action { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:13px 20px; background:#E8DECE; color:#000; border:2px solid #E8DECE; border-radius:0; font:600 17px/1.35 var(--font-body,system-ui); text-decoration:none; cursor:pointer; }
.demo-action:hover,.layout-reviewed .post-content a.demo-action:hover { background:#fff; border-color:#fff; color:#000; }
.demo-action-row { margin-block:28px; }
.demo-showcase { padding:48px var(--page-gutter) 64px; }
.demo-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:20px; margin-bottom:28px; }
.demo-heading h2,.portfolio-group > h2,.portfolio-writing > h2 { font:400 clamp(26px,3vw,42px)/1.2 var(--font-display); letter-spacing:-.04em; margin:0; }
.demo-heading > a,.portfolio-jump a,.portfolio-writing a:not(.demo-action) { color:var(--ink); text-underline-offset:5px; }
.demo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
.demo-grid article { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.demo-grid img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.demo-grid h3 { font:400 24px/1.3 var(--font-display); margin:24px 0 12px; }
.demo-grid p { font:18px/1.6 var(--font-body); color:var(--ink-dim); margin:0 0 24px; }
.demo-grid .demo-action { margin-top:auto; }
.portfolio-group { margin-block:48px 72px; }
.portfolio-group > h2 { margin-bottom:32px; }
.work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px 32px; }
.work-card { min-width:0; position:relative; display:flex; flex-direction:column; background:transparent; }
.work-image { width:100%; aspect-ratio:16/10; overflow:hidden; }
.work-image :is(img,picture) { width:100%; height:100%; display:block; object-fit:cover; }
.work-body { padding-block:20px 0; flex:1; display:flex; flex-direction:column; }
.work-top { display:none; }
.work-bottom { display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.work-title { font:400 26px/1.25 var(--font-display); margin:0 0 12px; }
.work-desc { font:18px/1.6 var(--font-body); color:var(--ink-dim); margin:0 0 20px; }
.work-footer { display:flex; flex-wrap:wrap; gap:16px; margin-top:auto; align-items:center; justify-content:space-between; width:100%; }
.work-tech { display:flex; flex-wrap:wrap; gap:8px; color:var(--ink-dim); font-size:12px; }
.work-link { display:inline-block; color:var(--ink); padding:10px 0; text-underline-offset:5px; }
.work-link::after { content:''; position:absolute; inset:0; }
.work-link:focus-visible::after { outline:2px solid var(--accent); outline-offset:6px; }
.portfolio-jump { display:flex; flex-wrap:wrap; gap:16px 32px; margin-top:32px; }
.portfolio-writing { padding-block:24px 48px; max-width:75ch; }
.portfolio-writing p { font:18px/1.7 var(--font-body); margin-block:24px; }
.portfolio-more { margin:0 0 64px; }
.layout-reviewed .pg-main { max-width:none; padding-inline:var(--page-gutter); }
@media(max-width:960px){
 .layout-reviewed .site-header nav { gap:12px; }
 .nav-knowledge summary { font-size:22px; letter-spacing:1px; padding:22px 0; width:180px; text-align:center; }
 .knowledge-menu { position:static; background:none; border:0; padding:0 0 8px; }
 .layout-reviewed .site-header .knowledge-menu a { text-align:center; padding:12px; }
 .demo-grid,.work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px){
 .demo-grid,.work-grid { grid-template-columns:1fr; gap:40px; }
 .demo-showcase { padding-block:32px 48px; }
 .demo-grid h3 { font-size:24px; }
 .demo-action { width:100%; }
 .demo-heading > a { min-height:44px; display:inline-flex; align-items:center; }
}
.layout-reviewed :is(h2,h3,[id]) { scroll-margin-top: 110px; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
/* Information and project pages use the width for headings alongside the text. */
@media (min-width: 1000px) {
  .layout-reviewed:not(.page-about) .cs-page { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 32px; align-items: start; }
  .layout-reviewed .cs-page > * { grid-column: 1 / -1; min-width: 0; }
  .layout-reviewed.page-case .cs-page > .cs-header { grid-column: 1 / 8; }
  .layout-reviewed.page-case .cs-page > .cs-summary { grid-column: 8 / -1; }
  .layout-reviewed .cs-section { display: grid; grid-template-columns: 1fr 2fr; column-gap: 48px; max-width: none; }
  @supports (grid-template-columns: subgrid) {
    .layout-reviewed .cs-section { grid-template-columns: subgrid; }
    .layout-reviewed .cs-section > h2 { grid-column: 1 / 4; }
    .layout-reviewed .cs-section > :not(h2) { grid-column: 4 / -1; }
  }
  @supports not (grid-template-columns: subgrid) {
    .layout-reviewed .cs-section > h2 { grid-column: 1; }
    .layout-reviewed .cs-section > :not(h2) { grid-column: 2; }
  }
  .layout-reviewed .cs-section > :is(p,ul,ol) { max-width: 76ch; }
  .layout-reviewed .cs-lead { max-width: 68ch; }
  .layout-reviewed .cs-summary .cs-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .layout-reviewed .cs-section h2 { font-size: 24px; text-transform: none; letter-spacing: -.03em; line-height: 1.3; }
  .layout-reviewed .term-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .layout-reviewed .contact-inner { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .layout-reviewed .cm-areas { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .layout-reviewed .cm-faq { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 64px; }
  .layout-reviewed .cm-brief { max-width: 85ch; }
  .layout-reviewed .post { max-width: 1280px; margin-inline: auto; }
  .layout-reviewed .post-header { max-width: 1100px; }
  .layout-reviewed .post-content { max-width: 76ch; margin-inline: auto; }
  .layout-reviewed .post-header h1 { font-size: clamp(36px,4vw,64px); line-height: 1.15; }
}
.layout-reviewed .cs-section :is(img,iframe,video),
.layout-reviewed .post-content :is(img,iframe,video) { max-width: 100%; }
.layout-reviewed .cs-section > img { height: auto; }
.layout-reviewed .post-content pre { overflow-x: auto; max-width: 100%; }
/* The work must be readable even when a script or animation is unavailable. */
.layout-reviewed .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .layout-reviewed .tw-hidden { opacity: 1 !important; transform: none !important; }
  .layout-reviewed .tw-reveal { clip-path: none !important; }
  .layout-reviewed .tw-caret,.layout-reviewed .tw-cursor { display: none; }
}
@media (max-width: 960px) {
  .layout-reviewed .site-header nav:not(.is-open) { visibility: hidden; }
  .layout-reviewed .site-header nav.is-open { visibility: visible; }
}
@media (max-width: 600px) {
  .layout-reviewed .cs-page { padding-top: 32px; }
  .layout-reviewed .cs-section h2 { font-size: 22px; letter-spacing: -.02em; text-transform: none; line-height: 1.3; }
  .layout-reviewed .cs-title { overflow-wrap: anywhere; }
  .layout-reviewed .hero-statement { min-height: min(680px, 78svh); }
  .layout-reviewed .hero-content { padding-bottom: 36px; }
}


/* About: one introduction, then a shared heading/content axis. */
.about-page { padding-block:48px 16px; }
.about-intro { display:block; padding-bottom:40px; }
.about-intro h1 { font:700 clamp(36px,4vw,64px)/1.12 var(--font-display); letter-spacing:-.04em; margin:0 0 24px; }
.about-lead { font:400 22px/1.6 var(--font-body); max-width:none; margin:0; }
.about-row { display:grid; grid-template-columns:280px minmax(0,1fr); gap:20px 48px; align-items:start; padding-block:32px 40px; border-top:1px solid var(--border); }
.about-row h2 { grid-row:1 / 3; font:400 28px/1.3 var(--font-display); margin:0; }
.about-row > div { min-width:0; }
.about-row p { font:18px/1.7 var(--font-body); margin:0 0 16px; }
.about-row aside { grid-column:2; padding:0; }
.about-row aside h3 { font:400 16px/1.4 var(--font-body); color:var(--ink-dim); margin:0 0 8px; }
.about-row aside p { display:flex; flex-wrap:wrap; gap:8px 24px; margin:0; font-size:16px; }
.about-row aside br { display:none; }
.about-row a { color:var(--ink); text-underline-offset:4px; }
.about-row aside a { display:inline-block; padding-block:4px; }
.about-contact { display:block; padding-block:24px 32px; border-top:1px solid var(--border); }
.about-contact > a { display:inline-block; font:400 clamp(24px,2.2vw,36px)/1.3 var(--font-display); color:var(--ink); text-underline-offset:6px; margin-bottom:16px; overflow-wrap:anywhere; }
.about-contact p { font:18px/1.6 var(--font-body); margin:0; color:var(--ink-dim); }
.page-about footer { margin-top:16px; }
@media(max-width:700px){
 .about-page { padding-top:32px; }
 .about-intro { padding-bottom:28px; }
 .about-intro h1 { margin-bottom:20px; }
 .about-lead { font-size:20px; }
 .about-row { grid-template-columns:1fr; gap:16px; padding-block:24px 32px; }
 .about-row h2 { grid-row:auto; font-size:25px; }
 .about-row aside { grid-column:1; }
 .about-row aside p { gap:4px 20px; }
 .about-contact { padding-block:24px; }
}
/* Each primary home section occupies the complete parent grid. */
.layout-reviewed .pg-main > .portfolio-group,
.layout-reviewed .pg-main > .portfolio-more { grid-column:1 / -1; min-width:0; }
.layout-reviewed .pg-main > .portfolio-more { margin-top:-24px; }
/* Project stories follow one reading order, with a compact facts strip. */
.layout-reviewed.page-case .cs-page { display:block; padding-top:36px; }
.layout-reviewed.page-case .cs-back { margin-bottom:28px; }
.layout-reviewed.page-case .cs-header { margin-bottom:28px; max-width:none; }
.layout-reviewed.page-case .cs-title { font-size:clamp(36px,4.5vw,76px); margin-bottom:20px; }
.layout-reviewed.page-case .cs-lead { max-width:none; margin-bottom:0; font-family:var(--font-body); font-size:clamp(19px,1.5vw,24px); line-height:1.55; }
.layout-reviewed.page-case .cs-tags { display:none; }
.layout-reviewed.page-case .cs-summary { display:flex; align-items:flex-end; gap:32px; flex-wrap:wrap; padding:20px 0; margin:0 0 40px; border-block:1px solid var(--border); }
.layout-reviewed.page-case .cs-summary .cs-facts { display:flex; flex-wrap:wrap; gap:24px 48px; flex:1; border:0; border-radius:0; background:none; min-width:0; }
.layout-reviewed.page-case .cs-summary .cs-fact { background:none; padding:0; flex:0 1 auto; min-width:120px; }
.layout-reviewed.page-case .cs-summary .cs-fact dt { font:400 14px/1.4 var(--font-body); text-transform:none; letter-spacing:0; color:var(--ink-dim); margin-bottom:6px; }
.layout-reviewed.page-case .cs-summary .cs-fact dd { font:400 17px/1.5 var(--font-body); }
.layout-reviewed.page-case .cs-summary-actions { background:none; border:0; border-radius:0; padding:0; }
.layout-reviewed.page-case .cs-project-link { font-size:16px; color:var(--ink); text-decoration:underline; text-underline-offset:5px; }
.layout-reviewed.page-case .cs-media { margin-bottom:40px; }
.layout-reviewed.page-case .cs-section { display:block; max-width:none; margin:0 0 36px; }
.layout-reviewed.page-case .cs-section h2,
.layout-reviewed.page-case .cs-tech-block h2 { font:400 26px/1.25 var(--font-display); letter-spacing:-.025em; text-transform:none; color:var(--ink); margin:0 0 16px; }
.layout-reviewed.page-case .cs-section p { font-size:18px; line-height:1.7; max-width:none; }
.layout-reviewed.page-case .cs-tech-block { margin:0 0 36px; }
.layout-reviewed.page-case .cs-tech { gap:8px 20px; }
.layout-reviewed.page-case .cs-tech li { background:none; border:0; border-radius:0; padding:0; font:15px/1.5 var(--font-body); color:var(--ink-dim); }
.layout-reviewed.page-case .cs-cta { padding-top:28px; }
@media(max-width:600px){
 .layout-reviewed .header-cta { padding:9px 12px; font-size:13px; }
 .layout-reviewed.page-case .cs-summary { gap:20px; margin-bottom:28px; }
 .layout-reviewed.page-case .cs-summary .cs-facts { gap:20px 28px; flex-basis:100%; }
 .layout-reviewed.page-case .cs-summary .cs-fact { min-width:calc(50% - 28px); }
 .layout-reviewed.page-case .cs-section h2,.layout-reviewed.page-case .cs-tech-block h2 { font-size:23px; }
}

/* Restore the approved image treatment from portfolio.css (.bc-image img). */
.work-image img,
.demo-grid > article > img { filter:saturate(0.5) brightness(0.65); }
.work-image img { transition:transform .55s ease, filter .4s ease; }
.demo-grid > article > img { transition:filter .4s ease; }
.work-card:focus-within .work-image img,
.demo-grid > article:focus-within > img { filter:saturate(0.85) brightness(0.8); }
.work-card:focus-within .work-image img { transform:scale(1.07); }
@media(hover:hover) and (pointer:fine){
 .work-card:hover .work-image img,
 .demo-grid > article:hover > img { filter:saturate(0.85) brightness(0.8); }
 .work-card:hover .work-image img { transform:scale(1.07); }
}

/* Keep the two image-led home sections separate, including pointer states. */
.layout-reviewed .hero-statement + .pg-main {
  padding-top: clamp(32px, 4vw, 72px);
}
.layout-reviewed .pg-main > .bc-hero,
.layout-reviewed .pg-main > .bc-hero:hover {
  transform: none;
  isolation: isolate;
}
/* Home spacing: close within a group, generous between sections. */
.layout-reviewed .pg-main {
  --home-section-space: clamp(48px, 8vw, 100px);
  --home-heading-space: clamp(32px, 4vw, 56px);
}
.layout-reviewed .pg-main > .copy-section {
  padding-block: var(--home-section-space);
}
.layout-reviewed .copy-section:not(.copy-section--right) .copy-section-top,
.layout-reviewed .copy-section--kod .copy-section-top { display: none; }
.layout-reviewed .copy-title { margin-bottom: var(--home-heading-space); }
.layout-reviewed .pg-main > .portfolio-group {
  margin-block: var(--home-section-space) 0;
}
.layout-reviewed .pg-main > .portfolio-more { margin: 32px 0 0; }
.layout-reviewed .work-body { padding-top: 24px; }
.layout-reviewed .demo-showcase { padding-block: clamp(64px, 8vw, 100px); }
/* Shared decorative artwork must not displace the actual page content. */
.layout-reviewed:is(.page-glossary,.page-seo) .cs-page > .reveal > img[src*='/img/showcase/'] { width:100%; height:clamp(200px,25vw,400px) !important; object-fit:cover; object-position:center top; filter:saturate(.5) brightness(.65); border-radius:0 !important; }
.layout-reviewed.page-glossary .section-tier { max-width:none; margin:0; padding:48px 0; min-width:0; }
.layout-reviewed.page-glossary .section-tier h2 { font:400 30px/1.25 var(--font-display); margin:0 0 24px; }
.layout-reviewed.page-glossary .tier-desc { margin-top:-12px; }
.layout-reviewed.page-glossary .term-grid { gap:24px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.layout-reviewed.page-glossary .term-card { min-width:0; }
.layout-reviewed.page-glossary .term-card p { font-size:16px; }
/* Two facts columns on phones; long values wrap within their own cell. */
.layout-reviewed.page-case .cs-summary .cs-facts { margin:0; }
.layout-reviewed .lab-karta > img { filter:saturate(.5) brightness(.65); transition:filter .3s ease; }
.layout-reviewed .lab-karta:focus-visible > img { filter:saturate(.85) brightness(.8); }
@media(hover:hover) and (pointer:fine){ .layout-reviewed .lab-karta:hover > img { filter:saturate(.85) brightness(.8); } }
@media(max-width:600px){
 .layout-reviewed.page-case .cs-summary .cs-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; margin:0; }
 .layout-reviewed.page-case .cs-summary .cs-fact { min-width:0; overflow-wrap:anywhere; }
 .layout-reviewed.page-glossary .section-tier { padding-block:32px; }
 .layout-reviewed.page-glossary .term-grid { grid-template-columns:1fr; gap:16px; }
}
@media(min-width:601px) and (max-width:1000px){
 .layout-reviewed.page-glossary .term-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Chronological archive: one entry per row, with a bounded date column. */
.page-blog .posts-log { container: archive / inline-size; margin-block:48px 80px; }
.page-blog .blog-head { display:block; margin-top:56px; }
.page-blog .blog-head-title { margin:0 0 24px; }
.page-blog .blog-head-lead { font:400 21px/1.55 var(--font-body); max-width:64ch; margin:0; }
.page-blog .posts-log-header { display:none; }
.page-blog .posts-compact { display:block; }
.page-blog .posts-compact li { position:relative; display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:8px; padding-block:24px; border:0; border-bottom:1px solid var(--border); min-width:0; }
.page-blog .posts-compact li:first-child { border-top:1px solid var(--border); }
.page-blog .posts-compact time { flex:none; font:400 14px/1.5 var(--font-body); color:var(--ink-dim); letter-spacing:0; white-space:nowrap; }
.page-blog .posts-compact a { display:block; font:400 25px/1.35 var(--font-body); color:var(--ink); max-width:80ch; overflow-wrap:break-word; text-wrap:pretty; }
.page-blog .posts-compact a::before { content:''; position:absolute; inset:0; }
.page-blog .posts-compact li:hover a { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; }
.page-blog .posts-compact li:focus-within { outline:2px solid var(--accent); outline-offset:5px; }
@container archive (min-width: 44rem) {
 .page-blog .posts-compact li { grid-template-columns:10rem minmax(0,1fr); column-gap:32px; align-items:baseline; }
}
@supports not (container-type:inline-size) {
 @media(min-width:850px) { .page-blog .posts-compact li { grid-template-columns:10rem minmax(0,1fr); column-gap:32px; align-items:baseline; } }
}
@media(max-width:600px){
 .page-blog .blog-head { margin-top:40px; }
 .page-blog .blog-head-lead { font-size:19px; }
 .page-blog .posts-log { margin-block:32px 56px; }
 .page-blog .posts-compact a { font-size:23px; }
}

:root { --ink:#E7EDF4; --ink-dim:#AAB6C4; --accent:#E7EDF4; --border:rgba(231,237,244,.20); }

/* Text stays crisp. Image treatment is kept on image elements only. */
.layout-reviewed::before,.layout-reviewed::after { content:none; }
.layout-reviewed .glitch-vfx { display:none; }
.layout-reviewed .site-title a { text-shadow:none; }
.layout-reviewed .header-cta { color:var(--ink); border-color:var(--ink-dim); }
.layout-reviewed .header-cta:hover { color:var(--ink); border-color:var(--ink); background:rgba(255,255,255,.08); }
.layout-reviewed .demo-action,.layout-reviewed .post-content a.demo-action { background:var(--ink); border-color:var(--ink); color:#000; }
.layout-reviewed .demo-action:hover,.layout-reviewed .post-content a.demo-action:hover { background:#fff; border-color:#fff; color:#000; }
.layout-reviewed .post-content a { color:var(--ink); }
.layout-reviewed .copy-cta,.layout-reviewed .bc-link { color:var(--ink); }
.layout-reviewed .site-header nav > a { opacity:.85; }

/* CRT belongs to the pixels of imagery, never to labels or interface controls. */
.layout-reviewed :is(.hero-bg-img,.bc-image img,.work-image img,.demo-grid img,.lab-karta img,.cs-media img,.post-hero img,.cs-page > .reveal img[src*='/img/showcase/']) {
 -webkit-mask-image:repeating-linear-gradient(0deg,#000 0 3px,rgba(0,0,0,.82) 3px 4px);
 mask-image:repeating-linear-gradient(0deg,#000 0 3px,rgba(0,0,0,.82) 3px 4px);
}
/* The archive heading follows the same columns as its entries. */
@media(min-width:850px){
 .page-blog .blog-head { display:grid; grid-template-columns:10rem minmax(0,1fr); gap:32px; align-items:start; }
 .page-blog .blog-head-title { margin:0; }
 .page-blog .blog-head-lead { max-width:none; margin:0; }
}
.page-blog .posts-compact a { max-width:none; }
@media(min-width:961px){
 .nav-knowledge .knowledge-menu { top:calc(100% + 12px); left:0; min-width:140px; padding:6px; background:#080808; border:1px solid var(--border); box-shadow:0 12px 28px rgba(0,0,0,.45); }
 .layout-reviewed .site-header .knowledge-menu a { padding:9px 12px; font-size:15px; line-height:1.4; }
 .layout-reviewed .site-header .knowledge-menu a:hover { background:rgba(255,255,255,.08); }
}
@media(max-width:960px){
 .layout-reviewed .site-header-inner { justify-content:flex-start; gap:12px; }
 .layout-reviewed .nav-toggle { margin-inline-start:auto; flex-shrink:0; }
}
@media(max-width:359px){
 .layout-reviewed .site-header-inner { padding-inline:12px; gap:8px; }
}
/* Related contact details sit together, before the offer begins. */
.page-contact .contact-page { padding-block:40px 48px; }
.page-contact .contact-name { margin-bottom:20px; }
.page-contact .contact-pitch { margin-bottom:24px; }
.page-contact .contact-details { gap:8px; margin-bottom:24px; }
.page-contact .cm-intro { margin-bottom:24px; }
@media(max-width:820px){
 .page-contact .contact-page { padding-block:32px 36px; }
 .page-contact .contact-name { margin-bottom:20px; }
 .page-contact .contact-pitch { margin-bottom:20px; }
 .page-contact .contact-details { margin-bottom:20px; }
 .page-contact .contact-actions { gap:12px 20px; }
}

/* One continuous CRT layer; light blending does not darken lettering. */
.layout-reviewed { isolation:isolate; }
.layout-reviewed::before {
 content:'';
 position:fixed;
 inset:0;
 z-index:10000;
 pointer-events:none;
 mix-blend-mode:screen;
 background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(210,230,255,.065) 3px 4px);
}
.layout-reviewed::after { content:none; }
.layout-reviewed .demo-action:hover,.layout-reviewed .post-content a.demo-action:hover { background:#F1F5F9; border-color:#F1F5F9; }
/* Contact: the decoration anchors the right edge, content groups own their spacing. */
.page-contact .contact-inner { align-items:start; }
.page-contact .contact-inner > .contact-noise { justify-self:end; align-self:start; width:max-content; max-width:100%; margin:0; padding-top:8px; font-size:clamp(12px,.85vw,15px); line-height:1.5; letter-spacing:.02em; overflow:hidden; }
.page-contact .contact-pitch { max-width:none; }
.page-contact .cm-section + .cm-section { margin-top:56px; }
.page-contact .cm-section > .cm-title { margin:0 0 16px; }
.page-contact .cm-intro { max-width:none; margin:0 0 24px; }
.page-contact .cm-brief { max-width:none; }
.page-contact .cm-flow { max-width:none; margin:24px 0 0; }
.page-contact .cm-close { max-width:none; width:100%; margin:48px 0 0; padding-top:24px; }
@media(max-width:820px){ .page-contact .contact-inner > .contact-noise { display:none; } }
@media(max-width:600px){ .page-contact .cm-section + .cm-section { margin-top:40px; } .page-contact .cm-close { margin-top:32px; } }

/* Blog introduction follows its heading; the archive stays a single list. */
.page-blog .blog-head { display:block; }
.page-blog .blog-head-title { margin:0 0 20px; }
.page-blog .blog-head-lead { width:100%; max-width:none; margin:0; }
.page-blog :is(.archive-order,.archive-pagination) { position:static; inset:auto; height:auto; width:auto; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; flex-direction:row; justify-content:flex-start; z-index:auto; opacity:1; pointer-events:auto; transition:none; }
.page-blog :is(.archive-order,.archive-pagination) a { margin:0; width:auto; font-size:15px; line-height:1.4; letter-spacing:0; opacity:1; text-align:center; }
.page-blog .archive-toolbar,.page-blog .archive-pagination { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; }
.page-blog .archive-toolbar { justify-content:space-between; margin:0 0 20px; }
.page-blog .archive-order,.page-blog .archive-pages { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.page-blog .archive-toolbar a,.page-blog .archive-pagination a,.page-blog .archive-pagination [aria-current] { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:1px solid var(--border); color:var(--ink); text-decoration:none; }
.page-blog .archive-toolbar a:hover,.page-blog .archive-pagination a:hover { border-color:var(--ink); }
.page-blog .archive-toolbar [aria-current],.page-blog .archive-pagination [aria-current] { border-color:var(--ink); background:var(--ink); color:var(--bg); }
.page-blog .archive-count,.page-blog .archive-page-status { color:var(--ink-dim); font:14px/1.5 var(--font-body); }
.page-blog .archive-pagination { justify-content:space-between; margin-top:24px; }
.page-blog .archive-toolbar + .archive-pagination { margin:0 0 24px; }
.page-blog .archive-pages { gap:6px; }
.page-blog .archive-pages a,.page-blog .archive-pages [aria-current] { min-width:44px; }
@media(max-width:600px){ .page-blog .blog-head-title { margin-bottom:16px; } .page-blog .archive-pagination { gap:12px; } }

/* Shared editorial roles. Keep artwork, logo and interactive demo controls independent. */
.layout-reviewed {
 --type-title:clamp(1.875rem,4vw,3rem);
 --type-section:clamp(1.375rem,2.5vw,1.75rem);
 --type-card:1.25rem;
 --type-body:1rem;
 --type-meta:.875rem;
 --space-section:clamp(2.5rem,5vw,4rem);
}
.layout-reviewed :is(.hero-headline,.blog-head-title,.contact-name,.p-title,.about-hero h1,.post-header h1),
.layout-reviewed.page-case .cs-title,.layout-reviewed .cs-page .cs-title,.layout-reviewed.page-about .about-intro h1 {
 font-size:var(--type-title); line-height:1.15;
}
.layout-reviewed :is(.section-head h2,.demo-section h2,.copy-title,.cm-title,.about-row h2,.section-tier h2,.post-content h2),
.layout-reviewed.page-case :is(.cs-section h2,.cs-tech-block h2),
.layout-reviewed.page-glossary .section-tier h2 {
 font-size:var(--type-section); line-height:1.25;
}
.layout-reviewed :is(.bc-title,.work-title,.demo-grid h3,.cm-areas h3,.cm-faq h3,.term-card h3,.post-content h3,.about-row h3) {
 font-size:var(--type-card); line-height:1.3;
}
.layout-reviewed :is(.hero-sub,.bc-desc,.copy-col-val,.work-desc,.demo-grid p,.contact-pitch,.cm-intro,.cm-areas p,.cm-faq p,.cm-flow,.cm-close,.cm-brief li,.about-lead,.about-row p,.about-contact-note p,.p-subtitle,.blog-head-lead,.cs-lead,.cs-section p,.term-card p,.post-content p,.post-content li),
.layout-reviewed.page-case :is(.cs-lead,.cs-section p),
.layout-reviewed.page-glossary .term-card p,.layout-reviewed .bc-hero .bc-desc {
 font-size:var(--type-body); line-height:1.65;
}
.layout-reviewed :is(.posts-compact time,.post-meta,.post-meta time,.work-tech,.cs-fact dt,.cs-tech li,.archive-count,.archive-page-status,footer,footer p) {
 font-size:var(--type-meta); line-height:1.5;
}
.layout-reviewed .posts-compact a { font-size:var(--type-card); line-height:1.4; }
.layout-reviewed .page-blog .blog-head-lead { font-size:var(--type-body); }
/* The closing text and footer are one ending, without stacked empty padding. */
.layout-reviewed.page-contact .contact-more { padding-bottom:0; }
.layout-reviewed.page-contact footer { margin-top:32px; padding-block:24px; }

/* Homepage projects form a compact overview; case-study pages keep their own layout. */
.layout-reviewed .pg-main > #realizacje { margin-block:48px 0; }
.layout-reviewed #realizacje > h2,.layout-reviewed .demo-heading h2 { font-size:var(--type-section); line-height:1.25; }
.layout-reviewed #realizacje > h2 { margin-bottom:24px; }
.layout-reviewed #realizacje .work-grid { gap:24px 32px; }
.layout-reviewed #realizacje .work-body { padding-top:12px; }
.layout-reviewed #realizacje .work-title { margin-bottom:8px; }
.layout-reviewed #realizacje .work-desc { margin-bottom:12px; }
.layout-reviewed #realizacje .work-footer { gap:8px; }
.layout-reviewed #realizacje .work-link { font-size:var(--type-meta); min-height:44px; display:inline-flex; align-items:center; }
.layout-reviewed .pg-main > .portfolio-more { margin-top:16px; }
.layout-reviewed .demo-showcase { padding-block:24px; }
.layout-reviewed .demo-heading { margin-bottom:16px; }
.layout-reviewed .demo-grid h3 { margin:12px 0 8px; }
.layout-reviewed .demo-grid p { margin-bottom:12px; }
.layout-reviewed .demo-grid img { height:100px; aspect-ratio:auto; object-fit:cover; }
.layout-reviewed .demo-grid .demo-action { min-height:44px; padding:9px 14px; font-size:var(--type-meta); }
@media(min-width:1000px){
 .layout-reviewed #realizacje .work-image { height:clamp(80px,calc((100svh - 36rem)/2),180px); aspect-ratio:auto; }
}
@media(min-width:640px) and (max-width:999px){
 .layout-reviewed #realizacje .work-image { height:140px; aspect-ratio:auto; }
}
@media(max-width:639px){
 .layout-reviewed #realizacje .work-image { height:160px; aspect-ratio:auto; }
 .layout-reviewed #realizacje .work-grid { gap:24px; }
 .layout-reviewed .demo-grid { gap:24px; }
 .layout-reviewed .demo-grid img { height:112px; }
}

/* Scale the complete cards; render each illustration at its intrinsic ratio. */
.layout-reviewed #realizacje .work-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.layout-reviewed #realizacje .work-image { height:auto; aspect-ratio:1; }
.layout-reviewed #realizacje .work-image picture { height:100%; }
.layout-reviewed #realizacje .work-image img { height:100%; object-fit:contain; transform:none; }
.layout-reviewed #realizacje .work-card:is(:hover,:focus-within) .work-image img { transform:none; }
.layout-reviewed #realizacje .work-title { width:auto; max-width:100%; }
.layout-reviewed #realizacje .work-footer { align-items:flex-start; }
@media(min-width:1800px){
 .layout-reviewed #realizacje .work-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
 .layout-reviewed #realizacje .work-footer { flex-direction:column; gap:0; }
}
@media(min-width:800px) and (max-width:1799px){
 .layout-reviewed #realizacje .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .layout-reviewed #realizacje .work-card { display:grid; grid-template-columns:clamp(96px,10vw,128px) minmax(0,1fr); column-gap:16px; align-items:start; }
 .layout-reviewed #realizacje .work-body { padding-top:0; height:100%; }
 .layout-reviewed #realizacje .work-footer { align-items:center; }
}
/* Compact demos through composition rather than a cropped panoramic image. */
.layout-reviewed .demo-grid article { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); align-content:start; align-items:start; column-gap:16px; row-gap:8px; }
.layout-reviewed .demo-grid article > img { grid-column:1; grid-row:1 / span 3; width:100%; height:auto; aspect-ratio:auto; object-fit:contain; }
.layout-reviewed .demo-grid article > :is(h3,p,.demo-action) { grid-column:2; margin:0; }
.layout-reviewed .demo-grid article > .demo-action { justify-self:start; align-self:start; }
@media(max-width:799px){
 .layout-reviewed #realizacje .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .layout-reviewed .demo-grid { grid-template-columns:1fr; }
 .layout-reviewed .demo-grid article { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
}
@media(max-width:479px){
 .layout-reviewed #realizacje .work-grid { grid-template-columns:1fr; }
 .layout-reviewed .demo-grid article { grid-template-columns:minmax(0,1fr) minmax(0,1.8fr); }
}

/* Article artwork scales as a complete image with a bounded visual height. */
.layout-reviewed.page-article .post-hero { max-width:76ch; margin:24px auto 32px; display:flex; flex-direction:column; align-items:center; }
.layout-reviewed.page-article .post-hero img { display:block; width:auto; height:auto; max-width:100%; max-height:clamp(220px,42svh,420px); object-fit:contain; }

/* One meaningful link per project; the whole card shares its hit area. */
.layout-reviewed .work-title-link { font:inherit; color:inherit; text-decoration:none; }
.layout-reviewed .work-title-link::after { content:''; position:absolute; inset:0; }
.layout-reviewed .work-card:hover .work-title-link { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.layout-reviewed .work-title-link:focus-visible::after { outline:2px solid var(--ink); outline-offset:6px; }
.layout-reviewed .work-card { cursor:pointer; }
/* Keep visual controls subordinate to the content, with a larger invisible hit area. */
.layout-reviewed .demo-action,
.layout-reviewed .post-content a.demo-action,
.layout-reviewed .demo-grid .demo-action {
 position:relative; width:fit-content; max-width:100%; min-height:36px;
 padding:6px 12px; border-width:1px; font-size:var(--type-meta); line-height:1.4;
}
.layout-reviewed .demo-action::before { content:''; position:absolute; inset:-4px 0; }
.layout-reviewed .demo-grid article { grid-template-rows:auto 1fr auto; align-content:stretch; }
.layout-reviewed .demo-grid article > .demo-action { align-self:end; }

/* Each demo's action belongs beneath its own thumbnail. */
.layout-reviewed .demo-grid article {
 grid-template-columns:minmax(148px,.8fr) minmax(0,1.4fr);
 grid-template-rows:auto auto; align-content:start; gap:10px 16px;
}
.layout-reviewed .demo-grid article > img { grid-column:1; grid-row:1; aspect-ratio:16/9; object-fit:contain; }
.layout-reviewed .demo-grid article > .demo-copy { grid-column:2; grid-row:1 / span 2; min-width:0; }
.layout-reviewed .demo-grid .demo-copy h3 { margin:0 0 8px; }
.layout-reviewed .demo-grid .demo-copy p { margin:0; }
.layout-reviewed .demo-grid article > .demo-action { grid-column:1; grid-row:2; width:100%; justify-self:stretch; align-self:start; padding-inline:8px; }
@media(max-width:599px){ .layout-reviewed .demo-grid article { grid-template-columns:140px minmax(0,1fr); } }
/* Restore the terminal navigation cursor and indicate the containing section. */
.layout-reviewed .site-header nav a[aria-current],
.layout-reviewed .site-header nav a:hover,
.layout-reviewed .site-header .header-cta[aria-current] { text-decoration:none; }
.layout-reviewed .site-header .header-cta { position:relative; }
.layout-reviewed .site-header nav > a,.layout-reviewed .nav-knowledge summary,.layout-reviewed .knowledge-menu a { position:relative; }
.layout-reviewed .site-header nav a.active::after,
.layout-reviewed .nav-knowledge.is-current summary::after,
.layout-reviewed .site-header .header-cta[aria-current]::after,
.layout-reviewed .site-header nav > a:hover::after,
.layout-reviewed .nav-knowledge summary:hover::after {
 content:'_'; position:absolute; right:-.65em; top:50%; transform:translateY(-50%);
 margin:0; color:var(--ink); animation:cur-blink 1s step-end infinite;
}
.layout-reviewed .knowledge-menu a.active::after { right:6px; }
.layout-reviewed .site-header .header-cta[aria-current]::after { right:6px; }
.layout-reviewed .nav-knowledge.is-current summary { color:var(--ink); opacity:1; }
@media(prefers-reduced-motion:reduce){
 .layout-reviewed .site-header nav a.active::after,.layout-reviewed .nav-knowledge.is-current summary::after,.layout-reviewed .site-header .header-cta[aria-current]::after,
 .layout-reviewed .site-header nav > a:hover::after,.layout-reviewed .nav-knowledge summary:hover::after { animation:none; }
}

/* A single background texture below the content; nothing draws over lettering. */
.layout-reviewed::before,.layout-reviewed::after { content:none; }
.layout-reviewed .crt-background { position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; display:block; }
/* Preserve muted imagery, with pixel-aligned scanlines confined to image pixels. */
.layout-reviewed :is(.hero-bg-img,.bc-image img,.work-image img,.demo-grid img,.lab-karta img,.cs-media img,.post-hero img,.cs-page > .reveal img[src*='/img/showcase/']) {
 -webkit-mask-image:var(--crt-image-mask,none); mask-image:var(--crt-image-mask,none);
 -webkit-mask-size:var(--crt-image-mask-size); mask-size:var(--crt-image-mask-size);
 -webkit-mask-repeat:repeat; mask-repeat:repeat;
}
.layout-reviewed :is(.cs-media img,.post-hero img) { filter:saturate(.5) brightness(.65); }

/* Short case-study sections use the same complete content width as their headings. */
.layout-reviewed.page-case :is(.cs-header,.cs-lead,.cs-section,.cs-section > p,.cs-section > ul,.cs-section > ol,.cs-tech-block) { width:100%; max-width:none; min-width:0; }

/* External project destination is a visible, compact action in every case study. */
.layout-reviewed.page-case .cs-project-link {
 position:relative; display:inline-flex; align-items:center; justify-content:center;
 width:fit-content; max-width:100%; min-height:36px; box-sizing:border-box;
 padding:7px 14px; border:1px solid var(--ink); border-radius:0;
 background:var(--ink); color:#080a0d; font:600 var(--type-meta,14px)/1.4 var(--font-body,system-ui);
 text-align:center; text-decoration:none; letter-spacing:0;
}
.layout-reviewed.page-case .cs-project-link::before { content:''; position:absolute; inset:-4px 0; }
.layout-reviewed.page-case .cs-project-link:hover { background:#F1F5F9; border-color:#F1F5F9; color:#080a0d; text-decoration:none; }
.layout-reviewed.page-case .cs-project-link:focus-visible { outline:2px solid var(--ink); outline-offset:5px; }
