/* ---------------------------------------------------------------
   Code in Place Studios — shared styles
   Plain CSS, no framework. Mobile-collapsible 12-col grid.
---------------------------------------------------------------- */

:root {
  /* Base — the brand is black & white */
  --ink: #17191d;
  --ink-2: #3c4148;
  --muted: #6a707b;
  --line: #e6e8ec;
  --grey: #f4f5f7;
  --grey-2: #eceef1;
  --white: #ffffff;

  /* The two supporting brand colours (used consistently, never decoratively) */
  --green: #19b47a;          /* emerald — primary action / identity */
  --green-dark: #0f8a5d;     /* deeper emerald for hover / borders */
  --green-ink: #0b7a56;      /* emerald tinted toward black for text on white */
  --green-tint: #e9fbf2;     /* ~7% emerald on white */
  --green-tint-soft: #f3fbf7;
  --yellow: #ffc93c;         /* sunflower — highlight / warmth */
  --yellow-dark: #d39e00;    /* deeper yellow for borders */
  --yellow-ink: #9a7400;     /* gold for text on white */
  --yellow-tint: #fff6dc;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 2px 10px rgba(23, 25, 29, 0.06);
  --shadow-2: 0 18px 44px rgba(23, 25, 29, 0.12);
  --shadow-3: 0 30px 70px rgba(23, 25, 29, 0.16);
  --card-shadow: 0 1px 2px rgba(23, 25, 29, 0.04), 0 8px 24px rgba(23, 25, 29, 0.04);

  --head: "Poppins", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 25, 29, 0.22); }

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn--yellow:hover { transform: translateY(-2px); }

