/* =====================================================================
   Fidelity pass: header, slider, reveal & hover animations
   (loaded after style.css)
   ===================================================================== */
.topbar { background: #e2e2e2; border: 0; font-size: 14px; }
.topbar-in { justify-content: center; gap: 26px; min-height: 52px; }
.topbar-menu { gap: 26px; }
.topbar-menu a { display: inline-flex; align-items: center; gap: 6px; color: #3f3f3f; }
.topbar-menu a::before { font-family: 'Font Awesome 5 Free'; font-weight: 400; color: var(--red); }
.topbar-menu li:nth-child(1) a::before { content: '\f015'; font-weight: 900; }
.topbar-menu li:nth-child(2) a::before { content: '\f3c5'; font-weight: 900; }
.topbar-menu li:nth-child(3) a::before { content: '\f0e0'; }
.topbar-link { color: #3f3f3f; }
.topbar-btn { padding: 2px 22px; background: transparent; }

.masthead-ph { height: 64px; position: relative; z-index: 60; }
.masthead { height: 64px; transition: box-shadow .3s; }
.masthead-in { min-height: 64px; height: 64px; }
.main-nav .menu > li > a { min-height: 64px; font-size: 15px; transition: background .3s; position: relative; }
.main-nav .menu > li > a::after { content: ''; position: absolute; inset-inline: 50%; bottom: 0; height: 3px; background: #fff; transition: inset-inline .3s; }
.main-nav .menu > li:hover > a::after { inset-inline: 18%; }
.site-logo { top: -44px; left: 60px; width: 165px; height: 165px; min-width: 0; max-width: none; min-height: 0; padding: 14px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: transform .35s, opacity .35s; }
.site-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.main-nav { margin-left: 260px; }
.main-nav .sub-menu { display: block; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; background: var(--red); border: 0; box-shadow: 0 6px 14px rgba(0,0,0,.2); min-width: 230px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.22); padding: 10px 16px; font-size: 14.5px; transition: background .25s, padding .25s; }
.main-nav .sub-menu a:hover { background: var(--red-dark); color: #fff; padding-inline-start: 24px; }

/* sticky header */
.masthead.stuck { position: fixed; top: 0; inset-inline: 0; animation: bjaDrop .4s ease; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.masthead.stuck .site-logo { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.masthead.stuck .main-nav { margin-left: 0; }
@keyframes bjaDrop { from { transform: translateY(-100%); } to { transform: none; } }

/* hero slider: framed, fade, caption bar sliding down */
.hero { padding: 70px 0 30px; }
.hero-slider-wrap { background: #ededed; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.18); position: relative; }
.hero-slider-wrap::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 26px; background: radial-gradient(ellipse at top, rgba(0,0,0,.38), transparent 70%); pointer-events: none; }
.hero-slider { aspect-ratio: 1173 / 458; box-shadow: none; background: #fff; }
.hero-slider::after { display: none; }
.slide { transition: opacity .9s ease; }
.slide img { object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.slide.active img { transform: scale(1); }
.slide-cap { inset-inline: 0; bottom: 0; padding: 0 16px; height: 44px; line-height: 44px; font-size: clamp(14px, 2.2vw, 28px); font-weight: 500; text-align: right; background: rgba(0,0,0,.28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(-32px); transition: opacity .6s .5s, transform .6s .5s; }
.slide.active .slide-cap { opacity: 1; transform: none; }
.dots { bottom: 56px; }

.side-news .thumb img { transition: transform .5s; }
.side-news:hover .thumb img { transform: scale(1.06); }
.side-news h3 { transition: color .25s; }
.side-news:hover h3 { color: var(--red); }

/* tiles */
.tiles-band { background: #e1e1e1; border: 0; }
.tile a { background: #e8e8e8; transition: background .3s, transform .3s, box-shadow .3s; }
.tile .ico { transition: background .3s, color .3s, transform .3s, box-shadow .3s; }
.tile a:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.tile a:hover .ico { background: #fff; color: var(--red); box-shadow: inset 0 0 0 3px var(--red); transform: rotateY(360deg); transition: transform .6s, background .3s, color .3s; }

/* section titles: red line draws in */
.sec-title { border: 0; position: relative; padding-bottom: 12px; }
.sec-title::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .9s ease .15s; }
.sec-title.in::after { transform: scaleX(1); }

/* scroll reveal (fade up, staggered) */
.js .reveal { opacity: 0; transform: translateY(46px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .sec-title.reveal { transform: none; }

/* cards: red hover overlay */
.card .thumb::after { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: rgba(221,51,51,.55); opacity: 0; transition: opacity .35s; }
.card.video .thumb::after, .card.paper .thumb::after, .card.partner .thumb::after, .card.member .thumb::after { display: none; }
.card:hover .thumb::after { opacity: 1; }
.card h3 a { transition: color .25s; }
.row-card { transition: transform .3s, box-shadow .3s, background .3s; }
.row-card:hover { transform: translateX(-4px); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card.video .play { transition: transform .3s; }
.card.video:hover .play { transform: scale(1.18); }
.bja-btn { transition: background .3s, transform .2s; }
.bja-btn:hover { transform: translateY(-2px); }
.page-title { animation: bjaFade .6s ease; }
@keyframes bjaFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.content, .sidebar { animation: bjaFade .7s ease .1s both; }
.bottom-bar { background: #999; color: #c9c9c9; }

@media (max-width: 900px) {
	.masthead-ph { height: auto; }
	.masthead { height: auto; }
	.masthead-in { height: auto; }
	.site-logo { width: 110px; height: 110px; margin: 8px 0; top: 0; left: 0; position: static; box-shadow: none; }
	.main-nav { margin-left: 0; }
	.main-nav .sub-menu { opacity: 1; visibility: visible; transform: none; display: none; }
	.main-nav li.sub-open > .sub-menu { display: block; }
	.main-nav .menu > li > a::after { display: none; }
	.hero { padding-top: 30px; }
	.hero-slider-wrap { padding: 8px; }
	.masthead.stuck { position: static; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
	.js .reveal, .slide, .slide-cap { transition: none; transform: none; opacity: 1; }
}

/* nav fit */
.main-nav .menu > li > a { white-space: nowrap; padding: 0 18px; }
.main-nav .menu { flex-wrap: nowrap; }
@media (max-width: 1250px) { .main-nav .menu > li > a { padding: 0 12px; font-size: 14px; } .main-nav { margin-left: 230px; } }

.slide.prev { opacity: 1; z-index: 1; transition: none; }
.slide.prev .slide-cap { opacity: 0; transition: none; }

.hero-in { align-items: start; }
.slide-cap { font-size: clamp(14px, 1.7vw, 24px); }
