*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #1f3b6e;
  --navy-deep: #12264a;
  --gold: #f2b632;
  --saffron: #f7931e;
  --bronze: #9a6512;
  --cream: #fdf8ec;
  --sand: #f3e6c4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.quote {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
}

/* Top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.topbar.solid {
  padding: 0.6rem 2rem;
  background: rgba(18, 38, 74, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand svg {
  width: 26px;
  height: 32px;
  fill: var(--gold);
}

.links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.links a {
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s;
}

.links a:hover::after {
  right: 0;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 1443 / 962;
  min-height: 640px;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/sikh-centre-seattle.jpg") center 35% / cover no-repeat;
}

.flags {
  position: absolute;
  width: calc(1443px * var(--s, 1));
  height: calc(962px * var(--s, 1));
  pointer-events: none;
}

.flag {
  position: absolute;
  left: calc(var(--x) * var(--s) * 1px);
  top: calc(var(--y) * var(--s) * 1px);
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  background: no-repeat 0 0 / 100% 100%;
}

.flag canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 28, 58, 0.88) 0%, rgba(12, 28, 58, 0.55) 45%, rgba(12, 28, 58, 0.05) 75%),
    linear-gradient(0deg, rgba(12, 28, 58, 0.6), transparent 30%);
}

.hero-text {
  position: relative;
  max-width: 640px;
  margin-left: max(0px, calc((100vw - 1300px) / 2));
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.shine {
  background: linear-gradient(90deg, var(--gold), #fff3c4, var(--saffron), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.tagline {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.tagline i {
  color: var(--gold);
  font-style: normal;
  margin: 0 0.35rem;
}

.fateh {
  margin: 0;
  opacity: 0.9;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn.gold {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--navy-deep);
}

.btn.ghost {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn.navy {
  margin-top: 1.25rem;
  background: var(--navy);
  color: #fff;
}

.hero-note {
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 28px;
  height: 46px;
  margin-left: -14px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(242, 182, 50, 0.6);
  border-radius: 999px;
  background: rgba(12, 28, 58, 0.45);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.7);
  animation: pulse 2s infinite;
}

.links .give {
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
}

.links .give::after {
  display: none;
}

/* Campaign */
section.campaign {
  max-width: none;
  padding: 3rem 2rem;
  background: var(--navy-deep);
  color: #fff;
}

.campaign-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.campaign-inner > div:first-child {
  flex: 1 1 380px;
}

.campaign .eyebrow {
  color: var(--gold);
}

.goal {
  margin: 0 0 0.4rem;
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.goal b {
  color: var(--gold);
}

.campaign p {
  margin-top: 0;
}

.countdown {
  text-align: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

.countdown b {
  display: block;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}

.countdown span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.track span {
  padding: 0.85rem 1.75rem;
  white-space: nowrap;
}

.track span::after {
  content: "\2726";
  margin-left: 3.5rem;
  color: #fff;
}

/* Sections */
section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
  text-align: center;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 1rem;
}

/* Timeline */
.timeline,
.stats,
.pillars {
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.timeline {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding-top: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 4%;
  right: 4%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--navy));
}

.timeline li {
  position: relative;
  padding: 1rem 0.75rem;
  border-radius: 10px;
  transition: background 0.25s, transform 0.25s;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -2.05rem;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline li:hover {
  background: #fff;
  transform: translateY(-4px);
}

.timeline b {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--saffron);
}

/* Impact */
section.impact {
  max-width: none;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 182, 50, 0.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(247, 147, 30, 0.25), transparent 40%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.impact .eyebrow {
  color: var(--gold);
}

.stats {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats li {
  padding: 2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, background 0.25s;
}

.stats li:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}

.stats b {
  display: block;
  font-family: Georgia, serif;
  font-size: 3.6rem;
  line-height: 1.1;
  color: var(--gold);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  font-size: 1.9rem;
  background: rgba(255, 255, 255, 0.12);
}

.icon svg {
  width: 30px;
  height: 37px;
  fill: currentColor;
}

/* Pillars */
.pillars {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.pillars li {
  --c: var(--saffron);
  padding: 2rem 1.25rem;
  background: #fff;
  border-radius: 16px;
  border-bottom: 5px solid var(--c);
  box-shadow: 0 8px 24px rgba(31, 59, 110, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pillars li:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 18px 36px rgba(31, 59, 110, 0.16);
}

.pillars .icon {
  color: #fff;
  background: var(--c);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 45%, transparent);
}

.pillars b {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pillars .c1 { --c: #f7931e; }
.pillars .c2 { --c: #2f6fd6; }
.pillars .c3 { --c: #18a383; }
.pillars .c4 { --c: #e0475b; }
.pillars .c5 { --c: #8a5cd1; }

/* Phases */
section.coming {
  max-width: none;
  background: linear-gradient(180deg, #fff, var(--sand));
}

.coming > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.phases article {
  --c: var(--saffron);
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 59, 110, 0.1);
  transition: transform 0.25s;
}

.phases article:hover {
  transform: translateY(-6px);
}

.phases article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--c);
}

.phases .p1 { --c: linear-gradient(90deg, #f7931e, #f2b632); }
.phases .p2 { --c: linear-gradient(90deg, #18a383, #2f6fd6); }
.phases .p3 { --c: linear-gradient(90deg, #8a5cd1, #e0475b); }

.num {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  font-family: Georgia, serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(31, 59, 110, 0.07);
}

.phases h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.phases ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phases li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
}

.phases li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-weight: 700;
}

.note {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
}

/* Closing */
section.closing {
  max-width: none;
  overflow: hidden;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold), var(--saffron));
}

.big-khanda {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 444px;
  fill: rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
  animation: breathe 8s ease-in-out infinite;
}

.closing > :not(svg) {
  position: relative;
}

.closing .quote {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
  background: var(--navy-deep);
}

/* Motion */
.fade {
  opacity: 0;
  animation: fadeUp 0.9s ease-out var(--d, 0s) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out var(--d, 0s), transform 0.7s ease-out var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.pillars li.reveal.in:hover,
.stats li.reveal.in:hover,
.phases article.reveal.in:hover,
.timeline li.reveal.in:hover {
  transition-delay: 0s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}


@keyframes shine {
  to { background-position: 300% 0; }
}

@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(242, 182, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 182, 50, 0); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes breathe {
  50% { transform: translate(-50%, -50%) scale(1.08) rotate(3deg); }
}

@media (max-width: 760px) {
  .topbar,
  .topbar.solid {
    padding: 0.7rem 1rem;
    background: rgba(18, 38, 74, 0.96);
  }

  .links a:not(.give) {
    display: none;
  }

  /* Show the whole building on phones, with the text below it */
  .hero {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    padding: 3.4rem 0 0;
    background: #0c1c3a;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    aspect-ratio: 1443 / 962;
    background:
      linear-gradient(180deg, transparent 65%, #0c1c3a 100%),
      url("images/sikh-centre-seattle.jpg") center / cover no-repeat;
  }

  .hero-shade,
  .scroll-cue {
    display: none;
  }

  .hero-text {
    margin: 0;
    padding: 0.5rem 1.25rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .tagline {
    font-size: 1.2rem;
  }

  .buttons {
    margin-top: 1.5rem;
  }

  .buttons .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-note {
    position: static;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.7rem;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.sprite { position: absolute; }
