/* Advokatska kancelarija BAKIĆ — prototip
   Layout: corporate law-firm grid (Kinstellar-like) — white canvas, deep ink bands,
   brass hairlines echoing the client's gold One Stop Shop icons. Single light theme by choice. */
:root {
  --ink: #12202f;        /* headers, footer, hero */
  --ink-2: #1c2e42;      /* raised surfaces on ink */
  --paper: #ffffff;
  --mist: #f2f4f7;       /* alternating section ground */
  --line: #dde2e9;
  --text: #1d2836;
  --muted: #5a687a;
  --on-ink: #e9edf2;
  --on-ink-muted: #a7b3c2;
  --brass: #a3814f;      /* single accent */
  --brass-light: #c9a978;
  --brass-soft: #f4ede2;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 64ch; }
.prose { max-width: 72ch; display: grid; gap: 1.05em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: .45em; }
.prose li::marker { color: var(--brass); }
.prose h2 { font-size: 1.9rem; margin-top: .8em; }
.prose h3 { font-size: 1.45rem; margin-top: .6em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--brass); border-bottom: 1px solid currentColor; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 22px; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--brass:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.link-arrow { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: .5em; align-items: center; }
.link-arrow::after { content: "→"; color: var(--brass); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand img { height: 54px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: stretch; gap: 4px; }
.nav > .nav-item { position: relative; display: flex; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 0 14px; min-height: var(--header-h); font: 500 14px/1 var(--sans); color: var(--text); background: none; border: 0; cursor: pointer; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav-item:hover > .nav-link::after, .nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass);
  box-shadow: 0 18px 40px -18px rgba(18,32,47,.35); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-item:hover > .dropdown, .nav-item.open > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 22px; font-size: 14px; color: var(--text); }
.dropdown a:hover { background: var(--mist); color: var(--ink); }
.dropdown--mega { left: auto; right: -260px; width: min(860px, 92vw); display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 0; padding: 26px 10px; }
.mega-col { padding: 0 16px; min-width: 0; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-col h4 { font: 600 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding: 0 6px 10px; }
.mega-col a { padding: 7px 6px; font-size: 14px; }
.mega-col .mega-desc { font-size: 13px; color: var(--muted); padding: 0 6px 12px; line-height: 1.5; }
.mega-oss { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.mega-oss a { font-size: 13px; line-height: 1.35; }
.lang { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .1em; padding-left: 14px; border-left: 1px solid var(--line); margin-left: 6px; }
.lang a { color: var(--muted); padding: 6px 2px; }
.lang a[aria-current="true"] { color: var(--ink); border-bottom: 2px solid var(--brass); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .brand img { height: 46px; }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; padding: 8px var(--gutter) 40px; margin: 0; }
  .menu-open .nav { display: flex; }
  .nav > .nav-item { flex-direction: column; border-bottom: 1px solid var(--line); }
  .nav-link { min-height: 56px; padding: 0; justify-content: space-between; font-size: 16px; width: 100%; }
  .nav-link::after { display: none; }
  .dropdown, .dropdown--mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; width: auto; padding: 0 0 12px; }
  .nav-item.open > .dropdown { display: block; }
  .dropdown--mega { grid-template-columns: 1fr; }
  .nav-item.open > .dropdown--mega { display: grid; }
  .mega-col { padding: 0; } .mega-col + .mega-col { border: 0; margin-top: 12px; }
  .dropdown a { padding: 10px 12px; }
  .lang { border: 0; padding: 18px 0 0; margin: 0; }
  .header-cta { display: none; }
}

/* ---------- hero slider ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1200px 500px at 85% 110%, rgba(163,129,79,.22), transparent 60%), linear-gradient(115deg, #0e1926 0%, #12202f 45%, #1b2d41 100%); }
.hero-skyline { position: absolute; right: -2%; bottom: 0; width: min(62%, 820px); z-index: -1; opacity: .9; pointer-events: none; }
.slides { position: relative; min-height: clamp(460px, 62vh, 600px); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; position: relative; }
.slide-inner { max-width: 700px; padding-block: 72px 110px; display: grid; gap: 22px; }
.slide h1, .slide h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); color: #fff; font-weight: 500; }
.slide p { font-size: 1.12rem; color: var(--on-ink-muted); max-width: 56ch; }
.slide .eyebrow { color: var(--brass-light); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.chip { display: inline-block; font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border: 1px dashed currentColor; color: var(--brass); vertical-align: middle; }
.slide .chip { color: var(--brass-light); }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 34px; }
.slider-ui .wrap { display: flex; align-items: center; gap: 22px; }
.dots { display: flex; gap: 10px; }
.dot { width: 44px; height: 3px; background: rgba(255,255,255,.25); border: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--brass-light); transform: scaleX(0); transform-origin: left; }
.dot.is-active::after { transform: scaleX(1); transition: transform 7s linear; }
.slider-arrows { margin-left: auto; display: flex; gap: 8px; }
.slider-arrows button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: 18px; }
.slider-arrows button:hover { background: rgba(255,255,255,.1); }
.slide-count { font: 500 13px/1 var(--sans); color: var(--on-ink-muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* ---------- page header (inner pages) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, #0e1926 0%, #12202f 50%, #1b2d41 100%); }
.page-hero .hero-skyline { width: min(46%, 560px); opacity: .55; }
.page-hero .wrap { padding-block: 54px 64px; display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); color: #fff; max-width: 22ch; }
.page-hero .sub { font-size: 1.12rem; color: var(--on-ink-muted); max-width: 62ch; }
.page-hero .eyebrow { color: var(--brass-light); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--on-ink-muted); letter-spacing: .02em; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 20ch; margin-top: 10px; }
.section-head .lead { max-width: 56ch; }

/* intro + stats */
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-grid > * { min-width: 0; }
.intro-grid h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 12px 0 22px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 24px; }
.stat b { display: block; font: 500 clamp(2.6rem, 4.6vw, 3.6rem)/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat b sup { font-size: .5em; color: var(--brass); vertical-align: super; margin-left: 2px; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { padding: 36px 32px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background: var(--paper); transition: background .2s; min-width: 0; }
.pillar:hover { background: var(--brass-soft); }
.pillar .ico { width: 40px; height: 40px; color: var(--brass); }
.pillar h3 { font-size: 1.7rem; }
.pillar p { color: var(--muted); font-size: 15px; flex: 1; }

/* OSS tiles */
.oss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.oss-tile { background: var(--paper); padding: 26px 22px 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-height: 196px; transition: background .2s, color .2s; position: relative; min-width: 0; }
.oss-tile .num { position: absolute; top: 22px; right: 22px; font: 500 13px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.oss-tile .ico { width: 38px; height: 38px; color: var(--brass); }
.oss-tile h3 { font: 500 1.32rem/1.2 var(--display); color: var(--ink); }
.oss-tile .link-arrow { font-size: 11.5px; color: var(--muted); }
.oss-tile:hover { background: var(--ink); }
.oss-tile:hover h3 { color: #fff; } .oss-tile:hover .link-arrow, .oss-tile:hover .num { color: var(--on-ink-muted); }
.oss-tile:hover .ico { color: var(--brass-light); }
.section--ink .oss-grid { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.section--ink .oss-tile { background: var(--ink); }
.section--ink .oss-tile h3 { color: #fff; }
.section--ink .oss-tile .link-arrow, .section--ink .oss-tile .num { color: var(--on-ink-muted); }
.section--ink .oss-tile:hover { background: var(--ink-2); }
.section--ink .section-head .lead { color: var(--on-ink-muted); }
.section--ink .eyebrow { color: var(--brass-light); }

/* quotes */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.quote { border-top: 1px solid var(--brass); padding-top: 26px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.quote blockquote { margin: 0; font: italic 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.35 var(--display); color: var(--ink); }
.quote cite { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-style: normal; }

/* cards (news/publications) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 26px; border: 1px solid var(--line); background: var(--paper); min-width: 0; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--brass); }
.card-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.card-meta time { color: var(--muted); font-weight: 500; }
.card h3 { font-size: 1.45rem; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--muted); flex: 1; }

/* partner band */
.partner-band { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.partner-band > * { min-width: 0; }
.portrait { aspect-ratio: 3/4; max-width: 100%; background: var(--mist); overflow: hidden; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.portrait::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.55); pointer-events: none; }
.partner-band h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 10px 0 6px; }
.partner-band .role { font: 500 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.partner-band .prose { margin-bottom: 26px; color: var(--muted); }

/* contact band */
.cta-band { background: var(--brass-soft); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 26ch; }

/* ---------- inner page layouts ---------- */
.with-aside { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.with-aside > * { min-width: 0; }
.subnav { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 2px; border-left: 1px solid var(--line); }
.subnav a { padding: 8px 0 8px 18px; font-size: 14px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; }
.subnav a:hover, .subnav a.is-current { color: var(--ink); border-left-color: var(--brass); }
.about-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.about-section:last-child { border-bottom: 0; }
.about-section > h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 22px; }
.about-section .prose > ul { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--line); }
.about-section .prose > ul > li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); position: relative; }
.about-section .prose > ul > li::before { content: "◆"; position: absolute; left: 0; top: 15px; font-size: 10px; color: var(--brass); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.timeline li { padding: 0 0 26px 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--paper); border: 1.5px solid var(--brass); transform: rotate(45deg); }
.timeline .yr { display: block; font: 500 1.6rem/1.2 var(--display); color: var(--ink); margin-bottom: 4px; }

/* services list */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc-list li { list-style: none; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; font: 500 1.25rem/1.3 var(--display); color: var(--ink); min-width: 0; }
.svc-list li .n { font: 500 12px/1 var(--sans); color: var(--brass); font-variant-numeric: tabular-nums; min-width: 22px; }
.svc-list li em { font-style: italic; color: var(--muted); }
.svc-list { margin: 0; padding: 0; column-gap: 32px; }
.svc-list--tax { grid-template-columns: 1fr 1fr; }
.svc-list--tax li { font-size: 1.45rem; padding-block: 28px; }
.crosslinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.crosslinks a { background: var(--paper); padding: 26px 26px; display: grid; gap: 8px; }
.crosslinks a:hover { background: var(--mist); }
.crosslinks b { font: 500 1.4rem/1.2 var(--display); color: var(--ink); }

/* OSS detail */
.oss-hero-top { display: flex; align-items: center; gap: 16px; }
.oss-hero-top .ico { width: 46px; height: 46px; color: var(--brass-light); flex: none; }
.value-line { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.4 var(--display); color: var(--ink); max-width: 46ch; padding-left: 26px; border-left: 1px solid var(--brass); }
.oss-body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 56px; }
.oss-body > * { min-width: 0; }
.oss-body h2 { font-size: 1.9rem; margin-bottom: 22px; }
.diamonds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.diamonds li { padding: 13px 0 13px 24px; border-top: 1px solid var(--line); position: relative; font-size: 15px; line-height: 1.55; }
.diamonds li::before { content: "◆"; position: absolute; left: 0; top: 14px; font-size: 10px; color: var(--brass); }
.contact-card { position: sticky; top: calc(var(--header-h) + 28px); background: var(--ink); color: var(--on-ink); padding: 30px 28px; display: grid; gap: 16px; }
.contact-card h3 { font-size: 1.6rem; color: #fff; }
.contact-card p { font-size: 14.5px; color: var(--on-ink-muted); }
.contact-lines { display: grid; gap: 10px; font-size: 14.5px; }
.contact-lines a, .contact-lines span { display: flex; gap: 10px; align-items: center; color: #fff; word-break: break-word; }
.contact-lines svg { width: 16px; height: 16px; color: var(--brass-light); flex: none; }
.accordion { margin-top: 64px; border-top: 1px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0; font: 500 clamp(1.3rem, 2.2vw, 1.7rem)/1.25 var(--display); color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .pm { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; font: 300 22px/1 var(--sans); color: var(--brass); transition: transform .25s; }
.accordion details[open] summary .pm { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 40px; }
.phase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; font-size: 1.5rem; margin-top: 1.2em; padding-top: 1em; border-top: 1px solid var(--line); }
.phase-n { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 7px 10px; }
.infobox { border: 1px solid var(--line); background: var(--mist); padding: 28px clamp(18px, 3vw, 34px); display: grid; gap: 12px; }
.infobox-title { font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.infobox h5 { font: 500 1.25rem/1.3 var(--display); color: var(--ink); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.infobox-row ol, .infobox-row ul { margin: 0; padding-left: 1.3em; display: grid; gap: .3em; }
.table-wrap { overflow-x: auto; }
.oss-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.oss-pager a { background: var(--paper); padding: 22px 24px; display: grid; gap: 6px; }
.oss-pager a:last-child { text-align: right; }
.oss-pager a:hover { background: var(--mist); }
.oss-pager small { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.oss-pager b { font: 500 1.3rem/1.25 var(--display); color: var(--ink); }

/* team */
.team-cats { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.team-cat { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.team-cat > * { min-width: 0; }
.team-cat h2 { font-size: 1.6rem; }
.team-cat .empty { font-size: 14px; color: var(--muted); font-style: italic; }
.person-card { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; max-width: 560px; }
.person-card .portrait { aspect-ratio: 3/4; }
.person-card h3 { font-size: 1.7rem; color: var(--ink); }
.person-card p { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.role-list li { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; }

/* profile */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.profile > * { min-width: 0; }
.profile-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 22px; }
.profile-aside .contact-lines a, .profile-aside .contact-lines span { color: var(--text); }
.profile-aside .contact-lines svg { color: var(--brass); }
.profile-row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.profile-row > * { min-width: 0; }
.profile-row h2 { font: 600 12px/1.45 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.profile-row .prose ul { list-style: none; padding: 0; gap: .55em; }
.profile-row .prose ul li { padding-left: 18px; position: relative; }
.profile-row .prose ul li::before { content: "◆"; position: absolute; left: 0; top: .1em; font-size: 9px; color: var(--brass); }

/* publications */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 500 13px/1 var(--sans); padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--text); font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pub-year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 40px; }
.pub-year > * { min-width: 0; }
.pub-year > h2 { font-size: 2.4rem; color: var(--brass); font-variant-numeric: lining-nums; }
.pub { display: grid; grid-template-columns: 1fr 130px; gap: 6px 28px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub h3 { font: 500 1.28rem/1.3 var(--display); color: var(--ink); }
.pub .by { grid-column: 1; font-size: 14px; color: var(--muted); }
.pub time { grid-row: 1 / span 2; grid-column: 2; font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* regulations */
.reg-level { margin-bottom: 44px; }
.reg-level > h2 { font-size: 1.9rem; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.reg-level details { border-bottom: 1px solid var(--line); }
.reg-level summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-weight: 500; color: var(--ink); }
.reg-level summary::-webkit-details-marker { display: none; }
.reg-level summary::after { content: "+"; color: var(--brass); font-size: 20px; line-height: 1; }
.reg-level details[open] summary::after { content: "–"; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 22px; }
.reg-table th { text-align: left; font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; background: var(--mist); }
.reg-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-style: italic; }

/* misc pages */
.note-box { border: 1px solid var(--line); border-left: 1px solid var(--brass); padding: 26px 28px; background: var(--mist); max-width: 72ch; }
.news-group { margin-bottom: 44px; }
.news-group > h2 { font-size: 2rem; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 24px; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.contact-grid > * { min-width: 0; }
.contact-block { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 14px; }
.contact-block h2 { font-size: 1.7rem; }
.contact-block .contact-lines a, .contact-block .contact-lines span { color: var(--text); }
.contact-block .contact-lines svg { color: var(--brass); }
.contact-person { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: start; }
.contact-person > * { min-width: 0; }
.other-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.other-contacts a { background: var(--paper); padding: 22px; display: grid; gap: 10px; align-content: start; }
.other-contacts a:hover { background: var(--mist); }
.other-contacts svg { width: 26px; height: 26px; color: var(--brass); }
.other-contacts b { font: 500 1.2rem/1.25 var(--display); color: var(--ink); }
.other-contacts span { font-size: 13.5px; color: var(--muted); }
.map-box { position: relative; aspect-ratio: 16/10; max-width: 100%; background: var(--mist); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.map-box svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px; background: rgba(255,255,255,.92); border: 1px solid var(--line); max-width: 86%; }
.map-pin b { font: 500 1.3rem/1.2 var(--display); color: var(--ink); }
.map-pin span { font-size: 13.5px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-top > * { min-width: 0; }
.footer-top h4 { font: 600 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 16px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-top a:hover { color: #fff; }
.footer-brand img { height: 66px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .oss-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .intro-grid, .partner-band, .with-aside, .oss-body, .profile, .contact-grid, .quotes { grid-template-columns: 1fr; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr 1fr; }
  .subnav, .contact-card, .profile-aside { position: static; }
  .subnav { display: none; }
  .partner-band .portrait { max-width: 260px; }
  .profile-aside .portrait { max-width: 260px; }
  .team-cat { grid-template-columns: 1fr; gap: 14px; }
  .diamonds { grid-template-columns: 1fr; }
  .profile-row { grid-template-columns: 1fr; gap: 10px; }
  .hero-skyline { width: 90%; opacity: .45; }
}
@media (max-width: 560px) {
  .oss-grid, .svc-list, .svc-list--tax, .crosslinks, .oss-pager, .footer-top { grid-template-columns: 1fr; }
  .oss-pager a:last-child { text-align: left; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: 0; padding-right: 0; } .stat:nth-child(even) { padding-left: 0; }
  .person-card { grid-template-columns: 110px 1fr; gap: 16px; }
  .contact-person { grid-template-columns: 1fr; }
  .contact-person .portrait { max-width: 180px; }
  .pub-year { grid-template-columns: 1fr; gap: 8px; }
  .pub { grid-template-columns: 1fr; }
  .pub time { grid-row: auto; grid-column: 1; text-align: left; }
  .slider-ui .slide-count { display: none; }
  .dot { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
.map-pin .ico { width: 30px; height: 30px; color: var(--brass); }
.other-contacts { grid-template-columns: 1fr; }
.other-contacts a { grid-template-columns: 26px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; }
.other-contacts a svg { grid-row: span 2; margin-top: 2px; }
