/* ==========================================================
   B.I.T.S Cricket Club — styles
   Brand tokens come from the club logo (forest green + sunburst gold)
   ========================================================== */
:root {
  --green-900: #06331b;
  --green-800: #0a4626;
  --green-700: #0d5c31;   /* primary brand green */
  --green-600: #13753f;
  --gold-500: #f7b71d;    /* primary CTA gold */
  --gold-400: #ffc940;
  --orange-500: #f08c00;
  --cream: #fff8e6;
  --ink: #14201a;
  --ink-muted: #4a5a51;
  --line: #e3e8e4;
  --surface: #ffffff;
  --surface-tint: #f5f8f4;

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(6, 51, 27, .10);
  --shadow-lg: 0 18px 48px rgba(6, 51, 27, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold-500); color: var(--green-900);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 10px 22px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.btn--gold { background: var(--gold-500); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-400); }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-600); }
.btn--outline { border-color: #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--green-900); }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-700); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-800); color: #fff; font-size: .95rem; }
.topbar__inner {
  max-width: none; display: flex; justify-content: flex-end; align-items: stretch;
  min-height: 48px;
}
.topbar__feature {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 var(--gutter); background: var(--green-600);
  text-decoration: none; font-weight: 500;
  transition: background-color .2s var(--ease);
}
.topbar__feature:hover { background: var(--green-700); }
.topbar__feature svg { transition: transform .2s var(--ease); }
.topbar__feature:hover svg { transform: translateX(3px); }
.topbar__links { display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter); }
.topbar__links a {
  text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease);
}
.topbar__links a:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(6,51,27,.06); }
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand__name, .brand__sub { white-space: nowrap; }
.brand__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .02em; color: var(--green-700); line-height: 1; }
.brand__sub { font-size: .78rem; color: var(--ink-muted); font-weight: 500; line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--green-800); font-weight: 500;
  padding: 10px 11px; border-radius: var(--radius-sm); position: relative; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:not(.btn):hover { background: var(--surface-tint); }
.nav a.is-active { color: var(--green-700); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}
.nav__cta { margin-left: 12px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent;
  border-radius: var(--radius-sm); padding: 12px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 8px var(--gutter) 0; max-width: 1840px; margin: 0 auto; }
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  min-height: clamp(520px, 72vh, 720px);
  display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(6,51,27,.94) 0%, rgba(10,70,38,.82) 45%, rgba(13,92,49,.35) 100%),
    var(--hero-photo, none) center / cover no-repeat,
    radial-gradient(circle at 78% 50%, var(--green-600), var(--green-900) 70%);
  color: #fff;
}
/* With a photo: hide the big logo and soften the rays so the photo shows */
.hero--photo .hero__logo { display: none; }
.hero--photo .hero__rays { opacity: .06; }
.hero--photo .hero__card {
  background-image:
    linear-gradient(100deg, rgba(6,51,27,.92) 0%, rgba(10,70,38,.72) 42%, rgba(13,92,49,.15) 100%),
    var(--hero-photo),
    radial-gradient(circle at 78% 50%, var(--green-600), var(--green-900) 70%);
  background-position: center, 70% 60%, center;
}
/* Sunburst rays echoing the club logo */
.hero__rays {
  position: absolute; inset: -40%; z-index: -1; opacity: .16;
  background: repeating-conic-gradient(from 0deg at 72% 50%, var(--gold-500) 0deg 6deg, transparent 6deg 15deg);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__content { position: relative; z-index: 2; padding: clamp(40px, 7vw, 110px); max-width: 760px; }
.hero__eyebrow { font-weight: 700; color: var(--gold-400); letter-spacing: .04em; margin-bottom: 14px; }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 7rem); line-height: .92; letter-spacing: .01em;
  text-transform: uppercase; margin-bottom: 22px; text-wrap: balance;
}
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 58ch; color: rgba(255,255,255,.92); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__logo {
  position: absolute; z-index: 1; right: 8%; top: 50%; transform: translateY(-55%);
  width: clamp(260px, 30vw, 420px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(247,183,29,.18), var(--shadow-lg);
}
.hero__badge {
  position: absolute; z-index: 3; right: clamp(16px, 2.5vw, 36px); bottom: clamp(16px, 2.5vw, 36px);
  display: flex; align-items: center; gap: 14px;
  background: var(--cream); color: var(--green-900); text-decoration: none;
  padding: 10px 26px 10px 10px; border-radius: 999px;
  box-shadow: var(--shadow-lg); border: 3px solid var(--gold-500);
  transition: transform .25s var(--ease);
}
.hero__badge:hover { transform: translateY(-3px); }
.hero__badge img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; transform: scale(1.02); }
.hero__badge small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.hero__badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--green-700); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--surface-tint); }
.section--green { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.eyebrow { font-weight: 700; color: var(--orange-500); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: 10px; }
.eyebrow--gold { color: var(--gold-400); }
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--green-700); letter-spacing: .01em; line-height: .95;
  margin-bottom: 24px; text-wrap: balance;
}
.section-title--light { color: #fff; }
.subhead { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--green-700); letter-spacing: .02em; }
.subhead--light { color: #fff; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text p { color: var(--ink-muted); font-size: 1.08rem; max-width: 62ch; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stats li {
  background: var(--surface-tint); border-radius: var(--radius); padding: 26px 22px;
  border-top: 4px solid var(--gold-500);
}
.stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--green-700); font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-muted); font-weight: 500; font-size: .95rem; }

