/* ==========================================================================
   RESOURCES — hub page
   Only the three blocks this page adds live here. "Latest articles" reuses the
   shared .insights grid, and the outcomes / brands / CTA bands are the shared
   sections from shared.css.
   ========================================================================== */

/* ---------- hero ---------- */
.res-hero {
  /* .page-hero is a full-viewport placeholder shell; this is a real page, so it
     sizes to its content instead */
  min-height: 0;
  padding: 172px 0 88px;
  text-align: center;
}
/* Figma: plain near-black band with the violet bloom + square grid in the top-right
   corner (the same exported plate the gap and industries sections use), instead of
   the shell's centred aurora wash */
.res-hero {
  background: #010214;
}
.res-hero::before {
  inset: auto;
  top: 0;
  right: 0;
  left: auto;
  width: 700px;
  height: 460px;
  border-radius: 0;
  transform: none;
  background: url("../../images/home/execution-gap-glow-right.png") top right / 100% auto no-repeat;
}
.res-hero::after {
  display: none;
}
.res-hero > .container {
  position: relative;
  z-index: 1;
}
/* 72px display title, same as every other page hero */
@media (min-width: 1081px) {
  .res-hero .page-title {
    font-size: 72px;
    letter-spacing: -0.058em;
  }
}
.res-hero .page-title {
  max-width: 1000px;
  margin: 0 auto;
  /* the gradient wordmark every page hero uses (Figma 167.27deg) */
  background: linear-gradient(167.27deg, #f0e4ff 2.68%, #f9f4ff 30.5%, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.res-hero .page-lead {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
}
@media (max-width: 720px) {
  .res-hero .page-lead { font-size: 15.5px; }
}
/* phones: a smaller corner plate so the grid stays in the corner */
@media (max-width: 720px) {
  .res-hero::before {
    width: 300px;
    height: 200px;
  }
}
/* ---------- industries marquee (Figma) ----------
   A slow ticker of the industries we serve, four-point stars between them,
   the middle of the strip bright and both ends fading out. */
.res-marquee {
  margin: 44px auto 0;
  max-width: 1240px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 18%, #000 40%, #000 60%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 18%, #000 40%, #000 60%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
}
.res-marquee-track {
  display: flex;
  width: max-content;
  animation: resMarquee 48s linear infinite;
}
.res-marquee ul {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.res-marquee li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-inter);
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
}
/* the four-point star between industries */
.res-marquee li::after {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0 28px;
  background: #6766ff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.res-marquee a {
  color: inherit;
}
.res-marquee a:hover,
.res-marquee a:focus-visible {
  color: #c9c6ff;
}
@keyframes resMarquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .res-marquee-track {
    animation: none;
  }
}

/* ---------- featured article (Figma): no card box, a large rounded photo and a
   plain text column ---------- */