.btn--outline {
  border-color: rgba(23, 25, 29, 0.35);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover { border-color: var(--ink); background: rgba(23, 25, 29, 0.04); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  transition: gap 0.18s ease;
}
.btn--ghost-link:hover { gap: 14px; }
.btn--ghost-link::after { content: "→"; transition: transform 0.18s ease; }
.btn--ghost-link:hover::after { transform: translateX(2px); }

/* ---------- section scaffolding ---------- */

.section { padding: 88px 0; }
.section--grey { background: var(--grey); }
.section--tight { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--green { color: var(--green); }
.eyebrow--purple { color: var(--green); }
.eyebrow--blue { color: var(--green); }
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--white { color: rgba(255, 255, 255, 0.7); }

.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 30px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }

.nav__link {
  position: relative;
  padding: 10px 14px;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 10px;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav__link:hover { color: var(--ink); background: rgba(23, 25, 29, 0.05); }

.nav__link--drop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link--drop::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}
.nav__link--drop:hover::after,
.has-mega:hover > .nav__link--drop::after { transform: rotate(225deg) translateY(1px); }

/* mega menu */

.mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(620px, 90vw);
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.mega--right { left: auto; right: -20px; transform: translateY(8px); }
.mega--right.mega--open { transform: translateY(0); }

.mega a {
  display: block;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.16s ease;
}
.mega a:hover { background: var(--grey); }

.mega b { display: block; font-family: var(--head); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.mega small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.has-mega { position: relative; }

.mega--open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega--right.mega--open { transform: translateY(0); }

.nav__cta { display: flex; align-items: center; gap: 12px; margin-left: 16px; flex-shrink: 0; }
.nav__cta .btn { padding: 10px 18px; font-size: 13.5px; }

/* mobile nav */

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s ease;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav__panel {
  display: none;
  border-top: none;
  background: var(--white);
  padding: 12px 4% 20px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.nav__panel a.nav__link { display: block; }
.nav__panel .btn { width: 100%; margin-top: 8px; }
.nav__panel .mega {
  position: static;
  transform: none;
  width: 100%;
  box-shadow: none;
  border: none;
  border-left: none;
  padding: 8px 0 8px 14px;
  grid-template-columns: 1fr;
  border-radius: 0;
  display: none;
}
.nav__panel .mega.mega--open { display: grid; opacity: 1; visibility: visible; }
.nav__panel .has-mega { border-bottom: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: 72px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #101216;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 12, 16, 0.55);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 140px;
}

.hero__content { max-width: 560px; }

.hero h1 {
  font-size: clamp(42px, 5.8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero h1 .hl { color: var(--yellow); }
.hero p.lede {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__side { position: relative; z-index: 2; }

.hero__facts {
  margin-top: 48px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.hero__facts li { display: flex; align-items: center; gap: 9px; }
.hero__facts svg { width: 18px; height: 18px; color: var(--yellow); }

/* ---------- stats bar ---------- */

.stats-bar {
  position: relative;
  z-index: 5;
  margin-top: -84px;
}
.stats-bar__grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  padding: 20px 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.stat {
  text-align: center;
  padding: 6px 4px;
}
.stat b { font-family: var(--head); font-size: 25px; font-weight: 700; display: block; line-height: 1; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- who we are ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__visual { position: relative; margin: 20px 0; }
.about__blob {
  position: absolute;
  z-index: 0;
  top: 14px;
  left: -30px;
  right: -8px;
  bottom: -18px;
  border-radius: 46px 110px 46px 110px;
  background: var(--yellow);
  opacity: 0.12;
}
.about__photo {
  position: relative;
  z-index: 1;
  border-radius: 46px 110px 46px 110px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--grey-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shape {
  position: absolute;
  z-index: 3;
  animation: floaty 5.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(23, 25, 29, 0.18));
}
.shape--sq { width: 32px; height: 32px; border-radius: 9px; background: var(--green); top: -16px; right: 12%; }
.shape--circle { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); bottom: 24%; left: -30px; animation-delay: 1.1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 901px) {
  .section#about { padding-bottom: 0; }
  .about__visual { transform: translateY(18px); }
}

.about__content h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.about__content p { color: var(--ink-2); }

.btn--purple {
  background: var(--green);
  color: #fff;
}
.btn--purple:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(25, 180, 122, 0.35); }

/* accent-filled buttons */
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(25, 180, 122, 0.35); }
.btn--blue { background: var(--green); color: #fff; }
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(25, 180, 122, 0.35); }

/* ---------- services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover, .service-card:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 48px -14px rgba(23, 25, 29, 0.2); outline: none; }

.service-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grey); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 25, 29, 0.26), transparent 52%);
  pointer-events: none;
}

.service-card__kicker {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent, var(--green));
  border-radius: 99px;
  padding: 5px 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.service-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; }
.service-card__title { font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--ink); }
.service-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, var(--green));
}
.service-card__more svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.service-card:hover .service-card__more svg { transform: translateX(3px); }

.service-card--green   { --accent: var(--green); }
.service-card--yellow  { --accent: var(--green); }
.service-card--emerald { --accent: var(--green); }
.service-card--forest  { --accent: var(--green-dark); }
.service-card--teal    { --accent: var(--green-ink); }
.service-card--amber   { --accent: var(--green); }
.service-card--gold    { --accent: var(--green-dark); }
.services__fallback { color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 640px) {
  .services__grid { gap: 16px; }
  .service-card__desc { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

.svc--green { background: var(--green-tint); color: var(--green-ink); }
.svc--purple { background: var(--green-tint); color: var(--green-ink); }
.svc--blue { background: var(--green-tint); color: var(--green-ink); }
.svc--yellow { background: var(--yellow-tint); color: var(--yellow-ink); }

/* ---------- give me five — centerpiece band ---------- */

.gm5 {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #12151c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding: 120px 0 140px;
}

.gm5__curve { position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 6; }
.gm5__curve svg { display: block; width: 100%; height: 96px; }
.gm5__curve--top { top: -1px; }
.gm5__curve--bottom { bottom: -1px; }

.gm5__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1.1px, transparent 1.7px);
  background-size: 36px 36px;
  background-position: 18px 18px;
  opacity: 0.055;
  z-index: 0;
}

.gm5__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  flex: 1;
}

.gm5__label {
  display: block;
  font-family: var(--head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.gm5__copy h2 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 22px; }
.gm5__copy h2 .hl { color: var(--yellow); }
.gm5__copy p { color: rgba(255, 255, 255, 0.82); font-size: 17px; line-height: 1.7; max-width: 470px; margin-bottom: 30px; }
.gm5__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.btn--outline-fill {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn--outline-fill:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.gm5__quote {
  display: flex;
  align-items: flex-start;
  max-width: 460px;
  margin: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gm5__quote blockquote { margin: 0; font-style: italic; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }

.gm5__collage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 44px;
  align-items: center;
}
.gm5__photo {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 48px 14px 48px 14px;
  overflow: hidden;
  box-shadow: 14px 14px 0 rgba(25, 180, 122, 0.25), 0 34px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #241a0f;
}
.gm5__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Numbered step list — the Give Me Five journey. */
.gm5__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.gm5__steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), rgba(255, 201, 60, 0.12));
}
.gm5__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 13px 0;
}
.gm5__step-num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  background: #171b22;
  border: 2px solid rgba(255, 201, 60, 0.55);
  box-shadow: 0 0 0 6px #12151c;
}
.gm5__step-body b { font-family: var(--head); font-size: 19px; font-weight: 700; display: block; margin: 8px 0 2px; }
.gm5__step-body small { display: block; color: rgba(255, 255, 255, 0.66); font-size: 14px; line-height: 1.5; max-width: 340px; }

/* ---------- dashboard ---------- */

