.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-brand-orange);
  color: var(--color-text);
  box-shadow: 0 4px 14px rgb(245 166 35 / 0.45);
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: var(--color-text);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.7);
}

.btn--outline-light:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.btn--outline {
  background: var(--color-surface);
  color: var(--color-brand-blue);
  border-color: rgb(0 129 197 / 0.45);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  background: rgb(0 129 197 / 0.06);
  color: var(--color-brand-green);
}

.btn--block {
  width: 100%;
  text-align: center;
}

.feature-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .feature-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.feature {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid rgb(46 147 72 / 0.15);
}

.feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgb(0 129 197 / 0.15),
    rgb(46 147 72 / 0.12)
  );
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgb(46 147 72 / 0.2);
}

blockquote.quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-brand-orange);
  background: rgb(245 166 35 / 0.08);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
}

blockquote.quote.quote--offset {
  margin-top: 2.5rem;
}

blockquote.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
}

blockquote.quote cite a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

blockquote.quote cite a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.highlights-gallery-more {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.highlights-gallery-more a {
  color: var(--color-brand-blue);
  text-decoration: none;
}

.highlights-gallery-more a:hover {
  color: var(--color-brand-green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.split-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.split-heading__small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.highlights-outcomes-label {
  margin-top: 2.35rem;
  margin-bottom: 0.85rem;
}

/* Home — show highlights mosaic (uses assets/images/gallery/*.jpeg) */
.highlights-gallery {
  position: relative;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(72px, 11vw);
  margin: 1.75rem 0 2.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    145deg,
    rgb(0 129 197 / 0.06),
    rgb(46 147 72 / 0.05) 45%,
    rgb(255 255 255 / 0.92)
  );
  border: 1px solid rgb(0 129 197 / 0.12);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.75) inset,
    var(--shadow-sm);
}

.highlights-gallery__cell {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius-md) - 3px);
  overflow: hidden;
  background: rgb(15 23 42 / 0.06);
  box-shadow: 0 4px 18px rgb(15 23 42 / 0.07);
  outline: 1px solid rgb(255 255 255 / 0.55);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.highlights-gallery__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(0 129 197 / 0.14);
}

.highlights-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .highlights-gallery__cell:hover {
    transform: translateY(-3px);
    box-shadow:
      0 14px 36px rgb(15 23 42 / 0.12),
      0 0 0 1px rgb(0 129 197 / 0.18);
  }

  .highlights-gallery__cell:hover img {
    transform: scale(1.06);
  }
}

.highlights-gallery__cell--lead {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  min-height: 0;
}

.highlights-gallery__cell:not(.highlights-gallery__cell--lead):not(.highlights-gallery__cell--wide) {
  min-height: 0;
}

.highlights-gallery__cell--wide {
  grid-column: span 2;
  grid-row: 3;
}

@media (max-width: 900px) {
  .highlights-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(88px, 22vw);
    gap: 0.5rem;
    margin: 1.35rem 0 1.85rem;
    padding: 0.4rem;
  }

  .highlights-gallery__cell--lead {
    grid-column: 1 / -1;
    grid-row: span 2;
    min-height: 11.5rem;
  }

  .highlights-gallery__cell:not(.highlights-gallery__cell--lead) {
    grid-column: auto;
    grid-row: auto;
  }

  .highlights-gallery__cell--wide {
    grid-column: span 1;
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .highlights-gallery {
    grid-auto-rows: minmax(76px, 28vw);
  }

  .highlights-gallery__cell--lead {
    min-height: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .highlights-gallery__cell {
    transition: none;
  }

  .highlights-gallery__cell img {
    transition: none;
  }
}

/* About — full photo gallery */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .gallery-full {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 0.85rem;
  }
}

.gallery-full__item {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgb(15 23 42 / 0.06);
  box-shadow: 0 4px 18px rgb(15 23 42 / 0.07);
  outline: 1px solid rgb(0 129 197 / 0.12);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.gallery-full__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  border-radius: inherit;
}

.gallery-full__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-full__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.12);
  }

  .gallery-full__item:hover img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-full__item {
    transition: none;
  }

  .gallery-full__item img {
    transition: none;
  }
}

/* Click-to-enlarge gallery (home mosaic + about grid) */
.gallery-figure--zoomable {
  cursor: zoom-in;
}

.gallery-figure--zoomable:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 3px;
}

.gallery-figure--zoomable:focus:not(:focus-visible) {
  outline: none;
}

body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgb(15 23 42 / 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.image-lightbox.is-open {
  opacity: 1;
}

.image-lightbox__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1240px, 100%);
  max-height: 100%;
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow:
    0 8px 40px rgb(0 0 0 / 0.35),
    0 0 0 1px rgb(255 255 255 / 0.1);
}

.image-lightbox__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-sm);
  background: rgb(15 23 42 / 0.72);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}

.image-lightbox__close:hover {
  background: rgb(0 129 197 / 0.85);
  border-color: rgb(255 255 255 / 0.55);
}

.image-lightbox__close:active {
  transform: scale(0.96);
}

.image-lightbox__close-icon {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 300;
}

.image-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-sm);
  background: rgb(15 23 42 / 0.72);
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}

.image-lightbox__nav:hover {
  background: rgb(0 129 197 / 0.85);
  border-color: rgb(255 255 255 / 0.55);
}

.image-lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.image-lightbox__nav--prev {
  left: 0;
}

.image-lightbox__nav--next {
  right: 0;
}

.image-lightbox__nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
}

.image-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .image-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .image-lightbox__nav-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox {
    transition: none;
  }
}
