/* ASUI design system — political student movement / campus democracy */

:root {
  --ink: #07111f;
  --navy: #0b1f36;
  --navy-2: #143052;
  --crimson: #dc1834;
  --crimson-2: #b01228;
  --crimson-glow: rgba(220, 24, 52, 0.22);
  --gold: #c9a227;
  --gold-light: #e4c04a;
  --paper: #f6f2eb;
  --paper-2: #fffcf7;
  --sand: #e8e0d4;
  --muted: #5c6b7a;
  --line: rgba(11, 31, 54, 0.11);
  --line-strong: rgba(11, 31, 54, 0.22);
  --glass: rgba(246, 242, 235, 0.78);
  --shadow: 0 20px 56px rgba(7, 17, 31, 0.14);
  --shadow-sm: 0 6px 22px rgba(7, 17, 31, 0.07);
  --shadow-lg: 0 28px 72px rgba(7, 17, 31, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --max: 1140px;
  --font-display: "Syne", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(220, 24, 52, 0.06), transparent 58%),
    radial-gradient(800px 480px at 96% 2%, rgba(11, 31, 54, 0.09), transparent 52%),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; }

.container { width: min(var(--max), calc(100% - 2.25rem)); margin-inline: auto; }

/* Header / Nav */
.util-bar {
  background: var(--ink);
  color: rgba(246, 242, 235, 0.72);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 0.7rem; min-width: max-content; transition: opacity 0.2s; }
.brand:hover { opacity: 0.88; }

.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(to bottom, #111 0 13%, #fff 13% 74%, var(--crimson) 74% 87%, #1f7a3f 87% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), var(--shadow-sm);
}

/* Official ASUI flag beside brand wordmark */
.brand-flag {
  position: relative;
  width: 52px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(7, 17, 31, 0.18);
  transform-origin: left center;
  animation: flag-wave 2.8s ease-in-out infinite;
}
.brand-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes flag-wave {
  0%, 100% { transform: rotate(-1deg) skewY(0deg); }
  25% { transform: rotate(1.5deg) skewY(0.6deg); }
  50% { transform: rotate(-0.5deg) skewY(0deg); }
  75% { transform: rotate(1deg) skewY(-0.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-flag { animation: none; }
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--navy);
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  max-width: 15rem;
  line-height: 1.35;
  margin-top: 0.1rem;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.header-inner:has(.site-nav.open) .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-inner:has(.site-nav.open) .nav-toggle span:nth-child(2) { opacity: 0; }
.header-inner:has(.site-nav.open) .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav > a, .nav-dd-panel a {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}

.site-nav > a:hover, .site-nav > a.active, .nav-dd-panel a:hover {
  background: rgba(220, 24, 52, 0.09);
  color: var(--crimson-2);
}

.nav-dd {
  position: relative;
}
.nav-dd > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}
.nav-dd[open] > summary {
  background: rgba(220, 24, 52, 0.09);
  color: var(--crimson-2);
}
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 120;
}
.nav-dd-panel a {
  border-radius: 10px;
  white-space: nowrap;
}
.nav-cta { margin-left: 0.3rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.18rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-2));
  color: #fff;
  box-shadow: 0 8px 26px var(--crimson-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 32px rgba(220, 24, 52, 0.32); }

.btn-secondary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 20px rgba(11, 31, 54, 0.22);
}
.btn-secondary:hover { background: var(--navy-2); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn-ghost.dark {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
  backdrop-filter: none;
}
.btn-ghost.dark:hover { background: rgba(11, 31, 54, 0.05); color: var(--navy); }

.btn-lg { padding: 0.92rem 1.5rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(94vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.62) 42%, rgba(11, 31, 54, 0.28) 72%, rgba(11, 31, 54, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.78) 0%, transparent 48%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px; z-index: 0;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative; z-index: 1;
  padding: clamp(5rem, 13vh, 8.5rem) 0 4rem;
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 1px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  animation: rise 0.85s var(--ease) both;
}

.lede { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.hero .lede {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: rgba(246, 242, 235, 0.84);
  max-width: 36rem;
  margin-bottom: 1.85rem;
  animation: rise 0.85s var(--ease) 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
  animation: rise 0.85s var(--ease) 0.16s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 36rem;
  animation: rise 0.85s var(--ease) 0.24s both;
}

.stat {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat span { font-size: 0.78rem; color: rgba(246, 242, 235, 0.68); margin-top: 0.15rem; display: block; }

/* Page banner */
.page-banner {
  position: relative;
  min-height: 300px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.page-banner-media { position: absolute; inset: 0; z-index: -2; }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; }

.page-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7, 17, 31, 0.91) 0%, rgba(11, 31, 54, 0.55) 55%, rgba(11, 31, 54, 0.35) 100%);
}

.page-banner .container { padding: 4.75rem 0 2.75rem; position: relative; z-index: 1; }

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.65rem;
}

.page-banner p { color: rgba(246, 242, 235, 0.8); max-width: 40rem; font-size: 1.02rem; }

/* Sections */
.section { padding: clamp(3.75rem, 7.5vw, 5.75rem) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-head .lede, .section-head p { color: var(--muted); max-width: 32rem; }

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
  background: var(--navy);
}

.split-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0.45rem 0 1rem;
}

.split-copy p { color: var(--muted); margin-bottom: 0.85rem; }
.split-copy p:last-of-type { margin-bottom: 1.25rem; }

/* Bento / grids / cards */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bento .card:first-child { grid-column: span 2; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.28s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(220, 24, 52, 0.15); }

.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 1.25rem 1.35rem 1.45rem; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.28;
  color: var(--navy);
}