.dash__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.dash-stat {
  text-align: center;
  border: none;
  border-radius: var(--radius-lg);
  padding: 26px 14px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.dash-stat b { font-family: var(--head); font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1; display: block; }
.dash-stat span { font-size: 14px; color: var(--muted); }
.dash-stat--yellow b { color: var(--yellow); }
.dash-stat--green b { color: var(--green); }
.dash-stat--purple b { color: var(--green); }
.dash-stat--blue b { color: var(--green); }

.dash__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

.map {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--card-shadow);
  padding: 20px;
  min-height: 380px;
  display: grid;
  place-items: center;
}
.map svg { width: 100%; max-height: 420px; }
.map__pin { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { opacity: 1; transform: scale(0.7); }
  70% { opacity: 0.25; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

.progress {
  display: grid;
  gap: 22px;
  align-content: center;
  border: none;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.progress__row b { font-family: var(--head); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; }
.progress__row b i { font-style: normal; color: var(--green); }
.progress__bar {
  height: 9px;
  background: var(--grey-2);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 8px;
}
.progress__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 9px;
  background: var(--green);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress__row:nth-child(2) i { background: var(--green); }
.progress__row:nth-child(3) i { background: var(--green); }
.progress__row:nth-child(4) i { background: var(--green); }
.progress__row:nth-child(5) i { background: var(--yellow); }

/* ---------- event cards ---------- */

.events__grid, [data-events] {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.events__grid::-webkit-scrollbar, [data-events]::-webkit-scrollbar { display: none; }
.events__grid > *, [data-events] > * { flex: 0 0 340px; max-width: 85%; scroll-snap-align: start; }
.related .events__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; overflow: visible; padding: 0; }
.related .events__grid > * { flex: none; max-width: none; }
.event-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.event-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-2);
  display: grid;
  place-items: center;
}
.event-card__media > svg { width: 100%; height: 100%; }
.event-card__media > .event-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 6px 12px;
  text-align: center;
  box-shadow: var(--shadow-1);
  font-family: var(--head);
  min-width: 54px;
  z-index: 2;
}
.event-card__date b { display: block; font-size: 22px; line-height: 1.05; }
.event-card__date span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.event-card__status {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--head);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
}
.event-card__status--open { background: var(--green); }
.event-card__status--almost-full { background: var(--green); }
.event-card__status--full { background: #e85d4a; }
.event-card__status--closed { background: #8a8f98; }

.event-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.event-card__meta { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; margin-bottom: 12px; }
.event-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.event-card__desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }

.center-btn { text-align: center; margin-top: 40px; }

/* ---------- partners strip ---------- */

.partners__scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.partners__scroll::-webkit-scrollbar { display: none; }
.partner {
  flex: 0 0 200px;
  position: relative;
  scroll-snap-align: start;
  height: 88px;
  display: grid;
  place-items: center;
  padding: 14px;
}
.partner__logo {
  max-width: 100%;
  height: 52px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: none;
}
.partner__name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- blog ---------- */

.blog__filters { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 36px; }
.chip {
  --c: var(--ink);
  border: none;
  background: none;
  border-radius: 0;
  padding: 8px 10px 10px;
  margin-right: 6px;
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.16s ease;
}
.chip--gm5 { --c: var(--yellow); }
.chip--stem { --c: var(--green); }
.chip--software { --c: var(--green); }
.chip--community { --c: var(--green); }
.chip:hover { color: var(--ink); }
.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: none;
}
.chip.is-active { color: var(--ink); }
.chip.is-active .chip__dot { background: var(--c); border-color: var(--c); }
.chip.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.post-card.is-hidden { display: none; }

.post-card__media { aspect-ratio: 16 / 10; background: var(--grey-2); display: grid; place-items: center; position: relative; overflow: hidden; }
.post-card__media svg { width: 100%; height: 100%; }
.post-card__media > .post-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
}
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__read { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; margin-bottom: 8px; }
.post-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.post-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.post-card__foot { display: flex; align-items: center; gap: 10px; padding-top: 4px; font-size: 13px; color: var(--muted); }
.post-card__foot svg { width: 30px; height: 30px; border-radius: 50%; padding: 6px; }
.post-card .btn--ghost-link { font-size: 13.5px; }

.tag--stem { background: var(--green); }
.tag--software { background: var(--green); }
.tag--events { background: var(--green); }
.tag--community { background: var(--green); }
.tag--gm5 { background: var(--yellow); }
.tag--news { background: var(--ink-2); }

/* ---------- CTA banner ---------- */

.cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--green);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.cta h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.85); font-size: 17px; max-width: 460px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.cta__form { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-lg); padding: 30px; }
.cta__form h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.cta__form > p { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin-bottom: 18px; }
.cta__form form { display: flex; gap: 10px; }
.cta__form input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}
.cta__form input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cta__note { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); margin: 12px 0 0; }
.form-ok { color: #c9f5dd; font-size: 14px; margin: 12px 0 0; }

/* ---------- footer ---------- */

.footer { background: #0e1013; color: #cfd2d7; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 40px;
  padding: 72px 0 48px;
}
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer__logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer__logo img { height: 30px; width: auto; display: block; }
.footer p { font-size: 14.5px; line-height: 1.7; max-width: 320px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14.5px; color: #cfd2d7; transition: color 0.15s ease; }
.footer ul a:hover { color: var(--yellow); }

.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14.5px; }
.footer__contact svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--yellow); margin-top: 3px; }

.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.16s ease;
}
.footer__social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer__social svg { width: 17px; height: 17px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: #9a9fa8;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding-top: 72px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; padding: 76px 0 90px; max-width: 720px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255, 255, 255, 0.82); margin-bottom: 0; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p.hero-note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); max-width: 620px; border-left: 3px solid var(--yellow); padding-left: 12px; }

/* ---------- events page ---------- */

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 28px;
  padding-bottom: 6px;
  margin-bottom: 34px;
}
.filterbar__chips { display: flex; flex-wrap: wrap; align-items: center; }
.filterbar__tools { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-left: auto; }
.filterbar__field { display: block; }
.filterbar__field > span { display: block; font-family: var(--head); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.filterbar__field select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 34px 9px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a707b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 10.5 12 14l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 11px center / 14px;
  appearance: none;
  -webkit-appearance: none;
  min-width: 172px;
  transition: border-color 0.16s ease;
}
.filterbar__field select:hover { border-color: var(--ink-2); }
.filterbar__field select:focus { outline: 2px solid var(--green); outline-offset: 1px; }

