:root{
  --bg:#061018;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --line:rgba(255,255,255,.18);
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --r:18px;
  --r2:26px;
  --max:1100px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:radial-gradient(1200px 700px at 15% 0%, #113046 0%, var(--bg) 55%) fixed;
  line-height:1.55;
}
a{color:inherit}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:.95em}
.skip-link{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{left:12px; top:12px; width:auto; height:auto; padding:10px 12px; background:#000; border-radius:12px; z-index:999}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  background:linear-gradient(to bottom, rgba(6,16,24,.85), rgba(6,16,24,.45));
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{display:flex; flex-direction:column; gap:2px; min-width:220px}
.brand span{font-size:13px; color:var(--muted)}
.nav-links{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.chip{
  display:inline-flex; align-items:center;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-size:14px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.chip:hover{transform:translateY(-1px); background:rgba(255,255,255,.10); border-color:rgba(125,211,252,.45)}

.hero{position:relative; padding:58px 18px 34px; overflow:hidden}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(6,16,24,.02) 0%, rgba(6,16,24,.30) 72%),
    radial-gradient(900px 420px at 20% 10%, rgba(125,211,252,.22) 0%, rgba(0,0,0,0) 60%),
    url("../images/base.jpg") center/cover no-repeat;
  filter:saturate(1.12) contrast(1.02) brightness(1.22);
  transform:scale(1.02);
}
.hero-inner{
  position:relative;
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width:900px){ .hero-inner{grid-template-columns:1fr} }

.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border-radius:var(--r2);
  box-shadow:var(--shadow);
}
.hero-card{padding: 24px 26px 20px; background: rgba(6,16,24,.58); border-color: rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px)}
.kicker{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(125,211,252,.35);
  background:rgba(125,211,252,.12);
  font-size:13px;
  width:fit-content;
}
h1{margin:12px 0 8px; font-size:clamp(28px,4.2vw,44px); line-height:1.1; letter-spacing:-.4px}
.lead{margin:0 0 14px; color:var(--muted); font-size:16px; max-width:none; width:100%;}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  text-decoration:none;
  background:rgba(255,255,255,.08);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
  font-weight:700;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.12); border-color:rgba(125,211,252,.45)}
.btn.primary{
  background:linear-gradient(135deg, rgba(125,211,252,.28), rgba(167,243,208,.20));
  border-color:rgba(125,211,252,.55);
}
.meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.pill{font-size:13px; padding:7px 10px; border:1px solid var(--line); background:rgba(255,255,255,.06); border-radius:999px}
.side-card{padding:18px; display:flex; flex-direction:column; justify-content:space-between; gap:12px}
.side-card h2{margin:0; font-size:18px; letter-spacing:-.2px}
.side-card p{margin:8px 0 0; color:var(--muted); font-size:14px}
.small-list{margin:8px 0 0; padding-left:18px; color:rgba(255,255,255,.82); font-size:14px}
.small-list li{margin:6px 0}
.hint{margin:0; font-size:13px; color:rgba(255,255,255,.70)}

.section{padding:34px 18px}
.section-inner{max-width:var(--max); margin:0 auto}
.section-title{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px}
.section-title h2{margin:0; font-size:22px; letter-spacing:-.2px}
.section-title p{margin:0; color:var(--muted); font-size:14px}

.history{border-radius:var(--r2); border:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)); box-shadow:var(--shadow); overflow:hidden}
.history-top{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line)}
.caption{font-weight:700; font-size:14px}
.controls{display:flex; gap:8px; align-items:center}
.icon-btn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
  font-size:20px;
  color:rgba(255,255,255,.88);
}
.icon-btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.12); border-color:rgba(125,211,252,.45)}

.carousel{position:relative; aspect-ratio:16/10; max-height:560px; background:rgba(0,0,0,.20)}
@media (max-width:720px){ .carousel{aspect-ratio:4/3} }

