:root {
  --page-blue: #0d4c94;
  --page-blue-bright: #0967c9;
  --page-navy: #081d33;
  --page-mist: #eef6ff;
  --page-line: #cfddea;
  --page-green: #45c9bb;
  --page-white: #fff;
  --page-radius: 1.35rem;
  --page-radius-small: 0.9rem;
  --page-shadow: 0 18px 45px rgba(8, 29, 51, 0.09);
}

body {
  background: var(--page-white);
  color: var(--page-navy);
}

.page-layout {
  overflow: clip;
  background: var(--page-white);
}

.button {
  border-radius: var(--page-radius-small);
}

.page-section {
  padding: 7rem max(1.5rem, calc((100vw - 1200px) / 2));
}

.page-section h2,
.inner-hero h1,
.home-cta h2 {
  margin: 0;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.page-section h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.home-hero {
  min-height: min(52rem, 92vh);
  border-radius: 0 0 2rem 2rem;
}

.home-hero .hero-copy {
  max-width: 900px;
}

.hero-summary {
  max-width: 580px;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.home-hero .button-text {
  border-color: rgba(255, 255, 255, 0.34);
  padding-left: 1.25rem;
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 5rem;
  align-items: end;
}

.split-copy p {
  margin: 0 0 1.5rem;
  color: #52677a;
  font-size: 1.12rem;
}

.text-arrow {
  color: var(--page-blue);
  font-weight: 800;
}

.text-arrow span {
  margin-left: 0.5rem;
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0;
}

.home-pillars article {
  min-height: 10.5rem;
  padding: 1.6rem;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-white);
  box-shadow: var(--page-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-pillars article + article {
  border-left: 1px solid var(--page-line);
}

.home-pillars h3 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.home-pillars p {
  margin: 0;
  color: #617488;
}

.recognition-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding-top: 4.25rem;
  padding-bottom: 4.25rem;
  color: var(--page-white);
  background: var(--page-navy);
  margin: 1.5rem;
  border-radius: 1.75rem;
}

.recognition-content {
  display: grid;
  gap: 1.5rem;
  align-content: end;
}

.recognition-badges {
  display: flex;
  gap: 1rem;
}

.recognition-badges img {
  width: 7rem;
  height: 7rem;
  padding: 0.55rem;
  border-radius: 1rem;
  object-fit: contain;
  background: var(--page-white);
}

.recognition-list {
  display: grid;
  align-content: end;
}

.recognition-list span {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.home-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem max(1.5rem, calc((100vw - 1200px) / 2));
  color: var(--page-white);
  background: var(--page-blue);
  margin: 1.5rem;
  border-radius: 1.75rem;
}

.home-cta h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.home-cta p {
  max-width: 430px;
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.inner-hero {
  min-height: 33rem;
  padding: 12rem max(1.5rem, calc((100vw - 1200px) / 2)) 6rem;
  color: var(--page-white);
  background:
    linear-gradient(115deg, rgba(8, 29, 51, 0.08), rgba(8, 29, 51, 0.3)),
    var(--page-blue-bright);
  border-radius: 0 0 2rem 2rem;
}

.inner-hero h1 {
  max-width: 900px;
  font-size: clamp(3.8rem, 8vw, 7.5rem);
}

.inner-hero p {
  max-width: 590px;
  margin: 1.7rem 0 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.join-steps {
  background: var(--page-white);
}

.section-heading-simple {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.section-heading-simple p {
  margin: 1rem 0 0;
  color: #5c7083;
  font-size: 1.08rem;
}

.membership-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.membership-process article {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 1rem;
  min-height: 0;
  padding: 1.5rem;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-white);
  box-shadow: var(--page-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.membership-process article:last-child {
  grid-column: 1 / -1;
}

.membership-process b {
  color: var(--page-blue);
  font-size: 1.15rem;
}

.membership-process h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.membership-process p {
  max-width: 520px;
  margin: 0;
  color: #5c7083;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.membership-actions .button-primary {
  color: var(--page-white);
  background: var(--page-blue);
}

.membership-actions .button-outline {
  color: var(--page-blue);
  border-color: var(--page-blue);
}

.benefits-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  background: var(--page-mist);
  margin: 1.5rem;
  border-radius: 1.75rem;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--page-line);
}

.benefit-list span {
  color: var(--page-blue);
  font-weight: 800;
}

.benefit-list p {
  margin: 0;
  color: #53687c;
}

.renew-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem max(1.5rem, calc((100vw - 1200px) / 2));
  color: var(--page-white);
  background: var(--page-navy);
  margin: 1.5rem;
  border-radius: 1.75rem;
}

.renew-strip h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.06em;
}

.renew-strip .button-outline {
  flex: 0 0 auto;
  color: var(--page-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.team-hero {
  background:
    radial-gradient(circle at 78% 28%, rgba(9, 103, 201, 0.72), transparent 19rem),
    var(--page-navy);
}

.members.team-members {
  margin: 1.5rem;
  padding: 7rem max(1.5rem, calc((100vw - 1200px) / 2));
  border-radius: 1.75rem;
  background: transparent;
}

.events-hero {
  min-height: 30rem;
  background:
    linear-gradient(135deg, rgba(13, 76, 148, 0.35), transparent 55%),
    var(--page-navy);
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-type-card {
  min-width: 0;
  padding: 0.8rem 0.8rem 1.4rem;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-white);
  box-shadow: var(--page-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-visual {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  border-radius: calc(var(--page-radius) - 0.35rem);
  background: var(--page-blue);
}

.event-visual::before,
.event-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.event-visual::before {
  inset: 16% auto auto 18%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.event-visual::after {
  right: -15%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: rgba(69, 201, 187, 0.48);
}

.event-visual-industry {
  background: #0e355b;
}

.event-visual-community {
  background: #137e94;
}

.event-type-card h3 {
  margin: 1.4rem 0.7rem 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.045em;
}

.event-type-card p {
  margin: 0 0.7rem;
  color: #607386;
}

.event-highlights-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin: 7rem 0 2rem;
}

.event-highlights-heading h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
}

.event-highlights-heading p {
  margin: 0 0 0.5rem;
  color: #607386;
}

.event-highlight-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.4rem 0 1.25rem;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x pan-y;
}

.event-highlight-grid::-webkit-scrollbar {
  display: none;
}

.event-highlight-card {
  display: grid;
  flex: 0 0 calc((100% - 3.75rem) / 3.25);
  grid-template-rows: 13.5rem 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c6d7e8;
  border-radius: 1.35rem;
  color: var(--page-navy);
  background: var(--page-white);
  box-shadow: 0 14px 34px rgba(8, 39, 69, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.event-highlight-card:hover {
  transform: translateY(-0.3rem);
  border-color: #8eb5db;
  box-shadow: 0 24px 55px rgba(8, 29, 51, 0.14);
}

.event-highlight-card:focus-visible {
  outline: 3px solid var(--page-blue);
  outline-offset: 4px;
}

.event-highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-highlight-card:hover img,
.event-highlight-card:focus-visible img {
  transform: scale(1.025);
}

.event-highlight-card > div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 13.25rem;
  padding: 1.25rem;
}

.event-highlight-card time {
  justify-self: start;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--page-blue);
  background: #eaf3fc;
  font-size: 0.82rem;
  font-weight: 700;
}

.event-highlight-card h3 {
  display: -webkit-box;
  margin: 0.8rem 0 0.65rem;
  overflow: hidden;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-highlight-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #607386;
  font-size: 0.93rem;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.upcoming-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: var(--page-mist);
  margin: 1.5rem;
  border-radius: 1.75rem;
  scroll-margin-top: 4.5rem;
}

.event-overview {
  scroll-margin-top: 4.5rem;
}

.upcoming-copy p {
  color: #5b6f82;
  font-size: 1.05rem;
}

.calendar-shell {
  min-height: 36rem;
  border: 1px solid #bdd0e1;
  overflow: hidden;
  border-radius: var(--page-radius);
  background: var(--page-white);
  box-shadow: var(--page-shadow);
}

.calendar-placeholder {
  display: grid;
  min-height: 36rem;
  place-items: center;
  align-content: center;
  padding: 2rem;
  text-align: center;
}

.calendar-placeholder > strong {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.calendar-placeholder p {
  max-width: 360px;
  margin: 0.5rem 0 0;
  color: #617487;
}

.calendar-icon {
  width: 7rem;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 0.6rem;
  background: var(--page-white);
  box-shadow: 0 18px 40px rgba(8, 29, 51, 0.1);
}

.calendar-icon span {
  display: block;
  height: 1.7rem;
  background: var(--page-blue);
}

.calendar-icon b {
  display: block;
  padding: 1.1rem 0;
  color: var(--page-blue);
}

.calendar-shell iframe {
  display: block;
  width: 100%;
  height: 42rem;
  border: 0;
}

.site-footer p {
  font-size: 0.8rem;
}

.motion-ready {
  transform: translateY(2rem);
  opacity: 0;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.page-layout > section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto 42rem;
}

.motion-ready.is-visible {
  transform: none;
  opacity: 1;
}

.member-profile.motion-ready {
  transform: translateY(1.5rem) scale(0.96);
}

.member-profile.motion-ready.is-visible {
  transform: none;
}

.home-pillars article:hover,
.membership-process article:hover,
.event-type-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 24px 55px rgba(8, 29, 51, 0.14);
}

@media (max-width: 900px) {
  .split-copy,
  .recognition-section,
  .home-cta,
  .benefits-section,
  .upcoming-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-pillars {
    grid-template-columns: 1fr;
  }

  .home-pillars article + article {
    border-top: 1px solid var(--page-line);
    border-left: 1px solid var(--page-line);
  }

  .event-type-grid {
    grid-template-columns: 1fr;
  }

  .event-highlight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .event-visual {
    min-height: 18rem;
  }
}

@media (max-width: 767px) {
  .page-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .recognition-section,
  .home-cta,
  .benefits-section,
  .team-members,
  .upcoming-section {
    margin: 0.75rem;
    border-radius: 1.25rem;
  }

  .home-hero {
    min-height: 42rem;
  }

  .home-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero .button {
    width: 100%;
  }

  .inner-hero {
    min-height: 30rem;
    padding-top: calc(9rem + env(safe-area-inset-top));
    padding-bottom: 4rem;
  }

  .inner-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .home-pillars {
    gap: 0.75rem;
  }

  .home-pillars article {
    min-height: 0;
    padding: 1.35rem;
  }

  .recognition-section {
    gap: 2rem;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .recognition-badges img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .home-cta {
    gap: 1.6rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .membership-process {
    grid-template-columns: 1fr;
  }

  .membership-process article,
  .membership-process article:last-child {
    grid-column: auto;
    padding: 1.25rem;
  }

  .membership-actions {
    flex-direction: column;
  }

  .membership-actions .button {
    width: 100%;
  }

  .benefit-list article {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .event-highlights-heading {
    display: block;
    margin-top: 4.5rem;
  }

  .event-highlights-heading p {
    margin-top: 1rem;
  }

  .event-highlight-grid {
    grid-template-columns: 1fr;
    scroll-behavior: auto;
    scroll-snap-type: none;
    touch-action: pan-x pan-y;
  }

  .members.team-members {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .calendar-shell,
  .calendar-placeholder {
    min-height: 27rem;
  }
}

/* 2026 page refresh: compact editorial heroes and seamless document swaps */
html {
  scroll-behavior: smooth;
}

#main-content {
  transition:
    opacity 150ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

#main-content.page-leaving {
  opacity: 0;
  transform: translateY(0.45rem);
}

#main-content.page-entering {
  opacity: 0;
  transform: translateY(0.65rem);
}

.home-hero-new {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(32rem, 1.18fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: 44rem;
  padding: 9rem max(1.5rem, calc((100vw - 1200px) / 2)) 4rem;
  background:
    radial-gradient(circle at 8% 10%, rgba(13, 76, 146, 0.1), transparent 26rem),
    #f4f8fd;
  border-radius: 0 0 2rem 2rem;
}

.home-hero-copy-new {
  position: relative;
  z-index: 1;
  animation: hero-copy-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-copy-new h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--page-navy);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(4rem, 7.2vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.home-hero-join {
  display: inline-flex;
  min-height: 3.75rem;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding: 0.95rem 1.25rem 0.95rem 1.4rem;
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  border: 1px solid #0d4c92;
  border-radius: 0.9rem;
  background: #0d4c92;
  box-shadow: 0 14px 30px rgba(13, 76, 146, 0.18);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.home-hero-join::after {
  content: "";
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(13, 76, 146, 0.1);
  border-radius: 0.7rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12h14M13 7l5 5-5 5' stroke='%230d4c92' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.2rem;
  box-shadow: 0 5px 12px rgba(8, 58, 115, 0.12);
  transition: transform 180ms ease;
}

.home-hero-join:hover {
  color: #fff;
  background: #083a73;
  box-shadow: 0 18px 36px rgba(8, 58, 115, 0.24);
  transform: translateY(-2px);
}

.home-hero-join:hover::after {
  transform: translateX(0.15rem);
}

.home-hero-join:focus-visible {
  outline: 3px solid rgba(13, 76, 146, 0.28);
  outline-offset: 4px;
}

.home-hero-copy-new > p {
  max-width: 33rem;
  margin: 1.75rem 0 2rem;
  color: #4d647c;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.home-hero-copy-new .hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-hero-copy-new .button-outline {
  color: var(--page-blue);
  border-color: rgba(13, 76, 146, 0.3);
  background: #fff;
}

.home-hero-image {
  position: relative;
  min-width: 0;
  height: clamp(27rem, 44vw, 37rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 76, 146, 0.2);
  border-radius: 1.75rem;
  background: var(--page-navy);
  box-shadow: 0 1.8rem 4.5rem rgba(8, 29, 51, 0.16);
  animation: hero-image-in 720ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 29, 51, 0.78));
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transition: opacity 180ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-image:hover img {
  transform: scale(1.025);
}

.home-hero-caption {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.4rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  color: #fff;
  font-size: 1rem;
  pointer-events: none;
}

.home-hero-caption strong {
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.home-hero-caption span {
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.home-hero-image img.is-changing {
  opacity: 0.18;
  transform: scale(1.035);
}

.page-masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  min-height: 22rem;
  padding: 9rem max(1.5rem, calc((100vw - 1200px) / 2)) 3.5rem;
  overflow: hidden;
  color: var(--page-navy);
  border: 0;
  border-radius: 0 0 2rem 2rem;
  background: var(--page-white);
}

.page-masthead::after {
  content: none;
}

.masthead-copy {
  position: relative;
  z-index: 1;
  animation: hero-copy-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.masthead-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--page-navy);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(4rem, 7.5vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.masthead-copy p {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  color: #4d647c;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.masthead-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  animation: hero-image-in 620ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.masthead-links a {
  padding: 0.85rem 1.1rem;
  color: var(--page-blue);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(13, 76, 146, 0.24);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.76);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.masthead-links a:hover {
  color: #fff;
  background: var(--page-blue);
  transform: translateY(-0.15rem);
}

.members.team-members {
  margin: 0;
  padding-top: 3.5rem;
  border-radius: 0;
}

.event-overview {
  padding-top: 3.5rem;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-hero-new {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    min-height: 0;
    padding-top: calc(8.5rem + env(safe-area-inset-top));
    padding-bottom: 2rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .home-hero-copy-new h1 {
    font-size: clamp(3.6rem, 16vw, 5.4rem);
  }

  .home-hero-image {
    height: min(29rem, 86vw);
    border-radius: 1.25rem;
  }

  .page-masthead {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding-top: calc(8.5rem + env(safe-area-inset-top));
    padding-bottom: 2.25rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .masthead-copy h1 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .masthead-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1320px) {
  .page-masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .masthead-links {
    justify-content: flex-start;
  }

}

@media (max-width: 560px) {
  .home-hero-new {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .home-hero-join {
    width: 100%;
    justify-content: space-between;
    margin-top: 1.75rem;
  }

  .home-hero-copy-new > p {
    margin: 1.25rem 0 1.5rem;
  }

  .home-hero-copy-new .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-hero-copy-new .button {
    width: 100%;
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .home-hero-caption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .page-masthead {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .masthead-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .masthead-links a {
    display: grid;
    place-items: center;
    min-height: 3.25rem;
    padding: 0.7rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main-content,
  .home-hero-copy-new,
  .home-hero-image,
  .masthead-copy,
  .masthead-links {
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .event-highlight-card,
  .event-highlight-card img {
    transition: none;
  }
}

/* 2026 page refresh */
.brand .brand-mark-official {
  width: 17rem;
  max-width: min(42vw, 17rem);
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 47rem;
  padding: 10rem max(1.5rem, calc((100vw - 1200px) / 2)) 4rem;
  background:
    radial-gradient(circle at 90% 5%, rgba(13, 76, 148, 0.09), transparent 32rem),
    #f7faff;
  border-radius: 0 0 2rem 2rem;
}

.home-intro-simple {
  grid-template-columns: minmax(0, 1fr);
  min-height: 35rem;
  place-items: center start;
  padding-top: 8rem;
  padding-bottom: 3rem;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(8, 29, 51, 0.94) 0%, rgba(13, 76, 148, 0.82) 48%, rgba(8, 29, 51, 0.46) 100%),
    url("assets/events/2026/co2-sustainability-02.jpg") center 48% / cover no-repeat;
}

.home-intro-simple .home-intro-copy {
  width: min(100%, 48rem);
}

.home-intro-simple .home-intro-copy > p {
  max-width: 40rem;
}

.home-intro-simple .hero-actions {
  justify-content: flex-start;
}

.home-intro-simple .home-intro-copy h1,
.home-intro-simple .home-intro-copy h1 span {
  color: var(--page-white);
  text-shadow: 0 0.12em 0.45em rgba(8, 29, 51, 0.28);
}

.home-intro-simple .home-intro-copy > p {
  color: rgba(255, 255, 255, 0.88);
}

.home-intro-simple .button-outline {
  color: var(--page-white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.home-intro-simple .button-outline:hover {
  color: var(--page-navy);
  background: var(--page-white);
}

.home-intro-copy h1 {
  margin: 0;
  color: var(--page-navy);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(4rem, 7.6vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.home-intro-copy h1 span {
  color: var(--page-blue);
}

.home-intro-copy > p {
  max-width: 36rem;
  margin: 2rem 0;
  color: #4f6479;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.home-intro .hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-pillars {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.home-pillars article {
  min-height: 0;
  padding: 1.35rem 1.5rem;
  box-shadow: none;
}

.home-pillars h3 {
  font-size: 1.6rem;
}

.recognition-section {
  display: block;
  margin: 1.5rem;
  padding: 3rem max(1.5rem, calc((100vw - 1200px) / 2));
  color: var(--page-navy);
  background: #f1f7ff;
  border: 1px solid #cbdced;
  border-radius: 1.75rem;
}

.recognition-heading {
  margin-bottom: 1.6rem;
}

.recognition-heading h2 {
  margin: 0;
  color: var(--page-navy);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.recognition-awards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.recognition-awards article {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.2rem;
  align-items: center;
  min-height: 8.25rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid #c9d9e9;
  border-radius: 1.1rem;
  background: #fff;
}

.recognition-awards img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.recognition-awards strong {
  color: var(--page-blue);
  font-size: 1rem;
}

.recognition-awards h3 {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.recognition-awards .recognition-text-award {
  grid-template-columns: 1fr;
}

.recognition-text-award > div {
  display: grid;
  align-content: center;
  height: 100%;
}

.home-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  margin: 1.5rem;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.home-cta > div {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

.home-cta h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.home-cta p {
  margin: 0;
}

.home-cta .button-primary {
  flex: 0 0 auto;
  color: var(--page-blue);
  background: var(--page-white);
}

.home-cta .button-primary:hover {
  color: var(--page-white);
  background: var(--page-navy);
}

.team-hero {
  min-height: 20.5rem;
  padding-top: 8.75rem;
  padding-bottom: 2.25rem;
}

.team-hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.5rem);
}

.team-hero p {
  margin: 0.9rem 0 0;
}

.members.team-members {
  margin-top: 0;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.events-hero {
  min-height: 20.5rem;
  padding-top: 8.75rem;
  padding-bottom: 2.25rem;
}

.events-hero p {
  margin: 0.9rem 0 0;
}

.event-overview {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.event-highlights-heading {
  margin: 0 0 2rem;
}

.event-highlight-card {
  grid-template-rows: 13.5rem 1fr;
}

.event-highlight-card > div {
  padding: 1.25rem;
}

.event-highlight-card p {
  margin: 0;
}

.upcoming-section {
  align-items: start;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.upcoming-copy {
  padding-top: 0.5rem;
}

.join-guide {
  padding: 10rem max(1.5rem, calc((100vw - 1200px) / 2)) 4rem;
  background: #f7faff;
}

.join-guide-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.join-guide h1 {
  margin: 0;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.join-guide-heading p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: #536b80;
  font-size: 1.05rem;
}

.membership-pdf {
  display: block;
  width: 100%;
  height: min(78rem, 80vh);
  min-height: 40rem;
  border: 1px solid #c7d8e9;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: var(--page-shadow);
}

.event-detail-page {
  min-height: 70vh;
  padding: 10rem max(1.5rem, calc((100vw - 1200px) / 2)) 4rem;
  background: #f7faff;
}

.event-back {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--page-blue);
  background: #e6f1fc;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease;
}

.event-back::before {
  content: "←";
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.event-back:hover {
  color: var(--page-white);
  background: var(--page-blue);
}

.event-back:hover::before {
  transform: translateX(-0.2rem);
}

.event-detail-header {
  max-width: 62rem;
  margin-bottom: 3rem;
}

.event-detail-header time {
  color: var(--page-blue);
  font-size: 1rem;
  font-weight: 750;
}

.event-detail-header h1,
.event-not-found h1 {
  margin: 0.6rem 0 0;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.event-detail-copy {
  position: sticky;
  top: 7.5rem;
  padding: 1.8rem;
  border: 1px solid #cbdced;
  border-radius: 1.35rem;
  background: #fff;
}

.event-detail-copy p {
  margin: 0 0 1rem;
  color: #425b72;
  font-size: 1.05rem;
  line-height: 1.65;
}

.event-detail-copy .button {
  width: 100%;
  margin-top: 0.6rem;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.event-gallery figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 1px solid #cbdced;
  border-radius: 1.35rem;
  background: #e7eff7;
  box-shadow: 0 12px 30px rgba(8, 29, 51, 0.08);
}

.event-gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.event-gallery figure:only-child {
  grid-column: 1 / -1;
  width: min(100%, 36rem);
  justify-self: center;
}

.event-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.event-gallery-trigger:hover img,
.event-gallery-trigger:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.82);
}

.event-gallery-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.event-gallery-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.8rem;
  color: #fff;
  background: rgba(6, 27, 48, 0.72);
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.event-gallery-trigger:hover .event-gallery-zoom,
.event-gallery-trigger:focus-visible .event-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.event-gallery-zoom svg,
.event-media-viewer svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.event-media-open {
  overflow: hidden;
}

.event-media-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(3, 14, 26, 0.96);
}

.event-media-viewer::backdrop {
  background: rgba(3, 14, 26, 0.82);
  backdrop-filter: blur(12px);
}

.event-media-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  padding: max(0.85rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
}

.event-media-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.event-media-count,
.event-media-help {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 650;
}

.event-media-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.event-media-actions button,
.event-media-nav {
  display: grid;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.event-media-actions button:hover,
.event-media-actions button:focus-visible,
.event-media-nav:hover,
.event-media-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.event-media-stage {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.event-media-canvas {
  position: relative;
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 1rem;
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
}

.event-media-canvas.is-zoomed {
  cursor: grab;
}

.event-media-canvas.is-zoomed:active {
  cursor: grabbing;
}

.event-media-canvas img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
  user-select: none;
}

.event-media-nav {
  width: 3.25rem;
  height: 4.5rem;
  padding: 0;
}

.event-media-nav svg {
  width: 1.6rem;
  height: 1.6rem;
}

.event-media-help {
  padding-top: 0.55rem;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .event-media-shell {
    padding-inline: max(0.55rem, env(safe-area-inset-left)) max(0.55rem, env(safe-area-inset-right));
  }

  .event-media-toolbar {
    min-height: 3rem;
  }

  .event-media-actions button {
    min-width: 2.5rem;
    height: 2.5rem;
    padding-inline: 0.65rem;
  }

  .event-media-stage {
    grid-template-columns: 1fr;
  }

  .event-media-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 2.8rem;
    height: 3.8rem;
    transform: translateY(-50%);
    background: rgba(3, 14, 26, 0.65);
  }

  .event-media-prev {
    left: 0.35rem;
  }

  .event-media-next {
    right: 0.35rem;
  }

  .event-media-help {
    font-size: 0.75rem;
  }
}

.event-not-found {
  padding: 8rem 0;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(14rem, 1fr) auto auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1rem max(1.5rem, calc((100vw - 1200px) / 2));
  background: var(--page-navy);
}

.footer-identity {
  display: block;
}

.footer-identity .footer-brand img {
  display: block;
  width: 14rem;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: #fff;
}

.site-footer .footer-copy {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.site-footer .footer-socials a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) and (min-width: 768px) {
  .member-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .member-profile {
    grid-column: span 2;
  }

  .member-profile:nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .member-profile:last-child {
    grid-column: 4 / span 2;
  }

}

@media (max-width: 900px) {
  .home-intro,
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-gallery figure:only-child {
    width: min(100%, 32rem);
  }

  .event-detail-copy {
    position: static;
  }
}

@media (max-width: 767px) {
  .brand .brand-mark-official {
    width: min(18rem, calc(100vw - 8.25rem));
    max-width: none;
  }

  .home-intro {
    min-height: 0;
    gap: 2rem;
    padding-top: calc(9rem + env(safe-area-inset-top));
    padding-bottom: 2rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .home-intro-simple {
    min-height: 36rem;
    align-content: center;
    justify-items: stretch;
    text-align: left;
  }

  .home-intro-copy h1 {
    font-size: clamp(3.7rem, 18vw, 5.8rem);
  }

  .home-intro-copy > p {
    margin: 1.4rem 0;
  }

  .home-intro .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-intro .button {
    width: 100%;
  }

  .home-pillars {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .recognition-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .recognition-awards {
    grid-template-columns: 1fr;
  }

  .recognition-awards article {
    grid-template-columns: 4.5rem 1fr;
    padding: 0.65rem 0.8rem;
  }

  .recognition-awards img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .recognition-awards .recognition-text-award {
    grid-template-columns: 1fr;
  }

  .home-cta {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .home-cta > div {
    align-items: stretch;
    flex-direction: column;
  }

  .home-cta .button {
    width: 100%;
  }

  .team-hero,
  .events-hero {
    min-height: 22rem;
    padding-top: calc(8.5rem + env(safe-area-inset-top));
    padding-bottom: 2rem;
  }

  .team-hero h1,
  .events-hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
  }

  .event-overview {
    padding-top: 3rem;
  }

  .upcoming-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .event-highlight-card {
    flex-basis: calc((100% - 1.25rem) / 1.15);
    grid-template-rows: 14rem 1fr;
  }

  .join-guide {
    padding-top: calc(9rem + env(safe-area-inset-top));
    padding-bottom: 2rem;
  }

  .join-guide-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .join-guide-heading .button {
    width: 100%;
  }

  .membership-pdf {
    height: 72vh;
    min-height: 32rem;
  }

  .event-detail-page {
    padding-top: calc(9rem + env(safe-area-inset-top));
  }

  .event-detail-header {
    margin-bottom: 2rem;
  }

  .event-detail-copy {
    padding: 1.25rem;
  }

  .event-gallery {
    grid-template-columns: 1fr;
  }

  .event-gallery figure:only-child {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 1.2rem;
    min-height: 0;
    padding-top: 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }

  .footer-identity {
    min-width: 0;
  }

  .footer-identity .footer-brand img {
    width: min(11rem, 48vw);
    max-height: 4rem;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 0.9rem 1.2rem;
  }

  .site-footer .footer-socials {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-footer .footer-copy {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .home-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.75rem 1.25rem;
  }

  .home-cta h2 {
    max-width: 20rem;
    font-size: clamp(2.75rem, 12vw, 3.6rem);
  }

  .home-cta > div {
    width: 100%;
    gap: 1rem;
  }

  .home-cta p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.5;
  }

  .site-footer {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.8rem 1rem;
    align-items: center;
    padding: 1rem max(1rem, env(safe-area-inset-right))
      calc(1rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .footer-identity {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-identity .footer-brand {
    padding: 0.3rem;
    border-radius: 0.5rem;
  }

  .footer-identity .footer-brand img {
    width: min(7.5rem, 32vw);
    max-height: 3.1rem;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    gap: 0.3rem 0.9rem;
    text-align: right;
  }

  .footer-links a {
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .site-footer .footer-socials {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    gap: 0.45rem;
  }

  .site-footer .footer-socials a {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
  }

  .site-footer .footer-copy {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    text-align: right;
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: normal;
  }
}

/* Stable footer layout across desktop, tablet, and phone widths. */
@media (max-width: 1024px) and (min-width: 768px) {
  .site-footer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand links social"
      "copy copy copy";
    gap: 0.8rem 1.5rem;
  }

  .footer-identity {
    grid-area: brand;
  }

  .footer-links {
    grid-area: links;
    justify-self: center;
  }

  .site-footer .footer-socials {
    grid-area: social;
    justify-self: end;
  }

  .site-footer .footer-copy {
    grid-area: copy;
    justify-self: center;
    margin: 0;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "brand social"
      "links links"
      "copy copy";
    gap: 0.75rem 1rem;
    min-height: 0;
    padding-top: 1rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .footer-identity {
    grid-area: brand;
    min-width: 0;
  }

  .footer-identity .footer-brand {
    display: inline-flex;
    max-width: 100%;
    padding: 0.3rem;
    border-radius: 0.5rem;
  }

  .footer-identity .footer-brand img {
    width: min(10.75rem, 48vw);
    height: auto;
    max-height: none;
  }

  .footer-links {
    grid-area: links;
    justify-self: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    width: 100%;
    padding-top: 0.1rem;
    text-align: center;
  }

  .footer-links a {
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: nowrap;
  }

  .site-footer .footer-socials {
    grid-area: social;
    justify-self: end;
    gap: 0.45rem;
  }

  .site-footer .footer-socials a {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.7rem;
  }

  .site-footer .footer-copy {
    grid-area: copy;
    justify-self: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .site-footer {
    gap: 0.7rem 0.75rem;
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-left: max(0.75rem, env(safe-area-inset-left));
  }

  .footer-identity .footer-brand img {
    width: min(9.25rem, 46vw);
  }

  .footer-links {
    gap: 0.4rem 0.85rem;
  }

  .footer-links a {
    font-size: 0.74rem;
  }

  .site-footer .footer-socials a {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Compact content where the next section is the primary destination. */
.home-cta {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-cta > div {
  justify-content: center;
}

.team-masthead {
  min-height: 0;
  padding-bottom: 1.25rem;
}

.event-overview {
  padding-top: 8rem;
}

.members.team-members {
  padding-top: 2.5rem;
}

@media (max-width: 767px) {
  .home-cta > div {
    align-items: stretch;
    text-align: center;
  }

  .event-overview {
    padding-top: 7.25rem;
  }

  .members.team-members {
    padding-top: 2rem;
  }
}

/* Put chapter activity and the live month calendar in the first Events view. */
.events-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.78fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 8rem max(1.5rem, calc((100vw - 1200px) / 2)) 2rem;
}

.events-dashboard .event-overview,
.events-dashboard .upcoming-section {
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--page-line);
  border-radius: 1.5rem;
  background: #f7faff;
}

.events-dashboard .event-highlights-heading {
  margin: 0 0 1.15rem;
}

.events-dashboard .event-highlights-heading h2,
.events-dashboard .upcoming-copy h2 {
  font-size: clamp(2rem, 3.3vw, 3.4rem);
}

.events-dashboard .event-highlight-card {
  flex-basis: min(17rem, 72%);
  grid-template-rows: 11rem 1fr;
}

.events-dashboard .event-highlight-card > div {
  min-height: 11.5rem;
  padding: 1rem;
}

.events-dashboard .upcoming-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-content: start;
  background: var(--page-mist);
}

.events-dashboard .upcoming-copy {
  padding: 0;
}

.events-dashboard .upcoming-copy p {
  margin-bottom: 0;
}

.events-dashboard .calendar-shell,
.events-dashboard .calendar-placeholder {
  min-height: 27rem;
}

.events-dashboard .calendar-shell iframe {
  height: 27rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

@media (max-width: 900px) {
  .events-dashboard {
    grid-template-columns: 1fr;
    padding-top: 7.25rem;
  }

  .events-dashboard .event-highlight-card {
    flex-basis: min(18rem, 82vw);
  }
}

@media (max-width: 767px) {
  .events-dashboard {
    gap: 0.85rem;
    padding: 7rem 0.75rem 1rem;
  }

  .events-dashboard .event-overview,
  .events-dashboard .upcoming-section {
    padding: 1.1rem;
    border-radius: 1.2rem;
  }

  .events-dashboard .event-highlight-grid {
    gap: 0.85rem;
    padding: 0.2rem 0 0.65rem;
  }

  .events-dashboard .event-highlight-card {
    flex-basis: min(17.5rem, 82vw);
    grid-template-rows: 12rem auto;
    min-height: 0;
    background: var(--page-white);
  }

  .events-dashboard .event-highlight-card > img {
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .events-dashboard .event-highlight-card > div {
    position: relative;
    z-index: 1;
    grid-row: 2;
    min-height: 0;
    padding: 1rem;
    background: var(--page-white);
  }

  .events-dashboard .event-highlight-card h3 {
    margin: 0.7rem 0 0.45rem;
  }

  .events-dashboard .event-highlight-card p {
    -webkit-line-clamp: 3;
  }

  .events-dashboard .calendar-shell,
  .events-dashboard .calendar-placeholder {
    min-height: 32rem;
  }

  .events-dashboard .calendar-shell iframe {
    height: 32rem;
  }

  .footer-links a {
    min-height: 2.3rem;
    padding: 0.48rem 0.7rem;
  }
}