.view-toggle { display: inline-flex; background: var(--grey-2); border-radius: 10px; padding: 3px; gap: 2px; }
.view-toggle button {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.16s ease;
}
.view-toggle button.is-active { background: var(--ink); color: #fff; }

.events-layout { display: grid; gap: 24px; }
.events-layout[data-view="calendar"] { display: none; }

.featured .event-card { display: grid; grid-template-columns: 1.1fr 1fr; }
.featured .event-card__media { aspect-ratio: auto; min-height: 300px; }
.featured .event-card__body { padding: 32px; }
.featured .event-card h3 { font-size: 24px; }
.featured .event-card__desc { font-size: 15.5px; }
.featured .event-card__meta { font-size: 14px; }

/* calendar */

.calendar { border: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--card-shadow); }
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.calendar__head h3 { font-size: 18px; font-weight: 600; margin: 0; }
.calendar__nav { display: flex; gap: 8px; }
.calendar__nav button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 16px;
}
.calendar__nav button:hover { border-color: var(--ink); }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__dow { padding: 10px; text-align: center; font-family: var(--head); font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--white); }
.calendar__day {
  min-height: 92px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.calendar__day:nth-child(7n) { border-right: 0; }
.calendar__day.empty { background: transparent; color: #c6cad1; }.calendar__day b { font-family: var(--head); font-weight: 600; display: block; margin-bottom: 4px; }
.calendar__day.has-events { background: var(--green-tint); }
.calendar__event {
  font-size: 11px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 3px 7px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.calendar__event:hover { background: var(--green); }
.calendar__event--alt { background: var(--green); }
.calendar__event--alt:hover { background: #11855c; }

/* event modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  background: rgba(14, 16, 19, 0.6);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(860px, 100%);
  overflow: hidden;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal__banner { position: relative; aspect-ratio: 16/6; background: var(--grey-2); display: grid; place-items: center; }
.modal__banner svg { width: 100%; height: 100%; }
.modal__banner .modal__banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-banner-wrap { background: var(--grey-2); }
.ed-banner { padding: 0 0 56px; }
.ed-banner__img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 16, 19, 0.55);
  color: #fff;
  font-size: 20px;
}
.modal__close:hover { background: var(--ink); }
.modal__body { padding: 30px 34px 40px; }
.modal__body h3 { font-size: 26px; font-weight: 700; }
.modal__lead { color: var(--muted); margin: 6px 0 22px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14.5px; }
.modal__lead span { display: inline-flex; align-items: center; gap: 7px; }
.modal__lead svg { width: 16px; height: 16px; stroke: var(--green); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.tab-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 20px; padding-bottom: 4px; }
.tab {
  border: none;
  background: var(--grey-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.16s ease;
}
.tab:hover { background: var(--grey); color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.schedule li { display: flex; gap: 16px; padding: 12px 0; font-size: 14.5px; }
.schedule time { font-family: var(--head); font-weight: 600; color: var(--green); min-width: 64px; }
.speaker { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.speaker span { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.speaker b { display: block; font-family: var(--head); font-size: 15px; }
.speaker small { color: var(--muted); }
.speaker span.s0 { background: var(--green); }
.speaker span.s1 { background: var(--green); }
.speaker span.s2 { background: var(--green); }

.reg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-form .full { grid-column: 1 / -1; }
.reg-form label { display: block; font-family: var(--head); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.reg-form input, .reg-form select, .reg-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  background: var(--grey);
}
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.reg-form textarea { resize: vertical; min-height: 70px; }
.reg-form .form-ok { grid-column: 1 / -1; margin: 6px 0 0; }

.faq li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq details summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 15px; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

.related .events__grid { grid-template-columns: repeat(2, 1fr); }

/* archive */

.archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.archive-card__media { aspect-ratio: 16/9; background: var(--grey-2); display: grid; place-items: center; position: relative; }
.archive-card__media svg { width: 100%; height: 100%; }
.archive-card__media .event-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-card__body { padding: 20px; }
.archive-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.archive-card p { font-size: 14px; color: var(--muted); }
.archive-card__stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.archive-card__stats span {
  font-size: 12px;
  background: var(--grey);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.archive-card__stats span:nth-child(1) { color: var(--green); }
.archive-card__stats span:nth-child(2) { color: var(--green); }
.archive-card__stats span:nth-child(3) { color: var(--green); }

/* ---------- give me five page ---------- */

.commit-map { position: relative; height: 320px; margin: 0 0 46px; }
.commit-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.commit-map__start { position: absolute; left: 3%; top: 30%; transform: translate(-50%, -160%); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.commit-map__start::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.commit-map__stop { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-1); z-index: 2; }
.commit-map__stop b { color: inherit; }
.cm--yellow { color: var(--yellow-ink); border-color: var(--yellow); }
.cm--green { color: var(--green); border-color: var(--green); }
.cm--purple { color: var(--green); border-color: var(--green); }
.cm--blue { color: var(--green); border-color: var(--green); }
.commit-map__stops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.commit-map__card { position: relative; padding: 0 8px; }
.commit-map__card::before { content: ""; position: absolute; top: -40px; left: calc(50% - 1px); width: 2px; height: 30px; border-left: 2px dashed var(--line); }
.commit-map__num { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 12px; color: #fff; background: var(--ink); padding: 2px 9px; border-radius: 999px; margin-bottom: 12px; }
.cm--yellow .commit-map__num { background: var(--yellow); color: var(--ink); }
.cm--green .commit-map__num { background: var(--green); }
.cm--purple .commit-map__num { background: var(--green); }
.cm--blue .commit-map__num { background: var(--green); }
.commit-map__card b { font-family: var(--head); font-size: 17px; font-weight: 700; display: block; margin-bottom: 6px; }
.commit-map__card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.vision p { color: var(--ink-2); }
.vision blockquote {
  margin: 24px 0 0;
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  font-family: var(--head);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.partner-card {
  flex: 1 1 calc(50% - 14px);
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}
.partner-card:hover { transform: translateY(-2px); }
.partner-card__mark {
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--green);
  flex-shrink: 0;
}
.partner-card b { font-family: var(--head); font-size: 15.5px; font-weight: 600; display: block; }
.partner-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.pc--purple .partner-card__mark { color: var(--green); }
.pc--green .partner-card__mark { color: var(--green); }
.pc--blue .partner-card__mark { color: var(--green); }
.pc--yellow .partner-card__mark { color: var(--yellow); }

.journey { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 74px;
  bottom: -40px;
  width: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step__num {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 700;
  z-index: 2;
}
.step:nth-child(2) .step__num { background: var(--green); }
.step:nth-child(3) .step__num { background: var(--green); }
.step:nth-child(4) .step__num { background: var(--green); }
.step:nth-child(5) .step__num { background: var(--green); }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); max-width: 560px; }

.fellows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fellow {
  border: none;
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fellow:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.fellow__face { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.fellow h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.fellow .role { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 12px; }
.fellow p { font-size: 14px; color: var(--muted); margin: 0; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--head);
  font-size: 72px;
  color: var(--yellow);
  line-height: 1;
}
.testimonial p { font-size: 15px; color: var(--ink-2); padding-top: 30px; }
.testimonial b { display: block; font-family: var(--head); font-size: 15px; margin-top: 14px; }
.testimonial small { color: var(--muted); }

.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sponsor-card { border-radius: var(--radius-lg); padding: 30px; color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); }
.sponsor-card h3 { font-size: 21px; font-weight: 600; }
.sponsor-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); margin-bottom: 18px; }
.sponsor-card ul li { font-size: 14px; display: flex; gap: 9px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.92); }
.sponsor-card ul svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.sp-0 { background: var(--green); }
.sp-1 { background: var(--green); }
.sp-2 { background: var(--ink); }

.cta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cta-tile {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.cta-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.35); }
.cta-tile svg { width: 30px; height: 30px; margin-bottom: 14px; }
.cta-tile h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.cta-tile p { font-size: 14px; color: rgba(255, 255, 255, 0.78); margin: 0; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }
.reveal--d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero, .map__pin { animation: none; }
  html { scroll-behavior: auto; }
}