.res-featured {
  background: var(--light);
  padding: 70px 0 60px;
}
.res-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 567px) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}
.res-feature-media {
  display: block;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 567 / 379;
  background: #f1f1f5;
}
.res-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.res-feature-body {
  padding-right: 0;
}
.res-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke-light);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #5b5b6b;
}
.res-flag svg {
  width: 16px;
  height: 16px;
  color: #6766ff;
}
.res-feature-body h3 {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #03020b;
}
.res-feature-body h3 a {
  color: inherit;
}
.res-feature-body p {
  margin: 20px 0 0;
  max-width: 560px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: #767676;
}
.res-read {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #1f1383;
}
.res-read:hover,
.res-read:focus-visible {
  color: var(--brand-3);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- related blogs (Figma) ---------- */
.res-blogs {
  background: var(--light);
  padding: 100px 0;
}
.res-blogs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.res-blogs-head h2 {
  margin: 0;
  font-family: var(--font-tight);
  font-size: 65px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #03020b;
}
.res-blogs-all {
  flex: none;
  padding: 18px 40px;
  border-radius: 999px;
  border: 1px solid #6766ff;
  background: transparent;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #03020b;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.res-blogs-all:hover,
.res-blogs-all:focus-visible {
  background: #f1f0ff;
  transform: translateY(-2px);
}
.res-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.res-blog {
  display: block;
  color: inherit;
}
.res-blog-media {
  margin: 0 0 22px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 567 / 260;
  background: #f1f1f5;
}
.res-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.res-blog:hover .res-blog-media img {
  transform: scale(1.03);
}
.res-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 1.4;
  color: #767676;
}
.res-chip-tag {
  padding: 4px 12px;
  border-radius: 4px;
  background: #f1f1f1;
  color: #03020b;
}
.res-blog-date {
  margin-left: 0;
}
.res-blog h3 {
  margin: 20px 0 0;
  font-family: var(--font-inter);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #03020b;
  transition: color 0.25s ease;
}
.res-blog:hover h3 {
  color: var(--brand-3);
}
.res-blog p {
  margin: 16px 0 0;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: #767676;
}

@media (max-width: 1080px) {
  .res-hero {
    padding: 150px 0 76px;
  }
  .res-feature-card {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
  }
  .res-feature-body h3 {
    font-size: 28px;
  }
  .res-read {
    margin-top: 28px;
  }
  .res-blogs {
    padding: 80px 0;
  }
  .res-blogs-head h2 {
    font-size: 35px;
  }
  .res-blogs-head {
    margin-bottom: 40px;
  }
  .res-blogs-all {
    padding: 14px 28px;
  }
  .res-blog h3 {
    font-size: 24px;
  }
}

@media (max-width: 860px) {
  .res-feature-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .res-feature-media {
    aspect-ratio: 16 / 9;
  }
  .res-blog-grid {
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .res-hero {
    padding: 128px 0 60px;
  }
  .res-marquee li {
    font-size: 16px;
  }
  .res-marquee li::after {
    width: 12px;
    height: 12px;
    margin: 0 20px;
  }
  .res-feature-media {
    border-radius: 22px;
  }
  .res-feature-body h3 {
    font-size: 24px;
  }
  .res-blogs {
    padding: 60px 0;
  }
  .res-blogs-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .res-blogs-head h2 {
    font-size: 30px;
  }
  .res-blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .res-blog h3 {
    font-size: 20px;
  }
}

/* ==========================================================================
   LATEST CASE STUDIES (dark): the same layout, type scale and spacing as the
   "Latest insights" section (.insights in css/shared.css), on the dark theme.
   Filled from WordPress.
   ========================================================================== */
.cs-latest {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 100px 0;
  color: #fff;
  background:
    radial-gradient(900px 480px at 102% -3%, rgba(122, 112, 255, 0.5), rgba(122, 112, 255, 0) 70%),
    radial-gradient(700px 520px at -6% 100%, rgba(122, 112, 255, 0.5), rgba(122, 112, 255, 0) 72%),
    #010214;
}
/* the two dotted corner grids */
.cs-latest::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1.15px, transparent 1.25px);
  background-size: 23px 23px;
  -webkit-mask-image:
    radial-gradient(360px 250px at 100% 0%, #000 0%, rgba(0, 0, 0, 0) 74%),
    radial-gradient(340px 260px at 0% 100%, #000 0%, rgba(0, 0, 0, 0) 74%);
  mask-image:
    radial-gradient(360px 250px at 100% 0%, #000 0%, rgba(0, 0, 0, 0) 74%),
    radial-gradient(340px 260px at 0% 100%, #000 0%, rgba(0, 0, 0, 0) 74%);
}
.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.cs-head h2 {
  margin: 0;
  font-family: var(--font-tight);
  font-size: 65px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.cs-all {
  flex: 0 0 auto;
}
.cs-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 40px;
  align-items: start;
}
.cs-feature,
.cs-item {
  display: block;
  color: inherit;
}

/* ---- featured story ---- */
.cs-feature-img {
  position: relative;
  display: block;
  aspect-ratio: 71 / 40;
  border-radius: 16px;
  overflow: hidden;
  background: #151626;
}
.cs-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-feature:hover .cs-feature-img img {
  transform: scale(1.035);
}
.cs-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(3, 2, 11, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.cs-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-right: 56px;
  font-family: var(--font-inter);
  font-size: 13px;
  color: #c4c8df;
}
.cs-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8d90a5;
}
.cs-title {
  display: block;
  margin-top: 10px;
  padding-right: 56px;
  font-family: var(--font-tight);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #fff;
  transition: color 0.25s ease;
}
.cs-feature:hover .cs-title,
.cs-item:hover .cs-item-title {
  color: #c9c6ff;
}
.cs-excerpt {
  display: block;
  margin-top: 12px;
  padding-right: 56px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.6;
  color: #c4c8df;
}

/* ---- ranked list ---- */
.cs-list {
  display: flex;
  flex-direction: column;
}
.cs-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.cs-item:first-child {
  padding-top: 0;
}
.cs-item:last-child {
  border-bottom: 0;
}
.cs-thumb {
  flex: 0 0 128px;
  width: 128px;
  aspect-ratio: 3 / 2;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #151626;
}
.cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-item:hover .cs-thumb img {
  transform: scale(1.06);
}
.cs-item-body {
  display: block;
  min-width: 0;
}
.cs-kicker {
  display: block;
  font-family: var(--font-inter);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c4c8df;
}
.cs-item-title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-tight);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.25s ease;
}

/* same steps the Latest insights section uses */
@media (max-width: 1080px) {
  .cs-latest { padding: 80px 0; }
  .cs-head h2 { font-size: 35px; }
  .cs-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .cs-head { gap: 16px; margin-bottom: 28px; }
  .cs-head h2 { line-height: 1.1; min-width: 0; }
  .cs-all { padding: 12px 20px; white-space: nowrap; }
  .cs-meta, .cs-title, .cs-excerpt { padding-right: 44px; }
  .cs-thumb { flex: 0 0 104px; width: 104px; }
  .cs-item { gap: 16px; padding: 20px 0; }
}
@media (max-width: 560px) {
  .cs-latest { padding: 60px 0; }
  .cs-head h2 { font-size: 30px; }
  .cs-all { padding: 11px 16px; }
  .cs-meta, .cs-title, .cs-excerpt { padding-right: 0; }
}
