/* ===== Shared Custom Styles for Baby Zebra Prototype ===== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navigation */
.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-logo-dark {
  filter: brightness(0) saturate(100%) invert(24%) sepia(14%) saturate(1284%) hue-rotate(329deg) brightness(93%) contrast(83%);
  opacity: 0.96;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
a:hover .site-logo-dark {
  filter: brightness(0) saturate(100%) invert(17%) sepia(15%) saturate(1257%) hue-rotate(330deg) brightness(90%) contrast(88%);
  opacity: 1;
}
.public-nav-link {
  color: #6b625e;
  transition: color 0.2s ease;
}
.public-nav-link:hover,
.public-nav-link.is-active { color: #00a844; }
.public-nav-link.is-active { font-weight: 700; }
.public-nav-cta {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  background: #00a844;
  color: #fff;
  font-weight: 600;
}
.public-nav-cta:hover,
.public-nav-cta.is-active { background: #007d35; }
.public-nav-link:focus-visible,
.public-nav-cta:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-nav-cta:focus-visible {
  outline: 3px solid rgba(60, 112, 200, 0.55);
  outline-offset: 3px;
}
.mobile-menu-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: #5d4037;
}
.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  position: absolute;
  left: 0.65rem;
  width: 1.45rem;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-toggle span { top: 1.35rem; }
.mobile-menu-toggle span::before { top: -0.45rem; left: 0; }
.mobile-menu-toggle span::after { top: 0.45rem; left: 0; }
.mobile-menu-toggle.is-open span { background: transparent; }
.mobile-menu-toggle.is-open span::before { transform: translateY(0.45rem) rotate(45deg); }
.mobile-menu-toggle.is-open span::after { transform: translateY(-0.45rem) rotate(-45deg); }
.mobile-menu-open { overflow: hidden; }
.mobile-nav-panel {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(224, 213, 197, 0.75);
  background: rgba(255, 250, 245, 0.97);
  box-shadow: 0 16px 30px rgba(93, 64, 55, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-nav-panel[hidden] { display: none; }
.mobile-nav-link,
.mobile-nav-cta {
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  color: #5d4037;
  font-weight: 600;
}
.mobile-nav-link:hover { background: #fff8f0; color: #00b043; }
.mobile-nav-link[aria-current="page"] { background: #fff8f0; color: #007d35; }
.mobile-nav-cta { background: #00b043; color: #fff; text-align: center; }

/* Card hover */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.card-hover:hover img {
  transform: scale(1.05);
}
.card-hover img {
  transition: transform 0.5s ease;
}

/* Buttons */
.btn-primary {
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,176,67,0.3);
}

/* Homepage */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E0D5C5, transparent);
}
.impact-num {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.impact-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
}
.about-impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 64rem) { .about-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .about-impact-grid { grid-template-columns: minmax(0, 1fr); } }
.impact-metrics-grid > article { min-width: 0; }
.impact-metrics-grid .impact-num { overflow-wrap: anywhere; }
.artwork-price { min-width: 0; overflow-wrap: anywhere; }

/* Optional public video and institutional-support sections. */
.platform-video-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(75svh, 40rem);
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.platform-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin-inline: auto;
    border: 0;
    border-radius: 1rem;
    object-fit: contain;
}

.platform-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 1rem;
}

.institution-support-grid {
    display: flex;
    max-width: 59rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: auto;
    gap: 1rem;
}

.institution-support-card {
    display: flex;
    flex: 0 0 14rem;
    min-height: 9rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 0;
    background: transparent;
    text-align: center;
}

@media (max-width: 1023px) {
    .institution-support-grid {
        max-width: 34rem;
    }

    .institution-support-card {
        flex-basis: calc((100% - 1rem) / 2);
        max-width: 16rem;
    }
}

@media (max-width: 639px) {
    .institution-support-grid {
        max-width: 22rem;
    }

    .institution-support-card {
        flex-basis: 100%;
        max-width: none;
    }
}

.institution-support-card h3 {
    margin: 0;
    color: #5d4037;
    font-size: 1.05rem;
    font-weight: 700;
}

.institution-support-card p {
    margin: .6rem 0 0;
    color: #6b7280;
    font-size: .875rem;
    line-height: 1.5;
}

.institution-support-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 12rem);
    max-height: 4.5rem;
    object-fit: contain;
}