/* On small screens the staggered reveal makes content pop in one-by-one while
   scrolling, which feels like constant movement. Show it all immediately. */
@media (max-width: 768px) {
  .reveal, .reveal--d1, .reveal--d2, .reveal--d3, .reveal--d4, .reveal--d5 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .shape { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .blog__grid, .events__grid, .archive__grid, .fellows, .testimonial-grid, .sponsor-grid, .cta-row, .commit-map__stops { grid-template-columns: repeat(2, 1fr); }
  .dash__stats { grid-template-columns: repeat(2, 1fr); }
  .featured .event-card { grid-template-columns: 1fr; }
  .featured .event-card__media { aspect-ratio: 16/9; min-height: 0; }
}

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__cta { display: none; }
  .nav__panel.is-open { display: block; }

  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 140px; }
  .hero__side { display: none; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
  .stat { padding-bottom: 18px; }

  .about__grid, .gm5__grid, .cta__inner, .vision { grid-template-columns: 1fr; }
  .gm5 { min-height: 0; padding: 96px 0 130px; }
  .gm5__collage {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gm5__photo { width: min(250px, 76%); justify-self: center; }
  .gm5__steps { width: 100%; max-width: 480px; justify-self: center; }
  .gm5__copy h2 { font-size: clamp(34px, 8vw, 46px); }
  .dash__body { grid-template-columns: 1fr; }
  .modal__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding-top: 64px; }
  .hero__inner { padding: 40px 0 150px; }
  .services__grid, .blog__grid, .events__grid, .archive__grid, .fellows, .testimonial-grid, .sponsor-grid, .cta-row, .commit-map__stops, .dash__stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero__facts { gap: 14px; }

  .stats-bar { margin-top: -56px; }
  .stats-bar__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stats-bar__grid::-webkit-scrollbar { display: none; }
  .stat {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 4px 10px;
    text-align: center;
  }
  .stat b { font-size: 17px; }
  .stat span { font-size: 10px; }

  .services__grid, .blog__grid, .events__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    margin: 0 -20px;
    padding: 0 20px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services__grid::-webkit-scrollbar, .blog__grid::-webkit-scrollbar, .events__grid::-webkit-scrollbar { display: none; }
  .services__grid > *, .blog__grid > *, .events__grid > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .services__grid > * { flex-basis: 68%; padding: 20px 16px; }
  .related .events__grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .related .events__grid > * { flex: none; }
  [data-events] {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  [data-events]::-webkit-scrollbar { display: none; }
  [data-events] > * { flex: 0 0 82%; scroll-snap-align: start; }

  .footer__grid { grid-template-columns: 1fr; }
  .cta__form form { flex-direction: column; }
  .filterbar__field select { min-width: 100%; }
  .filterbar__tools { margin-left: 0; width: 100%; }
  .calendar__grid { grid-template-columns: repeat(7, 1fr); font-size: 12px; }
  .calendar__day { min-height: 60px; padding: 4px; }
  .calendar__event { display: none; }
  .calendar__day.has-events b::after { content: "•"; color: var(--green); }
  .reg-form { grid-template-columns: 1fr; }
}

/* ==================================================
   INNER PAGES — event detail, articles, services, donate
   ================================================== */

/* ---------- event detail ---------- */

.ed-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.ed-main { display: grid; gap: 40px; }
.ed-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ed-fact { background: var(--white); border-radius: var(--radius-md); padding: 16px 18px; }
.ed-fact b { display: block; font-family: var(--head); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, var(--green)); margin-bottom: 6px; }
.ed-fact span { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.ed-block h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.ed-block p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 620px; }
.ed-agenda { list-style: none; margin: 0; padding: 0; max-width: 620px; }
.ed-agenda li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 12px 4px; }
.ed-agenda time { font-family: var(--head); font-size: 13.5px; font-weight: 700; color: var(--green); }
.ed-agenda span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.ed-speakers { display: grid; gap: 12px; max-width: 620px; }
.ed-speaker { display: flex; align-items: center; gap: 14px; background: var(--white); border: none; border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--card-shadow); }
.ed-speaker__dot { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.ed-speaker b { display: block; font-family: var(--head); font-size: 14.5px; font-weight: 600; }
.ed-speaker small { color: var(--muted); font-size: 13px; }
.ed-side { position: sticky; top: 24px; display: grid; gap: 16px; }
.ed-card { background: var(--white); border: none; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--card-shadow); }
.ed-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ed-tickets { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.ed-form { display: grid; gap: 10px; }
.ed-form input, .ed-form select { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: 14px; background: var(--white); }
.ed-form input:focus, .ed-form select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.ed-card__note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.ed-related { display: grid; gap: 14px; }
.ed-rel { display: flex; align-items: center; gap: 16px; background: var(--white); border: none; border-radius: var(--radius-lg); padding: 16px 20px; text-decoration: none; box-shadow: var(--card-shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ed-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ed-rel__date { flex-shrink: 0; width: 56px; height: 62px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; align-content: center; }
.ed-rel__date b { font-family: var(--head); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); }
.ed-rel__date i { font-style: normal; font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1; }
.ed-rel__body { flex: 1; min-width: 0; }
.ed-rel__body b { display: block; font-family: var(--head); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ed-rel__body small { color: var(--muted); font-size: 13px; }
.ed-rel__arrow { color: var(--green); font-size: 18px; }

/* ---------- article (blog posts) ---------- */

.article__hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.article__hero .container { position: relative; z-index: 2; padding: 76px 0 84px; max-width: 800px; }
.article__hero .btn--ghost-link { color: var(--yellow); }
.article__meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 18px 0 22px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article__hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.article__body { max-width: 720px; margin: 0 auto; padding: 64px 0 80px; }
.article__body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.8; margin-bottom: 22px; }
.article__body h2 { font-size: 26px; font-weight: 700; margin: 40px 0 14px; }
.article__body h3 { font-size: 19px; font-weight: 600; margin: 30px 0 10px; }
.article__body ul, .article__body ol { margin: 0 0 22px; padding-left: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.article__body li { margin-bottom: 8px; }
.article__body blockquote { margin: 0 0 22px; padding: 18px 22px; border-left: 4px solid #19b47a; background: #f6faf8; color: var(--ink-2); font-style: italic; font-size: 17px; line-height: 1.7; }
.article__body a { color: #19b47a; text-decoration: underline; }
.article__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 6px 0 22px; }
.article__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.article__gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
.article__pullquote { margin: 40px 0; padding: 26px 30px; border-left: 4px solid var(--yellow); background: transparent; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 20px; font-style: italic; font-weight: 600; font-family: var(--head); color: var(--ink); line-height: 1.5; }
.article__media { border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0; }
.article__media svg { display: block; width: 100%; }
.article__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.article__foot .btn--ghost-link { margin-left: auto; }
.article__author { display: flex; align-items: center; gap: 12px; }
.article__author i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--head); font-weight: 700; color: #fff; }

/* ---------- service pages ---------- */

.svc-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.svc-main { display: grid; gap: 48px; }
.svc-main h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.svc-main p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 16px; max-width: 640px; }
.svc-lead { font-size: 18px !important; color: var(--ink-2) !important; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 640px; }
.svc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.svc-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--green)); flex-shrink: 0; margin-top: 8px; }
.svc-list--plain { gap: 0; max-width: none; }
.svc-list--plain li { padding: 4px 0; }
.svc-list--plain li::before { display: none; }
.svc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-card { background: var(--white); border: none; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--card-shadow); }
.svc-card b { display: block; font-family: var(--head); font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.svc-card p { font-size: 14px; margin: 0; }
.svc-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 640px; }
.svc-steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--white); border: none; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
.svc-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--accent, var(--green)); line-height: 1.3; }
.svc-steps b { display: block; font-family: var(--head); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.svc-steps span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.svc-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.svc-tile { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 26px; }
.svc-tile h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.svc-tile p { color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.svc-tile .btn { width: 100%; }
.svc-tile--yellow { background: var(--yellow); color: var(--ink); }
.svc-tile--yellow p { color: rgba(23, 25, 29, 0.78); }
.svc-tile--white { background: var(--white); border: none; color: var(--ink); box-shadow: var(--shadow-1); }
.svc-tile--white p { color: var(--muted); }
.svc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-fact { background: transparent; border-radius: var(--radius-md); padding: 20px 18px; text-align: center; position: relative; overflow: hidden; }
.svc-fact b { display: block; font-family: var(--head); font-size: 26px; font-weight: 800; color: var(--accent, var(--green)); position: relative; padding-bottom: 8px; }
.svc-fact b::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: currentColor; transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
.svc-fact.reveal.is-in b::after, .reveal.is-in .svc-fact b::after { transform: translateX(-50%) scaleX(1); }
.svc-fact span { font-size: 12.5px; color: var(--muted); }
.svc-cta { background: var(--accent, var(--green)); color: #fff; border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden; }
.svc-cta h2 { margin: 0 0 10px; }
.svc-cta p { color: rgba(255, 255, 255, 0.85); max-width: 520px; }
.svc-cta .btn--yellow { margin-top: 8px; }

/* ---------- donate page ---------- */

.donate-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.donate-main { display: grid; gap: 40px; }
.donate-main h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.donate-main p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 640px; }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; }
.donate-amount { background: var(--white); border: none; border-radius: var(--radius-lg); padding: 20px 14px; text-align: center; cursor: pointer; transition: 0.16s ease; font-family: var(--head); box-shadow: var(--card-shadow); }
.donate-amount:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.donate-amount.is-active { background: rgba(107, 63, 212, 0.06); box-shadow: 0 0 0 2px var(--green); }
.donate-amount b { display: block; font-size: 24px; font-weight: 800; }
.donate-amount small { font-size: 12px; color: var(--muted); font-family: var(--body); }
.donate-form { display: grid; gap: 14px; max-width: 640px; }
.donate-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.donate-form input, .donate-form select, .donate-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 14.5px; background: var(--white); }
.donate-form input:focus, .donate-form select:focus, .donate-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.donate-form label { font-family: var(--head); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; display: block; }
.donate-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.donate-card { background: var(--white); border: none; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--card-shadow); }
.donate-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.donate-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.donate-card li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.donate-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 8px; }
.donate-quote { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 26px; }
.donate-quote blockquote { margin: 0; font-style: italic; font-family: var(--head); font-size: 17px; line-height: 1.6; }
.donate-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ---------- contact page ---------- */

