/* fierce - umass cics rap */

/* design tokens - light mode default */
:root {
  /* Backgrounds */
  --bg:          #ffffff;
  --bg-alt:      #f6f1f2;
  --bg-card:     #ffffff;
  --bg-nav:      rgba(255, 255, 255, 0.93);

  /* Text */
  --text:        #1a1a1a;
  --text-muted:  #545454;
  --text-xmuted: #888888;

  /* Brand */
  --brand:       #881124;
  --brand-2:     #a51c30;
  --brand-tint:  #fdf2f3;
  --brand-border: rgba(136, 17, 36, 0.18);

  /* UI chrome */
  --border:      rgba(0, 0, 0, 0.09);
  --border-mid:  rgba(0, 0, 0, 0.15);
  --shadow-sm:   0 1px 6px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg:   0 14px 52px rgba(0, 0, 0, 0.13);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Transition */
  --t: 240ms ease;
}

/* dark mode overrides */
[data-theme="dark"] {
  --bg:          #131011;
  --bg-alt:      #1c1718;
  --bg-card:     #221d1e;
  --bg-nav:      rgba(19, 16, 17, 0.93);

  --text:        #f0ecea;
  --text-muted:  #b8b0ae;
  --text-xmuted: #7a7a7a;

  --brand:       #d45a50;
  --brand-2:     #e06a60;
  --brand-tint:  rgba(200, 60, 50, 0.12);
  --brand-border: rgba(212, 90, 80, 0.28);

  --border:      rgba(255, 255, 255, 0.08);
  --border-mid:  rgba(255, 255, 255, 0.15);
  --shadow-sm:   0 1px 6px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 14px 52px rgba(0, 0, 0, 0.5);
}

/* reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  transition: background-color var(--t), color var(--t);
}

img {
  display: block;
  max-width: 100%;
}

a {
  transition: color var(--t), opacity var(--t);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* thin maroon stripe fixed at the top of the page */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--brand);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

/* navigation */
.site-header {
  position: sticky;
  top: 4px; /* below the top stripe */
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-left  { justify-self: start; }
.nav-center { justify-self: center; display: flex; gap: 28px; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* cics logo in nav */
.nav-cics {
  display: flex;
  align-items: center;
  padding-right: 16px;
  margin-right: 4px;
  border-right: 1px solid var(--border-mid);
}

.nav-cics-logo {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity var(--t), filter var(--t);
}

.nav-cics-logo:hover {
  opacity: 1;
}

[data-theme="dark"] .nav-cics-logo {
  filter: invert(1);
  opacity: 0.75;
}

/* logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.logo-tiger {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1;
}

.logo-tagline {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 28ch;
}

/* nav links */
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--brand);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--brand-tint);
  border-color: var(--brand-border);
  color: var(--brand);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* light mode shows moon, dark mode shows sun */
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* dark mode flips which icon shows */
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* cta button */
.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: background var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: 0 2px 8px rgba(136, 17, 36, 0.22);
}

.cta-button:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(136, 17, 36, 0.3);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t), border-color var(--t);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(136, 17, 36, 0.22);
}

.btn-primary:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(136, 17, 36, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand-border);
}

.btn-secondary:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* cics affiliation badge */
.cics-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.cics-badge img {
  height: 20px;
  width: auto;
}

/* hero section */
.hero {
  padding: 80px 24px 96px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
}