.institution-support-link {
    margin-top: .7rem;
    color: #167442;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.institution-support-link:hover,
.institution-support-link:focus-visible {
    text-decoration: underline;
}
body,
section.bg-white,
section.bg-warm,
section.bg-cream,
header.bg-white,
nav.bg-warm,
article.bg-white,
.hero-bg,
.about-hero,
.contest-hero {
  background-color: #FFFAF5;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 245, 0.38) 0%, rgba(255, 250, 245, 0.1) 55%, rgba(245, 230, 211, 0.22) 100%),
    url('/media/site-background');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-selected-artwork { display: grid; gap: 1rem; }
.contact-selected-artwork__copy { min-width: 0; }
.contact-selected-artwork__copy h3,
.contact-selected-artwork__copy p { overflow-wrap: anywhere; }
.contact-selected-artwork__media { display: block; overflow: hidden; border-radius: 0.75rem; background: #f2ebe3; }
.contact-selected-artwork__media img { display: block; width: 100%; max-height: 32rem; object-fit: contain; }
.gallery-category-nav {
  background-color: #fffaf5;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 245, 0.34), rgba(255, 250, 245, 0.18), rgba(245, 230, 211, 0.28)),
    url('/media/site-background');
  background-position: center 38%;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.48), 0 0.5rem 1.5rem rgba(93, 64, 55, 0.08);
}
.contact-attachment-field { padding: 1rem; border: 1px dashed #d8cabd; border-radius: 0.75rem; background: rgba(255, 248, 240, 0.56); }
.contact-attachment-control { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.55rem; border: 1px solid #e0d5c5; border-radius: 0.65rem; background: #fff; color: #5d4037; font-size: 0.875rem; }
.contact-attachment-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.contact-attachment-button { flex: none; display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: #5d4037; color: #fff; font-weight: 650; }
.contact-attachment-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-attachment-control:focus-within { outline: 3px solid rgba(0, 176, 67, 0.25); outline-offset: 2px; }
.public-footer-custom-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-top: 1rem; font-size: 0.78rem; }

/* Public footer */
.public-footer-link {
  color: rgba(255, 255, 255, 0.62);
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.public-footer-link:hover {
  color: #fff;
}
.public-footer-link:focus-visible,
.public-footer-social:focus-visible {
  outline: 2px solid #7ce8a5;
  outline-offset: 3px;
  border-radius: 0.35rem;
}
.public-footer-social {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1), border-color 160ms cubic-bezier(0.2, 0, 0, 1), background 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.public-footer-social:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}
.public-footer-social:active {
  transform: scale(0.96);
}
.public-footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.public-footer-social img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  object-fit: contain;
}
.public-footer-social svg .is-filled {
  fill: currentColor;
  stroke: none;
}
.public-contact-links { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.public-contact-link { display: inline-flex; min-height: 2.5rem; align-items: center; gap: 0.55rem; padding: 0.45rem 0.75rem; border: 1px solid #eadaca; border-radius: 999px; background: #fffaf5; color: #6b5b53; font-size: 0.82rem; font-weight: 650; transition: border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.public-contact-link:hover { border-color: #00a844; color: #00853a; transform: translateY(-1px); }
.public-contact-link:focus-visible { outline: 3px solid rgba(0, 168, 68, 0.25); outline-offset: 2px; }
.public-contact-link__icon { display: grid; width: 1.25rem; height: 1.25rem; flex: none; place-items: center; }
.public-contact-link__icon img,
.public-contact-link__icon svg { width: 100%; height: 100%; object-fit: contain; }
.public-contact-link__icon img { border-radius: 0.25rem; }
.public-contact-link__icon svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.public-contact-link__icon svg .is-filled { fill: currentColor; stroke: none; }

/* Homepage news carousel */
.news-carousel:focus-visible {
  outline: 3px solid rgba(0, 176, 67, 0.35);
  outline-offset: 6px;
  border-radius: 1rem;
}
.news-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.news-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.news-slide img {
  transform: scale(1.025);
  transition: transform 6s ease;
}
.news-slide.is-active img {
  transform: scale(1.08);
}
.news-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 24, 20, 0.06) 18%, rgba(35, 24, 20, 0.9) 100%);
}

.news-list-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 639px) {
  .news-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
  .news-list-row > time {
    grid-column: 1 / -1;
  }
}
.news-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(27, 23, 21, 0.56);
  color: rgba(255, 255, 255, 0.96);
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(20, 16, 14, 0.14), 0 10px 28px rgba(20, 16, 14, 0.12);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: background 150ms cubic-bezier(0.2, 0, 0, 1), color 150ms cubic-bezier(0.2, 0, 0, 1), border-color 150ms cubic-bezier(0.2, 0, 0, 1), transform 150ms cubic-bezier(0.2, 0, 0, 1), box-shadow 150ms cubic-bezier(0.2, 0, 0, 1);
}
.news-carousel-control svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.news-carousel-control:hover {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.94);
  color: #4f352d;
  transform: translateY(-50%) translateX(var(--carousel-control-shift, 0));
  box-shadow: 0 4px 12px rgba(20, 16, 14, 0.16), 0 14px 34px rgba(20, 16, 14, 0.16);
}
.news-carousel-control:active {
  transform: translateY(-50%) scale(0.94);
  box-shadow: 0 2px 8px rgba(20, 16, 14, 0.16);
}
.news-carousel-control:focus-visible,
.news-carousel-dot:focus-visible {
  outline: 3px solid #7ce8a5;
  outline-offset: 3px;
}
.news-carousel-prev {
  --carousel-control-shift: 2px;
  left: 0;
  border-left: 0;
  border-radius: 0 0.875rem 0.875rem 0;
}
.news-carousel-next {
  --carousel-control-shift: -2px;
  right: 0;
  border-right: 0;
  border-radius: 0.875rem 0 0 0.875rem;
}
.news-carousel-control:disabled,
.news-carousel-control[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.38;
  transform: translateY(-50%);
  box-shadow: none;
}
.news-carousel-control.is-loading {
  cursor: progress;
  pointer-events: none;
}
.news-carousel-control.is-loading svg {
  opacity: 0;
}
.news-carousel-control.is-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: carousel-control-spin 700ms linear infinite;
}
@keyframes carousel-control-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-color-scheme: dark) {
  .news-carousel-control {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(10, 9, 8, 0.68);
  }
  .news-carousel-control:hover {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(245, 243, 240, 0.94);
    color: #2f211c;
  }
}

