/* ==========================================================================
   WORLD STEEL – Project Portfolio
   Brand colours sampled from the official logo:
   red #C41D30 · gold #CC992B · navy #00244A
   ========================================================================== */
:root {
  --red: #c41d30;
  --red-d: #9e1626;
  --gold: #cc992b;
  --gold-l: #f1dfb3;
  --navy: #00244a;
  --navy-2: #0a3463;
  --navy-3: #12457c;
  --ink: #15223a;
  --steel: #5b6a80;
  --line: #e1e6ed;
  --bg: #f4f6f9;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 36, 74, .06), 0 8px 24px rgba(0, 36, 74, .08);
  --head: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Barlow', 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font: 400 16px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-d); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .01em; }
code { background: #e9edf3; padding: 1px 6px; border-radius: 3px; font-size: .9em; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--steel); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.eyebrow { font: 600 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.eyebrow--gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--head);
  letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy); color: #c9d4e3; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar__tag { font-family: var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.topbar__contact { display: flex; gap: 20px; }
.topbar a { color: #dbe3ee; }
.topbar a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--red); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(0, 36, 74, .12); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand__logo { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; height: 76px; padding: 0 11px; color: var(--navy); white-space: nowrap;
  font: 600 16px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav__link:hover, .nav__link.is-active { color: var(--red); border-bottom-color: var(--red); }
.nav__count { font: 600 11px/1 var(--body); background: var(--bg); color: var(--steel); border-radius: 10px; padding: 3px 6px; letter-spacing: 0; }
.nav__link.is-active .nav__count { background: var(--red); color: #fff; }
.nav__expand { display: none; }

.sub { position: absolute; top: 100%; left: 0; min-width: 320px; background: #fff; border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 36, 74, .18); padding: 18px 18px 14px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s; }
.nav__item:last-child .sub, .nav__item:nth-last-child(2) .sub { left: auto; right: 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.sub__head span { font: 700 20px/1 var(--head); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.sub__head a { font-size: 13px; font-weight: 600; }
.sub__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; max-height: 60vh; overflow: auto; }
.sub__grid a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 3px; color: var(--ink); font-size: 14px; }
.sub__grid a:hover { background: var(--bg); color: var(--red); }
.sub__grid span { flex: 1; }
.sub__grid em { font-style: normal; font-size: 12px; color: var(--steel); }

.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; display: inline-block; }
.flag--lg { width: 44px; height: 30px; margin-right: 14px; vertical-align: middle; position: relative; top: -4px; }

.navtoggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.navtoggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .navtoggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .navtoggle span:nth-child(2) { opacity: 0; }
.nav-open .navtoggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero, .phero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__bg, .phero::before { position: absolute; inset: 0; pointer-events: none; content: '';
  background:
    linear-gradient(105deg, var(--navy) 38%, rgba(0, 36, 74, .78) 70%, rgba(0, 36, 74, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cg fill='none' stroke='%2312457c' stroke-width='1.2'%3E%3Cpath d='M0 79.5h160M0 .5h160M0 80L40 0l40 80L120 0l40 80'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after, .phero::after { content: ''; position: absolute; right: -120px; top: 0; bottom: 0; width: 360px;
  background: linear-gradient(90deg, transparent, rgba(196, 29, 48, .22)); transform: skewX(-18deg); pointer-events: none; }
.hero__in { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 48px; }
.hero__title { font-size: clamp(38px, 5.4vw, 66px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; }
.hero__title::after { content: ''; display: block; width: 84px; height: 5px; background: var(--red); margin-top: 16px; box-shadow: 84px 0 0 var(--gold); }
.hero__lead { max-width: 680px; color: #c9d4e3; font-size: 18px; margin: 18px 0 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 22px; }
.crumbs a { color: #9fb1c8; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #5f7a99; }
.crumbs [aria-current] { color: #fff; }

.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 34px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.stats > div { padding: 18px 36px 0 0; margin-right: 36px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stats > div:last-child { border-right: 0; }
.stats dt { font: 600 12px/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: #8ea3bd; margin-bottom: 8px; }
.stats dd { margin: 0; font: 700 40px/1 var(--head); color: #fff; }
.stats dd small { font-size: 20px; color: var(--gold); }

/* ---------- chip bar (countries in a continent) ---------- */
.chipbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 79px; z-index: 40; }
.chipbar__in { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px;
  color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; background: #fff; }
.chip em { font-style: normal; font-size: 12px; color: var(--steel); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active em { color: var(--gold); }

/* ---------- sections, toolbar, grid ---------- */
.section { padding: 40px 0 64px; }
.section--tight { padding-top: 32px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.toolbar input[type=search], .toolbar select { height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); }
.toolbar input[type=search]:focus, .toolbar select:focus { outline: none; border-color: var(--navy-3); background: #fff; }
.toolbar__search { flex: 1 1 260px; }
.toolbar__search input { width: 100%; padding-left: 40px !important;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235b6a80' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E") 13px center no-repeat !important; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 0 8px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--red); width: 17px; height: 17px; }
.toolbar__count { margin-left: auto; font: 600 14px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--steel); padding: 0 6px; }

.group { margin-bottom: 52px; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); position: relative; }
.group__head::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--red); }
.group__head h2 { font-size: 32px; text-transform: uppercase; color: var(--navy); }
.group__countries { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; flex: 1; }
.group__countries a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--steel); }
.group__countries a:hover { color: var(--red); }
.group__all { font: 600 14px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0, 36, 74, .16); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card__link:hover { color: inherit; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 70% 20%, var(--navy-3), var(--navy) 70%); }
.card__ph svg { width: 62%; }
.badge { position: absolute; top: 12px; font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; }
.badge--3d { left: 12px; background: var(--red); color: #fff; }
.badge--gold { right: 12px; background: var(--gold); color: var(--navy); }
.card__body { padding: 16px 18px 18px; border-top: 3px solid var(--gold); flex: 1; display: flex; flex-direction: column; }
.card__loc { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; color: var(--steel); text-transform: uppercase; letter-spacing: .05em; }
.card__title { font-size: 23px; color: var(--navy); margin-bottom: 12px; }
.card:hover .card__title { color: var(--red); }
.card__meta { list-style: none; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; color: var(--steel); }
.card__meta li:first-child:not(:only-child) { flex-basis: 100%; }
.card__meta li:last-child:has(strong) { margin-left: auto; }
.card__meta strong { color: var(--navy); font: 700 18px/1 var(--head); }

.empty { text-align: center; padding: 48px 20px; color: var(--steel); }
.empty h1, .empty h2 { color: var(--navy); margin-bottom: 10px; font-size: 34px; }

/* ---------- capabilities strip / CTA / footer ---------- */
.strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.strip__in > div { padding: 22px 18px; border-left: 1px solid var(--line); text-align: center; }
.strip__in > div:first-child { border-left: 0; }
.strip strong { display: block; font: 700 20px/1.1 var(--head); color: var(--navy); }
.strip span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--steel); }

.cta { background: linear-gradient(110deg, var(--red-d), var(--red) 60%, #d63b4c); color: #fff; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 640px; color: #fbe3e6; }
.cta .eyebrow { color: var(--gold-l); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--red { background: var(--navy); }
.cta .btn--red:hover { background: #fff; color: var(--navy); }

.footer { background: var(--navy); color: #b6c4d6; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.footer h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.footer p { margin: 0 0 6px; }
.footer a { color: #dbe3ee; }
.footer a:hover { color: #fff; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.footer__logo img { height: 40px; width: auto; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 6px; }
.certs { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.certs li { border: 1px solid rgba(204, 153, 43, .45); color: #f0dcae; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- project page ---------- */
.phero { padding: 36px 0 34px; }
.phero > .wrap { position: relative; z-index: 1; }
.phero__title { font-size: clamp(32px, 4.4vw, 54px); text-transform: uppercase; max-width: 960px; }
.phero__sub { color: #c9d4e3; font-size: 19px; margin: 10px 0 0; max-width: 820px; }
.phero__loc { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: #dbe3ee; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.pgrid__side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.pcover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.facts { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--red); padding: 20px 22px; }
.facts__title { font-size: 22px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { color: var(--steel); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--bg); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 20px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.docs li:last-child a { border-bottom: 0; }
.docs a:hover { color: var(--red); }
.docs small { display: block; font-weight: 400; color: var(--steel); font-size: 12px; }
.docs__ext { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--navy); color: var(--gold);
  font: 700 12px/1 var(--head); letter-spacing: .06em; border-radius: 3px; }

.prose { max-width: 820px; font-size: 17px; }
.prose p { margin: 0 0 1em; }
.prose .lead { font-size: 20px; color: var(--navy); font-weight: 500; border-left: 4px solid var(--gold); padding-left: 18px; }
.h2 { font-size: 28px; text-transform: uppercase; color: var(--navy); margin: 36px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 24px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery a { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.gallery a:hover img { transform: scale(1.06); opacity: .9; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 36, 74, .85)); }
.video { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }

.pnav { background: #fff; border-top: 1px solid var(--line); }
.pnav__in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.pnav a { font: 700 19px/1.2 var(--head); color: var(--navy); }
.pnav a:hover { color: var(--red); }
.pnav small { display: block; font: 600 12px/1 var(--body); color: var(--steel); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.pnav__next { text-align: right; grid-column: 3; }
.pnav__all { grid-column: 2; font-size: 14px !important; text-transform: uppercase; letter-spacing: .1em; border: 2px solid var(--line); padding: 10px 16px; border-radius: var(--radius); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 18, 38, .94); display: grid; place-items: center; padding: 40px 70px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); margin: auto; }
.lightbox figcaption { color: #dbe3ee; margin-top: 12px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; padding: 10px 16px; }
.lightbox button:hover { color: var(--gold); }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__nav--prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-open { overflow: hidden; }

/* ---------- 3D viewer ---------- */
.vsection { padding-top: 28px; }
.viewer { position: relative; height: min(78vh, 760px); min-height: 440px; margin-bottom: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #dfe5ee 100%); box-shadow: var(--shadow); border: 1px solid var(--line); }
.viewer.is-full { height: 100vh; border-radius: 0; margin: 0; }
.viewer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer__canvas:active { cursor: grabbing; }

.viewer__bar { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 2px; background: var(--navy);
  border-radius: var(--radius); padding: 4px; box-shadow: 0 6px 18px rgba(0, 36, 74, .25); max-width: calc(100% - 24px); opacity: .35; pointer-events: none; transition: opacity .3s; }
.viewer.is-ready .viewer__bar { opacity: 1; pointer-events: auto; }
.viewer.panel-open .viewer__bar { max-width: calc(100% - 336px); }
.viewer__bar button, .viewer__section { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; padding: 6px 6px 4px;
  background: none; border: 0; border-radius: 3px; color: #cfd9e6; cursor: pointer; font: 600 10px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.viewer__bar button:hover { background: var(--navy-3); color: #fff; }
.viewer__bar button[aria-pressed="true"] { background: var(--red); color: #fff; }
.viewer__bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer__section { flex-direction: row; gap: 6px; padding: 0 8px; cursor: default; }
.viewer__section input { width: 90px; accent-color: var(--gold); }
.viewer.is-sectioned .viewer__section { color: var(--gold); }

.viewer__load { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(244, 246, 249, .92); color: var(--navy); text-align: center; padding: 20px; transition: opacity .4s; }
.viewer__load.is-done { opacity: 0; pointer-events: none; }
.viewer__load p { margin: 0; font-weight: 600; }
.viewer__load small { font-weight: 400; color: var(--steel); }
.viewer__file { font-size: 12px; color: var(--steel); font-weight: 400 !important; }
.viewer__spinner { width: 54px; height: 54px; border: 4px solid var(--line); border-top-color: var(--red); border-right-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.viewer__load.is-error .viewer__spinner { animation: none; border-color: var(--red); }
.viewer__progress { width: min(320px, 70%); height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.viewer__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .2s; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewer__panel { position: absolute; z-index: 3; top: 12px; right: 12px; bottom: 44px; width: 300px; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .97); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 36, 74, .2); overflow: hidden; }
.viewer__tabs { display: flex; flex: none; background: var(--navy); }
.viewer__tabs button { flex: 1; padding: 11px 8px; background: none; border: 0; color: #9fb1c8; cursor: pointer; font: 600 14px/1 var(--head);
  text-transform: uppercase; letter-spacing: .1em; border-bottom: 3px solid transparent; }
.viewer__tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); }
.viewer__pane { flex: 1; overflow: auto; padding: 14px 16px; font-size: 13px; }
.vinfo, .vprops { margin: 0 0 12px; }
.vinfo > div, .vprops > div { display: grid; grid-template-columns: 104px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.vinfo dt, .vprops dt { color: var(--steel); }
.vinfo dd, .vprops dd { margin: 0; font-weight: 600; word-break: break-word; }
.vtypes__head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--navy); }
.vtypes__head button { background: none; border: 0; color: var(--red); font: 600 12px/1 var(--body); cursor: pointer; }
.vtypes { list-style: none; margin: 0; padding: 0; }
.vtypes label { display: flex; align-items: center; gap: 8px; padding: 6px 2px; cursor: pointer; border-bottom: 1px solid var(--line); }
.vtypes input { accent-color: var(--red); }
.vtypes i { width: 12px; height: 12px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.vtypes span { flex: 1; }
.vtypes em { font-style: normal; color: var(--steel); font-size: 12px; }
.vprops__title { font-size: 20px; color: var(--navy); margin: 0 0 8px; }
.viewer__pane h5 { margin: 14px 0 4px; font: 700 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.viewer__pane h5 small { color: var(--steel); text-transform: none; letter-spacing: 0; }
.viewer__hint { position: absolute; z-index: 2; left: 12px; bottom: 10px; right: 12px; margin: 0; font-size: 12px; color: var(--steel); pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .navtoggle { display: block; }
  .nav { position: absolute; top: calc(100% + 3px); left: 0; right: 0; max-height: calc(100dvh - 110px); box-shadow: 0 24px 40px rgba(0, 36, 74, .25); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; margin: 0; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { height: 54px; border-bottom: 0; margin: 0; padding: 0 44px 0 0; }
  .nav__expand { display: block; position: absolute; right: 0; top: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav__expand::before { content: ''; position: absolute; left: 16px; top: 14px; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
  .is-open .nav__expand::before { transform: rotate(-135deg); top: 19px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; display: none; }
  .is-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.is-open:hover .sub { display: block; }
  .sub__head { display: none; }
  .nav__cta { margin-top: 18px; }
  .pgrid { grid-template-columns: 1fr; }
  .pgrid__side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar__tag { display: none; }
  .topbar__in { justify-content: center; }
  .header__in { min-height: 64px; }
  .brand__logo { height: 40px; }
  .chipbar { top: 67px; }
  .stats > div { padding-right: 18px; margin-right: 18px; }
  .stats dd { font-size: 30px; }
  .toolbar__count { margin-left: 0; width: 100%; }
  .toolbar select { flex: 1; }
  .vsection { padding-top: 0; }
  .vsection .wrap { padding-left: 0; padding-right: 0; }
  .viewer { height: 74vh; min-height: 380px; border-radius: 0; border-left: 0; border-right: 0; }
  .viewer.panel-open .viewer__bar { max-width: calc(100% - 16px); }
  .viewer__bar { top: 8px; left: 8px; }
  .viewer__bar span { display: none; }
  .viewer__bar button { min-width: 38px; padding: 8px 6px; }
  .viewer__section input { width: 64px; }
  .viewer__panel { left: 8px; right: 8px; width: auto; top: auto; height: 52%; bottom: 8px; }
  .viewer__hint { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .pnav__in { grid-template-columns: 1fr 1fr; }
  .pnav__all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .pnav__next { grid-column: 2; }
  .facts dl > div { grid-template-columns: 110px 1fr; }
  .lightbox { padding: 50px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Profile / about page
   ========================================================================== */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .ico { width: 18px; height: 18px; }
.ahero { padding: 48px 0 52px; }
.ahero__in { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
.ahero__photo { position: relative; z-index: 1; }
.ahero__photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.ahero__photo::after { content: ''; position: absolute; left: -10px; top: 30px; width: 6px; height: 120px; background: var(--red); }
.ahero__photo img, .ahero__initials { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); background: var(--navy-2); }
.ahero__initials { display: grid; place-items: center; font: 700 120px/1 var(--head); color: var(--gold); letter-spacing: .04em;
  background: radial-gradient(circle at 70% 25%, var(--navy-3), var(--navy-2) 65%); }
.ahero__text { position: relative; z-index: 1; }
.ahero__name { margin-bottom: 4px; }
.ahero__native { margin: 0 0 6px; color: #9fb1c8; font-size: 18px; }
.ahero__role { margin: 10px 0 0; font: 600 24px/1.25 var(--head); color: var(--gold); letter-spacing: .02em; }
.ahero__role span { color: #dbe3ee; font-weight: 500; }
.ahero .phero__loc { margin-top: 12px; }
.ahero .phero__loc .ico { color: var(--red); }
.ahero__headline { margin: 20px 0 0; max-width: 720px; font-size: 19px; color: #dbe3ee; border-left: 4px solid var(--red); padding-left: 16px; }
.ahero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 30px;
  color: #dbe3ee; font-size: 14px; font-weight: 500; }
.social a:hover { border-color: var(--gold); color: var(--gold); }

.astats { background: #fff; border-bottom: 1px solid var(--line); }
.astats__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.astats__in > div { padding: 26px 20px; border-left: 1px solid var(--line); }
.astats__in > div:first-child { border-left: 0; }
.astats strong { display: block; font: 700 42px/1 var(--head); color: var(--red); }
.astats span { display: block; margin-top: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); }

.h2--first { margin-top: 0; }
.aquote { margin: 28px 0; padding: 22px 26px; background: var(--navy); color: #fff; border-radius: var(--radius); border-left: 6px solid var(--gold); }
.aquote p { margin: 0; font: 600 24px/1.35 var(--head); }
.aquote cite { display: block; margin-top: 10px; font-style: normal; color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.tags--lg li { font-size: 14px; padding: 7px 14px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ''; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline li:first-child::before { background: var(--red); }
.timeline__when { display: block; font: 600 13px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 6px; }
.timeline strong { display: block; font: 700 21px/1.2 var(--head); color: var(--navy); }
.timeline__org { color: var(--steel); font-size: 14px; }
.timeline p { margin: 6px 0 0; font-size: 15px; }

.channels { list-style: none; margin: 0 0 16px; padding: 0; }
.channels a, .channels__static { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; word-break: break-word; }
.channels li:last-child a, .channels li:last-child .channels__static { border-bottom: 0; }
.channels a:hover { color: var(--red); }
.channels .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--bg); color: var(--red); }
.channels small { display: block; font-weight: 500; font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; }
.certs--light li { color: var(--navy); border-color: var(--gold); }

.section--alt { background: #fff; border-top: 1px solid var(--line); }
.card__initials { font: 700 64px/1 var(--head); color: var(--gold); }

/* project page: contact person card */
.pcontact__who { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.pcontact__who img, .pcontact__init { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.pcontact__init { display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 700 24px/1 var(--head); }
.pcontact__who strong { display: block; font: 700 20px/1.1 var(--head); color: var(--navy); }
.pcontact__who small { display: block; color: var(--steel); font-size: 13px; margin-top: 3px; }
.pcontact__who:hover strong { color: var(--red); }
.pcontact__quick { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.pcontact__quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy); font-size: 12px; font-weight: 600; }
.pcontact__quick a:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 1180px) {
  .ahero__in { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 720px) {
  .ahero { padding: 28px 0 36px; }
  .ahero__in { grid-template-columns: 1fr; gap: 30px; }
  .ahero__photo { width: 220px; }
  .ahero__initials { font-size: 80px; }
  .ahero__role { font-size: 20px; }
  .ahero__actions .btn { flex: 1 1 100%; }
  .astats strong { font-size: 32px; }
  .astats__in { grid-template-columns: 1fr 1fr; }
  .astats__in > div:nth-child(odd) { border-left: 0; }
  .astats__in > div { border-top: 1px solid var(--line); }
}

.nav__link--about { color: var(--red); }
@media (min-width: 1281px) { .nav__item:has(.nav__link--about) { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); } }
