/* GeoCARE homepage hero: intro animation → photo slideshow */
.gchero { position: relative; height: var(--gchero-h, 440px); overflow: hidden; border-radius: 16px; background: #FBF7F1; box-shadow: 0 10px 28px rgba(107, 18, 57, 0.12); isolation: isolate; font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; }
.gchero *, .gchero *::before, .gchero *::after { box-sizing: border-box; }
.gchero__intro { position: absolute; inset: 0; z-index: 2; background: linear-gradient(#FCFAF6, #F1E9DD); transition: opacity 1.2s ease; }
.gchero.is-slides .gchero__intro { opacity: 0; pointer-events: none; }
.gchero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gchero__logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 6%; }
.gchero__logo svg { width: min(88%, 640px); height: auto; overflow: visible; }
.gchero[data-mode="particles"] .gchero__logo, .gchero[data-mode="logo"] .gchero__canvas { display: none; }

/* settle: canvas grains first, then the crisp logo fades in over them and the canvas fades away */
.gchero[data-mode="settle"] .gchero__logo { opacity: 0; transition: opacity .9s ease; }
.gchero[data-mode="settle"] .gchero__canvas { transition: opacity 1.1s ease .25s; }
.gchero[data-mode="settle"] .lg-arc { stroke-dashoffset: 0; }
.gchero[data-mode="settle"] .lg-bar, .gchero[data-mode="settle"] .lg-pile, .gchero[data-mode="settle"] .lg-words path:nth-of-type(3), .gchero[data-mode="settle"] .lg-tag { opacity: 0; }
.gchero.is-settle-end .gchero__logo { opacity: 1; }
.gchero.is-settle-end .gchero__canvas { opacity: 0; }
.gchero.is-settle-end .lg-bar { animation: lg-drop .6s cubic-bezier(.34,1.56,.64,1) .45s both; }
.gchero.is-settle-end .lg-p1 { animation: lg-drive .5s cubic-bezier(.3,.7,.3,1) .95s both; }
.gchero.is-settle-end .lg-p2 { animation: lg-drive .5s cubic-bezier(.3,.7,.3,1) 1.1s both; }
.gchero.is-settle-end .lg-pile { opacity: 1; }
.gchero.is-settle-end .lg-words path:nth-of-type(3) { animation: lg-fade .8s ease 1.35s both; }
.gchero.is-settle-end .lg-tag { animation: lg-fade .9s ease 1.75s both; }
.gchero.is-settle-static .gchero__logo, .gchero.is-settle-static .gchero__canvas, .gchero.is-settle-static .lg-bar, .gchero.is-settle-static .lg-pile,
.gchero.is-settle-static .lg-words path, .gchero.is-settle-static .lg-tag { transition: none; animation: none; opacity: 1; }
.gchero.is-settle-static .gchero__canvas { opacity: 0; }

.gchero__canvas, .gchero__logo { transition: opacity .45s ease; }
.gchero.is-swap .gchero__canvas, .gchero.is-swap .gchero__logo { opacity: 0; }

/* logo build */
.gchero.is-logo-play .lg-arc { animation: lg-draw 1.15s cubic-bezier(.45,.05,.25,1) .15s both; }
.gchero.is-logo-play .lg-l { animation: lg-rise .75s cubic-bezier(.2,.8,.2,1) both; }
.gchero.is-logo-play .lg-l1 { animation-delay: .95s; } .gchero.is-logo-play .lg-l2 { animation-delay: 1.12s; } .gchero.is-logo-play .lg-l3 { animation-delay: 1.29s; }
.gchero.is-logo-play .lg-bar { animation: lg-drop .6s cubic-bezier(.34,1.56,.64,1) 1.85s both; }
.gchero .lg-pile { transform-box: fill-box; transform-origin: 50% 0; }
.gchero.is-logo-play .lg-p1 { animation: lg-drive .5s cubic-bezier(.3,.7,.3,1) 2.35s both; }
.gchero.is-logo-play .lg-p2 { animation: lg-drive .5s cubic-bezier(.3,.7,.3,1) 2.5s both; }
.gchero.is-logo-play .lg-words { animation: lg-in .8s cubic-bezier(.2,.8,.2,1) 2.75s both; }
.gchero.is-logo-play .lg-tag { animation: lg-fade .9s ease 3.35s both; }
.gchero.is-logo-static .lg-arc { stroke-dashoffset: 0; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-drop { from { transform: translateY(-34px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-drive { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lg-in { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }

/* slides — whole photo on a blurred copy of itself, never cropped */
.gchero__slides { position: absolute; inset: 0; z-index: 1; background: #2a0a18; }
.gchero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.gchero__slide.is-active { opacity: 1; }
.gchero__bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55) saturate(1.1); transform: scale(1.08); }
.gchero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.gchero__slide.is-active .gchero__img { animation: gchero-kb var(--gchero-iv, 6s) ease-out both; }
@keyframes gchero-kb { from { transform: scale(1); } to { transform: scale(1.035); } }
.gchero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.4rem 2.4rem; background: linear-gradient(to top, rgba(40,6,20,.82), rgba(40,6,20,0)); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.gchero__credit { display: block; margin-top: .15rem; color: #e2cdd9; font-size: .78rem; font-weight: 400; }
.gchero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; opacity: 0; transition: opacity .6s; }
.gchero.is-slides .gchero__dots { opacity: 1; }
.gchero__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s, transform .2s; }
.gchero__dot.is-active { background: #f0c14b; transform: scale(1.3); }
.gchero__replay { position: absolute; z-index: 3; top: 12px; left: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #6b1239; font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .4s, background .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.gchero.is-slides .gchero__replay { opacity: .85; }
.gchero__replay:hover, .gchero__replay:focus-visible { opacity: 1; background: #fff; }
.gchero__admin { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 6px; }
.gchero__admin .pub-admin-btn { font-size: .78rem; padding: .35rem .75rem; }
.gchero__empty { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: .6rem .9rem; border-radius: 10px; background: #fff8e5; color: #6b1239; font-size: .85rem; border: 1px dashed #f0c14b; }
@media (max-width: 760px) {
  .gchero { --gchero-h: 300px !important; border-radius: 12px; }
  .gchero__cap { font-size: .9rem; padding: 2.4rem 1rem 2.2rem; }
}
@media (max-width: 480px) { .gchero { --gchero-h: 240px !important; } }
@media (prefers-reduced-motion: reduce) {
  .gchero__slide, .gchero__intro { transition: none; }
  .gchero__slide.is-active .gchero__img { animation: none; }
}

/* news slides: tag + date, headline, short summary, read link */
.gchero__news { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 4.5rem 1.6rem 2.6rem; background: linear-gradient(to top, rgba(40,6,20,.9) 0%, rgba(40,6,20,.7) 45%, rgba(40,6,20,0) 100%); font-weight: 400; }
.gchero__news > * { max-width: 46rem; }
.gchero__meta { display: flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #e2cdd9; }
.gchero__tag { background: #f0c14b; color: #4e0c29; font-weight: 700; padding: .18rem .55rem; border-radius: 4px; letter-spacing: .06em; text-shadow: none; }
.gchero__head, .gchero__head:visited { color: #fff; font-family: Montserrat, "Open Sans", sans-serif; font-weight: 700; font-size: clamp(1.05rem, 1.9vw, 1.45rem); line-height: 1.25; text-decoration: none; }
.gchero__head:hover { text-decoration: underline; text-decoration-color: #f0c14b; text-underline-offset: 3px; }
.gchero__sum { font-size: .92rem; line-height: 1.45; color: #f6eef2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gchero__more, .gchero__more:visited { margin-top: .15rem; color: #f0c14b; font-weight: 700; font-size: .85rem; text-decoration: none; }
.gchero__more:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .gchero__news { padding: 3rem 1rem 2.2rem; gap: .25rem; }
  .gchero__sum { display: none; }
}

/* previous / next arrows */
.gchero__arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.82); color: #6b1239; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .3s, background .2s, transform .2s; }
.gchero__arrow--prev { left: 14px; }
.gchero__arrow--next { right: 14px; }
.gchero.is-slides .gchero__arrow { opacity: .55; pointer-events: auto; }
.gchero.is-slides:hover .gchero__arrow, .gchero.is-slides .gchero__arrow:focus-visible { opacity: .95; }
.gchero__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gchero__arrow:focus-visible { outline: 3px solid #f0c14b; outline-offset: 2px; }
@media (max-width: 600px) { .gchero__arrow { width: 34px; height: 34px; } .gchero__arrow--prev { left: 8px; } .gchero__arrow--next { right: 8px; } }
@media print { .gchero__arrow { display: none; } }
