/* Fallen Heroes tribute — premium layer on MCRW site.css */

.tribute-page { padding-top: 0; }
.tribute-page h1 .u,
.tribute-page h2 .u,
.tribute-page h3 .u { color: var(--gold2); }

.oswald {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(10, 28, 56, 0.97), rgba(4, 10, 20, 0.99));
  transition: opacity 1.2s ease, visibility 1.2s;
}

.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-inner { text-align: center; padding: 40px 26px; max-width: 720px; }

.intro-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 8px 28px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.intro h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 16px;
}

.intro-lead { font-size: 1.05rem; color: var(--t1); line-height: 1.7; }

/* Slideshow */
.slideshow {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}

.slide-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(8, 18, 36, 0.92);
  transition: opacity 0.6s, visibility 0.6s;
}

.slide-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.slide-loader img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
  animation: pulse-emblem 2s ease-in-out infinite;
}

.slide-loader span { font-size: 0.72rem; color: var(--gold2); letter-spacing: 0.22em; }

@keyframes pulse-emblem {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.slide-stage {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.8s ease, visibility 1.8s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

.slide-media {
  position: absolute;
  inset: -6%;
  overflow: hidden;
  background: var(--navy3);
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
}

.slide.active .slide-img {
  animation: kenburns 10s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Era tone filters */
.tone-warm .slide-img { filter: saturate(1.05) contrast(1.05) sepia(0.12); }
.tone-sepia .slide-img { filter: sepia(0.35) contrast(1.08) brightness(0.92); }
.tone-cool .slide-img { filter: saturate(0.85) contrast(1.1) hue-rotate(-8deg) brightness(0.9); }
.tone-wwii .slide-img { filter: saturate(0.7) contrast(1.15) grayscale(0.35); }
.tone-vietnam .slide-img { filter: saturate(0.8) contrast(1.05) hue-rotate(5deg); }
.tone-modern .slide-img { filter: saturate(0.95) contrast(1.08) brightness(0.88); }
.tone-classic .slide-img { filter: saturate(0.9) contrast(1.06) sepia(0.08); }
.tone-gold .slide-img { filter: saturate(1.1) contrast(1.05) brightness(1.02); }

.slide-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.slide-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.92) 0%, rgba(4, 10, 20, 0.45) 50%, rgba(4, 10, 20, 0.72) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, 0.95) 0%, transparent 42%),
    radial-gradient(ellipse at 75% 12%, rgba(200, 163, 74, 0.12), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(178, 34, 52, 0.14), transparent 50%);
}

.slide-featured .slide-shade {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.9) 0%, rgba(4, 10, 20, 0.38) 52%, rgba(4, 10, 20, 0.68) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, 0.88) 0%, transparent 38%),
    radial-gradient(ellipse at 55% 10%, rgba(224, 194, 122, 0.22), transparent 58%);
}

.slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding-bottom: 118px;
  max-width: 780px;
}

.slide-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  color: var(--gold2);
  border: 1px solid var(--gold);
  padding: 7px 14px;
  margin-bottom: 14px;
  background: rgba(10, 28, 56, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.slide-year {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: rgba(224, 194, 122, 0.22);
  font-weight: 500;
  margin-bottom: 6px;
}

.slide-title {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.slide-caption {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: var(--t1);
  max-width: 540px;
  line-height: 1.65;
}

.slide-credit {
  font-size: 0.65rem;
  color: var(--t2);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.slide-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 8;
  width: 0%;
  box-shadow: 0 0 12px rgba(200, 163, 74, 0.45);
}

.slideshow .scrollcue { bottom: 92px; z-index: 6; }

.slide-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctrl-sm {
  padding: 10px 16px !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
}

.slide-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.slide-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(224, 194, 122, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.slide-dots button.active {
  background: var(--gold2);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(224, 194, 122, 0.55);
}

.slide-counter {
  font-size: 0.68rem;
  color: var(--gold2);
  letter-spacing: 0.16em;
  min-width: 56px;
  text-align: center;
}

/* 250th — premium flag photo */
.semiquin {
  position: relative;
  z-index: 2;
  padding: 88px 0;
  overflow: hidden;
}

.semiquin-watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(200, 163, 74, 0.04);
  pointer-events: none;
  user-select: none;
}

.semiquin-split {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.semiquin-flag-side { text-align: center; }

.flag-premium {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(200, 163, 74, 0.08);
  animation: bob 7s ease-in-out infinite;
  transform-style: preserve-3d;
  background: #081428;
  aspect-ratio: 16 / 11;
  max-width: 420px;
  margin: 0 auto;
}

.flag-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.flag-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.14) 46%, transparent 60%);
  background-size: 260% 260%;
  animation: driftsheen 6.5s linear infinite;
}

