/* CHARIS website. Follows the CHARIS visual identity guidelines. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #0E5A55; --teal-85: #32736E; --teal-60: #6E9C99; --teal-deep: #0B403C; --teal-night: #08302D;
  --mist: #EDF2F0; --mist-2: #DCE6E3; --rule: #D3DCD9;
  --ink: #142826; --muted: #52615E; --accent: #E8833A;
  --font: "Plus Jakarta Sans", Arial, sans-serif; --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { left: 8px; }

/* shapes from the logo */
.shape { display: block; width: 44px; height: 44px; border-radius: 11px; }
.sh-a { background: var(--teal); }
.sh-r { background: var(--teal-60); }
.sh-s { background: var(--teal-85); border-radius: 50%; }
.sh-c { background: var(--accent); border-radius: 50% 50% 11px 50%; }

/* ---------- utility bar + header ---------- */
.utility { background: var(--teal-night); color: #CFE2DF; font-size: 13px; }
.utility-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.site-search { display: flex; align-items: center; gap: 8px; color: #CFE2DF; }
.site-search input { font: 400 13px var(--font); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 2px; width: 260px; }
.site-search input::placeholder { color: #9DBDB8; }
.site-search input:focus { outline: none; border-bottom-color: #fff; }
.lang { display: flex; gap: 4px; }
.lang button { font: 500 13px var(--font); background: none; border: 0; color: #9DBDB8; padding: 8px 8px; cursor: pointer; min-height: 36px; }
.lang button[aria-pressed="true"] { color: #fff; font-weight: 700; }
.lang button + button { border-left: 1px solid rgba(255,255,255,.2); }
.l-short { display: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-word { font-weight: 700; font-size: 28px; letter-spacing: -0.045em; color: var(--teal); line-height: 1; margin: 0; }
.brand-name { font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--teal); padding-left: 16px; border-left: 1.5px solid rgba(14,90,85,.28); }
@media (max-width: 1499px) { .brand-name { display: none; } }
.main-nav a { white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 11px; border-radius: 6px; }
.main-nav a:hover { background: var(--mist); color: var(--teal); }
.main-nav a.active { color: var(--teal); font-weight: 700; }
.main-nav a.nav-cta { background: var(--accent); color: #fff; font-weight: 700; margin-left: 8px; padding: 11px 18px; }
.main-nav a.nav-cta:hover { background: #CF6F29; color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 6px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #fff; font: 700 15px var(--font); text-decoration: none; padding: 13px 22px; border-radius: 6px; border: 0; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--teal-deep); color: #fff; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--mist); color: var(--teal-deep); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-text { font-weight: 700; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- slider ---------- */
.slider { position: relative; background: var(--teal); color: #fff; }
/* all slides share one grid cell, so the carousel keeps one height whatever the text length */
.slides { display: grid; }
.slider .slide { grid-area: 1 / 1; position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.slider .slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; z-index: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,48,45,.92) 0%, rgba(8,48,45,.75) 45%, rgba(8,48,45,.1) 100%); z-index: 1; }
.slide-art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; }
.sa { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 22%; }
.sa0 { left: 8%; bottom: 10%; background: var(--teal-deep); }
.sa1 { left: 46%; bottom: 10%; background: var(--teal-60); }
.sa2 { left: 46%; bottom: 48%; background: var(--teal-85); border-radius: 50%; }
.slide-art .tile { background: transparent; }
.slide-art .tile-in { height: 76%; }
.slide-art .ts0 { background: var(--teal-deep); }
.slide-art .ts2 { background: var(--teal-85); }
.slide-in { position: relative; z-index: 2; padding: 64px 0 96px; }
.slide-copy { max-width: 600px; }
.slide-cat { display: inline-block; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 4px; margin-bottom: 20px; }
.slide h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.slide-copy > p:not(.slide-cat) { font-size: 18px; line-height: 1.55; color: #D7EAE7; max-width: 52ch; margin-bottom: 28px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-copy { max-width: 660px; }
.slider-ctrl { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.sc-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.sc-btn:hover { background: rgba(255,255,255,.12); }
.dots { display: flex; gap: 8px; }
.dot { width: 28px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; inset: -12px -2px; }
.dot[aria-current="true"] { background: #fff; width: 44px; }

/* ---------- highlight ---------- */
.highlight { background: var(--mist); }
.hl-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 72px 0; }
.hl-media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; }
.hl-copy h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; color: var(--teal-deep); margin-bottom: 16px; }
.hl-copy p { color: var(--muted); font-size: 18px; max-width: 54ch; }

/* ---------- sections ---------- */
.sec { padding: 80px 0; }
.sec-tint { background: var(--mist); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--teal-deep); }
.see-all { font-weight: 700; font-size: 15px; white-space: nowrap; }
.sec-lead { color: var(--muted); max-width: 60ch; margin: -12px 0 32px; }
.state { color: var(--muted); padding: 12px 0; }
.state.err { color: #A33A2B; }

/* tabs & filters */
.tabs, .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button, .filters button { font: 500 15px var(--font); background: #fff; border: 1px solid var(--rule); color: var(--ink); padding: 8px 16px; border-radius: 6px; cursor: pointer; min-height: 40px; }
.tabs button:hover, .filters button:hover { border-color: var(--teal-60); }
.tabs button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.card a:hover { border-color: var(--teal-60); }
.card a:hover h3 { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.card-cat { font-weight: 700; color: var(--teal); }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }

/* placeholder tile */
.tile { position: relative; width: 100%; height: 100%; min-height: 96px; background: var(--mist-2); display: grid; place-items: center; }
.tile-in { position: relative; height: 70%; aspect-ratio: 1; }
.ts { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 22%; }
.ts0 { background: var(--teal); }
.ts1 { background: var(--teal-60); }
.ts2 { background: var(--teal-85); border-radius: 50%; }
.tile-big .tile-in { height: 62%; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: #fff; border-radius: 10px; padding: 32px 28px; display: flex; flex-direction: column; }
.pillar .shape { margin-bottom: 22px; }
.pillar h3 { font-size: 21px; font-weight: 700; color: var(--teal-deep); margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 16px; flex: 1; }
.pillar a { font-weight: 700; font-size: 15px; }

/* team */
.team-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.team-intro p { color: var(--muted); }
.team-intro .sec-head { flex-direction: column; gap: 6px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
#pageTeam .people { grid-template-columns: repeat(4, 1fr); }
.person-photo { aspect-ratio: 4 / 5; background: var(--mist); border-radius: 10px; overflow: hidden; display: grid; place-items: center; margin-bottom: 14px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.initials { font-size: 44px; font-weight: 500; color: var(--teal-60); }
.person h3 { font-size: 17px; font-weight: 700; }
.person-role { color: var(--teal); font-size: 15px; font-weight: 500; margin: 4px 0 8px; }
.person-bio { color: var(--muted); font-size: 15px; margin: 0; }

/* partners */
.partners-sec { padding-top: 0; }
.partners { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; }
.marquee { display: flex; gap: 64px; align-items: center; width: max-content; }
.marquee.run { animation: marquee 40s linear infinite; }
.partners:hover .marquee.run { animation-play-state: paused; }
.marquee li { flex: none; }
.marquee a { color: inherit; text-decoration: none; }
.marquee img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .85; }
.marquee a:hover img { filter: none; opacity: 1; }
.pname { font-weight: 700; font-size: 18px; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* newsletter */
.nl { background: var(--teal-deep); color: #fff; padding: 64px 0; }
.nl-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nl h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; margin-bottom: 8px; color: #fff; }
.nl p { color: #C7DDD9; margin: 0; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { flex: 1; font: 400 16px var(--font); border: 0; border-radius: 6px; padding: 12px 16px; min-height: 50px; }
.nl .btn { background: var(--accent); }
.nl .btn:hover { background: #CF6F29; }
.nl-status { margin: 10px 0 0; font-size: 14px; }
.nl-status:empty { display: none; }
.nl-status.ok { color: #BFE6DE; }
.nl-status.err { color: #FFC9A6; }
.nl-privacy { display: inline-block; margin-top: 10px; color: #C7DDD9; font-size: 14px; }
.nl-privacy:hover { color: #fff; }

/* ---------- inner pages ---------- */
.page-top { background: var(--teal); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-top::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--teal-85); opacity: .6; }
.page-top .wrap { position: relative; z-index: 1; }
.page-top h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.page-top p { font-size: 19px; color: #D7EAE7; max-width: 60ch; margin: 14px 0 0; }

.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.prose { max-width: 68ch; }
.prose p { font-size: 18px; }
.prose .big { font-size: 22px; line-height: 1.5; }
.vm { background: var(--mist); border-radius: 12px; padding: 32px; }
.vm h2 { font-size: 18px; font-weight: 700; color: var(--teal-deep); margin-bottom: 8px; }
.vm p { color: var(--muted); margin-bottom: 24px; }
.vm ol { list-style: decimal; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.logo-mean { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.logo-mean h2 { font-size: 26px; font-weight: 700; color: var(--teal-deep); margin-bottom: 24px; }
.logo-mean .pillar { background: transparent; padding: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 56px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: -16px; height: 2px; background: var(--mist-2); }
.sec-tint .steps li:not(:last-child)::after { background: #fff; }
.steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
.cta-line { margin: 40px 0 0; }

.pgroup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; }
.pgroup:first-child { padding-top: 0; }
.pgroup-head .shape { margin-bottom: 18px; }
.pgroup-head h2 { font-size: 28px; font-weight: 700; color: var(--teal-deep); margin-bottom: 10px; }
.pgroup-head p { color: var(--muted); }
.svc-list { display: grid; gap: 28px; }
.svc-list h3 { font-size: 20px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.svc-list p { color: var(--muted); margin-bottom: 6px; }
.incl { font-size: 15px; }
.incl span { color: var(--ink); font-weight: 700; }

.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.search input { font: 400 16px var(--font); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px; width: 280px; min-height: 44px; }
.pub-list { display: grid; gap: 20px; }
.pub { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 20px; border: 1px solid var(--rule); border-radius: 10px; }
.pub-cover { aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub h3 { font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.pub-main > p:not(.card-meta) { color: var(--muted); }
.soon { color: var(--muted); font-size: 14px; }

.proj-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.proj { display: grid; grid-template-columns: 180px 1fr; gap: 24px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-body { padding: 22px 22px 22px 0; }
.proj h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.proj-body > p:not(.card-meta) { color: var(--muted); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

.back { display: inline-block; font-weight: 700; margin-bottom: 24px; }
.article-h { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--teal-deep); }
.article-img { margin: 32px 0; border-radius: 12px; overflow: hidden; }

.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.form { display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req { color: #A33A2B; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--mist-2); }
.field [aria-invalid="true"] { border-color: #A33A2B; }
.field-err { color: #A33A2B; font-size: 14px; margin: 6px 0 0; }
.field-err:empty { display: none; }
.consent { font-size: 14px; color: var(--muted); margin: 0; }
.form-end { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #A33A2B; }
.contact-side dl { margin: 0; display: grid; gap: 22px; background: var(--mist); border-radius: 12px; padding: 32px; }
.contact-side dt { font-size: 14px; color: var(--muted); }
.contact-side dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-night); color: #C7DDD9; padding: 64px 0 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand img { display: block; height: 44px; width: auto; }
.footer-name { margin: 0; color: #DCEAE8; font-size: 14px; font-weight: 500; line-height: 1.45; }

.footer-id address, .footer-line { color: #C7DDD9; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; }
.social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.footer-cols h2 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: #C7DDD9; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: 13px; color: #8FB0AB; }
.footer-base p { margin: 0; }
.demo-note { margin: 0; background: #FFF6EE; color: #7A4413; font-size: 13px; text-align: center; padding: 8px 16px; border-top: 1px solid #F3D6BD; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(20,40,38,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--mist-2); }
  .main-nav a.nav-cta { margin: 14px 0 0; text-align: center; border-radius: 6px; border: 0; }
  .menu-btn { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hl-in, .about, .contact, .nl-in, .team-sec, .pgroup, .logo-mean { grid-template-columns: 1fr; gap: 36px; }
  .cards, .pillars, .people, #pageTeam .people { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
  .proj-list { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .slide-art { width: 100%; opacity: .25; }
  .slide { min-height: 460px; }
  .sec { padding: 60px 0; }
  .logo-mean img { width: 120px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .site-search input { width: 170px; }
  .l-long { display: none; }
  .l-short { display: inline; }
  .lang button { padding: 8px 4px; }
  .brand-name { display: none; }
  .brand-logo { height: 34px; }
  .header-in { min-height: 68px; }
  .cards, .pillars, .steps, .row2, .footer-cols { grid-template-columns: 1fr; }
  .people, #pageTeam .people { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .pub { grid-template-columns: 90px 1fr; gap: 16px; padding: 14px; }
  .proj { grid-template-columns: 1fr; }
  .proj-media { aspect-ratio: 16 / 9; }
  .proj-body { padding: 0 18px 20px; }
  .nl-row { flex-direction: column; }
  .search, .search input { width: 100%; }
  .slide h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- knowledge repository ---------- */
.util-link { color: #fff; font-weight: 700; text-decoration: none; margin-left: auto; margin-right: 12px; font-size: 13px; }
.util-link:hover { color: #fff; text-decoration: underline; }
.repo-top { padding-bottom: 44px; }
.repo-search { display: flex; gap: 10px; margin-top: 28px; max-width: 720px; }
.repo-search input { flex: 1; font: 400 17px var(--font); border: 0; border-radius: 6px; padding: 14px 18px; min-height: 54px; }
.repo-stats { font-size: 15px !important; color: #BFDAD5 !important; margin-top: 14px !important; }
.repo-in { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.facet-wrap { position: sticky; top: 110px; }
.facets { display: grid; gap: 28px; }
.facet { border: 0; padding: 0; margin: 0; }
.facet legend { font-weight: 700; font-size: 15px; color: var(--teal-deep); margin-bottom: 10px; padding: 0; }
.fopt { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; cursor: pointer; }
.fopt input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; }
.fcount { font-size: 13px; color: var(--muted); background: var(--mist); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.repo-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.repo-bar p { margin: 0; font-weight: 700; }
.sort { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font: 500 15px var(--font); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; min-height: 40px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips button { font: 500 14px var(--font); border: 1px solid var(--teal-60); background: var(--mist); color: var(--teal-deep); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.chips .clear { background: none; border-color: transparent; text-decoration: underline; }
.repo-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ritem { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.ritem-cover { aspect-ratio: 210 / 297; background: #fff; border-radius: 6px; overflow: hidden; }
.ritem-cover img { width: 100%; height: 100%; object-fit: cover; }
.ritem h2 { font-size: 21px; line-height: 1.3; margin: 0 0 6px; }
.ritem h2 a { color: var(--ink); text-decoration: none; }
.ritem h2 a:hover { color: var(--teal); text-decoration: underline; }
.ritem-auth { font-size: 15px; color: var(--teal-85); font-weight: 500; margin: 0 0 8px; }
.ritem-abs { color: var(--muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.badge { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--mist); color: var(--muted); text-decoration: none; }
.badge.doi { background: #FFF1E4; color: #8A4510; }
.badge.open { background: #E3F1EE; color: var(--teal); }
.badge.lock { background: #F1F1EF; color: #4F4F49; }
.ritem-act { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.btn-ghost { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { background: var(--mist); color: var(--teal-deep); }
.repo-browse { margin-top: 28px; font-size: 15px; }

.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.req-item { background: var(--mist); border-radius: 12px; padding: 28px; position: sticky; top: 110px; }
.req-item h2 { font-size: 22px; line-height: 1.3; color: var(--teal-deep); margin-bottom: 10px; }
.req-item p { color: var(--muted); font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.req-done { background: var(--mist); border-radius: 12px; padding: 28px; }
.req-done p a + a { margin-left: 20px; }
.req-done h2 { color: var(--teal-deep); margin-bottom: 8px; }
.mem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.mem-login h2, .mem-help h2 { font-size: 22px; color: var(--teal-deep); margin-bottom: 8px; }
.mem-help { background: var(--mist); border-radius: 12px; padding: 28px; }
.mem-help ol { list-style: decimal; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; margin-bottom: 20px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; text-align: left; }
.mem-lib { grid-column: 1 / -1; }
.mem-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.mem-head h2 { font-size: 24px; color: var(--teal-deep); }
.mem-list { border-top: 1px solid var(--rule); }
.mem-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.mem-list h3 { font-size: 18px; margin-bottom: 6px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.pill.st-disetujui { background: #E3F1EE; color: var(--teal); }
.pill.st-menunggu { background: #FFF1E4; color: #8A4510; }
.pill.st-ditolak { background: #FBEAEA; color: #A33A2B; }
.mem-more { margin-top: 20px; }

@media (max-width: 900px) {
  .repo-in, .req, .mem { grid-template-columns: 1fr; gap: 32px; }
  .facet-wrap, .req-item { position: static; }
  .facets { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .facets { grid-template-columns: 1fr; }
  .ritem { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .repo-search { flex-direction: column; }
  .repo-bar { flex-direction: column; align-items: flex-start; }
  .mem-list li { flex-direction: column; align-items: flex-start; }
  .util-link { margin-right: 4px; }
}

.facet-wrap > summary { display: none; }
.nav-member { display: none !important; }
@media (max-width: 1180px) { .nav-member { display: block !important; } }
@media (max-width: 900px) {
  .facet-wrap { border: 1px solid var(--rule); border-radius: 10px; padding: 0 16px; }
  .facet-wrap > summary { display: list-item; cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--teal-deep); }
  .facet-wrap[open] { padding-bottom: 16px; }
}
@media (max-width: 600px) { .util-link { display: none; } }

/* ---------- portfolio ---------- */
.proj-filters { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.proj-filters .filters { margin-bottom: 12px; }
.proj-count { font-weight: 700; margin: 8px 0 16px; }
.proj-list2 { display: grid; gap: 24px; }
.pj { display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pj:not(:has(.pj-media)) { grid-template-columns: minmax(0, 1fr); }
.pj-media img { width: 100%; height: 100%; object-fit: cover; }
.pj-body { padding: 26px 28px; }
.pj h3 { font-size: 21px; line-height: 1.3; margin-bottom: 6px; }
.pj-client { color: var(--teal-85); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.pj-body > p:not(.card-meta):not(.pj-client):not(.badges):not(.pj-pubs) { color: var(--muted); max-width: 75ch; }
.pj-status { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #E3F1EE; color: var(--teal); }
.pj-status.st-berjalan { background: #FFF1E4; color: #8A4510; }
.pj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 28px; margin: 14px 0; font-size: 15px; }
.pj-facts dt { color: var(--muted); font-size: 13px; }
.pj-facts dd { margin: 2px 0 0; font-weight: 500; }
.pj-quote { margin: 16px 0; padding: 14px 18px; background: var(--mist); border-radius: 8px; }
.pj-quote p { margin: 0 0 6px; }
.pj-quote cite { font-size: 14px; color: var(--muted); font-style: normal; }
.pj-pubs { font-size: 15px; }
.pj-pubs span { font-weight: 700; }
.proj-note { font-size: 14px; color: var(--muted); margin-top: 24px; }
@media (max-width: 760px) { .pj { grid-template-columns: 1fr; } .pj-media:not(.pj-cover) { aspect-ratio: 16 / 9; } .pj-body { padding: 20px; } }

/* ---------- covers ---------- */
.cover-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--mist-2); cursor: zoom-in; }
.cover-btn img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; transition: transform .25s ease; }
.cover-btn:hover img { transform: translateY(-2px); }
.ritem-cover { box-shadow: 0 6px 16px rgba(20,40,38,.14); }
.card-media.is-cover { background: var(--mist); position: relative; }
.card-media.is-cover img { position: absolute; top: 16px; bottom: 16px; left: 0; right: 0; margin: auto; height: calc(100% - 32px); width: auto; max-width: 90%; object-fit: contain; box-shadow: 0 6px 16px rgba(20,40,38,.18); border-radius: 3px; }
.pj-cover { background: var(--mist); display: grid; place-items: center; padding: 24px; }
.pj-cover .cover-btn { width: 180px; height: auto; aspect-ratio: 210 / 297; box-shadow: 0 10px 24px rgba(20,40,38,.2); border-radius: 4px; overflow: hidden; background: #fff; }
.req-cover { width: 150px; aspect-ratio: 210 / 297; background: #fff; border-radius: 4px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(20,40,38,.18); }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); max-height: 94vh; overflow: visible; }
dialog.zoom::backdrop { background: rgba(8,30,28,.82); }
dialog.zoom img { display: block; max-width: 100%; max-height: 88vh; border-radius: 6px; }
.zoom-x { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
@media (max-width: 760px) { .pj-cover { padding: 20px; } .pj-cover .cover-btn { width: 140px; } .zoom-x { top: 6px; right: 6px; } }

/* ---------- motion and hover ---------- */
.route-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 100; pointer-events: none; opacity: 0; }
.route-bar.go { animation: routeBar .7s cubic-bezier(.3,.1,.2,1) forwards; }
@keyframes routeBar { 0% { opacity: 1; transform: scaleX(0); } 70% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
#app.page-in { animation: pageIn .45s cubic-bezier(.25,.1,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.25,.1,.2,1); }
.rv.in { opacity: 1; transform: none; }

.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,40,38,.08); }
.main-nav a { position: relative; transition: color .2s, background .2s; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:not(.nav-cta):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.nav-cta { transition: background .2s, transform .2s, box-shadow .2s; }
.main-nav a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,131,58,.35); }

.btn, .btn-ghost, .btn-light { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover, .btn-ghost:hover, .btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14,90,85,.2); }
.btn:active, .btn-ghost:active { transform: translateY(0); box-shadow: none; }
.btn-text, .svc-links a, .ex-act a, .pillar a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s ease, color .2s; padding-bottom: 2px; }
.btn-text:hover, .svc-links a:hover, .ex-act a:hover, .pillar a:hover { background-size: 100% 2px; }

.card a { transition: border-color .25s, box-shadow .3s, transform .3s cubic-bezier(.25,.1,.2,1); }
.card a:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(20,40,38,.12); }
.card-media img { transition: transform .5s cubic-bezier(.25,.1,.2,1); }
.card a:hover .card-media img { transform: scale(1.05); }
.card a:hover .card-media.is-cover img { transform: translateY(-4px); }
.pillar { transition: transform .3s cubic-bezier(.25,.1,.2,1), box-shadow .3s; }
.pillar:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,40,38,.1); }
.pillar .shape, .pgroup2-head .shape { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.pillar:hover .shape { transform: rotate(-8deg) scale(1.08); }
.logo-mean .pillar:hover { transform: none; box-shadow: none; }
.person-photo img { transition: transform .5s cubic-bezier(.25,.1,.2,1); }
.person:hover .person-photo img { transform: scale(1.04); }
.ritem { transition: background .25s; border-radius: 10px; }
.ritem:hover { background: linear-gradient(90deg, var(--mist) 0%, rgba(237,242,240,0) 85%); }
.ritem-cover { transition: transform .3s cubic-bezier(.25,.1,.2,1), box-shadow .3s; }
.ritem:hover .ritem-cover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(20,40,38,.2); }
.pj { transition: box-shadow .3s, border-color .3s, transform .3s; }
.pj:hover { box-shadow: 0 18px 40px rgba(20,40,38,.1); border-color: var(--teal-60); transform: translateY(-3px); }
.tabs button, .filters button { transition: background .2s, color .2s, border-color .2s; }
.marquee a img { transition: filter .3s, opacity .3s, transform .3s; }
.marquee a:hover img { transform: scale(1.05); }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(14,90,85,.3); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; z-index: 45; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal-deep); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* flipbook trigger on covers */
.cover-btn { position: relative; }
.flip-tag { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; font: 700 11px/1 var(--font); padding: 5px 7px; border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.flip-tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cover-btn.has-flip { cursor: pointer; }
.cover-btn:hover .flip-tag { transform: scale(1.1); }
.link-btn { background: none; border: 0; padding: 0 0 2px; font: 700 15px var(--font); color: var(--teal); cursor: pointer; background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-size: 0 2px; background-repeat: no-repeat; transition: background-size .25s; }
.link-btn:hover { background-size: 100% 2px; }

/* ---------- Layanan Kami ---------- */
.svc-jump { position: sticky; top: var(--hdr, 84px); z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.svc-jump ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.svc-jump ul::-webkit-scrollbar { display: none; }
.svc-jump a { display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 14px 8px 10px; border-radius: 30px; border: 1px solid var(--rule); transition: background .2s, border-color .2s, color .2s; }
.svc-jump a:hover { background: var(--mist); border-color: var(--teal-60); color: var(--teal); }
.svc-jump a.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.svc-jump a.on .shape { background: #fff; }
.svc-jump .shape { width: 14px; height: 14px; border-radius: 4px; }
.svc-jump .sh-s { border-radius: 50%; }
.svc-sec { padding-top: 56px; }
.pgroup2 { margin-bottom: 72px; scroll-margin-top: 150px; }
.pgroup2-head { display: flex; align-items: flex-start; gap: 22px; padding: 32px; background: var(--mist); border-radius: 14px; margin-bottom: 8px; }
.pgroup2-head .shape { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.pgroup2-head .sh-s { border-radius: 50%; }
.pgroup2:hover .pgroup2-head .shape { transform: rotate(-8deg); }
.pg-kicker { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.pgroup2-head h2 { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--teal-deep); margin: 0 0 8px; letter-spacing: -0.01em; }
.pgroup2-head p:last-child { margin: 0; color: var(--muted); max-width: 62ch; }
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "main out" "ex ex"; gap: 28px 56px; padding: 44px 8px; border-bottom: 1px solid var(--rule); scroll-margin-top: 150px; }
.svc:last-child { border-bottom: 0; }
.svc-main { grid-area: main; }
.svc-out { grid-area: out; }
.svc-ex { grid-area: ex; }
.svc h3 { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--teal); margin: 0 0 10px; }
.svc-main > p { color: var(--muted); margin: 0 0 20px; }
.svc-label { font-size: 13px; font-weight: 700; color: var(--teal-deep); margin: 0 0 10px; letter-spacing: .01em; }
.svc-scope { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.svc-scope li { font-size: 14px; background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 5px 12px; transition: border-color .2s, background .2s; }
.svc-scope li:hover { border-color: var(--teal-60); background: var(--mist); }
.svc-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-size: 15px; }
.out-list { list-style: none; counter-reset: out; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.out-list li { counter-increment: out; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 13px 10px 13px 4px; border-bottom: 1px solid var(--rule); transition: background .2s, padding-left .25s; border-radius: 6px; }
.out-list li::before { content: counter(out); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 13px; font-weight: 700; display: grid; place-items: center; transition: background .2s, color .2s; }
.out-list li:hover { background: var(--mist); padding-left: 10px; }
.out-list li:hover::before { background: var(--accent); color: #fff; }
.out-list span { font-weight: 700; font-size: 16px; line-height: 1.4; }
.out-list small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ex-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ex { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; transition: transform .3s cubic-bezier(.25,.1,.2,1), box-shadow .3s, border-color .3s; }
.ex:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(20,40,38,.1); border-color: var(--teal-60); }
.ex-cover { aspect-ratio: 210 / 297; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 14px rgba(20,40,38,.16); }
.ex-cover .tile { width: 100%; height: 100%; }
.ex-body .card-meta { margin-bottom: 4px; font-size: 13px; }
.ex h4 { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 0 0 10px; }
.ex h4 a { color: var(--ink); text-decoration: none; }
.ex h4 a:hover { color: var(--teal); text-decoration: underline; }
.ex-act { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; }
.ex-act .link-btn { font-size: 14px; }
.ex-empty { margin: 0; padding: 18px 20px; border: 1.5px dashed var(--rule); border-radius: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .ex-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; grid-template-areas: "main" "out" "ex"; gap: 24px; padding: 36px 0; }
  .pgroup2-head { padding: 24px; gap: 16px; } .pgroup2-head h2 { font-size: 24px; }
}
@media (max-width: 600px) { .ex-row { grid-template-columns: 1fr; } .svc h3 { font-size: 22px; } .to-top { right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }


.pillars-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillars-4 .pillar { padding: 28px 24px; }
.svc-jump .sh-c { border-radius: 50% 50% 4px 50%; }
.pgroup2-head .sh-c { border-radius: 50% 50% 14px 50%; }
#pillar-c .pgroup2-head { background: #FBF0E7; }
@media (max-width: 1100px) { .pillars-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pillars-4 { grid-template-columns: 1fr; } }

/* ---------- service icons ---------- */
.ic { display: block; width: 100%; height: 100%; overflow: visible; }
.ic [class] { transform-box: fill-box; transform-origin: center; }   /* not on gear teeth, which rotate by attribute */
.ic-tile { flex: none; display: grid; place-items: center; width: 76px; height: 76px; padding: 12px; border-radius: 20px; background: var(--mist); transition: background .3s, transform .4s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.ic-tile-c { background: #FBF0E7; }
.svc:hover .ic-tile { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 12px 24px rgba(20,40,38,.12); background: #fff; }
.svc-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.svc-head h3 { margin: 0; }
.ic-mini { width: 20px; height: 20px; flex: none; }
.svc-jump a.on .ic-mini { filter: brightness(0) invert(1); }

/* assemble once, the first time a service scrolls into view */
.rv .ic .p { opacity: 0; transform: translateY(8px) scale(.6); }
.rv.in .ic .p { animation: icIn .7s cubic-bezier(.3,1.45,.5,1) both; animation-delay: calc(var(--i) * 90ms + 180ms); }
@keyframes icIn { from { opacity: 0; transform: translateY(8px) scale(.6); } to { opacity: 1; transform: none; } }

/* one signature motion per icon, on hover */
.svc:hover .ic .bob, .hov:hover .ic .bob { animation: icBob 1.2s ease-in-out infinite; }
.svc:hover .ic .grow, .hov:hover .ic .grow { transform-origin: 50% 100%; animation: icGrow 1.4s ease-in-out infinite; }
.svc:hover .ic .g2, .hov:hover .ic .g2 { animation-delay: .12s; }
.svc:hover .ic .g3, .hov:hover .ic .g3 { animation-delay: .24s; }
.svc:hover .ic .spin, .hov:hover .ic .spin { animation: icSpin 3.2s linear infinite; }
.svc:hover .ic .sweep, .hov:hover .ic .sweep { animation: icSweep 2.2s ease-in-out infinite; }
.svc:hover .ic .stamp, .hov:hover .ic .stamp { animation: icStamp 1.6s cubic-bezier(.3,1.5,.5,1) infinite; }
.svc:hover .ic .flow, .hov:hover .ic .flow { animation: icFlow 1s linear infinite; }
.svc:hover .ic .wave, .hov:hover .ic .wave { transform-origin: 0 50%; animation: icWave .9s ease-in-out infinite; }
.svc:hover .ic .rise, .hov:hover .ic .rise { animation: icRise 1.3s ease-in-out infinite; }
.svc:hover .ic .draw, .hov:hover .ic .draw, .svc:hover .ic .draw [pathLength], .hov:hover .ic .draw [pathLength] { stroke-dasharray: 1 1; }
.svc:hover .ic path.draw, .hov:hover .ic path.draw, .svc:hover .ic .draw path[pathLength], .hov:hover .ic .draw path[pathLength] { animation: icDraw 1.6s ease-in-out infinite; }
.svc:hover .ic .pulse, .hov:hover .ic .pulse { animation: icPulse 1.3s ease-in-out infinite; }
.svc:hover .ic .tilt, .hov:hover .ic .tilt { transform-origin: 50% 100%; animation: icTilt 1.6s ease-in-out infinite; }
.svc:hover .ic .wave1, .hov:hover .ic .wave1 { animation: icRing 1.2s ease-out infinite; }
.svc:hover .ic .wave2, .hov:hover .ic .wave2 { animation: icRing 1.2s ease-out .25s infinite; }
.svc:hover .ic .slide, .hov:hover .ic .slide { animation: icSlide 1.6s ease-in-out infinite; }
@keyframes icBob { 50% { transform: translateY(-6px); } }
@keyframes icGrow { 50% { transform: scaleY(.62); } }
@keyframes icSpin { to { transform: rotate(360deg); } }
@keyframes icSweep { 30% { transform: translate(-6px, -5px); } 65% { transform: translate(2px, -8px); } }
@keyframes icStamp { 0%, 60%, 100% { transform: none; } 25% { transform: scale(1.18) rotate(-10deg); } }
@keyframes icFlow { to { stroke-dashoffset: -15; } }
@keyframes icWave { 50% { transform: scaleX(.78) skewY(6deg); } }
@keyframes icRise { 50% { transform: translateY(-4px); } }
@keyframes icDraw { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes icPulse { 50% { transform: scale(1.18); } }
@keyframes icTilt { 50% { transform: rotate(-9deg) translateY(-3px); } }
@keyframes icRing { 0% { opacity: .2; transform: translateX(-3px); } 50% { opacity: 1; } 100% { opacity: .2; transform: translateX(2px); } }
@keyframes icSlide { 50% { transform: translate(3px, 3px); } }

/* services listed inside the pillar cards on the home page */
.pl-svcs { list-style: none; margin: auto 0 14px; padding-top: 14px; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.pl-svcs a { display: flex; align-items: center; gap: 10px; padding: 6px 6px; margin: 0 -6px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.3; background: none; transition: background .2s, color .2s; }
.pl-svcs a:hover { background: var(--mist); color: var(--teal); }
.pl-svcs .ic { width: 30px; height: 30px; flex: none; }

@media (max-width: 600px) { .ic-tile { width: 62px; height: 62px; padding: 10px; border-radius: 16px; } .svc-head { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .ic *, .ic-tile { animation: none !important; transition: none !important; } .rv .ic .p { opacity: 1; transform: none; } }

/* ---------- pillar icons ---------- */
.pic { display: block; width: 56px; height: 56px; flex: none; overflow: visible; margin-bottom: 22px; }
.pgroup2-head .pic { width: 64px; height: 64px; margin: 0; }
.pic [class] { transform-box: fill-box; transform-origin: center; }
.pic .pb { transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.pillar:hover .pic .pb, .pgroup2-head:hover .pic .pb { transform: rotate(-6deg) scale(1.04); }
.pic .pl-ln { stroke-dasharray: 1 1; stroke-dashoffset: 0; }

/* first view: the shape settles, the line glyph draws itself, the points land */
.rv .pic .pb { transform: scale(.7) rotate(-10deg); opacity: 0; }
.rv .pic .pl-ln { stroke-dashoffset: 1; }
.rv .pic .pl-dot { transform: scale(0); }
.rv.in .pic .pb { animation: picBase .6s cubic-bezier(.3,1.4,.5,1) .1s both; }
.rv.in .pic .pl-ln { animation: picDraw .9s cubic-bezier(.55,.1,.25,1) .45s both; }
.rv.in .pic .pl-dot { animation: picPop .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.75s + var(--i) * 110ms); }
@keyframes picBase { from { transform: scale(.7) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes picDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes picPop { from { transform: scale(0); } to { transform: none; } }

/* hover: one quiet motion that says what the pillar does */
.pillar:hover .pic-a .pl-trend, .pgroup2-head:hover .pic-a .pl-trend { animation: picRedraw 1.6s ease-in-out infinite; }
.pillar:hover .pic-a .pl-acc, .pgroup2-head:hover .pic-a .pl-acc { animation: picBeat 1.6s ease-in-out infinite; }
.pillar:hover .pic-r .pl-lens, .pgroup2-head:hover .pic-r .pl-lens { animation: picScan 2.4s ease-in-out infinite; }
.pillar:hover .pic-s .pl-node, .pgroup2-head:hover .pic-s .pl-node { animation: picBeat 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
.pillar:hover .pic-s .pl-link, .pgroup2-head:hover .pic-s .pl-link { stroke-dasharray: .06 .04; animation: picFlow 1.2s linear infinite; }
.pillar:hover .pic-c .pl-type, .pgroup2-head:hover .pic-c .pl-type { animation: picType 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * .14s); }
@keyframes picRedraw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes picBeat { 50% { transform: scale(1.22); } }
@keyframes picScan { 25% { transform: translate(-3px, 2px); } 50% { transform: translate(2px, -2px); } 75% { transform: translate(3px, 2px); } }
@keyframes picFlow { to { stroke-dashoffset: -.2; } }
@keyframes picType { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3.5px); } }
@media (prefers-reduced-motion: reduce) { .pic *, .pic .pb { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; } }

/* ---------- partners & team experience ---------- */
.orgs { list-style: none; margin: 0; padding: 0; }
.org > a, .org > div { display: flex; align-items: center; justify-content: center; height: 132px; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; color: inherit; text-decoration: none;
  transition: border-color .25s, box-shadow .3s, transform .3s cubic-bezier(.25,.1,.2,1); }
.org:hover > a, .org:hover > div { border-color: var(--teal-60); box-shadow: 0 12px 28px rgba(20,40,38,.1); transform: translateY(-3px); }
.org-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 88px; object-fit: contain; transition: transform .35s cubic-bezier(.25,.1,.2,1); }
.org:hover .org-img { transform: scale(1.05); }
.org-short { font-size: 22px; font-weight: 700; letter-spacing: .01em; line-height: 1.15; text-align: center; color: var(--teal-60); transition: color .25s; overflow-wrap: anywhere; }
.org:hover .org-short { color: var(--teal); }

/* home: two drifting lanes, edge-faded */
.exp-sec { overflow: hidden; }
.exp-sec .sec-lead { max-width: 70ch; }
.experience { margin-top: 28px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.orgs-lane { overflow: hidden; padding: 6px 0; }
.orgs.marquee { gap: 14px; align-items: stretch; }
.orgs.marquee .org { width: 230px; flex: none; }
.orgs.marquee.run { animation: marquee 70s linear infinite; }
.orgs.marquee.run.rev { animation-direction: reverse; animation-duration: 80s; }
.orgs-lane:hover .marquee.run, .partners:hover .marquee.run { animation-play-state: paused; }
.exp-foot { margin: 18px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }

/* about: full grid with category tabs */
.exp-tabs { flex-wrap: wrap; margin: 26px 0 22px; }
.exp-tabs small { opacity: .65; font-weight: 500; margin-left: 2px; }
.org-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.org-grid .org[hidden] { display: none; }
.exp-note { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); max-width: 80ch; }
@media (max-width: 1100px) { .org-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .org-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .orgs.marquee .org { width: 180px; } .org-short { font-size: 18px; } .org > a, .org > div { height: 112px; } }
@media (max-width: 340px) { .org-grid { grid-template-columns: 1fr; } }
#experience-all { scroll-margin-top: 90px; }

.orgs .org-img, .orgs.marquee .org-img { filter: none; opacity: 1; max-height: 88px; }

/* ---------- photos ---------- */
.page-photo { margin: 0; padding: 32px 0 0; }
.pp-frame { aspect-ratio: 21 / 8; border-radius: 16px; overflow: hidden; background: var(--mist); }
.pp-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.photo-credit a { color: inherit; }
.hl-media figure { margin: 0; height: 100%; position: relative; }
.hl-media figure img { width: 100%; height: 100%; object-fit: cover; }
.hl-media .photo-credit { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; }
.slide.has-img .slide-in { position: relative; z-index: 2; }
.slide-credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; margin: 0; font-size: 12px; color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .pp-frame { aspect-ratio: 16 / 9; border-radius: 12px; } }

.pj-prior { display: inline-block; padding: 2px 9px; border-radius: 20px; background: #FBF0E7; color: #8A4A17; font-size: 12px; font-weight: 700; cursor: help; }


/* ---------- share, metrics, licence badge ---------- */
.ritem-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.ritem-act { align-items: center; }
.ritem-act .cs-share { margin-left: auto; }
.cc-badge { display: inline-flex; align-items: center; line-height: 0; }
.cc-badge img { display: block; height: 22px; width: auto; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-weight: 700; color: var(--ink); }
.pj-share { margin-top: 14px; display: flex; justify-content: flex-end; }
.pj-focus { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.pj { scroll-margin-top: 96px; }

/* ---------- small screens: keep controls reachable and uncluttered ---------- */
@media (max-width: 900px) {
  .slider .slide { min-height: 0; }
  .slide-in { padding: 48px 0 100px; }
  .slide-copy > p:not(.slide-cat) { -webkit-line-clamp: 4; font-size: 17px; }
}
@media (max-width: 600px) {
  .slide-cat { margin-bottom: 14px; font-size: 13px; }
  .slide h2 { font-size: 26px; -webkit-line-clamp: 4; margin-bottom: 12px; }
  .slide-copy > p:not(.slide-cat) { font-size: 16px; margin-bottom: 22px; }
  .slide-in { padding: 36px 0 92px; }
  .slider-ctrl { bottom: 22px; gap: 8px; }
  .dot { width: 18px; } .dot[aria-current="true"] { width: 30px; }
  .ritem-act .btn-sm { flex: 1 1 auto; justify-content: center; }
  .ritem-act .cs-share { margin-left: 0; flex: 1 1 100%; }
  .ritem-act .cs-share .cs-share-btn { width: 100%; }
  .ritem-stats .cs-stat span { display: none; }
  .site-search input { width: 100%; min-width: 0; }
  .utility-in { gap: 10px; }
  .to-top { width: 44px; height: 44px; }
  .pj-share { justify-content: stretch; } .pj-share .cs-share, .pj-share .cs-share-btn { width: 100%; }
}

.slide-cover { position: absolute; right: 12%; top: 50%; width: min(250px, 46%); aspect-ratio: 210 / 297; transform: translateY(-50%) rotate(-3deg); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.slide-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .slide-cover { display: none; } }

/* ---------- portfolio dashboard ---------- */
.pf-dash-sec { padding-top: 40px; padding-bottom: 24px; background: linear-gradient(180deg, var(--mist) 0, #fff 100%); }
.pf-kpis { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.pf-kpi > a, .pf-kpi > div { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 18px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--teal); }
.pf-kpi:nth-child(2) > * { border-top-color: #2D6A8E; } .pf-kpi:nth-child(3) > * { border-top-color: #5E8C4A; } .pf-kpi:nth-child(4) > * { border-top-color: var(--accent); } .pf-kpi:nth-child(5) > * { border-top-color: #8C6BB1; }
.pf-kpi > a:hover { box-shadow: 0 12px 28px rgba(20,40,38,.1); transform: translateY(-2px); transition: transform .2s, box-shadow .2s; }
.pf-kpi b { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.02em; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.pf-kpi span { font-weight: 700; margin-top: 6px; font-size: 15px; }
.pf-kpi small { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pf-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 22px 22px 18px; min-width: 0; }
.pf-card-wide { grid-column: 1 / -1; }
.pf-card h3 { font-size: 17px; margin: 0 0 16px; }
.pf-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pf-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-bars button { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 8px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.pf-bars button:hover, .pf-bars button[aria-pressed="true"] { background: var(--mist); }
.pf-bar-l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.pf-bar-l > span { white-space: normal; line-height: 1.3; }
.pf-bar-l .ic-mini { width: 22px; height: 22px; flex: 0 0 22px; }
.pf-bar-t { display: flex; align-items: center; gap: 8px; }
.pf-bar-t i { display: block; height: 14px; border-radius: 7px; transform-origin: left; animation: pfGrow .8s ease-out both; }
.pf-bar-t b { font-size: 14px; }
@keyframes pfGrow { from { transform: scaleX(0); } }
.pf-tl { --span: 3; }
.pf-tl-axis, .pf-tl-row { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 14px; align-items: center; }
.pf-tl-axis > span:not(:first-child) { display: none; }
.pf-tl-axis { position: relative; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pf-tl-axis::after { content: ""; grid-column: 2; }
.pf-tl-axis { grid-template-columns: minmax(0, 38%) repeat(var(--span), minmax(0, 1fr)); column-gap: 0; }
.pf-tl-axis > span { display: block !important; border-left: 1px dashed var(--rule); padding-left: 6px; }
.pf-tl-axis > span:first-child { border: 0; }
.pf-tl-row { text-decoration: none; color: var(--ink); padding: 6px 0; border-top: 1px solid var(--mist-2); }
.pf-tl-row:hover .pf-tl-name { color: var(--teal); text-decoration: underline; }
.pf-tl-name { font-size: 14px; line-height: 1.35; }
.pf-tl-track { position: relative; height: 26px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--span) - 1px), var(--mist-2) calc(100% / var(--span) - 1px) calc(100% / var(--span))); border-radius: 4px; }
.pf-tl-track i { font-style: normal; position: absolute; top: 3px; bottom: 3px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; min-width: 40px; animation: pfGrow .8s ease-out both; }
.pf-tl-track i.on::before { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; animation: dotPulse2 1.6s ease-out infinite; }
@keyframes dotPulse2 { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.pf-tl-track em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.pf-legend { display: flex; gap: 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pf-legend .sw { display: inline-block; width: 26px; height: 10px; border-radius: 5px; background: var(--teal-60); margin-right: 6px; vertical-align: middle; }
.pf-legend .sw.on { position: relative; }
.pf-legend .sw.on::after { content: ""; position: absolute; right: 2px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pf-map { width: 100%; height: auto; display: block; }
.pf-isl { transition: opacity .2s; }
.pf-isl.hit { cursor: default; }
.pf-isl.hit:hover, .pf-isl.hit:focus { opacity: .8; outline: none; }
.pf-national { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 14px; }
.pf-national span { background: var(--teal); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.pf-reg { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.pf-reg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-right: 6px; }
.pf-donut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.pf-donut svg { width: 150px; height: 150px; }
.pf-donut .d-n { font: 700 26px var(--font); fill: var(--ink); }
.pf-donut .d-l { font: 500 10px var(--font); fill: var(--muted); }
.pf-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.pf-dl li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pf-dl i { width: 12px; height: 12px; border-radius: 3px; }
.pf-dl-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.pf-dl-row li { display: flex; gap: 8px; }
.pf-stack { display: flex; height: 34px; border-radius: 8px; overflow: hidden; gap: 2px; }
.pf-stack i { font-style: normal; display: flex; align-items: center; justify-content: center; min-width: 26px; animation: pfGrow .9s ease-out both; }
.pf-stack b { color: #fff; font-size: 13px; }
.pf-sdg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-sdg li { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.pf-sdg b { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 6px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 22px; }
.pf-sdg span { font-weight: 700; font-size: 15px; }
.pf-sdg small { color: var(--muted); font-size: 13px; }

/* ---------- portfolio list ---------- */
.pf-list-sec { padding-top: 40px; }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pf-item { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--rule); border-left: 5px solid var(--svc, var(--teal)); border-radius: 12px; overflow: hidden; background: #fff; scroll-margin-top: 96px; transition: box-shadow .3s; }
.pf-item:has(.pf-item-cover) { grid-template-columns: 200px minmax(0, 1fr); }
.pf-item:hover { box-shadow: 0 16px 34px rgba(20,40,38,.08); }
.pf-item-cover { background: var(--mist); display: grid; place-items: center; padding: 20px; }
.pf-item-cover .cover-btn { width: 150px; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 4px; box-shadow: 0 10px 24px rgba(20,40,38,.2); }
.pf-item-body { padding: 22px 26px; min-width: 0; }
.pf-item-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.pf-svc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--svc, var(--teal)); }
.pf-svc .ic-mini { width: 20px; height: 20px; }
.pf-item h3 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.pf-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--teal-85); }
.pf-facts li { display: inline-flex; align-items: center; gap: 6px; }
.pf-facts svg { width: 16px; height: 16px; flex: 0 0 16px; }
.pf-sum { color: var(--muted); margin: 0 0 12px; max-width: 78ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-item.pj-focus .pf-sum { -webkit-line-clamp: unset; }
.pf-out { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.pf-out span { font-size: 13px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.pf-out em { font-style: normal; font-size: 13px; background: var(--mist); color: var(--teal-deep); padding: 4px 10px; border-radius: 999px; }
.pf-out em.more { background: #fff; border: 1px solid var(--rule); }
.pf-more { border-top: 1px solid var(--mist-2); padding-top: 10px; }
.pf-more summary { cursor: pointer; font-weight: 700; color: var(--teal); font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.pf-more summary::-webkit-details-marker { display: none; }
.pf-more summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.pf-more[open] summary::before { transform: rotate(45deg); }
.pf-item-foot .cs-share { margin-left: auto; }
.pf-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pf-item-foot .pj-pubs { margin: 0; }

/* ---------- partner call to action ---------- */
.pf-cta { background: var(--teal-deep); color: #fff; padding: 56px 0; }
.pf-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pf-cta h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 8px; color: #fff; }
.pf-cta p { margin: 0; color: #CFE2DF; max-width: 60ch; }
.pf-cta-act { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-light { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 6px; border: 2px solid rgba(255,255,255,.7); color: #fff; font-weight: 700; text-decoration: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-item:has(.pf-item-cover) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pf-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pf-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pf-kpi > a, .pf-kpi > div { padding: 14px 14px 12px; }
  .pf-kpi span { font-size: 14px; }
  .pf-card { padding: 18px 16px 14px; }
  .pf-bars button { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pf-tl-axis, .pf-tl-row { grid-template-columns: minmax(0, 1fr); }
  .pf-tl-axis { grid-template-columns: repeat(var(--span), minmax(0, 1fr)); }
  .pf-tl-axis > span:first-child { display: none !important; }
  .pf-tl-name { font-size: 13.5px; }
  .pf-donut { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .pf-donut svg { width: 120px; height: 120px; }
  .pf-item-body { padding: 18px 16px; }
  .pf-item h3 { font-size: 18px; }
  .pf-item-foot > * { flex: 1 1 100%; }
  .pf-item-foot .cs-share, .pf-item-foot .cs-share-btn { width: 100%; }
  .pf-cta-act, .pf-cta-act .btn { width: 100%; }
  .pf-cta-act a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pf-bar-t i, .pf-tl-track i, .pf-stack i, .pf-tl-track i.on::before { animation: none; } }
.pf-tl-row { column-gap: 0; } .pf-tl-name { padding-right: 14px; }
@media (max-width: 600px) { .pf-tl-name { padding-right: 0; } .pf-tl-row { row-gap: 4px; } }

/* ---------- portfolio: KPIs in the page header ---------- */
.pf-top .wrap { padding-bottom: 8px; }
.pf-kpis-host .pf-kpis { margin: 30px 0 0; }
.pf-top .pf-kpi > a, .pf-top .pf-kpi > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--accent); color: #fff; backdrop-filter: blur(2px); }
.pf-top .pf-kpi:nth-child(2) > * { border-top-color: #8FC2BA; } .pf-top .pf-kpi:nth-child(3) > * { border-top-color: #B5D6CF; } .pf-top .pf-kpi:nth-child(4) > * { border-top-color: #F2B27E; } .pf-top .pf-kpi:nth-child(5) > * { border-top-color: #C9B6E4; }
.pf-top .pf-kpi > a:hover { background: rgba(255,255,255,.14); }
.pf-top .pf-kpi b { color: #fff; }
.pf-top .pf-kpi span { color: #fff; }
.pf-top .pf-kpi small { color: #CFE2DF; }
.pf-charts-sec { background: var(--mist); }
.pf-charts-sec .pf-card { box-shadow: 0 1px 0 rgba(20,40,38,.04); }

/* ---------- portfolio explorer ---------- */
.pf-x-sec { padding-top: 48px; }
.pfx2 { border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: 0 20px 44px rgba(20,40,38,.07); }
.pfx-tools { padding: 18px 20px 14px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, #FBFCFC, #fff); border-radius: 18px 18px 0 0; }
.pfx-tools-row { display: flex; gap: 10px; }
.pfx-search { position: relative; flex: 1; margin: 0; }
.pfx-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pfx-search input { width: 100%; font: 400 15.5px var(--font); padding: 12px 14px 12px 40px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.pfx-search input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.pfx-ftoggle { display: none; align-items: center; gap: 8px; font: 700 14px var(--font); border: 1px solid var(--rule); background: #fff; color: var(--teal); border-radius: 12px; padding: 0 14px; cursor: pointer; }
.pfx-ftoggle b { background: var(--accent); color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.pfx-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.pfx-filters label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 0; }
.pfx-filters select { width: 100%; min-width: 0; font: 500 14px var(--font); padding: 9px 30px 9px 10px; border: 1px solid var(--rule); border-radius: 10px; background-color: #fff; color: var(--ink); }
.pfx-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.pfx-summary p { margin: 0; font-size: 14.5px; color: var(--muted); }
.pfx-summary p b { color: var(--ink); }
.pfx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pfx-chips button { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font); color: var(--teal-deep); background: var(--mist); border: 1px solid var(--mist-2); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.pfx-chips button:hover { border-color: var(--teal-60); }
.pfx-chips .pfx-clear { background: none; border-color: transparent; color: var(--accent); text-decoration: underline; }
.pfx-main { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: 600px; }
.pfx-listwrap { overflow: auto; border-right: 1px solid var(--rule); background: #FBFCFC; }
.pfx-list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.pfx-list .state { padding: 24px 12px; }
.pfx-item { display: grid; gap: 7px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--svc, var(--teal)); border-radius: 12px; padding: 13px 14px; cursor: pointer; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pfx-item:hover, .pfx-item:focus-visible { box-shadow: 0 10px 22px rgba(20,40,38,.1); transform: translateY(-1px); }
.pfx-item.on { border-color: var(--accent); border-left-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,131,58,.18); }
.pfx-item strong { font-size: 15px; line-height: 1.35; }
.pfx-item-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pfx-item-tags .pf-svc { font-size: 12.5px; }
.pfx-item-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--teal-85); }
.pfx-item-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.pfx-mapwrap { position: relative; isolation: isolate; z-index: 0; min-height: 0; border-radius: 0 0 18px 0; overflow: hidden; }
.pfx-map, .pfx2 .leaflet-container, .pfp .leaflet-container { background: #CFE3EA; font-family: var(--font); }
.pfx-map { position: absolute; inset: 0; }
.pfx-view { position: absolute; top: 12px; right: 12px; z-index: 500; display: inline-flex; background: #fff; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pfx-view button { font: 700 13px var(--font); border: 0; background: #fff; color: var(--muted); padding: 7px 14px; cursor: pointer; }
.pfx-view button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.pfx-legend { position: absolute; left: 12px; bottom: 28px; z-index: 500; background: rgba(255,255,255,.96); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pfx-legend p { margin: 0; }
.pfx-legend-t { font-weight: 700; }
.pfx-scale { display: flex; margin: 6px 0 2px; } .pfx-scale i { flex: 1; height: 10px; }
.pfx-scale-l { display: flex; justify-content: space-between; color: var(--muted); }
.pfx-hatch-l { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; }
.pfx-hatch-l i { flex: 0 0 22px; height: 14px; border: 1.5px solid #C4621D; background: repeating-linear-gradient(45deg, #E8833A 0 2.5px, rgba(232,131,58,.25) 2.5px 6px); }
.pfx-hint { margin: 0; padding: 10px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
.pfx-tip { font: 500 13px var(--font); }
.pfx2 .leaflet-interactive:focus, .pfp .leaflet-interactive:focus { outline: none; }
.pfx2 .leaflet-control-attribution { font-size: 10.5px; }
#pfExplorer, .pfp-wrap { scroll-margin-top: 84px; }

/* ---------- project profile ---------- */
.pfp-wrap { margin-top: 28px; }
.pfp { border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: 0 20px 44px rgba(20,40,38,.07); }
.pfp-head { background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 70%); color: #fff; border-radius: 18px 18px 0 0; position: relative; }
.pfp-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--svc, var(--accent)); }
.pfp-head-in { padding: 26px 30px 26px; }
.pfp-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #CFE2DF; }
.pfp-id { font-weight: 500; background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 4px; }
.pfp-head .pf-item-tags { margin-bottom: 10px; }
.pfp-head .pf-svc { color: #fff; } .pfp-head .pf-svc .ic-mini { filter: brightness(1.8); }
.pfp-head h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 0 0 18px; max-width: 70ch; }
.pfp-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pfp-facts li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; min-width: 0; }
.pfp-facts svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: #F2B27E; }
.pfp-facts span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pfp-facts small { font-size: 12px; font-weight: 500; color: #CFE2DF; }
.pfp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pfp-actions .btn-sm { min-height: 40px; }
.pfp-actions .btn { background: #fff; color: var(--teal); border-color: #fff; }
.pfp-actions .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); display: inline-flex; gap: 8px; align-items: center; }
.pfp-actions .cs-share-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.pfp-actions .cs-share-btn:hover { background: rgba(255,255,255,.1); }
.pfp-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.pfp-close:hover { background: rgba(255,255,255,.12); }
.pfp-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; padding: 28px 30px 30px; }
.pfp-sec + .pfp-sec { margin-top: 28px; }
.pfp-sec h3, .pfp-card h3 { font-size: 13px; letter-spacing: .02em; font-weight: 700; color: var(--teal); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--mist-2); }
.pfp-lead { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0; max-width: 72ch; }
.pf-matrix, .pf-deliv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pf-matrix th, .pf-matrix td, .pf-deliv th, .pf-deliv td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--mist-2); overflow-wrap: anywhere; }
.pf-matrix tbody th { width: 32%; color: var(--muted); font-weight: 600; background: #FBFCFC; }
.pf-matrix tr.grp th { background: var(--mist); color: var(--teal-deep); font-weight: 700; font-size: 13px; padding: 8px 12px; border-bottom: 0; width: auto; }
.pf-matrix tbody + tbody tr.grp th { border-top: 10px solid #fff; }
.pf-deliv thead th { background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; }
.pf-deliv thead th:first-child { border-radius: 8px 0 0 0; width: 48px; } .pf-deliv thead th:last-child { border-radius: 0 8px 0 0; width: 34%; }
.pf-deliv tbody tr:nth-child(even) td { background: #FBFCFC; }
.pf-deliv td:first-child { color: var(--muted); font-weight: 700; }
.pf-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.pf-cat::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: 0 0 10px; }
.pfp-catsum { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pfp-catsum span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--c); border-radius: 8px; padding: 6px 10px; }
.pfp-catsum b { font-size: 16px; color: var(--ink); }
.pfp-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.pfp-side { display: grid; gap: 18px; align-content: start; }
.pfp-card { border: 1px solid var(--rule); border-radius: 14px; padding: 16px; background: #fff; }
.pfp-mini { height: 220px; border-radius: 10px; overflow: hidden; isolation: isolate; z-index: 0; position: relative; }
.pfp-area { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--teal-deep); }
.pfp-cover .cover-btn { width: 130px; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 4px; box-shadow: 0 8px 18px rgba(20,40,38,.18); }
.pfp-sdgs { display: grid; gap: 8px; }
.pfp-sdg { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.pfp-sdg b { width: 38px; height: 38px; border-radius: 6px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 17px; flex: 0 0 38px; }
.pfp-sdg small { color: var(--muted); font-weight: 500; }

@media (max-width: 1000px) {
  .pfp-body { grid-template-columns: minmax(0, 1fr); }
  .pfp-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 900px) {
  .pfx-main { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pfx-mapwrap { order: -1; height: 340px; border-radius: 0; }
  .pfx-listwrap { border-right: 0; border-top: 1px solid var(--rule); max-height: 520px; }
  .pfp-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pf-top .pf-kpis { grid-template-columns: 1fr 1fr; }
  .pfx-tools { padding: 14px; }
  .pfx-ftoggle { display: inline-flex; }
  .pfx-filters { display: none; grid-template-columns: 1fr; }
  .pfx-tools.open .pfx-filters { display: grid; }
  .pfx-mapwrap { height: 300px; }
  .pfx-legend { bottom: 22px; left: 8px; width: 140px; padding: 6px 8px; font-size: 11.5px; }
  .pfx-legend-t, .pfx-scale-l { display: none; }
  .pfx-view { top: 8px; right: 8px; }
  .pfx2 .leaflet-control-zoom { display: none; }
  .pfx2 .leaflet-control-attribution { font-size: 9.5px; }
  .pfx-hint { padding: 10px 14px; }
  .pfp-head-in { padding: 20px 18px; }
  .pfp-body { padding: 20px 16px 22px; gap: 22px; }
  .pfp-actions > * { flex: 1 1 auto; }
  .pfp-actions .cs-share { flex: 1 1 auto; } .pfp-actions .cs-share-btn { width: 100%; }
  .pfp-close { position: absolute; top: 14px; right: 14px; flex: 0 0 auto; width: 36px; height: 36px; }
  .pfp-kicker { padding-right: 44px; }
  .pf-matrix, .pf-matrix tbody, .pf-matrix tr, .pf-matrix th, .pf-matrix td { display: block; width: 100%; }
  .pf-matrix tbody th { width: 100%; background: none; padding: 10px 2px 2px; border-bottom: 0; font-size: 13px; }
  .pf-matrix td { padding: 0 2px 10px; }
  .pf-matrix tr.grp th { padding: 8px 10px; border-radius: 6px; }
  .pf-matrix tbody + tbody tr.grp th { border-top: 0; margin-top: 12px; }
  .pf-deliv thead th:last-child { width: auto; }
  .pf-deliv th, .pf-deliv td { padding: 9px 8px; }
  .pf-deliv td:last-child .pf-cat { font-size: 12px; }
}

/* ---------- portfolio photos ---------- */
.pfx-item.has-thumb { grid-template-columns: minmax(0, 1fr) 72px; column-gap: 12px; }
.pfx-item.has-thumb > :not(.pfx-thumb) { grid-column: 1; }
.pfx-thumb { grid-column: 2; grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--mist); align-self: start; }
.pfx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfp-head.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); }
.pfp-head.has-photo .pfp-head-in { grid-column: 1; grid-row: 1; }
.pfp-photo { grid-column: 2; grid-row: 1; position: relative; display: block; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--teal-deep); border-radius: 0 18px 0 0; overflow: hidden; min-height: 100%; }
.pfp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pfp-photo:hover img { transform: scale(1.03); }
.pfp-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,64,60,.55) 0%, rgba(11,64,60,0) 35%); pointer-events: none; }
.pfp-head.has-photo .pfp-facts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .pfp-head.has-photo .pfp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pfp-head.has-photo .pfp-facts li:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .pfp-head.has-photo { grid-template-columns: minmax(0, 1fr); }
  .pfp-photo { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; min-height: 0; border-radius: 18px 18px 0 0; }
  .pfp-photo::after { background: linear-gradient(0deg, rgba(11,64,60,.5) 0%, rgba(11,64,60,0) 40%); }
  .pfp-head.has-photo .pfp-head-in { grid-row: 2; }
}
@media (max-width: 600px) { .pfx-item.has-thumb { grid-template-columns: minmax(0, 1fr) 60px; } .pfx-thumb { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .pfp-photo img { transition: none; } }
.pfp-close { background: rgba(11,64,60,.55); }

.card-new { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 9px; margin-right: 2px; }