.hero-inner--center {
  max-width: 720px;
  display: block;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-pretitle {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero h1 .brand-word {
  color: var(--brand);
  display: block;
}

.hero-subtitle {
  display: block;
  margin-top: 10px;
  margin-bottom: 20px;
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.hero-desc {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* hero photo side */
.hero-photo-wrap {
  position: relative;
}

.hero-photo-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* decorative accent behind photo */
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border-radius: var(--r-lg);
  border: 2px solid var(--brand-border);
  z-index: -1;
}

/* center hero variant for inner pages */
.hero-inner--center h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

.hero-inner--center .hero-desc {
  margin: 16px auto 0;
}

.hero-inner--center .hero-actions {
  justify-content: center;
}

/* sections */
.section {
  padding: 96px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--t);
}

.section.alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-lead {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.section-lead + .section-lead {
  margin-top: 16px;
}

/* section fade in on scroll */
.js .section .container {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .section.visible .container {
  opacity: 1;
  transform: none;
}

.js .section .container > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .section.visible .container > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.15s; }
.js .section.visible .container > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.25s; }
.js .section.visible .container > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.35s; }
.js .section.visible .container > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.45s; }
.js .section.visible .container > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.55s; }
.js .section.visible .container > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.65s; }

/* two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-text p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.split-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-md);
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

/* benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: background var(--t), box-shadow var(--t);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1px;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.benefit-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* photo gallery */
.photo-grid {
  columns: 3;
  column-gap: 12px;
  margin-top: 40px;
}

.photo-grid-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: box-shadow var(--t), transform var(--t), opacity var(--t);
}

.photo-grid-item:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.012);
  opacity: 0.9;
}

.photo-grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7);
  opacity: 1;
  transition: opacity 160ms ease;
  display: block;
}

.lightbox-img.is-switching {
  opacity: 0;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background 180ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
  display: block;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* team */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
}

.person {
  position: relative;
  flex: 0 1 200px;
  width: 200px;
  min-height: 300px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
  perspective: 1000px;
  text-align: center;
}

.person-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.person.is-flipped .person-inner {
  transform: rotateY(180deg);
}

.person-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

.person:hover .person-face {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.person-front { justify-content: flex-start; }

.person-back {
  justify-content: center;
  gap: 10px;
  transform: rotateY(180deg);
  background: var(--brand);
  border-color: transparent;
  color: #ffffff;
}

.person-back .team-role {
  color: rgba(255, 255, 255, 0.8);
}

.person-back .team-bio {
  color: rgba(255, 255, 255, 0.92);
}

.person-back .team-hint {
  color: rgba(255, 255, 255, 0.7);
}

.team-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-mid);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo--tight-crop {
  object-position: center 25%;
  transform: scale(1.08);
  transform-origin: center;
}

.team-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-xmuted);
  margin-bottom: 6px;
}

