/* fonts: self-hosted (SIL OFL), no requests to Google */
@font-face { font-family: 'Libre Caslon Text'; src: url('/assets/fonts/libre-caslon-text-v2.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url('/assets/fonts/libre-caslon-text-italic-v2.woff') format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Archivo Narrow'; src: url('/assets/fonts/archivo-narrow.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }

/* kuban&salak – "Baza · ołówek" style. Mobile-first; desktop layout comes later. */
:root {
  --ink: #1E1D1B;
  --navy: #000080;
  --paper: #E7E5E0;
  --card: #F4F2EE;
  --muted: #55524C;
  --text: #3A3935;
  --line: #C9C6BF;
  --lilac: #9AA3E6;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --page: 480px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: var(--ink); }
a:hover { color: var(--navy); }
img, video, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* paper grain over the whole page */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; width: 100%; height: 100%; }
.grain rect { mix-blend-mode: multiply; }

.page { position: relative; z-index: 1; max-width: var(--page); margin: 0 auto; min-height: 100vh; }
.page.is-home { max-width: 390px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; height: 60px; padding: 0 12px 0 20px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); }
.site-header.is-overlay { position: absolute; left: 0; right: 0; background: transparent; }
.logo { display: block; line-height: 0; }
.logo img { height: 38px; width: auto; }
.head-actions { display: flex; gap: 6px; }
.sq-btn { width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; font: 700 13px/1 var(--sans); letter-spacing: 0.08em; text-decoration: none; cursor: pointer; }
.sq-btn.lang { cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--card); }

/* menu overlay */
.menu { position: fixed; left: 0; right: 0; top: 60px; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--ink); }
.menu[hidden] { display: none; }
.menu-inner { max-width: var(--page); height: 100%; margin: 0 auto; padding: 18px 20px 26px; display: flex; flex-direction: column; overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.menu-row .lab { flex: 1 1 auto; font: 700 25px/1.1 var(--serif); }
.menu-row.is-active .lab { color: var(--navy); }
.menu-foot { margin-top: auto; border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.menu-foot a { color: inherit; text-decoration: none; }
.menu-foot .phone { color: var(--ink); font: 700 20px var(--serif); }

/* shared bits */
.badge { flex: 0 0 36px; width: 36px; height: 28px; border: 1px solid var(--ink); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; color: var(--ink); }
.badge.is-on { background: var(--navy); color: #fff; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--navy); }
.eyebrow.ink { color: var(--ink); }
.eyebrow.muted { color: var(--muted); }
.serif-it { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--muted); }
.lead { margin: 6px 0 0; font-size: 17px; line-height: 1.45; color: var(--text); }
.h1 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; font-size: 42px; }
.intro { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }

main.content { position: relative; z-index: 1; padding: 14px 20px 36px; display: flex; flex-direction: column; gap: 22px; }
main.content.gap-24 { gap: 24px; }
main.content.gap-20 { gap: 20px; }

.back-link { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); text-decoration: none; }
.back-link.bottom { margin-top: 4px; }

