.materials-page {
  overflow: hidden;
  background: var(--navy);
}
.materials-page .eyebrow,
.materials-page .material-rule {
  display: none;
}
.material-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 9vw;
  align-items: center;
  padding-bottom: 100px;
}
.materials-page .material-hero {
  width: 100%;
  max-width: none;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 90px max(24px, calc((100% - var(--max)) / 2 + 24px));
  position: relative;
  background:
    linear-gradient(90deg, rgba(3, 20, 43, 0.92), rgba(3, 20, 43, 0.58) 50%, rgba(3, 20, 43, 0.18)),
    url("materials/case-hero-ai-v2.png?v=0916o") center/cover;
  animation: background-drift 20s ease-in-out infinite alternate;
}
.materials-page .material-hero-copy {
  width: min(var(--max), 100%);
  position: relative;
  z-index: 1;
}
.materials-page .material-hero-art { display: none; }
.material-hero-copy {
  padding-top: 20px;
}
.material-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
}
.material-index {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.material-index span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.material-index b {
  color: var(--cyan);
  font-weight: 500;
}
.material-hero-art {
  position: relative;
  max-width: 560px;
  justify-self: end;
  transform: rotate(2deg);
}
.material-hero-art:before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(101, 199, 255, 0.35);
  z-index: -1;
}
.material-hero-art img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}
.material-hero-stamp {
  position: absolute;
  right: -22px;
  bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 15px;
  background: var(--blue);
  color: #fff;
}
.material-hero-stamp strong {
  font-size: 22px;
  font-weight: 500;
}
.material-hero-stamp span {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.material-gallery-section {
  padding-top: 90px;
}
.material-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
}
.material-section-head h2 {
  margin-bottom: 0;
}
.material-rule {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.material-gallery {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 24px;
  align-items: end;
}
.material-gallery figure {
  margin: 0;
  background: #061d3c;
  border: 1px solid var(--line);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.material-gallery figure:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}
.material-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.material-gallery figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 19px;
}
.material-gallery figcaption span {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.material-gallery figcaption strong {
  font-size: 14px;
  font-weight: 500;
}
.material-side {
  margin-bottom: 38px !important;
}
.material-download {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}
.material-download h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.2;
  margin: 0;
}
.material-download h2 em {
  color: var(--cyan);
  font-style: normal;
}
.material-download p:not(.eyebrow) {
  color: var(--muted);
  max-width: 560px;
}
@media (max-width: 800px) {
  .materials-page .material-hero {
    min-height: 430px;
    padding-top: 70px;
    padding-bottom: 70px;
    background-position: 62% center;
  }
  .material-hero {
    display: block;
    padding-bottom: 70px;
  }
  .material-hero-art {
    margin: 48px 20px 0 0;
  }
  .material-index {
    gap: 13px;
    justify-content: space-between;
  }
  .material-index span {
    display: block;
  }
  .material-index b {
    display: block;
    margin-bottom: 4px;
  }
  .material-section-head {
    display: block;
  }
  .material-rule {
    display: block;
    margin-top: 22px;
  }
  .material-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .material-side {
    margin-bottom: 0 !important;
  }
  .material-download {
    display: block;
  }
  .material-download .button {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-grid article:hover {
    transform: none;
  }
}
.barrier-layout {
  display: block;
}
.barrier-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.barrier-list article {
  display: block;
  min-height: 270px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: rgba(6, 29, 60, 0.42);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.barrier-list article:hover {
  transform: translateY(-5px);
  border-color: rgba(101, 199, 255, 0.55);
  background: rgba(6, 29, 60, 0.7);
}
.barrier-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(101, 199, 255, 0.35);
  border-radius: 50%;
  color: var(--cyan);
}
.barrier-icon img,
.barrier-icon svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.barrier-list h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 500;
}
.barrier-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  overflow: hidden;
}
.case-track { display: contents; }
.case-slide {
  display: contents;
}
.case-intro {
  max-width: 760px;
  margin: -20px 0 42px;
  color: #c2d3e5;
  font-size: 16px;
  line-height: 1.9;
}
.case-grid article {
  transition:
    background 0.25s,
    transform 0.25s;
  overflow: hidden;
}
.case-grid .case-empty {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
}
.case-grid article:hover {
  background: var(--navy-2);
  transform: translateY(-4px);
}
.case-grid article {
  background: var(--navy-2);
  padding: 0 26px 25px;
  min-height: 360px;
  border: 1px solid var(--line);
}
.case-media {
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 -26px 22px;
  overflow: hidden;
  background: var(--navy);
}
.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.case-grid article:hover .case-media img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}
.case-grid span {
  display: none;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.case-grid h3 {
  font-size: 20px;
  margin: 17px 0 4px;
  font-weight: 500;
}
.case-grid .case-summary {
  margin: 0 0 12px;
  color: #c2d3e5;
  font-size: 13px;
}
.case-grid strong {
  display: block;
  font-size: 28px;
  color: var(--ink);
  font-weight: 500;
}
.case-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.case-controls {
  display: none;
  align-items: center;
  gap: 18px;
  margin: -18px 0 28px;
}
.case-control {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.case-control.is-active,
.case-control:hover,
.case-control:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.case-total {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto;
}
.partner-section {
  overflow: hidden;
}
.partner-logo-wall {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-top: 1px solid #dbe3e8;
  border-left: 1px solid #dbe3e8;
}
.partner-logo-row {
  overflow: hidden;
}
.partner-logo-track {
  display: flex;
  width: max-content;
  animation: partner-row-left 24s linear infinite;
  animation-play-state: paused;
}
.partner-logo-wall.motion-active .partner-logo-track {
  animation-play-state: running;
}
.partner-logo-track.reverse {
  animation-name: partner-row-right;
  animation-duration: 27s;
}
.partner-logo-wall img {
  display: block;
  flex: 0 0 180px;
  width: 180px;
  height: 106px;
  object-fit: contain;
  filter: none;
  padding: 14px 18px;
  background: #fff;
  border-right: 1px solid #dbe3e8;
  border-bottom: 1px solid #dbe3e8;
  transition:
    background 0.2s,
    transform 0.2s;
}
.partner-logo-wall img:hover {
  background: #f3f7f9;
  transform: scale(1.03);
}
@keyframes partner-row-left {
  to {
    transform: translateX(-50%);
  }
}
@keyframes partner-row-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 800px) {
  .barrier-layout {
    display: block;
  }
  .barrier-list { grid-template-columns: 1fr; }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-controls {
    gap: 14px;
  }
  .case-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .case-grid article:hover {
    transform: none;
  }
  .case-media {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .partner-logo-wall img {
    flex-basis: 140px;
    width: 140px;
    height: 92px;
    padding: 10px 8px;
  }
}

/* Keep the fifth-revision light theme after legacy case rules. */
.materials-page { background: #fff; color: var(--navy); }
.materials-page .material-hero { min-height: 560px; }
.materials-page .cases-section,
.materials-page .partner-section { background: #fff; color: var(--navy); border-top-color: #d9e3eb; }
.materials-page .cases-section h2,
.materials-page .partner-section h2,
.materials-page .case-grid h3,
.materials-page .case-grid strong { color: var(--navy); }
.materials-page .case-intro,
.materials-page .case-grid .case-summary,
.materials-page .case-grid p { color: #536b80; }
.materials-page .case-grid article { background: #fff; border-color: #d9e3eb; }
.materials-page .case-grid article:hover { background: #f5f9fc; border-color: #9cc7e8; }
.materials-page .case-media { background: #eef4f8; }
.materials-page .partner-section { padding-bottom: 80px; }
.materials-page + .site-footer {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - var(--max)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--max)) / 2 + 24px));
  background: #fff;
  color: #536b80;
  border-top-color: #d9e3eb;
}
@media (max-width: 800px) {
  .materials-page .material-hero { min-height: 460px; }
  .materials-page .material-hero h1 { font-size: 42px; }
}
