:root {
  --navy: #0e1830;
  --navy-2: #172447;
  --gold: #e8b53d;
  --aqua: #62d4d2;
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #141a26;
  --muted: #5d6576;
  --line: #e2dfd7;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 70px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  background: rgba(14, 24, 48, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
.mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: .95rem;
}
.links { display: flex; gap: 22px; font-size: .95rem; font-weight: 500; }
.links a { opacity: .85; transition: opacity .2s; }
.links a:hover { opacity: 1; color: var(--gold); }

/* Hero */
.hero { position: relative; height: min(92vh, 820px); min-height: 520px; overflow: hidden; color: #fff; background: var(--navy); }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,24,48,.35) 0%, rgba(14,24,48,.15) 40%, rgba(14,24,48,.92) 100%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 70px; }
.eyebrow { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(3.4rem, 13vw, 8.5rem); font-weight: 700; }
.hero-caption { margin: 12px 0 26px; font-size: clamp(1rem, 2.4vw, 1.2rem); opacity: .9; min-height: 1.6em; transition: opacity .4s; }
.btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 600; padding: 13px 26px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,181,61,.35); }
.hero-dots { position: absolute; right: 20px; bottom: 30px; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots button.on { background: var(--gold); }

/* Stats */
.stats { background: var(--navy); color: #fff; border-top: 3px solid var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 12px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: Oswald, sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; color: var(--gold); line-height: 1.1; }
.stat span { font-size: .85rem; opacity: .75; text-transform: uppercase; letter-spacing: .1em; }

/* About + featured */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.about-text p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy); color: #fff; }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feat:hover img { transform: scale(1.04); }
.feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,24,48,.9)); }
.feat-info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.feat-num { font-family: Oswald, sans-serif; font-size: 3rem; line-height: 1; color: var(--gold); opacity: .9; }
.feat-name { font-family: Oswald, sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.feat-tag { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--aqua); }

/* Squad */
.squad { background: #fff; padding: 90px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: .88rem; font-weight: 500;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: all .2s;
}
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters button .n { opacity: .55; margin-left: 4px; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.player {
  display: flex; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.player:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(14,24,48,.08); border-color: #d2cdc1; }
.avatar {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--navy); color: var(--gold);
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 1.15rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.p-body { min-width: 0; }
.p-name { font-weight: 600; line-height: 1.3; }
.p-name .num { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: 4px; }
.p-role { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.p-style { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.badge { display: inline-block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--navy); margin-left: 6px; vertical-align: 2px; }
.r-batter { color: #138a88; }
.r-bowler { color: #c2412d; }
.r-all-rounder { color: #a3367a; }
.r-wicketkeeper { color: #2f4fb8; }
.r-player { color: var(--muted); }

/* Honours */
.honours { padding-top: 90px; padding-bottom: 90px; }
.honours h2 { margin-bottom: 30px; }
.honours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.honour { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; background: var(--navy); }
.honour img { width: 100%; height: 100%; object-fit: cover; }
.honour::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14,24,48,.92)); }
.honour div { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.honour .trophy { font-size: 1.4rem; }
.honour h3 { font-size: 1.6rem; color: var(--gold); margin-top: 4px; }
.honour p { font-size: .95rem; opacity: .9; }

/* Gallery carousel */
.gallery { background: var(--navy); color: #fff; padding: 90px 0; }
.carousel-btns { display: flex; gap: 10px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.1rem;
  transition: background .2s, color .2s;
}
.round:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(20px, calc((100vw - 1120px) / 2)) 10px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto; height: clamp(300px, 52vh, 480px); scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--navy-2);
  border: 0; padding: 0;
}
.slide img { height: 100%; width: auto; transition: transform .5s; }
.slide:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,12,24,.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* Footer */
.footer { background: #0a1124; color: rgba(255,255,255,.7); padding: 34px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: #fff; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
  .honours-grid { grid-template-columns: 1fr; }
  .honour { aspect-ratio: 4 / 3; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .squad, .gallery { padding: 64px 0; }
  .honours { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 520px) {
  .links { gap: 14px; font-size: .88rem; }
  .brand > span:last-child { display: none; }
  .hero-copy { bottom: 60px; }
  .squad-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transition: opacity .3s; transform: none; }
}
