/* ==========================================================
   Holy Cross Modern 3.2: hero photo slider redesign.
   Arch shape, caption glass card on the photo, swipe on phones,
   gold progress pills. Loads after mobile.css.
   ========================================================== */
@keyframes kb{from{transform:scale(1.06)}to{transform:scale(1)}}
@keyframes dotfill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.arch{width:min(100%,460px);margin-left:auto}
.arch-frame{
  aspect-ratio:5/6;
  border-radius:clamp(100px,26vw,170px) clamp(100px,26vw,170px) 28px 28px!important;
  border:0!important;overflow:hidden!important;
  background:#0a2a3a;
  outline:1.5px solid color-mix(in srgb,var(--c-accent) 75%,transparent);outline-offset:9px;
  box-shadow:0 30px 70px rgba(0,0,0,.5)!important;
  touch-action:pan-y;
}
.slide img{object-position:center 35%}
.arch-frame::after{content:"";position:absolute;left:0;right:0;bottom:0;height:58%;z-index:2;pointer-events:none;
  background:linear-gradient(to top,rgba(5,16,30,.88),rgba(5,16,30,.4) 55%,transparent)}

/* Gold cross badge */
.cross{top:16px;width:40px;height:40px;border-radius:50%;z-index:3;filter:none;
  background:rgba(8,24,44,.55);border:1px solid color-mix(in srgb,var(--c-accent) 80%,transparent);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cross::before{left:50%;top:10px;width:3px;height:20px;margin-left:-1.5px}
.cross::after{left:10px;top:14px;width:20px;height:3px}

/* Caption: glass card sitting on the photo */
.arch-cap{position:absolute;z-index:4;left:12px;right:12px;bottom:12px;margin:0;min-height:0;
  padding:12px 12px 12px 18px;gap:12px;border-radius:20px;
  background:rgba(9,26,46,.5);border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
.cap-text{display:grid;min-height:0}
.cap{grid-area:1/1;position:static;justify-content:center}
.cap strong{font:600 1.05rem/1.25 var(--f-head);color:#fff}
.cap span{font-size:.82rem;color:rgba(255,255,255,.78);margin-top:2px}
.arch-ctl{gap:8px}
.arch-ctl button{width:42px;height:42px;min-height:42px;padding:0 0 3px;display:grid;place-items:center;
  font-size:1.4rem;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.35)}

/* Footer row: progress pills + counter */
.arch-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-inline:4px}
.dots{margin:0;gap:6px;flex-wrap:wrap;align-items:center}
.dot{position:relative;width:16px;height:24px;min-height:0;padding:0;border:0;border-radius:0;background:none;transition:width .35s}
.dot::before,.dot::after{content:"";position:absolute;left:0;right:0;top:9px;height:6px;border-radius:9px}
.dot::before{background:rgba(255,255,255,.3)}
.dot::after{background:var(--c-accent);transform:scaleX(0);transform-origin:left}
.dot.on{width:44px;background:none}
.dot.on::after{animation:dotfill var(--dur,6s) linear forwards}
.arch:hover .dot.on::after{animation-play-state:paused}
.arch.static .dot.on::after{animation:none;transform:none}
.arch-count{font:600 .85rem var(--f-head);letter-spacing:.14em;color:rgba(255,255,255,.75);font-variant-numeric:tabular-nums;white-space:nowrap}

@media (max-width:1100px){
  .arch{margin-inline:auto;width:min(calc(100% - 24px),420px)}
}
@media (max-width:640px){
  .arch-frame{aspect-ratio:10/11;outline-offset:7px;border-radius:clamp(90px,34vw,150px) clamp(90px,34vw,150px) 26px 26px!important}
  .arch-cap{left:10px;right:10px;bottom:10px;padding:10px 10px 10px 14px}
  .cap strong{font-size:1rem}
  .arch-foot{margin-top:18px}
}
@media (prefers-reduced-motion:reduce){
  .dot.on::after{animation:none;transform:none}
  .slide.on img{animation:none}
}

/* ==========================================================
   5.3.1 Holy Cross hero motion — cross glow, ken-burns, soft fade
   ========================================================== */
.arch.console{
	position:relative;
	overflow:hidden;
	box-shadow:0 24px 60px rgba(0,0,0,.45),0 0 0 1px rgba(201,162,39,.25);
}
.arch.console::before{
	content:"";
	position:absolute;inset:-20% -20%;
	background:
		radial-gradient(circle at 30% 40%,rgba(201,162,39,.12),transparent 45%),
		radial-gradient(circle at 70% 60%,rgba(91,75,255,.15),transparent 50%);
	pointer-events:none;z-index:0;animation:hcm-aurora 12s ease-in-out infinite alternate;
}
@keyframes hcm-aurora{
	0%{transform:translate(0,0) scale(1)}
	100%{transform:translate(3%,-2%) scale(1.05)}
}

/* Soft Holy Cross watermark behind slides */
.arch-frame{position:relative;overflow:hidden}
.arch-frame::after{
	content:"";
	position:absolute;left:50%;top:50%;
	width:120px;height:120px;
	transform:translate(-50%,-50%);
	background:
		linear-gradient(#c9a227,#c9a227) center/14px 70% no-repeat,
		linear-gradient(#c9a227,#c9a227) center/70% 14px no-repeat;
	opacity:.12;pointer-events:none;z-index:2;
	animation:hcm-cross-pulse 4s ease-in-out infinite;
}
@keyframes hcm-cross-pulse{
	0%,100%{opacity:.08;transform:translate(-50%,-50%) scale(1)}
	50%{opacity:.18;transform:translate(-50%,-50%) scale(1.08)}
}

.arch-frame .slide{
	position:absolute;inset:0;
	opacity:0;visibility:hidden;
	transform:scale(1.06);
	transition:opacity .9s ease,transform 6.5s ease,visibility .9s;
	z-index:1;
}
.arch-frame .slide.on{
	opacity:1;visibility:visible;
	transform:scale(1);
	z-index:2;
}
.arch-frame .slide img{
	width:100%;height:100%;object-fit:cover;
	animation:none;
}
.arch-frame .slide.on img{
	animation:hcm-kenburns 8s ease-out forwards;
}
@keyframes hcm-kenburns{
	0%{transform:scale(1.08) translate(0,0)}
	100%{transform:scale(1) translate(-1%,-1%)}
}

/* Caption glass + slide-up */
.arch-cap .cap{
	opacity:0;transform:translateY(12px);
	transition:opacity .55s ease .15s,transform .55s ease .15s;
}
.arch-cap .cap.on{
	opacity:1;transform:translateY(0);
}

/* Gold progress dots pulse */
.arch-foot .dot.on{
	box-shadow:0 0 0 3px rgba(201,162,39,.35);
	animation:hcm-dot-glow 1.6s ease-in-out infinite;
}
@keyframes hcm-dot-glow{
	0%,100%{box-shadow:0 0 0 2px rgba(201,162,39,.25)}
	50%{box-shadow:0 0 0 5px rgba(201,162,39,.15)}
}

/* Title line animation on hero left */
.hero-copy .hero-title{
	animation:hcm-title-in .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero-copy .hero-title .line:nth-child(2){animation-delay:.12s}
.hero-copy .hero-title .line:nth-child(3){animation-delay:.22s}
@keyframes hcm-title-in{
	from{opacity:0;transform:translateY(28px)}
	to{opacity:1;transform:translateY(0)}
}
.hero-copy .hero-text{animation:hcm-fade-up .8s ease .35s both}
.hero-copy .hero-cta{animation:hcm-fade-up .8s ease .5s both}
.hero-stats{animation:hcm-fade-up .8s ease .65s both}
@keyframes hcm-fade-up{
	from{opacity:0;transform:translateY(16px)}
	to{opacity:1;transform:translateY(0)}
}

@media (prefers-reduced-motion:reduce){
	.arch.console::before,.arch-frame::after,.arch-frame .slide,.arch-frame .slide.on img,
	.hero-copy .hero-title,.hero-copy .hero-text,.hero-copy .hero-cta,.hero-stats,.arch-foot .dot.on{
		animation:none!important;transition:none!important;
	}
	.arch-frame .slide{transform:none}
	.arch-frame .slide.on{transform:none}
}