.team-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.team-year {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.team-bio {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 18ch;
}

.team-hint {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
}

/* faq */
.faq {
  margin-top: 36px;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

.faq details[open] {
  border-color: var(--brand-border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--brand);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
  transition: transform 220ms ease;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.faq-body p {
  margin: 0;
}

.faq-body p + p {
  margin-top: 10px;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 760px;
}

.card-wide {
  grid-column: 1 / -1;
}

.text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), opacity var(--t);
}

.text-link:hover {
  border-bottom-color: var(--brand);
  opacity: 0.8;
}

/* footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  transition: background var(--t);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-cics {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-cics-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-xmuted);
  margin: 0;
}

/* stats strip */
.stats-strip {
  background: var(--brand);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.stat-item {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  transition: background var(--t), border-color var(--t);
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: var(--bg-alt);
  border-color: var(--brand-border);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 280ms ease, opacity 280ms ease;
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile nav drawer */
.nav-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 360ms cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid transparent;
  transition: max-height 360ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--t);
}

.nav-drawer.is-open {
  max-height: 420px;
  border-top-color: var(--border);
}

.nav-drawer-inner {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
}

.nav-drawer-links .nav-link {
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-links .nav-link:last-child {
  border-bottom: none;
}

.nav-drawer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.nav-drawer-bottom .cta-button {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* back to top button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease,
              background var(--t), box-shadow var(--t);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brand-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* faq smooth animation */
.faq-body {
  overflow: hidden;
  transition: height 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* animations */

/* keyframes */
@keyframes tigerFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes brandGlow {
  0%, 100% { text-shadow: 0 0 40px rgba(136, 17, 36, 0.08); }
  50%       { text-shadow: 0 0 80px rgba(136, 17, 36, 0.28); }
}

@keyframes rippleAnim {
  to {
    transform: translate(-50%, -50%) scale(90);
    opacity: 0;
  }
}

/* hero entrance stagger on page load */
.js .hero .hero-copy > *,
.js .hero .hero-photo-wrap {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.js.page-loaded .hero .hero-copy > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.js.page-loaded .hero .hero-copy > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.17s; }
.js.page-loaded .hero .hero-copy > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.28s; }
.js.page-loaded .hero .hero-copy > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.38s; }
.js.page-loaded .hero .hero-copy > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.48s; }
.js.page-loaded .hero .hero-photo-wrap            { opacity: 1; transform: none; transition-delay: 0.22s; }

/* stats strip entrance */
.js .stats-strip {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.js.page-loaded .stats-strip {
  opacity: 1;
  transform: none;
}

/* scroll progress bar overlays the top stripe */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: var(--scroll-progress, 0%);
  background: rgba(255, 255, 255, 0.5);
  z-index: 2001;
  pointer-events: none;
}

/* tiger float animation */
.logo-tiger {
  animation: tigerFloat 3.5s ease-in-out infinite;
  transition: height var(--t);
}

/* nav shrinks when user scrolls down */
.site-header.is-scrolled .nav-container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header.is-scrolled .logo-tiger {
  height: 44px;
}

.site-header.is-scrolled .nav-cics-logo {
  height: 36px;
  transition: height var(--t), opacity var(--t), filter var(--t);
}

/* brand name glow pulse */
.hero h1 .brand-word {
  animation: brandGlow 4s ease-in-out infinite;
}

/* button ripple effect */
.btn,
.cta-button {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.32);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}

/* gallery image zoom on hover */
.photo-grid-item img {
  transition: transform 420ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

.photo-grid-item:hover img {
  transform: scale(1.07);
}

/* staggered card reveal animations */
.js .section .cards .card {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .section.visible .cards .card:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.22s; }
.js .section.visible .cards .card:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.36s; }
.js .section.visible .cards .card:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.50s; }

/* benefit items */
.js .section .benefits-grid .benefit-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .section.visible .benefits-grid .benefit-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.20s; }
.js .section.visible .benefits-grid .benefit-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.30s; }
.js .section.visible .benefits-grid .benefit-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.40s; }
.js .section.visible .benefits-grid .benefit-item:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.50s; }
.js .section.visible .benefits-grid .benefit-item:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.60s; }
.js .section.visible .benefits-grid .benefit-item:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.70s; }

/* team cards */
.js .section .team-grid .person {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity  0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .section.visible .team-grid .person:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.10s; }
.js .section.visible .team-grid .person:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.20s; }
.js .section.visible .team-grid .person:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.30s; }
.js .section.visible .team-grid .person:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.40s; }
.js .section.visible .team-grid .person:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.50s; }
.js .section.visible .team-grid .person:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.60s; }
.js .section.visible .team-grid .person:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.70s; }

/* responsive breakpoints */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    columns: 2;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 780px) {
  body::before {
    position: fixed;
  }

  .nav-container {
    grid-template-columns: 1fr auto;
    justify-items: unset;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
  }

  .nav-left {
    justify-self: start;
  }

  .nav-center,
  .nav-right {
    display: none;
  }

  .nav-cics {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .logo {
    gap: 10px;
  }

  .logo-media {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 60px 20px 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-photo-wrap::before {
    display: none;
  }

  .section {
    padding: 72px 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    columns: 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .stat-item {
    padding: 28px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
}

@media (max-width: 560px) {
  .nav-center {
    gap: 14px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .person {
    flex-basis: 160px;
    width: 160px;
    min-height: 270px;
  }

  .person-inner {
    min-height: 270px;
  }

  .team-circle {
    width: 100px;
    height: 100px;
  }

  .photo-grid {
    columns: 1;
  }
}
