:root {
  --navy: #0b1f3f;
  --navy-deep: #071530;
  --navy-mid: #12294f;
  --gold: #c9a227;
  --gold-bright: #e3bd4a;
  --cream: #faf7f0;
  --ink: #22293a;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --condensed: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* ---------- Navigation ---------- */
#topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 48, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--condensed);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-brand img { width: 22px; height: auto; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.nav-links a {
  color: #d9e1ef;
  text-decoration: none;
  font-family: var(--condensed);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--gold-bright); border-color: var(--gold-bright); }
.nav-links a.nav-share {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
}
.nav-links a.nav-share:hover { background: var(--gold-bright); }
#navToggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
#navToggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-bright);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 720px) {
  #navToggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.9rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; width: 100%; text-align: center; }
  .nav-links a.nav-share { width: auto; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201, 162, 39, 0.14), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(201, 162, 39, 0.10), transparent 40%),
    linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  overflow: hidden;
}
.hero-flag {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 120px,
    rgba(255,255,255,0.018) 120px, rgba(255,255,255,0.018) 121px
  );
  pointer-events: none;
}
.hero-content { position: relative; max-width: 640px; margin: 0 auto; }
.hero-kicker {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--gold-bright);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 7.5vw, 3.2rem);
  letter-spacing: 0.04em;
  margin: 0.4rem 0 1.6rem;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-portrait {
  width: min(300px, 70vw);
  margin: 0 auto 1.6rem;
  border: 4px solid var(--gold);
  outline: 1px solid rgba(227, 189, 74, 0.4);
  outline-offset: 6px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.hero-portrait img { display: block; width: 100%; }
.hero-rank {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  color: #d9e1ef;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 7.5vw, 3.4rem);
  letter-spacing: 0.03em;
  margin: 0.2rem 0 0.3rem;
}
.hero-billet {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  color: #b9c6dd;
}
.hero-date {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--gold-bright);
  margin-top: 0.2rem;
}
.hero-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  margin-top: 0.9rem;
  color: #e8edf6;
}
.hero-scroll {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--gold-bright);
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

.gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.9rem auto;
  max-width: 300px;
}
.gold-rule::before, .gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-rule .star { color: var(--gold); font-size: 0.95rem; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--cream);
  text-align: center;
  padding: 2.6rem 1.5rem;
  border-bottom: 1px solid #eee4c9;
}
.quote-emblem { width: 44px; margin-bottom: 0.9rem; }
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  color: var(--navy);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section { padding: 3.2rem 1.25rem; max-width: 1100px; margin: 0 auto; }
.section-navy {
  background: linear-gradient(175deg, var(--navy-deep), var(--navy));
  color: var(--white);
  max-width: none;
}
.section-navy > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-cream { background: var(--cream); max-width: none; }
.section-cream > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
  text-align: center;
}
.section-head h2 {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  color: var(--navy);
  font-weight: 600;
}
.section-head .star { color: var(--gold); font-size: 1.1rem; }
.section-head.light h2 { color: var(--white); }

/* ---------- Biography ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.bio-text p { margin-bottom: 1.05rem; font-size: 1.04rem; }
.bio-text strong { color: var(--navy); }
.bio-side { text-align: center; }
.milestones {
  background: var(--cream);
  border: 1px solid #eadfc2;
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  text-align: left;
  margin-bottom: 1.6rem;
}
.milestones h3 {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  margin-bottom: 0.9rem;
  font-size: 1.02rem;
}
.milestones ol { list-style: none; }
.milestones li {
  display: flex;
  gap: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e2d6b4;
  font-size: 0.96rem;
  align-items: baseline;
}
.milestones li:last-child { border-bottom: none; }
.milestones .year {
  font-family: var(--condensed);
  color: var(--gold);
  font-weight: 600;
  min-width: 3.2em;
}
.bio-seal { width: 130px; opacity: 0.95; }

@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- Ceremony ---------- */
.ceremony-list {
  list-style: none;
  max-width: 640px !important;
  position: relative;
}
.ceremony-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.ceremony-list li:last-child { border-bottom: none; }
.ceremony-list .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold-bright);
  min-width: 2.2rem;
  text-align: center;
  flex-shrink: 0;
}
.ceremony-list h3 {
  font-family: var(--condensed);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 1.12rem;
  text-transform: uppercase;
}
.ceremony-list .hint {
  font-size: 0.88rem;
  font-style: italic;
  color: #b9c6dd;
}
.ceremony-eagle {
  display: block;
  margin: 2.4rem auto 0;
  width: 92px;
  filter: brightness(0) invert(0.9) sepia(0.35) saturate(3) hue-rotate(8deg);
  opacity: 0.9;
}

/* ---------- Honors ---------- */
.sub-head {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 0.25rem;
  margin: 1.4rem 0 1.2rem;
  font-size: 1.12rem;
}
.ribbon-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem 2rem;
}
.ribbon-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid #eee3c8;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.ribbon-list img {
  width: 108px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.ribbon-list li.no-ribbon::before {
  content: "★";
  color: var(--gold);
  font-size: 1.3rem;
  width: 108px;
  text-align: center;
  flex-shrink: 0;
}
.ribbon-list span { font-size: 0.98rem; font-weight: 600; color: var(--navy); }
.ribbon-list em { font-weight: 400; color: #6a7386; font-style: normal; }
.distinction-list { list-style: none; }
.distinction-list li {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
  padding: 0.35rem 0;
}
.distinction-list .star { color: var(--gold); margin-right: 0.5rem; }

/* ---------- Participants ---------- */
.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.participant {
  background: var(--white);
  border: 1px solid #e8e0ca;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(11, 31, 63, 0.05);
}
.participant.wide { grid-column: 1 / -1; }
.participant h3 {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.participant p { font-size: 1rem; color: #3a4256; }

/* ---------- Share ---------- */
.share-section { text-align: center; padding-bottom: 4rem; }
.share-lede {
  max-width: 520px !important;
  margin: -0.8rem auto 1.8rem;
  color: #cdd7e8;
  font-size: 1.02rem;
}
.qr-card {
  background: var(--white);
  display: inline-block;
  padding: 1.1rem 1.1rem 0.7rem;
  border-radius: 12px;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
#qrcode { line-height: 0; }
#qrcode canvas, #qrcode img { width: min(220px, 58vw); height: auto; image-rendering: pixelated; }
.qr-caption {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--navy);
  padding: 0.5rem 0 0.2rem;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.btn {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid var(--gold);
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { background: transparent; color: var(--gold-bright); }
.btn-outline:hover { background: rgba(201, 162, 39, 0.15); }
.share-status {
  margin-top: 1rem;
  min-height: 1.4em;
  color: var(--gold-bright);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #b9c6dd;
  text-align: center;
  padding: 2.2rem 1.25rem 2.8rem;
  border-top: 3px solid var(--gold);
}
.footer-values {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  font-size: 1rem;
}
.footer-line {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.footer-thanks {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 1rem;
  color: #e8edf6;
  font-size: 1.05rem;
}
