/* ========== Our Role ========== */

.page-our-role {
  overflow-x: clip;
}

.page-our-role .role-page {
  padding-bottom: 0;
}

.role-crumb,
.role-lang {
  width: var(--about-width);
  margin: 0 auto;
  padding: 0 var(--about-pad-x);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #666;
}

.role-crumb {
  padding-top: 1.75rem;
}

.role-crumb a {
  color: #666;
  text-decoration: none;
}

.role-crumb a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.role-lang {
  margin-top: 0.85rem;
}

.role-lang a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.role-lang span {
  margin: 0 0.35rem;
  color: #999;
}

/* Hero */
.role-hero {
  width: var(--about-width);
  margin: 0 auto;
  padding: 2.75rem var(--about-pad-x) 0;
  text-align: center;
}

.role-hero-title {
  margin: 0 0 2.5rem;
}

.role-hero-figure {
  margin: 0;
}

.role-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.role-hero-caption {
  margin: 0.85rem 0 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #888;
}

/* Article — narrow centered column */
.role-article {
  width: min(720px, calc(100% - 2 * var(--about-pad-x)));
  margin: 3.25rem auto 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-ink);
}

.role-article p {
  margin: 0 0 1.35rem;
}

.role-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.75rem !important;
}

.role-link-line {
  margin-top: 2rem !important;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.role-link-line a,
.role-work-intro a {
  color: #0a7a8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.role-link-line a:hover,
.role-work-intro a:hover {
  color: var(--color-ink);
}

/* What our work looks like */
.role-work {
  width: var(--about-width);
  margin: 4.5rem auto 0;
  padding: 3.25rem var(--about-pad-x) 4.5rem;
  border-top: 1px solid #ddd;
}

.role-work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.role-work-title {
  margin: 0;
  max-width: 18ch;
}

.role-work-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.role-work-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.role-work-btn:hover:not(:disabled) {
  color: var(--color-ink);
}

.role-work-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.role-work-btn svg {
  width: 28px;
  height: 28px;
}

.role-work-intro {
  max-width: 52rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
}

.role-work-intro p {
  margin: 0 0 1rem;
}

.role-work-viewport {
  overflow: hidden;
  width: 100%;
  /* peek next card without creating page-level horizontal scroll */
  clip-path: inset(0 -2rem 0 0);
}

.role-work-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  scrollbar-width: none;
}

.role-work-track::-webkit-scrollbar {
  display: none;
}

.role-card {
  flex: 0 0 calc((100% - 3.75rem) / 4);
  min-width: 0;
}

.role-card-media {
  display: block;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 6px;
}

.role-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.role-card-media:hover img {
  transform: scale(1.03);
}

.role-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.role-card-title a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.role-card-title a:hover {
  color: #0a7a8c;
}

.role-card p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #444;
}

@media (max-width: 1100px) {
  .role-card {
    flex-basis: calc((100% - 2.5rem) / 3);
  }
}

@media (max-width: 960px) {
  .role-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 640px) {
  .role-hero {
    padding-top: 1.75rem;
  }

  .role-hero-title {
    margin-bottom: 1.75rem;
  }

  .role-article {
    margin-top: 2.25rem;
    font-size: 1.02rem;
  }

  .role-work {
    margin-top: 3rem;
    padding-top: 2.25rem;
  }

  .role-work-head {
    flex-direction: column;
    gap: 0.75rem;
  }

  .role-work-title {
    max-width: none;
  }

  .role-card {
    flex-basis: 85%;
  }
}