.card-body p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.meta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.story-card .card-body h3 { font-size: 1.18rem; }

.date-badge, .event-card .date-badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

/* Portal */
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.portal-tile {
  display: block;
  padding: 1.45rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
  min-height: 155px;
  position: relative;
  overflow: hidden;
}

.portal-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--crimson), var(--gold));
  opacity: 0;
  transition: opacity 0.22s;
}

.portal-tile:hover { transform: translateY(-4px); border-color: rgba(220, 24, 52, 0.28); box-shadow: var(--shadow); }
.portal-tile:hover::before { opacity: 1; }

.kicker, .portal-tile .kicker {
  color: var(--crimson);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portal-tile h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.portal-tile p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* CTA band */
.cta-band {
  margin: 0 0 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  color: #fff;
  isolation: isolate;
  min-height: 290px;
  display: grid;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(7, 17, 31, 0.93) 0%, rgba(11, 31, 54, 0.72) 45%, rgba(220, 24, 52, 0.48) 100%);
}

.cta-band .container { padding: 3.25rem 0; position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  max-width: 20ch;
}

.cta-band p { color: rgba(246, 242, 235, 0.84); max-width: 38rem; margin-bottom: 1.35rem; font-size: 1.02rem; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 1rem; }

.person-card {
  text-align: center;
  padding: 1.55rem 1rem 1.65rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}

.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.person-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.person-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 0.95rem;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid rgba(220, 24, 52, 0.3);
}

.person-avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-role { color: var(--crimson); font-weight: 600; font-size: 0.86rem; margin-top: 0.3rem; }

/* Forms */
.form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem;
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.38rem; }
.field.full, .full { grid-column: 1 / -1; }
.label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder, .textarea::placeholder { color: rgba(92, 107, 122, 0.65); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(220, 24, 52, 0.12);
}

.textarea { min-height: 112px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b7a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(220, 24, 52, 0.07);
  color: var(--crimson-2);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(220, 24, 52, 0.16);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pill.active, .pill.active:hover {
  background: var(--crimson);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--crimson-glow);
}

.pill:hover { transform: translateY(-1px); }

/* Alerts */
.alert { padding: 0.88rem 1.05rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.93rem; line-height: 1.5; }
.alert-ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Donate */
.donate-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.45rem 0; }

.donate-method {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 31, 54, 0.035);
  border: 1px dashed var(--line-strong);
}

.donate-method strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.donate-method p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.35rem; }

.donate-method code {
  display: inline-block;
  font-family: "DM Sans", ui-monospace, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--crimson-2);
  background: rgba(220, 24, 52, 0.06);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  word-break: break-all;
}

/* Membership card */
.membership-card {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow);
}

.membership-card .stripe {
  height: 14px;
  background: linear-gradient(90deg, #111 13%, #fff 13% 74%, var(--crimson) 74% 87%, #1f7a3f 87%);
}

.membership-card .body { padding: 1.55rem 1.65rem; text-align: center; }

.membership-card .no {
  color: var(--crimson);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* Flag strip */
.flag-strip {
  display: grid;
  grid-template-columns: 13fr 61fr 13fr 13fr;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  margin: 1.35rem 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.flag-strip span:nth-child(1) { background: #111; }
.flag-strip span:nth-child(2) { background: #fff; }
.flag-strip span:nth-child(3) { background: var(--crimson); }
.flag-strip span:nth-child(4) { background: #1f7a3f; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.45s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 2rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }

.contact-block {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.contact-block p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* Empty */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 2.25rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(246, 242, 235, 0.75);
  padding: 3.75rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.65; color: rgba(246, 242, 235, 0.68); max-width: 26rem; }

.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.site-footer a {
  display: block;
  color: rgba(246, 242, 235, 0.68);
  padding: 0.22rem 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(246, 242, 235, 0.55);
}

.footer-bottom a { color: rgba(246, 242, 235, 0.72); }
.footer-bottom a:hover { color: #fff; }

/* Motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

@media print {
  .util-bar, .site-header, .site-footer, .page-banner, .form, .btn { display: none !important; }
  .membership-card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}

@media (max-width: 1024px) {
  .bento, .grid-3, .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .bento .card:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1.25rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .site-nav.open { display: flex; }

  .site-nav > a, .nav-dd-panel a { border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; }

  .nav-cta { margin-left: 0; margin-top: 0.35rem; width: 100%; justify-content: center; }

  .nav-dd {
    border-top: 1px solid var(--line);
    margin-top: 0.2rem;
    padding-top: 0.2rem;
  }
  .nav-dd > summary {
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
  }
  .nav-dd-panel {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.15rem 0 0.35rem 0.65rem;
    min-width: 0;
  }

  .split, .hero-stats, .form-grid, .grid-2, .grid-3,
  .bento, .portal-grid, .footer-grid, .contact-grid, .donate-methods {
    grid-template-columns: 1fr;
  }

  .bento .card:first-child { grid-column: auto; }
  .hero { min-height: 88vh; }
  .hero-stats { max-width: none; }
  .section-head { align-items: flex-start; }
  .cta-band { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .container { width: min(var(--max), calc(100% - 1.5rem)); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  .btn:hover, .card:hover, .portal-tile:hover { transform: none; }
}

/* Official flag photograph on about page */
.flag-photo {
  margin: 0 auto 0.5rem;
  max-width: 720px;
  text-align: center;
}
.flag-photo img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #87b5d9;
}
.flag-photo figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.org-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
}
.org-list li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--muted);
}
.org-list strong { color: var(--ink); }