.btn-bar { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.btn-bar.dark { background: var(--ink); color: var(--card); border: 1px solid var(--ink); }
.btn-bar.navy { background: var(--navy); color: #fff; }
.btn-bar:hover { color: #fff; }
.btn-bar .sq { width: 14px; height: 14px; background: var(--navy); display: block; flex: 0 0 14px; }

/* category list */
.count-bar { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 13px 0; }
.count-bar span { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.count-bar .yrs { color: var(--muted); }
.empty { border: 1px dashed #8A8780; padding: 28px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.empty strong { font: 700 20px/1.2 var(--serif); }

.card { border: 1px solid var(--ink); background: var(--card); display: flex; flex-direction: column; }
.card-media { position: relative; border-bottom: 1px solid var(--ink); background: var(--line); line-height: 0; }
.card-media img { width: 100%; height: auto; filter: grayscale(1); }
.card-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1); }
.card-media .noimg { width: 100%; aspect-ratio: 3 / 2; background: var(--line); }
.card-media .badge { position: absolute; left: 10px; top: 10px; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.card-head { display: flex; flex-direction: column; gap: 3px; }
.card-year { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--navy); }
.card-title { font: 700 22px/1.12 var(--serif); margin: 0; }
.card-place { font-size: 15px; color: var(--muted); }
.rows { display: flex; flex-direction: column; margin: 0; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.row dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); padding-top: 2px; }
.row dd { margin: 0; font-size: 15px; line-height: 1.3; white-space: pre-line; }
.award { display: flex; gap: 12px; background: #fff; border: 1px solid var(--ink); padding: 10px 12px; }
.award svg { flex: 0 0 auto; margin-top: 1px; }
.award > span { display: flex; flex-direction: column; gap: 2px; }
.award .k { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--navy); }
.award .v { font-size: 14px; line-height: 1.35; white-space: pre-line; }

/* featured */
.stat { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 16px 0; display: flex; align-items: center; gap: 16px; }
.stat b { font: 700 64px/0.85 var(--serif); color: var(--navy); }
.stat span { font-size: 17px; font-weight: 600; line-height: 1.25; }
.fcard .card-media { height: 210px; overflow: hidden; }
.fcard .card-media img, .fcard .card-media video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.fcard .chip { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ink); }
.fcard .chip img { filter: grayscale(1); width: auto; }
.fcard .card-body { gap: 4px; }
.fcard .card-title { font-size: 23px; line-height: 1.1; }
.fcard .scope { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--navy); }
.quote-box { background: var(--ink); color: var(--card); display: grid; grid-template-columns: 104px minmax(0, 1fr); }
.quote-box > img { width: 104px; height: 100%; min-height: 150px; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.quote-box > div { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.quote-box .k { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--lilac); }
.quote-box q { quotes: none; font: italic 19px/1.25 var(--serif); color: #fff; }
.quote-box p { margin: 0; font-size: 14px; line-height: 1.45; color: #D9D6D0; }
.quote-box a { align-self: flex-start; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; border-bottom: 1px solid var(--lilac); padding-bottom: 3px; }

/* about */
.dark-panel { background: var(--ink); color: var(--card); display: flex; flex-direction: column; }
.dark-panel .ph { position: relative; line-height: 0; border-bottom: 1px solid var(--ink); }
.dark-panel .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.dark-panel .ph span { position: absolute; left: 12px; bottom: 12px; line-height: 1; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; padding: 6px 8px; }
.dark-panel .tx { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.dark-panel h2 { margin: 0; font: 700 30px/1.05 var(--serif); }
.dark-panel p { margin: 0; font-size: 16px; line-height: 1.5; color: #D9D6D0; }
.dark-panel blockquote { margin: 0; border-left: 3px solid var(--lilac); padding: 2px 0 2px 16px; display: flex; flex-direction: column; gap: 8px; }
.dark-panel blockquote span:first-child { font: italic 24px/1.25 var(--serif); color: #fff; }
.dark-panel blockquote span:last-child:not(:first-child) { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--lilac); }
.founded { display: flex; align-items: baseline; gap: 12px; border: 1px solid var(--ink); background: var(--card); padding: 12px 14px; }
.founded b { font: 700 26px/1 var(--serif); }
.founded span { font-size: 13px; color: var(--muted); }
.sec { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.secs { display: flex; flex-direction: column; gap: 36px; }
.sec-head { display: flex; align-items: center; gap: 12px; }
.sec h2 { margin: 0; font: 700 23px/1.1 var(--serif); }
.sec p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text); white-space: pre-line; }
.sec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sec li { display: flex; align-items: baseline; gap: 12px; font-size: 16px; line-height: 1.35; }
.sec li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; background: var(--navy); display: block; transform: translateY(-2px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--ink); background: var(--card); padding: 5px 12px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.cta-dark { background: var(--ink); color: var(--card); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.cta-dark > span { font: 700 25px/1.12 var(--serif); }

/* team */
.group { display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--ink); padding-top: 20px; margin-top: 28px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.group-head h2 { margin: 0; font: 700 25px/1.1 var(--serif); }
.group-head span { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--navy); flex: 0 0 auto; }
.depts { display: flex; flex-direction: column; gap: 34px; }
.dept { display: flex; flex-direction: column; gap: 14px; }
.dept > .people + .people { margin-top: 20px; }
.dept-name { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.dept-name::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; background: var(--navy); display: block; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 8px; margin: 0; padding: 0; list-style: none; }
.person { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person .ph { border: 1px solid var(--ink); aspect-ratio: 1 / 1; overflow: hidden; background: var(--line); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person .txt { display: flex; flex-direction: column; gap: 1px; }
.person .role { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.25; color: var(--navy); text-transform: uppercase; white-space: pre-line; }
.person .nm { font: 700 13px/1.2 var(--serif); overflow-wrap: anywhere; }

/* contact */
.scene-wrap { position: relative; height: 170px; margin: 0 -20px; overflow: hidden; }
.scene-wrap > div { position: absolute !important; left: 50% !important; top: 0; width: 390px; height: 170px !important; margin: 0 !important; transform: translateX(-50%); }
.scene-wrap .wave { transform-box: fill-box; transform-origin: left bottom; animation: wave 1.2s ease-in-out infinite alternate; }
.scene-wrap .cheer { animation: cheer 1.4s ease-in-out infinite; }
@keyframes wave { from { transform: skewY(-8deg); } to { transform: skewY(8deg); } }
@keyframes cheer { 0%, 55%, 100% { transform: translateY(0); } 22% { transform: translateY(-2px); } }
.call { background: var(--ink); color: var(--card); text-decoration: none; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.call:hover { color: var(--card); }
.call > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.call .k { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--lilac); }
.call .v { font: 700 27px/1.05 var(--serif); }
.mail { border: 1px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.mail .v { font: 700 20px var(--serif); overflow-wrap: anywhere; }
.office { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.office .addr { font: 700 23px/1.2 var(--serif); white-space: pre-line; }
.office .dir { align-self: flex-start; height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }

/* home: city */
.city-outer { position: relative; overflow: hidden; }
.city { position: relative; width: 390px; height: 700px; transform-origin: top left; background: var(--paper); }
/* scene + pins scaled down and moved up so the whole composition fits an iPhone screen with Safari bars */
.city-art { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 195px 0; transform: translateY(-78px) scale(0.93); z-index: 2; pointer-events: none; }
.city-art .pin { pointer-events: auto; }
.city-title { position: absolute; left: 20px; right: 20px; top: 70px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.city-title .t { margin: 0; text-transform: uppercase; white-space: nowrap; }
.city-panel .up { text-transform: uppercase; }
.city-title .s { font: italic 14px var(--serif); color: var(--muted); }
.pin { position: absolute; width: 52px; height: 60px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; transition: opacity .3s; }
.pin .pb { margin-top: 6px; width: 43px; height: 34px; display: flex; align-items: center; justify-content: center; font: 700 17px var(--sans); letter-spacing: 0.06em; border: 1px solid var(--ink); background: var(--card); color: var(--ink); }
.pin .pt { width: 1px; height: 20px; background: var(--ink); }
.city[data-sel] .pin { opacity: .5; }
.city[data-sel] .pin.is-on { opacity: 1; }
.pin.is-on .pb { background: var(--navy); color: #fff; }
.city-panel { position: absolute; left: 20px; right: 20px; top: 526px; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ink); }
.city-panel[hidden] { display: none; }
.city-panel .lead-s { margin: 0; font: 700 18px/1.15 var(--serif); }
.city-panel .hint { font-size: 14px; color: var(--muted); }
.city-panel .nm { margin: 0; font: 700 32px/1 var(--serif); }
.city-panel .ds { font-size: 15px; color: var(--muted); }
.city-panel .acts { display: flex; gap: 10px; }
.city-panel .acts .btn-bar { flex: 1 1 auto; justify-content: center; }
.city-panel .x { width: 50px; height: 50px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.city .city-svg { --s-ind: #55524C; --s-spo: #55524C; --s-pub: #55524C; --s-res: #55524C; --s-inf: #55524C;
  --w-ind: 0.6; --w-spo: 0.6; --w-pub: 0.6; --w-res: 0.6; --w-inf: 0.6;
  --c-ind: #2A2926; --c-spo: #2A2926; --c-pub: #2A2926; --c-res: #2A2926; --c-inf: #2A2926; }
.city[data-sel="ind"] .city-svg { --s-ind: #000080; --w-ind: 1.8; --c-ind: #000080; }
.city[data-sel="spo"] .city-svg { --s-spo: #000080; --w-spo: 1.8; --c-spo: #000080; }
.city[data-sel="pub"] .city-svg { --s-pub: #000080; --w-pub: 1.8; --c-pub: #000080; }
.city[data-sel="res"] .city-svg { --s-res: #000080; --w-res: 1.8; --c-res: #000080; }

@media (prefers-reduced-motion: reduce) { .scene-wrap .wave, .scene-wrap .cheer { animation: none; } }

/* ---------- desktop parts hidden on phones ---------- */
.desk-nav, .desk-phone, .site-foot, .home-desk, .other-cats { display: none; }

/* ---------- desktop (≥1024px) ---------- */
@media (min-width: 1024px) {
  .page, .page.is-home { max-width: none; }
  .site-header, .site-header.is-overlay { position: sticky; top: 0; height: 76px; padding: 0 40px; gap: 28px; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .logo img { height: 42px; }
  .menu-btn, .mob-phone { display: none; }
  .menu { display: none !important; }
  .desk-nav { display: flex; align-items: center; gap: 26px; flex: 1 1 auto; justify-content: center; }
  .dn-item { display: flex; align-items: center; gap: 8px; height: 76px; padding-top: 3px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; white-space: nowrap; }
  .dn-item .badge { flex: 0 0 30px; width: 30px; height: 24px; font-size: 12px; letter-spacing: 0.04em; }
  .dn-item.is-active { color: var(--navy); border-bottom-color: var(--navy); }
  .head-actions { gap: 10px; align-items: center; }
  .desk-phone { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: var(--card); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }

  main.content { max-width: 1440px; margin: 0 auto; padding: 40px 40px 64px; gap: 28px; }
  .h1 { font-size: 56px; }
  .serif-it { font-size: 17px; }
  .lead { font-size: 18px; }

  .site-foot { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1440px; margin: 0 auto; padding: 28px 40px 40px; border-top: 1px solid var(--ink); font-size: 15px; color: var(--muted); }
  .sf-col { display: flex; flex-direction: column; gap: 4px; }
  .sf-col img { height: 34px; width: auto; align-self: flex-start; margin-bottom: 4px; }
  .sf-col a { color: inherit; text-decoration: none; }
  .sf-col .phone { color: var(--ink); font: 700 20px var(--serif); }

  /* home */
  .city-outer { display: none; }
  .home-desk { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(340px, 500px) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 24px 40px 32px; min-height: calc(100vh - 77px); box-sizing: border-box; }
  .home-desk .hd-left { gap: 18px; }
  .home-desk .hd-row { padding: 12px 4px; }
  .hd-left { display: flex; flex-direction: column; gap: 22px; }
  .hd-left .h1 { font-size: 68px; }
  .hd-lead { margin: 0; font: 700 24px/1.2 var(--serif); }
  .hd-rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); }
  .hd-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 4px; margin: 0; border: 0; border-top: 1px solid var(--ink); background: transparent; cursor: pointer; font-family: inherit; color: var(--ink); text-align: left; }
  .hd-row:hover, .hd-row.is-on { background: var(--card); }
  .hd-row .badge { flex: 0 0 40px; width: 40px; height: 32px; font-size: 15px; }
  .hd-row.is-on .badge { background: var(--navy); color: #fff; }
  .hd-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
  .hd-nm { font: 700 26px/1.1 var(--serif); }
  .hd-row.is-on .hd-nm { color: var(--navy); }
  .hd-ds { font-size: 14px; line-height: 1.35; color: var(--muted); }
  .hd-n { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
  .hd-view { height: 54px; padding: 0 20px; }
  .hd-view[hidden], .hd-hint[hidden] { display: none; }
  .hd-hint { font-size: 15px; color: var(--muted); }
  .cw { position: relative; width: 100%; max-width: min(760px, calc((100vh - 140px) * 0.722)); justify-self: center; }
  .cw .city-svg { display: block; width: 100%; height: auto; overflow: visible;
    --s-ind: #55524C; --s-spo: #55524C; --s-pub: #55524C; --s-res: #55524C; --s-inf: #55524C;
    --w-ind: 0.6; --w-spo: 0.6; --w-pub: 0.6; --w-res: 0.6; --w-inf: 0.6;
    --c-ind: #2A2926; --c-spo: #2A2926; --c-pub: #2A2926; --c-res: #2A2926; --c-inf: #2A2926; }
  .cw[data-sel="ind"] .city-svg { --s-ind: #000080; --w-ind: 1.8; --c-ind: #000080; }
  .cw[data-sel="spo"] .city-svg { --s-spo: #000080; --w-spo: 1.8; --c-spo: #000080; }
  .cw[data-sel="pub"] .city-svg { --s-pub: #000080; --w-pub: 1.8; --c-pub: #000080; }
  .cw[data-sel="res"] .city-svg { --s-res: #000080; --w-res: 1.8; --c-res: #000080; }
  .dpin { position: absolute; transform: translate(-50%, -100%); width: 56px; height: 66px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: opacity .3s; }
  .dpin .pb { width: 48px; height: 38px; display: flex; align-items: center; justify-content: center; font: 700 18px var(--sans); letter-spacing: 0.06em; border: 1px solid var(--ink); background: var(--card); color: var(--ink); }
  .dpin .pt { width: 1px; height: 22px; background: var(--ink); }
  .cw[data-sel] .dpin { opacity: .45; }
  .cw[data-sel] .dpin.is-on { opacity: 1; }
  .dpin.is-on .pb, .dpin:hover .pb { background: var(--navy); color: #fff; }

  /* category */
  main.content.cat-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .cat-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
  .other-cats { display: flex; flex-direction: column; }
  .other-cats a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
  .other-cats .badge { flex: 0 0 30px; width: 30px; height: 24px; font-size: 12px; }
  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
  .cards .card-media img, .cards .card-media video, .cards .card-media .noimg { aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
  .cards .card-body { flex: 1 1 auto; }
  .cards .card-title { font-size: 21px; line-height: 1.15; }
  .cards .rows { margin-top: auto; }
  .cat-layout > .back-link.bottom { display: none; }

  /* featured */
  main.content.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; align-items: end; }
  .feat > .fcards, .feat > .quote-box, .feat > .btn-bar { grid-column: 1 / -1; }
  .feat .h1 { font-size: 64px; }
  .fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .fcard .card-media { height: 260px; }
  .feat > .quote-box { grid-template-columns: 220px minmax(0, 1fr); }
  .feat > .quote-box > img { width: 220px; min-height: 260px; }
  .feat > .quote-box > div { padding: 28px 32px; }
  .feat > .quote-box q { font-size: 28px; }
  .feat > .quote-box p { font-size: 16px; max-width: 640px; }
  .feat > .btn-bar { justify-self: start; min-width: 380px; }

  /* about */
  .about { max-width: 1200px; }
  .about .h1 { font-size: 56px !important; max-width: 760px; }
  .about .lead { max-width: 760px; }
  .dark-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .dark-panel .ph img { height: 100%; aspect-ratio: auto; }
  .dark-panel .tx { padding: 36px 40px 40px; }
  .about > .founded { align-self: flex-start; }
  .secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 48px; }
  .cta-dark { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .cta-dark .btn-bar { min-width: 320px; }

  /* team */
  .team .h1 { font-size: 80px !important; }
  .group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 28px; margin-top: 36px; }
  .group-head { flex-direction: column; align-items: flex-start; justify-content: flex-start; align-self: start; gap: 8px; position: sticky; top: 100px; }
  .group-head h2 { font-size: 30px; }
  .depts { gap: 44px; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; max-width: 680px; }
  .dept > .people + .people { margin-top: 30px; }
  .person .role { font-size: 10.5px; line-height: 1.3; }
  .person .nm { font-size: 16px; display: inline; }
  .person .txt { display: block; }
  .person .txt .role { display: block; margin-bottom: 3px; }
  .person .nm + .nm::before { content: " "; }
  .team > .btn-bar { align-self: flex-start; min-width: 320px; }

  /* contact */
  main.content.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1200px; }
  .contact .h1 { font-size: 80px !important; }
  .c-left, .c-right { display: flex; flex-direction: column; gap: 20px; }
  .contact .scene-wrap { margin: 0; height: 300px; }
  .contact .scene-wrap > div { transform: translateX(-50%) scale(1.6); transform-origin: top center; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .desk-phone span { display: none; }
  .desk-nav { gap: 16px; }
  .dn-item { font-size: 12px; letter-spacing: 0.08em; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* images uploaded through the admin panel: grayscale even if build-time processing was skipped */
img[src*="/images/uploads/"], video[poster*="/images/uploads/"] { filter: grayscale(1); }

/* privacy policy + footer link */
.psecs { display: flex; flex-direction: column; gap: 36px; max-width: 760px; }
.privacy .intro { max-width: 760px; }
.menu-foot .priv { margin-top: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.site-foot .priv { margin-top: 10px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.priv-mob { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .priv-mob { display: none; } }

/* category pages (phone): header shows "← ALL CATEGORIES" instead of PL / phone / menu */
.head-back { display: none; }
@media (max-width: 1023px) {
  .site-header.has-back .sq-btn { display: none; }
  .site-header.has-back .head-back { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; font: 700 12px/1 var(--sans); letter-spacing: 0.12em; white-space: nowrap; }
  .cat-layout .cat-aside > .back-link { display: none; }
}
/* phone: smoke drifts further left, over the "100 selected projects" label */
.city .smoke { animation-name: smokeM; animation-duration: 7s; }
@keyframes smokeM { 0% { transform: translate(0,0) scale(.4); opacity: 0 } 12% { opacity: .85 } 100% { transform: translate(-150px,-70px) scale(3.4); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .city .smoke { animation: none; } }