.flag-caption {
  margin-top: 16px;
  font-size: 0.68rem;
  color: var(--gold2);
  letter-spacing: 0.2em;
}

.semiquin-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.08;
  margin: 10px 0 16px;
}

.semiquin-lead {
  color: var(--t1);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 580px;
}

.semiquin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  max-width: 520px;
}

.semiquin-stat {
  text-align: center;
  padding: 18px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.semiquin-stat b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold2);
  line-height: 1;
}

.semiquin-stat-hero {
  border-color: var(--gold);
  background: rgba(200, 163, 74, 0.1);
  box-shadow: 0 8px 32px rgba(200, 163, 74, 0.12);
}

.semiquin-stat-hero b {
  font-size: 2.6rem;
  color: var(--cream);
}

.semiquin-stat span {
  display: block;
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--t2);
}

.semiquin-tagline {
  margin-top: 22px;
  font-size: 0.7rem;
  color: var(--gold2);
  letter-spacing: 0.22em;
}

/* Reagan quote */
.reagan-quote {
  position: relative;
  z-index: 2;
  padding: 56px 26px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.reagan-quote .pull { font-size: clamp(1.05rem, 2vw, 1.28rem); margin-bottom: 0; }

.quote-bridge {
  margin-top: 24px;
  text-align: center;
  color: var(--t1);
  font-size: 1rem;
  line-height: 1.65;
}

/* Honor roll */
.honor { position: relative; z-index: 2; padding: 72px 0 80px; }

.honor-header { text-align: center; margin-bottom: 44px; }

.honor-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  font-weight: 700;
  margin: 10px 0 14px;
}

.honor-header > p { max-width: 640px; margin: 0 auto; color: var(--t1); }

.featured-heroes {
  margin: 0 auto 36px;
  max-width: 960px;
  text-align: center;
}

.featured-heroes h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
  margin: 8px 0 22px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.featured-card {
  padding: 20px 18px;
  border: 1px solid var(--gold);
  background: linear-gradient(145deg, rgba(200, 163, 74, 0.1), rgba(8, 18, 36, 0.6));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.featured-branch {
  display: block;
  font-size: 0.62rem;
  color: var(--gold2);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.featured-card h4 {
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.featured-card p {
  font-size: 0.88rem;
  color: var(--t2);
}

.honor-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.honor-stats .stat {
  text-align: center;
  min-width: 150px;
  opacity: 1;
  transform: none;
}

.honor-stats .stat b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--gold2);
  line-height: 1;
}

.honor-stats .stat span {
  display: block;
  margin-top: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t2);
}

.era-grid { display: flex; flex-direction: column; gap: 16px; }

.era-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.era-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
}

.era-head h3 { font-size: 1.4rem; color: var(--cream); font-weight: 700; }
.era-head .years { font-size: 0.68rem; color: var(--gold2); margin-top: 4px; }
.era-head .count { font-size: 0.68rem; color: var(--t2); }

.era-body { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.era-card.open .era-body { max-height: 5000px; }

.era-note { padding: 0 22px 12px; font-size: 0.88rem; color: var(--t2); font-style: italic; }

.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  padding: 8px 22px 22px;
}

.name-chip {
  padding: 10px 12px;
  border-left: 2px solid rgba(178, 34, 52, 0.55);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.35;
}

.name-chip .meta { display: block; font-size: 0.72rem; color: var(--t2); margin-top: 2px; }
.name-chip.featured { border-left-color: var(--gold); background: rgba(200, 163, 74, 0.08); }

.closing {
  margin-top: 56px;
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--line);
  background: rgba(178, 34, 52, 0.08);
}

.closing h3 { font-size: 1.8rem; color: var(--cream); margin-bottom: 12px; }

.closing p {
  color: var(--t1);
  max-width: 560px;
  margin: 0 auto 8px;
}

@media (max-width: 860px) {
  .semiquin-split { grid-template-columns: 1fr; }
  .semiquin-watermark { display: none; }
  .slide-copy { padding-bottom: 148px; }
  .slide-controls { justify-content: center; }
  .semiquin-stats { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
  .name-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active .slide-img,
  .flag-premium,
  .flag-sheen { animation: none; }
  .slide { transition-duration: 0.35s; }
}