:root {
  --paper: #f7f7f8;
  --paper-bright: #ffffff;
  --gold: #c00009;
  --gold-deep: #c00009;
  --line: rgba(17, 17, 17, 0.18);
  --light-ink: #111111;
  --light-surface: #ffffff;
  --light-muted: #f7f7f8;
  --light-line: rgba(17, 17, 17, 0.18);
  --light-accent: #c00009;
}

body {
  background: var(--light-surface);
  color: var(--light-ink);
}

.motion-ready .scroll-object {
  --scroll-parallax: 0px;
  opacity: 0;
  translate: 0 var(--scroll-parallax);
  transform: translateY(28px);
  transition:
    opacity 650ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, translate;
}

.motion-ready .scroll-object.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  border-bottom-color: var(--light-line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--light-ink);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.site-header.is-scrolled {
  border-bottom-color: var(--light-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.brand-logo,
.site-header.is-scrolled .brand-logo,
.footer-logo {
  filter: invert(1);
}

.site-nav a::after {
  background: var(--light-accent);
}

.language-switcher {
  border-color: rgba(17, 17, 17, 0.35);
}

.language-switcher button {
  border-right-color: rgba(17, 17, 17, 0.2);
  color: rgba(17, 17, 17, 0.72);
}

.language-switcher button[aria-pressed="true"] {
  background: var(--light-ink);
  color: white;
}

.hero {
  background: var(--light-surface);
  color: var(--light-ink);
}

.hero-image {
  filter: none;
}

.hero-shade {
  background: none;
}

@media (min-width: 681px) {
  .hero {
    min-height: 0;
    aspect-ratio: 1817 / 866;
  }

  .hero-content {
    height: 100%;
    min-height: 0;
  }

  .hero-image {
    top: 0;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translate3d(0, var(--parallax-offset, 0px), 0);
  }
}

.eyebrow,
.eyebrow.dark,
.gateway-copy small,
.card-kicker,
.archive-label span,
.academy-live-note,
.academy-pathway-topline,
.academy-values span,
.course-placeholder-topline,
.history-empty > span:first-child,
.association-progress span,
.origin-grid article > span,
.relationship-grid article > span,
.association-service-topline,
.association-service-card .status-live,
.knowledge-topic-grid span,
.knowledge-latest-heading > span,
.article-grid article > span {
  color: var(--light-accent);
}

.hero-lede,
.concept-note {
  color: rgba(17, 17, 17, 0.68);
}

.gateway-grid {
  border-color: var(--light-line);
  background: rgba(255, 255, 255, 0.54);
}

.gateway-card {
  border-color: var(--light-line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--light-ink);
}

.gateway-card + .gateway-card {
  border-left-color: var(--light-line);
}

.gateway-card:hover,
.gateway-card:focus-visible {
  background: var(--light-ink);
  color: white;
}

.gateway-card:hover small,
.gateway-card:focus-visible small {
  color: white;
}

@media (min-width: 681px) {
  .hero-content--lower.shell {
    width: min(1399px, calc(100% - 48px));
    transform: translateY(clamp(40px, 4vw, 72px));
  }

  .gateway-grid--compact {
    width: min(950px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .gateway-grid--compact .gateway-card {
    display: flex;
    min-height: 80px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--ui-radius);
    background: rgba(18, 18, 18, 0.78);
    color: white;
  }

  .gateway-grid--compact .gateway-card + .gateway-card {
    border-left: 1px solid rgba(255, 255, 255, 0.32);
  }

  .gateway-grid--compact .gateway-card strong {
    font-size: 0.95rem;
    font-weight: 650;
  }

  .gateway-grid--compact .gateway-arrow {
    font-family: inherit;
    font-size: 1.6rem;
    line-height: 0.8;
  }
}

@media (max-width: 680px) {
  .gateway-grid--compact {
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    border: 0;
    background: transparent;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gateway-grid--compact::-webkit-scrollbar {
    display: none;
  }

  .gateway-grid--compact .gateway-card {
    display: flex;
    min-height: 126px;
    flex: 0 0 calc((100% - 12px) / 2);
    align-items: end;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(18, 18, 18, 0.78);
    color: white;
    scroll-snap-align: start;
  }
}

.association-section,
.academy-section,
.contact-section {
  color: var(--light-ink);
}

.association-section,
.contact-section {
  background: var(--light-surface);
}

.association-goals {
  padding: clamp(84px, 8vw, 140px) 0;
}

.association-goals-shell {
  width: min(1760px, calc(100% - 48px));
  margin: 0 auto;
}

.association-goals-header {
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}

.association-goals-header .eyebrow {
  margin-bottom: 1.35rem;
}

.association-goals-header h2 {
  margin: 0;
  color: var(--light-ink);
  font-size: clamp(2.8rem, 4.7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.association-goals-intro {
  max-width: 1100px;
  margin: 1.2rem auto 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 600;
  line-height: 1.65;
}

.association-goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.2vw, 24px);
  margin-top: clamp(72px, 5vw, 96px);
}

.association-goal-card {
  position: relative;
  display: grid;
  min-height: clamp(420px, 31vw, 560px);
  place-items: center;
  overflow: hidden;
  border-radius: var(--ui-radius);
  padding: clamp(24px, 2.3vw, 42px);
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(8, 8, 8, 0.42), rgba(8, 8, 8, 0.66)),
    var(--goal-image);
  background-position: center;
  background-size: cover;
  color: white;
  text-align: center;
}

.association-goal-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
  content: "";
}

.association-goal-copy {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.association-goal-copy > span {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.association-goal-copy h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.association-goal-copy p {
  max-width: 30rem;
  margin: 1.2rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.86rem, 1vw, 1.05rem);
  line-height: 1.7;
}

.association-goal-copy a {
  margin-top: clamp(28px, 3vw, 52px);
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: white;
  color: #111;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.association-goal-copy a:hover,
.association-goal-copy a:focus-visible {
  background: #111;
  color: white;
}

.academy-section {
  background: var(--light-muted);
}

@media (max-width: 960px) {
  .association-goals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .association-goals-shell {
    width: min(100% - 32px, 1760px);
  }

  .association-goals-header h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .association-goals-grid {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .association-goal-card {
    min-height: 520px;
  }
}

.association-section .pillar-grid,
.association-section .pillar-card + .pillar-card,
.academy-section .training-grid,
.academy-section .training-card + .training-card,
.academy-section .training-card li,
.academy-section .archive-panel {
  border-color: var(--light-line);
}

.academy-section .section-heading > p,
.academy-section .training-card > p:not(.card-kicker),
.academy-section .archive-copy p,
.academy-section .archive-label,
.academy-section .archive-status {
  color: rgba(17, 17, 17, 0.65);
}

.academy-section .archive-label strong {
  color: var(--light-ink);
}

.academy-hero,
.association-hero {
  background: var(--light-surface);
  color: var(--light-ink);
}

.academy-hero-lede,
.academy-live-note,
.association-hero-copy > p:not(.eyebrow),
.association-progress p {
  color: rgba(17, 17, 17, 0.65);
}

.academy-hero-media {
  border-color: var(--light-line);
}

.academy-hero-media img {
  filter: brightness(1.14) contrast(0.9) saturate(0.82);
}

.academy-hero-media-shade {
  background: none;
}

.academy-hero-media > p {
  color: rgba(17, 17, 17, 0.72);
}

.academy-hero-index,
.association-hero-index {
  border-color: var(--light-line);
}

.academy-hero-index a,
.association-hero-index a {
  color: rgba(17, 17, 17, 0.72);
}

.academy-hero-index a + a,
.association-hero-index a + a {
  border-color: var(--light-line);
}

.academy-hero-index a:hover,
.academy-hero-index a:focus-visible,
.association-hero-index a:hover,
.association-hero-index a:focus-visible {
  background: var(--light-ink);
  color: white;
}

.association-hero-image {
  opacity: 0.48;
  filter: brightness(1.2) contrast(0.82) saturate(0.72);
}

.association-hero-shade {
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 44%, rgba(255, 255, 255, 0.28) 82%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.96), transparent 60%);
}

.association-progress {
  border-left-color: var(--light-accent);
}

.button-light,
.button-gold {
  border-color: var(--light-ink);
  background: var(--light-ink);
  color: white;
}

.button-ghost {
  border-color: var(--light-ink);
  background: transparent;
  color: var(--light-ink);
}

.button-light:hover,
.button-light:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible,
.button-gold:hover,
.button-gold:focus-visible {
  border-color: var(--light-accent);
  background: var(--light-accent);
  color: white;
}

.academy-pathways,
.course-section,
.association-services,
.association-knowledge {
  background: var(--light-surface);
  color: var(--light-ink);
}

.academy-introduction,
.academy-history,
.association-about,
.association-relationship,
.association-database {
  background: var(--light-muted);
  color: var(--light-ink);
}

.academy-pathway-card,
.academy-pathway-dark,
.association-service-card,
.association-service-card.service-live {
  background: var(--light-surface);
  color: var(--light-ink);
}

.academy-pathway-dark > p,
.academy-pathway-card > p,
.association-service-card.service-live > p:not(.card-kicker),
.association-service-card > p:not(.card-kicker),
.course-heading > p:last-child,
.course-placeholder > p,
.relationship-grid p,
.knowledge-topic-grid p,
.knowledge-latest-heading p {
  color: rgba(17, 17, 17, 0.62);
}

.academy-pathway-dark .academy-pathway-topline {
  color: var(--light-accent);
}

.academy-pathway-dark dl > div,
.course-placeholder,
.course-placeholder-topline,
.course-fields,
.course-fields span,
.relationship-grid,
.relationship-grid article + article,
.knowledge-topic-grid,
.knowledge-topic-grid article + article,
.article-grid,
.article-grid article + article {
  border-color: var(--light-line);
}

.academy-pathway-dark .text-link,
.relationship-grid .text-link {
  color: var(--light-ink);
}

.course-placeholder {
  background: var(--light-muted);
}

.course-fields span,
.article-grid time {
  color: rgba(17, 17, 17, 0.62);
}

.association-knowledge {
  border-top-color: var(--light-line);
}

.footer-label {
  color: var(--light-accent) !important;
}

.site-footer {
  background: var(--light-muted);
  color: var(--light-ink);
}

.footer-grid p,
.footer-grid a {
  color: rgba(17, 17, 17, 0.64);
}

.footer-grid,
.footer-bottom {
  border-color: var(--light-line);
}

/* Keep compact card titles clear at small sizes and across longer translations. */
.association-goal-copy h3,
.training-event-copy h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0;
}

/* Homepage Academy: full-width editorial banner above the existing pathways. */
.academy-section {
  padding-top: 0;
}

.academy-section > .shell > .section-heading {
  --academy-parallax-y: 0px;
  display: flex;
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: clamp(360px, 25vw, 450px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  gap: 1.15rem;
  margin-bottom: clamp(72px, 6vw, 104px);
  margin-left: calc(50% - 50vw);
  padding: clamp(52px, 5vw, 92px) clamp(32px, 4.5vw, 88px);
  background: #040404;
  color: white;
}

.academy-section > .shell > .section-heading::before,
.academy-section > .shell > .section-heading::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.academy-section > .shell > .section-heading::before {
  z-index: 0;
  inset: -112px 0;
  background: url("./assets/ala-academy-home-banner.png") center 25% / cover no-repeat;
  transform: translate3d(0, var(--academy-parallax-y), 0);
  will-change: transform;
}

.academy-section > .shell > .section-heading::after {
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 4, 0.98) 0%, rgba(4, 4, 4, 0.92) 26%, rgba(4, 4, 4, 0.68) 43%, rgba(4, 4, 4, 0.2) 63%, rgba(4, 4, 4, 0) 78%);
}

.academy-section > .shell > .section-heading > * {
  position: relative;
  z-index: 2;
}

.academy-section > .shell > .section-heading > div {
  max-width: min(920px, 58vw);
}

.academy-section > .shell > .section-heading .eyebrow.dark {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.academy-section > .shell > .section-heading h2 {
  max-width: 920px;
  color: white;
  font-size: clamp(3rem, 4.4vw, 5.2rem);
}

.academy-section > .shell > .section-heading > p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .academy-section > .shell > .section-heading {
    min-height: 520px;
    margin-bottom: 64px;
    padding: 72px 24px;
  }

  .academy-section > .shell > .section-heading::before {
    inset: -70px 0;
    background-position: 66% center;
  }

  .academy-section > .shell > .section-heading::after {
    background: linear-gradient(90deg, rgba(4, 4, 4, 0.95) 0%, rgba(4, 4, 4, 0.86) 55%, rgba(4, 4, 4, 0.56) 100%);
  }

  .academy-section > .shell > .section-heading > div {
    max-width: 100%;
  }

  .academy-section > .shell > .section-heading h2 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }
}