.committee { margin-top: clamp(48px, 7vw, 80px); }
.committee__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.person__avatar {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--green-700); color: var(--gold-400); font-family: var(--font-display); font-size: 1.8rem;
}
.person__photo { object-fit: cover; object-position: center 30%; box-shadow: 0 0 0 3px var(--gold-500); }
.person strong { color: var(--ink); }
.person > span:not(.person__avatar) { color: var(--ink-muted); font-size: .92rem; }

/* How We Started */
.section--cream { background: var(--cream); }
.history__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.history__text > p { color: var(--ink-muted); font-size: 1.08rem; max-width: 58ch; }
.history__ask { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--gold-500); background: #fff; border-radius: var(--radius-sm); font-size: 1rem !important; }
.history__ask a { color: var(--green-700); font-weight: 700; }
.history__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.history__photos li { background: #fff; padding: 10px 10px 8px; border-radius: 4px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.history__photos li:nth-child(1) { grid-column: 1 / -1; transform: rotate(-1deg); }
.history__photos li:nth-child(2) { transform: rotate(1.5deg); }
.history__photos li:nth-child(3) { transform: rotate(-1.5deg); }
.history__photos li:hover { transform: rotate(0) scale(1.02); }
.history__photos button { display: block; width: 100%; padding: 0; border: 0; background: #ddd; }
.history__photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.history__main img { aspect-ratio: 16 / 10; object-position: center 40%; }
.history__photos span { display: block; margin-top: 6px; text-align: center; font-size: .85rem; font-weight: 500; color: var(--ink-muted); }

/* Fixtures */
.fixtures__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.fixtures__lead { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 56ch; }
.fixtures__tips { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.fixtures__tips li { position: relative; padding-left: 30px; font-weight: 500; }
.fixtures__tips li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-500); box-shadow: inset 0 0 0 5px var(--green-800); border: 2px solid var(--gold-500); }
.fixtures__card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); text-align: center; display: grid; justify-items: center; gap: 6px; box-shadow: var(--shadow-lg); }
.fixtures__card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.fixtures__card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; color: var(--green-700); margin: 0; }
.fixtures__card p { color: var(--ink-muted); max-width: 36ch; }
.fixtures__card .btn { width: 100%; white-space: normal; text-align: center; }
.fixtures__register { margin-top: 10px; color: var(--green-700); font-weight: 700; padding: 8px; }