/* Home creation-to-impact flow */
.home-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 0.25rem;
}
.home-process::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 16.6667%;
  left: 16.6667%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 176, 67, 0.12), rgba(0, 176, 67, 0.52) 50%, rgba(0, 176, 67, 0.12));
}
.home-process-card {
  position: relative;
  min-width: 0;
  padding: 0 clamp(0.25rem, 1vw, 1rem);
  background: transparent;
  text-align: center;
}
.home-process-card::before {
  content: none;
}
.home-process-card:hover {
  background: transparent;
}
.home-process-card__top {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}
.home-process-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(218, 203, 183, 0.95);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.96);
  color: #008d3d;
  box-shadow: 0 6px 18px rgba(93, 64, 55, 0.08);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 200ms cubic-bezier(0.2, 0, 0, 1), box-shadow 200ms cubic-bezier(0.2, 0, 0, 1);
}
.home-process-card:hover .home-process-icon {
  transform: translateY(-3px);
  border-color: rgba(0, 176, 67, 0.55);
  box-shadow: 0 9px 22px rgba(0, 176, 67, 0.13);
}
.home-process-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-process-number {
  color: #9a8074;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
}
.home-process-number::before {
  content: "STEP ";
}
.home-process-card h3 {
  margin: 0 0 0.85rem;
  color: #5d4037;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}
.home-process-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .home-process {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0;
  }
  .home-process::before {
    top: 1.75rem;
    right: auto;
    bottom: 1.75rem;
    left: 1.75rem;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(0, 176, 67, 0.12), rgba(0, 176, 67, 0.52) 50%, rgba(0, 176, 67, 0.12));
  }
  .home-process-card {
    min-height: 7rem;
    padding: 0 0 0 5rem;
    text-align: left;
  }
  .home-process-card__top {
    position: absolute;
    top: 0;
    left: 0;
    gap: 0.55rem;
    margin: 0;
  }
}
.news-carousel-dots {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 3rem);
  align-items: center;
  gap: 0.45rem;
}
.news-carousel-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}
.news-carousel-dot.is-active {
  width: 1.5rem;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .news-slide,
  .news-slide img,
  .news-carousel-control,
  .news-carousel-dot,
  .home-process-card,
  .home-process-icon {
    transition: none;
  }
  .news-carousel-control.is-loading::after {
    animation: none;
  }
}