@media (max-width: 960px) {
  .menu-toggle span {
    background: var(--light-ink);
  }

  .site-nav {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-nav a {
    border-bottom-color: var(--light-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .academy-section > .shell > .section-heading::before {
    transform: none;
  }

  .motion-ready .scroll-object,
  .motion-ready .scroll-object.is-in-view {
    opacity: 1;
    translate: none;
    transform: none;
    transition: none;
  }
}

/* Keep the dark article cards readable inside the light theme. */
.industry-page .article-card-link {
  color: #111111;
}

.industry-page .article-grid time {
  color: rgba(17, 17, 17, 0.72) !important;
}

.industry-page .article-card-copy > span {
  color: #111111;
}

.industry-page .article-grid h3 {
  color: #111111;
}

.industry-page .article-grid small {
  color: rgba(17, 17, 17, 0.72);
}

.industry-page .article-grid article,
.industry-page .article-grid article + article {
  background: #ffffff;
}

.industry-page .article-grid strong {
  color: #111111;
}

.industry-page .article-card-link:hover h3,
.industry-page .article-card-link:focus-visible h3 {
  color: #111111;
}

.industry-page .article-pagination button {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

.industry-page .article-pagination button[aria-current="page"],
.industry-page .article-pagination button:hover,
.industry-page .article-pagination button:focus-visible {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

/* Editorial article cards: four framed panels with magazine-like spacing. */
.industry-page .article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.industry-page .article-grid article,
.industry-page .article-grid article + article {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.industry-page .article-card-image {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.industry-page .article-card-copy {
  min-height: 240px;
  padding: 22px 20px 20px;
}

.industry-page .article-grid h3 {
  margin: 1.2rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.4vw, 1.65rem);
  line-height: 1.2;
}

.industry-page .article-grid strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.industry-page .article-grid strong::after {
  content: "↗";
  font-size: 1rem;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .industry-page .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .industry-page .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .industry-page .article-grid { grid-template-columns: 1fr; }
}

.industry-page .article-grid article {
  display: flex;
  flex-direction: column;
}

.industry-page .article-card-media {
  display: block;
  overflow: hidden;
  background: #dedbd4;
}

.industry-page .article-card-image {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-page .article-card-media:hover img,
.industry-page .article-card-media:focus-visible img {
  transform: scale(1.025);
}

.industry-page .training-event-copy {
  min-height: 300px;
  padding: 26px;
  color: #111111;
}

.industry-page .training-event-meta {
  margin-bottom: 42px;
  color: #111111;
}

.industry-page .training-event-meta span {
  color: #111111;
}

.industry-page .training-event-copy h3 {
  margin: 0 0 1rem;
  color: #111111;
  font-size: clamp(1.35rem, 1.7vw, 1.9rem);
  line-height: 1.15;
}

.industry-page .training-event-copy p {
  margin: 0 0 1.5rem;
  color: #615e58;
  font-size: 0.92rem;
  line-height: 1.7;
}

.industry-page .article-card-source {
  display: block;
  margin: auto 0 1.1rem;
  color: #77736a;
  font-size: 0.75rem;
}

.industry-page .training-event-action {
  color: #111111;
}

.industry-page .training-event-action:hover,
.industry-page .training-event-action:focus-visible {
  color: #111111;
}

/* Match the site's existing training-event card exactly. */
.industry-page .article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.industry-page .industry-shell {
  width: min(1240px, calc(100% - 48px));
}

.industry-page .article-grid .training-event-card,
.industry-page .article-grid .training-event-card + .training-event-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--paper-bright);
  box-shadow: none;
}

.industry-page .article-grid .training-event-card {
  padding: 0;
  box-shadow: none;
}

.industry-page .training-event-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.industry-page .training-event-media .article-card-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-page .training-event-copy {
  min-height: 0;
  padding: 26px;
}

.industry-page .training-event-meta {
  margin-bottom: 42px;
  color: var(--gold-deep);
}

.industry-page .training-event-meta time {
  color: var(--ink);
}

.industry-page .training-event-meta span {
  color: var(--gold-deep);
}

.industry-page .training-event-copy h3 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.05vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.industry-page .training-event-copy p {
  margin: 0 0 2rem;
  display: -webkit-box;
  overflow: hidden;
  color: #615e58;
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.industry-page .training-event-action {
  width: fit-content;
  margin-top: auto;
  padding: 0 0 0.35rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 960px) {
  .industry-page .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .industry-page .industry-shell { width: min(100% - 32px, 1240px); }
  .industry-page .article-grid { grid-template-columns: 1fr; }
  .industry-page .training-event-copy { padding: 22px; }
  .industry-page .training-event-meta { margin-bottom: 32px; }
}