.contact__wrap { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 32px; align-items: start; }
.contact__side { display: grid; gap: 20px; position: sticky; top: 24px; }
.contact__card { background: var(--white); border: none; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--card-shadow); }
.contact__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact__card > .btn { margin-top: 18px; width: 100%; justify-content: center; }
.contact__sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.contact__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.contact__list li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.contact__list li b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-family: var(--head); margin-bottom: 2px; }
.contact__steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: cstep; }
.contact__steps li { position: relative; padding-left: 34px; font-size: 14px; color: var(--ink-2); line-height: 1.55; counter-increment: cstep; }
.contact__steps li::before { content: counter(cstep, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); font-family: var(--head); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.contact__steps li b { display: inline; color: var(--ink); }
.contact__form .donate-form { max-width: none; }

@media (max-width: 1080px) {
  .contact__wrap { grid-template-columns: 1fr; }
  .contact__side { position: static; }
}

/* ---------- team page ---------- */

.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.team-card__photo { aspect-ratio: 4 / 5; background: var(--grey); display: grid; place-items: center; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__placeholder { font-family: var(--head); font-size: 44px; font-weight: 800; color: var(--green); }
.team-card__body { padding: 20px; display: grid; gap: 7px; align-content: start; }
.team-card__body h3 { font-size: 18px; font-weight: 700; }
.team-card__role { color: var(--muted); font-size: 13px; }
.team-card__specialty { justify-self: start; background: var(--green-tint); color: var(--green-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; }
.team-card__body p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-top: 6px; }
.team__empty { color: var(--muted); text-align: center; padding: 40px 0; grid-column: 1 / -1; }

@media (max-width: 980px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* ---------- inner-page responsive ---------- */

@media (max-width: 1080px) {
  .ed-layout, .svc-layout, .donate-grid { grid-template-columns: 1fr; }
  .ed-side, .svc-aside, .donate-side { position: static; }
}
@media (max-width: 640px) {
  .ed-facts, .svc-facts { grid-template-columns: 1fr 1fr; }
  .svc-grid2 { grid-template-columns: 1fr; }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); }
  .donate-form .row { grid-template-columns: 1fr; }
}

/* ---------- in-house tutoring (STEM) ---------- */

.svc-tutor { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: stretch; }
.svc-tutor__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.svc-tutor__plan { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.svc-tutor__tag { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.svc-tutor__plan h3 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.svc-tutor__price { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--yellow); margin: 0 0 22px; }
.svc-tutor__price span { display: block; font-family: var(--body); font-weight: 500; font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 7px; }
.svc-tutor__plan .svc-list { max-width: none; margin-bottom: 24px; }
.svc-tutor__plan .btn { margin-top: auto; align-self: flex-start; }
.svc-tutor__plan .svc-list li { color: rgba(255,255,255,0.9); }
.svc-tutor__plan .svc-list li::before { background: var(--yellow); }
.svc-tutor__note { background: var(--white); border: none; border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--card-shadow); }
.svc-tutor__note h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.svc-tutor__note p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.svc-tutor__mini { font-weight: 600; color: var(--ink); margin: 0 !important; }

/* ---------- schools & clubs (STEM) ---------- */

.svc-schools { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.svc-school {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  padding: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-school:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.svc-school__ph {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc-school__img { position: relative; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.svc-school__name {
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* ---------- projects page ---------- */

.prj-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.prj-filters .chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.prj-filters .chip:hover { border-color: var(--green); color: var(--green); }
.prj-filters .chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.prj-filters .chip.is-active::after { content: none; }
.prj-filters .chip.is-hidden { display: none; }

.prj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 4px;
}
.prj-grid > * { width: auto; }
.prj-card { background: var(--white); border: none; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--card-shadow); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.prj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.prj-card__media { aspect-ratio: 16/9; background: var(--accent, var(--green)); display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px; }
.prj-card__img, .prj-detail__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 0 56px; color: var(--muted); }
.empty-state__title { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.empty-state__text { font-size: 14px; margin: 0; }
.prj-card__year { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.prj-card__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.prj-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prj-card__tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent, var(--green)); margin-bottom: 10px; }
.prj-card__body h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.prj-card__body p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.prj-card__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prj-card__pill { font-size: 12px; color: var(--ink-2); background: var(--grey); border: none; border-radius: 999px; padding: 4px 10px; }

/* ---------- project detail page ---------- */

.prj-detail__media {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 30px;
  overflow: hidden;
}
.prj-detail__media .prj-card__year { font-size: 72px; }
.prj-detail__lessons {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 620px;
}
.prj-detail__lessons li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.prj-detail__lessons li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, var(--green));
}

/* ---------- clients (software) ---------- */

.cli-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.cli-logo {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  padding: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cli-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cli-logo__ph {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cli-logo__name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.25;
}
.cli-logo__img { position: relative; z-index: 1; background: var(--white); width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 960px) {
  .svc-tutor { grid-template-columns: 1fr; }
  .svc-tutor__plans { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .prj-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 4px 4px 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .prj-grid::-webkit-scrollbar { display: none; }
  .prj-grid > * { flex: 0 0 300px; max-width: 85%; scroll-snap-align: start; }
}

/* ---------- five commitments: connection map responsive ---------- */

@media (max-width: 1080px) {
  .commit-map { height: 260px; }
}
@media (max-width: 640px) {
  .commit-map { height: 190px; margin-bottom: 40px; }
  .commit-map__stops { gap: 0; }
  .commit-map__card { padding: 20px 0 20px 40px; }
  .commit-map__card::before { top: 0; left: 9px; height: 100%; border-left: 2px dashed var(--line); }
  .commit-map__num { position: absolute; left: 0; top: 20px; margin: 0; }
}

/* ---------- professional motion ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* Header scroll state */
.nav { transition: box-shadow 0.3s ease; }
.nav.is-scrolled { box-shadow: 0 12px 32px rgba(14, 16, 19, 0.14); }
.nav__inner { transition: height 0.3s ease; }
.nav.is-scrolled .nav__inner { height: 62px; }

/* Nav link underline (hover + scrollspy active) */
.nav__link:not(.nav__link--drop)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__link:not(.nav__link--drop):hover::after,
.nav__link:not(.nav__link--drop).is-active::after { transform: scaleX(1); }

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
  pointer-events: none;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Hero headline: staggered word entrance */
.words .word { display: inline-block; }
.words .word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.words.is-in .word > span { opacity: 1; transform: none; }

/* ---------- programme detail page ---------- */

.pd-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.pd-main { min-width: 0; }
.pd-side { position: sticky; top: 104px; display: grid; gap: 18px; }

.pd-banner { border-radius: var(--radius-lg); overflow: hidden; background: var(--grey); aspect-ratio: 16/8; margin-bottom: 36px; }
.pd-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-block { margin-bottom: 34px; }
.pd-block h2, .pd-block h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.pd-about { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; max-width: 640px; }

.pd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pd-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pd-steps li:last-child { border-bottom: none; }
.pd-steps li::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; counter-increment: pd-step; }
.pd-steps { counter-reset: pd-step; }
.pd-steps li::before { content: counter(pd-step); }
.pd-steps b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pd-steps span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }

.pd-card h3 { margin-bottom: 10px; }
.pd-card .btn { width: 100%; }

@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-side { position: static; }
}

@media (max-width: 560px) {
  .pd-steps li { grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; }
  .pd-steps li::before { width: 26px; height: 26px; font-size: 12.5px; }
  .pd-steps b { font-size: 14.5px; }
  .pd-steps span { font-size: 13.5px; }
  .pd-banner { aspect-ratio: 16 / 10; margin-bottom: 26px; }
  .pd-block { margin-bottom: 26px; }
  .pd-block h2, .pd-block h3 { font-size: 19px; }
  .pd-about { font-size: 15px; }
}

/* Service-card photo zoom on hover */
.service-card__media img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover .service-card__media img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .words .word > span { opacity: 1; transform: none; transition: none; }
}