/* Gallery */
.tab-active {
  color: #00B043;
  border-bottom: 2px solid #00B043;
}
[data-artwork-card][hidden],
[data-gallery-empty][hidden],
[data-gallery-load-more][hidden] {
  display: none;
}
[data-gallery-filter] {
  color: #9ca3af;
}
[data-gallery-filter][aria-pressed="true"] {
  color: #00b043;
}

/* News */
[data-news-card][hidden],
[data-news-empty][hidden],
[data-news-source][hidden],
[data-news-contest-link][hidden] {
  display: none;
}
[data-news-filter] {
  color: #9ca3af;
}
[data-news-filter][aria-pressed="true"] {
  color: #00b043;
}
.news-article-body p {
  margin-bottom: 1.25rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.85;
}
.news-source-note {
  border-left: 3px solid #00b043;
  background: #fff8f0;
}

/* About */
.about-hero {
  color: #5D4037;
}
.about-hero .text-white\/80 {
  color: #4B5563;
}
.team-avatar {
  width: 120px;
  height: 120px;
}
.team-profile-content {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.team-profile-content.is-changing {
  opacity: 0;
  transform: translateY(0.35rem);
}
.team-profile-media {
  min-height: 22rem;
  background: #fff8f0;
}
.team-profile-photo,
.team-profile-placeholder {
  min-height: 22rem;
}
.team-profile-photo[hidden],
.team-profile-placeholder[hidden] {
  display: none;
}
.team-profile-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 176, 67, 0.14), transparent 30%),
    linear-gradient(135deg, #fff8f0, #f5e6d3);
  color: #5d4037;
  font-size: 6rem;
}
.team-member-tab {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(93, 64, 55, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.team-member-tab:hover {
  border-color: rgba(0, 176, 67, 0.35);
  box-shadow: 0 12px 28px rgba(93, 64, 55, 0.09);
  transform: translateY(-3px);
}
.team-member-tab.is-active {
  border-color: #00b043;
  box-shadow: 0 12px 28px rgba(0, 176, 67, 0.13);
}
.team-member-tab:focus-visible {
  outline: 3px solid rgba(0, 176, 67, 0.25);
  outline-offset: 3px;
}
.team-member-tab strong {
  color: #5d4037;
  font-size: 1rem;
}
.team-member-tab > span {
  margin-top: 0.35rem;
  color: #00b043;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .team-profile-media,
  .team-profile-photo,
  .team-profile-placeholder {
    min-height: 17rem;
  }
  .team-member-tab {
    min-height: 15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-profile-content,
  .team-member-tab {
    transition: none;
  }
}

/* Contest */
.timeline-line {
  width: 2px;
  background: linear-gradient(to bottom, #00B043, #2E7D32, #BF8B6B);
}
/* Contact */
.contact-purpose-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-purpose-choice { position: relative; cursor: pointer; }
.contact-purpose-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.purpose-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 1px solid #eadfd3;
  border-radius: 9999px;
  background: #fff;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.purpose-btn.active,
.contact-purpose-choice input:checked + .purpose-btn {
  background: #00B043;
  color: white;
  border-color: #00B043;
  box-shadow: 0 0.45rem 1.1rem rgba(0, 176, 67, 0.18);
}
.purpose-btn:not(.active):hover,
.contact-purpose-choice:hover input:not(:checked) + .purpose-btn {
  border-color: #00B043;
  color: #00B043;
}
.contact-purpose-choice input:focus-visible + .purpose-btn {
  outline: 3px solid rgba(0, 176, 67, 0.28);
  outline-offset: 2px;
}
.contact-purpose-choice:active .purpose-btn { transform: scale(0.97); }
.related-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(0, 176, 67, 0.2);
  border-radius: 0.875rem;
  background: rgba(0, 176, 67, 0.06);
  padding: 0.9rem 1rem;
  color: #5d4037;
  font-size: 0.875rem;
}
.related-context[hidden] { display: none; }
.form-status {
  border-radius: 0.875rem;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}
.form-status:empty { display: none; }
.form-status.is-loading { background: #fff8f0; color: #5d4037; }
.form-status.is-success { background: rgba(0, 176, 67, 0.08); color: #176b36; }
.form-status:focus { outline: 3px solid rgba(0, 176, 67, 0.2); }
button:disabled { cursor: wait; opacity: 0.7; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #00B043;
  box-shadow: 0 0 0 3px rgba(0,176,67,0.1);
}

/* Contest showcase */
.contest-showcase-hero { background: #fff8f0; }
.contest-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #00b043;
  box-shadow: 0 0 0 0.3rem rgba(0, 176, 67, 0.1);
}
.contest-cover-frame {
  aspect-ratio: 16 / 7;
  background: #efe7dd;
}
.contest-guideline-list { display: grid; gap: 1.15rem; }
.contest-guideline-list article {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.contest-guideline-list article > span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.7rem;
  background: rgba(0, 176, 67, 0.09);
  color: #008d3d;
  font-size: 0.68rem;
  font-weight: 800;
}
.contest-guideline-list h3 { color: #5d4037; font-size: 0.95rem; font-weight: 700; }
.contest-guideline-list p { margin-top: 0.25rem; color: #6b7280; font-size: 0.86rem; line-height: 1.65; }
.contest-prize-list { display: grid; gap: 0.85rem; }
.contest-prize-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid #eadfd3;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(93, 64, 55, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
@media (hover: hover) {
  .contest-prize-card:hover { transform: translateY(-2px); border-color: #dfcdbb; box-shadow: 0 1rem 2.4rem rgba(93, 64, 55, 0.1); }
}
.contest-prize-mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem;
  background: #fff8e8;
  color: #c78a16;
  font-size: 0.9rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.contest-prize-card--2 .contest-prize-mark { background: #f4f5f6; color: #747b84; }
.contest-prize-card--3 .contest-prize-mark { background: #fff0e5; color: #a96532; }
.contest-prize-card--4 .contest-prize-mark { background: #eef8f1; color: #008d3d; }
.contest-prize-card h3 { color: #5d4037; font-size: 1rem; font-weight: 750; }
.contest-prize-card p { margin-top: 0.55rem; color: #6b7280; font-size: 0.86rem; line-height: 1.7; }
.contest-timeline { position: relative; display: grid; gap: 1.7rem; }
.contest-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #d9cfc4;
  content: "";
  transform: translateX(-50%);
}
.contest-timeline__item { position: relative; display: grid; grid-template-columns: 1fr 3rem 1fr; align-items: center; }
.contest-timeline__item.is-left .contest-timeline__content { grid-column: 1; text-align: right; }
.contest-timeline__item.is-right .contest-timeline__content { grid-column: 3; }
.contest-timeline__marker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 2rem;
  height: 2rem;
  place-self: center;
  place-items: center;
  border: 0.25rem solid #fff8f0;
  border-radius: 999px;
  background: #00b043;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}
.contest-timeline__content { padding: 1.25rem 1.4rem; border: 1px solid #e7ddd2; border-radius: 1rem; background: #fff; }
.contest-timeline__content > span { color: #008d3d; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contest-timeline__content h3 { margin-top: 0.35rem; color: #5d4037; font-size: 1.1rem; font-weight: 750; }
.contest-timeline__content p { margin-top: 0.5rem; color: #6b7280; font-size: 0.82rem; line-height: 1.6; }
.contest-timeline__content .contest-timeline__date { color: #9a8074; font-weight: 650; }
.contest-timeline-empty { max-width: 36rem; margin: 0 auto; padding: 2rem; border: 1px dashed #d8cabd; border-radius: 1rem; background: rgba(255, 255, 255, 0.7); text-align: center; }
.contest-timeline-empty > span { display: grid; width: 2.5rem; height: 2.5rem; margin: 0 auto 0.8rem; place-items: center; border-radius: 999px; background: rgba(0, 176, 67, 0.09); color: #008d3d; font-weight: 800; }
.contest-timeline-empty h3 { color: #5d4037; font-size: 1.05rem; font-weight: 750; }
.contest-timeline-empty p { max-width: 28rem; margin: 0.5rem auto 0; color: #6b7280; font-size: 0.84rem; line-height: 1.6; }

.contest-winner-card { overflow: hidden; border: 1px solid #eee5dc; border-radius: 1rem; background: #fff; color: inherit; transition: transform 180ms ease, box-shadow 180ms ease; }
.contest-winner-card:hover { transform: translateY(-3px); box-shadow: 0 1rem 2.5rem rgba(93, 64, 55, 0.1); }
.contest-winner-card:focus-visible { outline: 3px solid rgba(0, 176, 67, 0.25); outline-offset: 3px; }
.contest-winner-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #f2ebe3; }
.contest-winner-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.contest-winner-card:hover .contest-winner-card__media img { transform: scale(1.025); }
.contest-winner-card__body { padding: 1.25rem; }
.contest-winner-card__body span { color: #008d3d; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.contest-winner-card__body h3 { margin-top: 0.35rem; color: #5d4037; font-size: 1.15rem; font-weight: 750; }
.contest-winner-card__body p { margin-top: 0.35rem; color: #6b7280; font-size: 0.82rem; }

.contest-carousel__header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.contest-carousel__track {
  display: grid;
  grid-auto-columns: calc((100% - 3rem) / 3);
  grid-auto-flow: column;
  gap: 1.5rem;
  padding: 0.25rem 0 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.contest-carousel__track::-webkit-scrollbar { display: none; }
.contest-carousel__track:focus-visible { outline: 3px solid rgba(0, 176, 67, 0.25); outline-offset: 3px; }
.contest-carousel__item { min-width: 0; scroll-snap-align: start; }
.contest-carousel__item article { height: 100%; overflow: hidden; border: 1px solid #eee5dc; border-radius: 1rem; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.contest-carousel__item:hover article { transform: translateY(-3px); box-shadow: 0 1rem 2.5rem rgba(93, 64, 55, 0.09); }
.contest-carousel__item:focus-visible { outline: 3px solid rgba(0, 176, 67, 0.25); outline-offset: 3px; }
.contest-carousel__media { aspect-ratio: 16 / 9; overflow: hidden; background: #efe7dd; }
.contest-carousel__media img { width: 100%; height: 100%; object-fit: cover; }
.contest-carousel__body { padding: 1.25rem; }
.contest-carousel__body > div { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; }
.contest-carousel__body h3 { color: #5d4037; font-size: 1.05rem; font-weight: 750; line-height: 1.3; }
.contest-carousel__body > div > span { flex: none; border-radius: 999px; background: rgba(0, 176, 67, 0.08); padding: 0.25rem 0.55rem; color: #008d3d; font-size: 0.66rem; font-weight: 750; }
.contest-carousel__body p { margin-top: 0.7rem; color: #6b7280; font-size: 0.82rem; line-height: 1.55; }
.contest-carousel__body strong { display: inline-block; margin-top: 1rem; color: #008d3d; font-size: 0.78rem; }

@media (max-width: 767px) {
  .contest-cover-frame { aspect-ratio: 4 / 3; }
  .contest-timeline::before { left: 1rem; transform: none; }
  .contest-timeline__item { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.85rem; }
  .contest-timeline__item.is-left .contest-timeline__content,
  .contest-timeline__item.is-right .contest-timeline__content { grid-column: 2; grid-row: 1; text-align: left; }
  .contest-timeline__marker { grid-column: 1; grid-row: 1; align-self: start; margin-top: 1rem; }
  .contest-carousel__header { align-items: start; }
}

@media (max-width: 1023px) {
  .contest-carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 639px) {
  .contest-carousel__track { grid-auto-columns: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contest-carousel__track { scroll-behavior: auto; }
  .contest-winner-card,
  .contest-winner-card__media img,
  .contest-carousel__item article { transition: none; }
}

/* ===== Phase-one motion system ===== */
:root {
  --motion-fast: 220ms;
  --motion-normal: 420ms;
  --motion-slow: 820ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-distance: 2.25rem;
}

[data-mask-line] { display: block; }
/* Leave room for glyph overhang without changing text wrapping or line spacing. */
html.motion-ready .motion-mask {
  display: flow-root;
  clip-path: inset(-0.15em -0.1em);
}
html.motion-ready .motion-mask--revealed { clip-path: none; }
html.motion-ready .motion-mask--revealed > .motion-mask__content { will-change: auto; }
html.motion-ready .motion-mask__content { display: block; will-change: transform, opacity; }

.motion-parallax-frame { overflow: hidden; border-radius: 1rem; }
.motion-parallax-media { will-change: transform; }

.artwork-motion-card { position: relative; }
.artwork-motion-title,
.artwork-motion-meta,
.artwork-motion-hint,
.artwork-motion-hint span { transition: color var(--motion-normal) var(--motion-ease), opacity var(--motion-normal) var(--motion-ease), transform var(--motion-normal) var(--motion-ease); }
.artwork-motion-meta { opacity: 0.72; }
.artwork-motion-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: #008d3d;
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0.72;
}
.artwork-motion-hint span { display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .artwork-motion-card {
    transition: transform var(--motion-normal) var(--motion-ease), box-shadow var(--motion-normal) var(--motion-ease), border-color var(--motion-normal) var(--motion-ease);
  }
  .artwork-motion-card:hover {
    transform: translateY(-0.375rem);
    border-color: rgba(0, 141, 61, 0.25);
    box-shadow: 0 1.05rem 2.4rem rgba(75, 53, 47, 0.13);
  }
  .artwork-motion-card:hover img { transform: scale(1.04); }
  .artwork-motion-card:hover .artwork-motion-title { color: #008d3d; transform: translateY(-1px); }
  .artwork-motion-card:hover .artwork-motion-meta { opacity: 1; }
  .artwork-motion-card:hover .artwork-motion-hint { opacity: 1; }
  .artwork-motion-card:hover .artwork-motion-hint span { transform: translateX(0.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready .motion-mask__content,
  .motion-parallax-media,
  .artwork-motion-card,
  .artwork-motion-card img,
  .artwork-motion-title,
  .artwork-motion-meta,
  .artwork-motion-hint,
  .artwork-motion-hint span { transition: none; transform: none; }
}

/* Contest image cards: center every row, including incomplete rows. */
.contest-image-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1152px;
    margin: 0 auto;
}
.contest-image-card {
    flex: 0 1 calc((100% - 48px) / 3);
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.contest-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 767px) {
    .contest-image-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 479px) {
    .contest-image-card { flex-basis: 100%; max-width: 360px; }
}

/* Show a single project video and keep inactive players out of the layout. */
.platform-video-section--multiple { padding-inline: 3.5rem; }
.platform-video-layout { column-gap: 4rem; }
@media (max-width: 47.999rem) {
    .platform-video-section--multiple { padding-inline: 1.5rem; }
    .platform-video-section--multiple .platform-video-gallery { margin-inline: 2rem; }
}
.platform-video-gallery { min-width: 0; }
.platform-video-stage { position: relative; min-width: 0; touch-action: pan-y; }
.platform-video-slide { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; animation: platform-video-enter 320ms ease-out; }
.platform-video-slide[hidden] { display: none; }
.platform-video-control { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #5d4037; cursor: pointer; touch-action: manipulation; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.platform-video-control svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.platform-video-previous { left: -3.25rem; }
.platform-video-next { right: -3.25rem; }
.platform-video-control:hover { color: #00a844; background: #f3eee6; border-color: #e8dfd5; }
.platform-video-control:active { background: #e8dfd5; }
.platform-video-control:focus-visible, .platform-video-dots button:focus-visible { outline: 2px solid #008c3c; outline-offset: 2px; }
.platform-video-dots { display: flex; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }
.platform-video-dots button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.platform-video-dots button::before { content: ""; width: .4rem; height: .4rem; border-radius: 999px; background: #d6c7b8; transition: width 180ms ease, background 180ms ease; }
.platform-video-dots button[aria-current="true"]::before { width: 1.2rem; background: #5d4037; }
@keyframes platform-video-enter { from { opacity: .35; transform: translateX(.5rem); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .platform-video-slide { animation: none; } .platform-video-control, .platform-video-dots button::before { transition: none; } }