/* Featured news story */
.feature-story {
  display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 24px;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.feature-story__main { border: 0; padding: 0; background: var(--green-900); display: block; width: 100%; height: 100%; min-height: 320px; overflow: hidden; }
.feature-story__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.feature-story__main:hover img { transform: scale(1.04); }
.feature-story__body { padding: clamp(22px, 3.5vw, 40px); }
.feature-story__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--green-700); line-height: 1; margin: 4px 0 14px; }
.feature-story__body p { color: var(--ink-muted); }
.feature-story__thanks { padding: 12px 16px; border-left: 4px solid var(--gold-500); background: var(--cream); border-radius: var(--radius-sm); }
.feature-story__thanks a { color: var(--green-700); font-weight: 700; }
.feature-story__thumbs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.feature-story__thumbs button { border: 0; padding: 0; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-900); }
.feature-story__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.feature-story__thumbs button:hover img { transform: scale(1.06); }

.feature-story--raffle { border-top: 6px solid #eb0a1e; }
.feature-story--raffle .feature-story__main img { object-position: center 15%; }
.raffle-facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.raffle-facts li { padding: 10px 14px; background: var(--surface-tint); border-radius: var(--radius-sm); color: var(--ink-muted); }
.raffle-facts strong { color: var(--green-800); }
.raffle-soon { font-weight: 700; color: var(--green-700) !important; padding: 12px 16px; border: 2px dashed var(--gold-500); border-radius: var(--radius-sm); display: inline-block; }
.raffle-soon[hidden], .btn[hidden] { display: none; }
.raffle-terms { margin-top: 16px; font-size: .85rem; }
.raffle-terms a { color: var(--green-700); font-weight: 700; overflow-wrap: anywhere; }

/* News card links */
.card--news h3 a { text-decoration: none; }
.card--news h3 a:hover { text-decoration: underline; }
.card--news .card__media { display: block; }

/* Industries Cricket */
.industries__intro { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; margin-bottom: 36px; }
.industries__logo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--gold-500), var(--shadow-lg); }
.industries__lead { color: var(--ink-muted); font-size: 1.08rem; max-width: 64ch; }
.industries__actions { margin-top: 20px; }
.industries .subhead { margin: 8px 0 18px; }
.industries .supporters { margin-top: 40px; }
/* Industries: champions */
.champs {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 36px); margin-bottom: 44px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.champs::after { content: ""; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%; opacity: .12; pointer-events: none;
  background: repeating-conic-gradient(var(--gold-500) 0deg 6deg, transparent 6deg 15deg); }
.champs__poster, .santos__poster, .bash__poster, .awards button, .team-gallery button { border: 0; padding: 0; background: transparent; display: block; width: 100%; }
.champs__poster img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 4px var(--gold-500), var(--shadow-lg); transform: rotate(-2deg); transition: transform .3s var(--ease); }
.champs__poster:hover img { transform: rotate(0) scale(1.02); }
.champs__text { position: relative; z-index: 1; }
.champs__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--gold-500); color: var(--green-900); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.champs__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; margin: 16px 0 14px; color: #fff; }
.champs__text p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 52ch; margin: 0; }

