:root {
  --ink: #122546;
  --muted: #526179;
  --blue: #194dbb;
  --line: #dce3ed;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: #f8f9fc;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #3268d3; outline-offset: 3px; }
.container { width: min(1176px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem; background: white; z-index: 1; }
.skip-link:focus { top: .5rem; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .site-footer, .project-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 70px; }
.brand img { display: block; width: 151px; height: auto; }
.contact-link { padding-block: 12px; color: var(--blue); font-size: .88rem; font-weight: 650; text-underline-offset: 3px; }
main { padding-block: clamp(28px,4vw,56px) 36px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem,4.4vw,3.75rem); line-height: 1.05; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.intro { max-width: 61ch; margin: 12px 0 24px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.filter { border: 1px solid var(--line); background: white; border-radius: 30px; padding: 8px 14px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink); }
.filter.is-active { background: var(--ink); color: white; }
.filter:hover { border-color: var(--ink); }
.filter span { margin-left: .35em; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.project-card, .empty-state { background: white; border: 1px solid var(--line); border-radius: 14px; }
.project-card { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.project-media { position: relative; display: grid; overflow: hidden; border-radius: 13px 13px 0 0; background: #e8eef8; border-bottom: 1px solid var(--line); }
.project-media img, .preview-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: top; }
.preview-placeholder { display: grid; place-content: center; text-align: center; gap: .5rem; color: white; background: linear-gradient(115deg,#102345,#234fa7); }
.preview-placeholder strong { font-size: 1.4rem; }
.media-open { position: absolute; right: 12px; bottom: 12px; background: white; color: var(--blue); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; }
.project-media:hover .media-open { background: var(--blue); color: white; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 20px 24px 0; }
.project-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .76rem; color: var(--muted); }
.project-category { background: #eef3ff; color: #254b99; padding: 3px 8px; border-radius: 4px; }
.project-body h2 { margin: 10px 0 6px; font-size: clamp(1.35rem,2.3vw,1.85rem); letter-spacing: -.04em; line-height: 1.16; }
.project-body p, .next-step p, .empty-state p { color: var(--muted); }
.project-body p { margin-bottom: 20px; font-size: .94rem; }
.project-footer { margin-top: auto; border-top: 1px solid var(--line); }
.project-footer a { padding-block: 13px; text-decoration: none; color: var(--blue); font-weight: 650; }
.project-footer a:hover, .site-footer a:hover { text-decoration: underline; }
.is-single { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .is-single .project-card { display: grid; grid-template-columns: 1.25fr 1fr; }
  .is-single .project-media { border-radius: 13px 0 0 13px; border-bottom: 0; }
  .is-single .project-body { justify-content: center; }
  .is-single .project-footer { margin-top: 0; }
}
.next-step, .empty-state { margin-top: 28px; padding: 20px 24px; }
.next-step { border-left: 3px solid var(--blue); background: #edf2fa; }
.site-footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .83rem; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 56px; }
  .brand img { width: 124px; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-body { padding: 16px 18px 0; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding: 4px; margin: -4px -4px 12px; }
  .filter { flex: none; }
}