.track{width:100%; overscroll-behavior-x: contain; 
  display:flex; height:100%;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.slide{scroll-snap-align:center; position:relative; flex:0 0 100%; display:flex; align-items:center; justify-content:center; padding:0}
.slide img{width:100%; height:100%; object-fit:contain; object-position:center center; display:block; max-width:100%; max-height:100%}
.dots{display:flex; gap:8px; flex-wrap:wrap; padding:12px 14px; border-top:1px solid var(--line); justify-content:center}
.dot{
  width:10px; height:10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);
  cursor:pointer;
}
.dot[aria-current="true"]{background:rgba(125,211,252,.55); border-color:rgba(125,211,252,.75); transform:scale(1.15)}

.grid{display:grid; grid-template-columns:1fr 1fr; gap:16px}
@media (max-width:900px){ .grid{grid-template-columns:1fr} }
.info-card{padding:18px}
.info-card h3{margin:0 0 8px; font-size:16px}
.info-card p{margin:0; color:var(--muted); font-size:14px}

.footer{padding:28px 18px 40px; color:rgba(255,255,255,.70); border-top:1px solid rgba(255,255,255,.10)}
.footer-inner{max-width:var(--max); margin:0 auto; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:13px}


/* Hero layout when the side info card is removed */
.hero-inner.hero-single{grid-template-columns: 1fr; max-width: var(--max);}

/* When only one info card is present */
.grid.grid-single{grid-template-columns:1fr}

/* Second paragraph in hero blurb */
.lead.lead-2{margin-top:10px}


/* Utility spacing */
.mt-16{margin-top:16px}

/* Improve readability on photography */
.hero-card h1, .hero-card p{ text-shadow: 0 2px 14px rgba(0,0,0,.45); }

.lead{font-size: 16.5px; line-height: 1.65;}

/* Hero background visibility tweak */
.hero::before{
  background:
    linear-gradient(180deg, rgba(6,16,24,.015) 0%, rgba(6,16,24,.20) 65%),
    radial-gradient(900px 420px at 20% 10%, rgba(125,211,252,.22) 0%, rgba(0,0,0,0) 60%),
    url("../images/base.jpg") center/cover no-repeat;
  filter:saturate(1.18) contrast(1.01) brightness(1.26);
}

/* Ensure top navigation buttons have centered label */
.chip{
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.chip span{display:inline-block; line-height: 1.1}

/* Stronger hero background visibility (override) */
.hero::before{
  background:
    linear-gradient(180deg, rgba(6,16,24,.015) 0%, rgba(6,16,24,.20) 65%),
    radial-gradient(900px 420px at 20% 10%, rgba(125,211,252,.16) 0%, rgba(0,0,0,0) 60%),
    url("../images/base.jpg") center/cover no-repeat;
  filter:saturate(1.20) contrast(1.00) brightness(1.28);
}

/* Section with photo backdrop (appears directly beneath hero) */
.section-photo{
  position: relative;
  overflow: hidden;
  padding-top: 54px;
  padding-bottom: 64px;
}
.section-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1000px 520px at 20% 10%, rgba(125,211,252,.14) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(6,16,24,.18) 0%, rgba(6,16,24,.68) 70%),
    url("assets/images/Photo0_2025.png") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.02) brightness(1.02);
  transform: scale(1.01);
}
.section-photo .section-inner{
  position: relative;
}
.section-photo .section-title{
  margin-bottom: 16px;
}
.section-photo .history{
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 1000px){
  .section-photo .history{max-width: 100%;}
}


/* Bunny slide: nudge image down slightly so the top is fully visible */
.slide img[src$="bunny.jpg"]{ object-position: center 60%; }


/* Slide-specific framing tweaks */
.slide img[src$="bunny.jpg"]{ object-position: center 78%; } /* lower more */
.slide img[src$="Photo3.jpg"]{ object-position: center 22%; } /* show more of the top of the 21 June 1962 clipping */