/* Industries: Santos */
.santos {
  display: grid; grid-template-columns: 1fr 220px; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-top: 6px solid #006eff;
  border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 36px); margin-bottom: 28px; box-shadow: var(--shadow);
}
.santos .major__label { color: #000080; }
.santos__logo { display: block; margin: 14px 0 18px; }
.santos .major__label { display: block; }
.santos__logo-link { display: block; width: fit-content; border-radius: var(--radius-sm); transition: opacity .2s var(--ease); }
.santos__logo-link:hover { opacity: .85; }
.santos__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); background: #000080; color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s var(--ease); }
.santos__link:hover { background: #006eff; }
.santos__logo img { width: 100%; max-width: 440px; height: auto; }
.santos__text p { color: var(--ink-muted); font-size: 1.05rem; max-width: 60ch; margin: 0; }
.santos__poster img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.santos__poster:hover img { transform: scale(1.03); }

/* Industries: awards */
.awards { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.awards li { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.awards li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.awards img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.awards strong { display: block; padding: 12px 14px 0; color: var(--green-800); font-size: 1.05rem; }
.awards span { display: block; padding: 2px 14px 14px; color: var(--ink-muted); font-size: .88rem; }

/* Industries: team gallery */
.team-gallery { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team-gallery li { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-900); }
.team-gallery__wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto !important; }
.team-gallery button { height: 100%; }
.team-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.team-gallery button:hover img { transform: scale(1.05); }

/* Industries: Bash for Cash */
.bash { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.bash__poster img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.bash__title { margin: 18px 0 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }

.major.major--light { background: var(--green-800); border-color: transparent; color: #fff; margin-bottom: 40px; }
.chips--dark li { border-color: #c7d1ca; background: #fff; color: var(--green-800); padding: 0; }
.chips--dark a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; color: inherit; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.chips--dark a::after { content: "↗"; margin-left: 6px; font-size: .8em; opacity: .6; }
.chips--dark a:hover { background: var(--green-700); color: #fff; }
.sponsors__note { margin: 24px 0 0; color: rgba(255,255,255,.85); }
.sponsors__note a { color: var(--gold-400); font-weight: 700; }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { border: 0; padding: 0; background: var(--green-900); aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; }
.card__body h3 { font-size: 1.25rem; color: var(--green-800); }
.card__body p { color: var(--ink-muted); margin: 0; }
.tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--cream); color: #8a5300; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}

/* Solar */
.solar { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.solar { align-items: start; }
.solar__media { margin: 0; display: grid; gap: 20px; }
.solar__photo { margin: 0; }
.solar__photo--main img { aspect-ratio: 4 / 5 !important; }
.solar__media button { display: block; width: 100%; border: 0; padding: 0; background: var(--surface-tint); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.solar__media button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px var(--gold-500); pointer-events: none; }
.solar__media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .4s var(--ease); }
.solar__media button:hover img { transform: scale(1.03); }
.solar__media figcaption { margin-top: 10px; color: var(--ink-muted); font-size: .9rem; text-align: center; }
.solar__text > p { color: var(--ink-muted); font-size: 1.08rem; max-width: 60ch; }
.solar__stats { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.solar__stats li { padding: 16px 18px; border-radius: var(--radius); background: var(--cream); border-left: 4px solid var(--gold-500); }
.solar__stats--six { display: flex; flex-wrap: wrap; justify-content: center; }
.solar__stats--six > li { flex: 0 0 calc((100% - 24px) / 3); }
.solar__stats strong small { font-family: var(--font-body); font-weight: 700; font-size: .5em; margin-left: 3px; letter-spacing: 0; }
.solar__stats strong { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--green-700); }
.solar__stats span { color: var(--ink-muted); font-size: .92rem; font-weight: 500; }
.solar__thanks { padding: 18px 20px; border-radius: var(--radius); background: var(--green-800); color: #fff; }
.solar__thanks p { margin: 0; }
.solar__thanks a { color: var(--gold-400); font-weight: 700; }
.solar__partners-title { margin: 24px 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }
.solar__partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.solar__partners a {
  display: grid; grid-template-rows: 80px auto; place-items: center; gap: 8px; min-height: 140px; height: 100%; padding: 14px 10px 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.solar__partners a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.solar__partners a { overflow: hidden; }
.solar__partners img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.solar__partners span { font-size: .78rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
#gallery .container { container-type: inline-size; }
.gallery { grid-auto-flow: dense; grid-auto-rows: calc((100cqw - 42px) / 4); }
.gallery li { aspect-ratio: auto !important; }
.gallery__feature { grid-column: span 2; grid-row: span 2; }
.gallery .gallery__wide { grid-column: span 2; }
.gallery li { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.gallery button { border: 0; padding: 0; width: 100%; height: 100%; background: var(--green-900); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery__placeholder {
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(45deg, var(--surface-tint) 0 14px, #edf2ec 14px 28px);
  border: 2px dashed #c9d4cb; color: var(--ink-muted); font-weight: 500;
}

/* Sponsors */
.section--green::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; opacity: .07; pointer-events: none;
  background: repeating-conic-gradient(var(--gold-500) 0deg 6deg, transparent 6deg 15deg); border-radius: 50%;
}
.section--green .container { position: relative; }
.major {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 32px 24px; margin-bottom: 28px;
}
.major__label { color: var(--gold-400); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }
.major__name { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: .02em; }
.major p { margin: 6px 0 0; color: rgba(255,255,255,.82); }

.sponsors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sponsors > li { flex: 0 0 calc((100% - 48px) / 4); }
.sponsors li a, .sponsors__tile {
  display: grid; place-items: center; height: 150px; padding: 20px;
  background: #fff; border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sponsors li a:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.sponsors img { width: auto; height: auto; max-width: 100%; max-height: 110px; object-fit: contain; }
.sponsors__dark a, .sponsors__dark .sponsors__tile { background: var(--green-900) !important; border: 1px solid rgba(255,255,255,.15); }
.sponsors__black a, .sponsors__black .sponsors__tile { background: #000 !important; border: 1px solid rgba(255,255,255,.15); }
.sponsors li a, .sponsors__tile { overflow: hidden; }
.sponsors__crop { transform: scale(1.5); } /* logos with lots of white space around them */
.sponsors__cover a { padding: 0 !important; position: relative; background: #021d14 !important; border: 1px solid rgba(255,255,255,.15); }
.sponsors__cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none !important; object-fit: cover; object-position: center 50%; transform: scale(1.1); }
.sponsors__photo .sponsors__tile { padding: 0; position: relative; overflow: hidden; }
.sponsors__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none !important; object-fit: cover; object-position: center 20%; }
.sponsors__photo span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-weight: 700; text-align: center;
}

.supporters { margin-top: 44px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-weight: 500; }

.sponsor-cta {
  margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--gold-500); color: var(--green-900); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.sponsor-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; margin-bottom: 6px; }
.sponsor-cta p { margin: 0; max-width: 60ch; }
.sponsor-cta .btn--gold { background: var(--green-800); color: #fff; }
.sponsor-cta .btn--gold:hover { background: var(--green-900); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.details { margin: 0; display: grid; gap: 18px; }
.details div { padding-left: 16px; border-left: 3px solid var(--gold-500); }
.details dt { font-weight: 700; color: var(--green-800); }
.details dd { margin: 0; color: var(--ink-muted); }

.form { background: var(--surface-tint); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.form h3 { font-size: 1.4rem; color: var(--green-800); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field label span { color: #b3261e; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff; border: 1.5px solid #c7d1ca; border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(13,92,49,.18); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field__error { margin: 6px 0 0; color: #b3261e; font-size: .9rem; min-height: 0; }
.field__error:empty { display: none; }
.form__status { margin: 14px 0 0; font-weight: 500; color: var(--green-700); }
.form__status.is-error { color: #b3261e; }
.form__status.is-success { padding: 12px 14px; background: #e6f4ea; border-radius: var(--radius-sm); }
.contact-cta {
  background: var(--surface-tint); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.contact-cta__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0866ff; box-shadow: var(--shadow); margin-bottom: 10px; }
.contact-cta h3 { font-size: 1.5rem; color: var(--green-800); margin: 0; }
.contact-cta > p { color: var(--ink-muted); max-width: 46ch; margin: 0 0 14px; }
.btn--messenger { background: #0866ff; color: #fff; }
.btn--messenger:hover { background: #0652cc; }
.contact-cta__alt { margin: 14px 0 0 !important; font-size: .95rem; }
.contact-cta__alt a { color: var(--green-700); font-weight: 700; }
.solar-cta {
  margin-top: 28px; padding: clamp(20px, 3vw, 28px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold-500); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.solar-cta h3 { font-size: 1.3rem; color: var(--green-800); margin-bottom: 4px; }
.solar-cta p { margin: 0; color: var(--ink-muted); max-width: 42ch; }
.form__intro { color: var(--ink-muted); margin-bottom: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 720px) { .form__row { grid-template-columns: 1fr; } }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Governance */
.governance__lead { color: var(--ink-muted); font-size: 1.08rem; max-width: 64ch; margin-bottom: 28px; }
.governance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gov-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.gov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--gold-500); }
.gov-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--green-700); margin-bottom: 8px; }
.gov-card__tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8a5300; }
.gov-card strong { font-size: 1.2rem; color: var(--green-800); line-height: 1.25; }
.gov-card__text { color: var(--ink-muted); flex: 1; }
.gov-card__cta { margin-top: 10px; font-weight: 700; color: var(--green-700); overflow-wrap: anywhere; }
@media (max-width: 960px) { .governance { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--green-900); color: rgba(255,255,255,.85); padding: 48px 0 32px; }
.footer__inner { display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.footer__brand strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: #fff; line-height: 1; }
.footer__brand span { font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer__nav a { text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); }
.footer__nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.details a { color: var(--green-700); font-weight: 700; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-tint); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer__contact { grid-column: 1 / -1; margin: 0; }
.footer__contact a { color: var(--gold-400); font-weight: 700; }
.footer__copy { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 22, 12, .88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox__caption { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox__close {
  position: absolute; top: -8px; right: -8px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--gold-500); color: var(--green-900); font-size: 1.8rem; line-height: 1; z-index: 2;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__logo { opacity: .25; right: -40px; }
  .sponsors > li { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 1320px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(6,51,27,.12);
    transform-origin: top; transform: scaleY(.96); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
}

@media (max-width: 960px) {
  .about, .contact, .solar, .fixtures__inner, .history__inner, .feature-story { grid-template-columns: 1fr; }
  .feature-story__main { min-height: 0; aspect-ratio: 4 / 3; }
  .champs { grid-template-columns: 200px 1fr; }
  .awards { grid-template-columns: repeat(3, 1fr); }
  .santos { grid-template-columns: 1fr 160px; }
  .solar__media { max-width: 560px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .solar__photo--main img, .solar__photo img { aspect-ratio: 3 / 4 !important; }
  .solar__media figcaption { font-size: .8rem; }
  .news { grid-template-columns: 1fr 1fr; }
  .sponsor-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .topbar__feature { display: none; }
  .topbar__links { width: 100%; justify-content: center; gap: 0; padding: 0 8px; }
  .topbar__links a { padding: 12px 10px; font-size: .88rem; }
  .brand__name { font-size: 1.45rem; }
  .brand__sub { font-size: .7rem; white-space: normal; }
  .brand__logo { width: 48px; height: 48px; }
  .hero { padding: 8px 10px 0; }
  .hero__card { align-items: flex-start; min-height: 0; padding-bottom: 120px; }
  .hero__content { padding: 40px 22px 24px; }
  .hero__logo { width: 300px; top: auto; bottom: -60px; right: -80px; transform: none; opacity: .18; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badge { left: 16px; right: 16px; justify-content: flex-start; }
  .news { grid-template-columns: 1fr; }
  .industries__intro { grid-template-columns: 1fr; justify-items: start; }
  .industries__logo { width: 140px; height: 140px; }
  .champs { grid-template-columns: 1fr; text-align: left; }
  .champs__poster { max-width: 240px; margin: 0 auto; }
  .santos { grid-template-columns: 1fr; }
  .santos__poster { max-width: 200px; }
  .santos__logo img { max-width: 220px; }
  .awards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .awards strong { font-size: .95rem; padding: 10px 10px 0; }
  .awards span { font-size: .8rem; padding: 2px 10px 12px; }
  .team-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team-gallery__wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3 !important; }
  .bash { grid-template-columns: 1fr; }
  .bash__poster { max-width: 200px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-rows: calc((100cqw - 10px) / 2); }
  .sponsors li a, .sponsors__tile { height: 120px; padding: 14px; }
  .sponsors img { max-height: 90px; }
  .solar__partners { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .solar__stats--six > li { flex-basis: calc((100% - 12px) / 2); }
  .solar__partners a { min-height: 110px; grid-template-rows: 56px auto; padding: 10px 6px 8px; }
  .solar__partners img { max-height: 50px; }
  .solar__partners span { font-size: .7rem; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
