/* ==========================================================================
   Resources page
   Figma: node 15512:18561 (Desktop) — no Mobile Figma provided for this
   page; responsive behavior derived from the homepage's approved mobile
   design language per references/FIGMA_REFERENCES.md.
   ========================================================================== */

.resources {
  background-color: #0d0714;
  overflow-x: clip;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.resources-hero {
  position: relative;
  background-image: url('../assets/images/resources_hero_bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  background-color: #0b041b;
  padding-block: clamp(56px, 10vw, 112px);
}

.resources-hero__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
}

.resources-hero__heading {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: clamp(48px, 22px + 4.35vw, 90px);
  line-height: 0.8;
  color: var(--color-text-light);
  margin: 0;
  flex: 0 0 auto;
}

.resources-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 546px;
  flex: 1 1 380px;
}

.resources-hero__accent {
  display: block;
  width: 84px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-accent-purple);
  flex-shrink: 0;
}

.resources-hero__text {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .resources-hero__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .resources-hero__intro {
    flex: none;
    max-width: 100%;
  }

  .resources-hero__text {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .resources-hero {
    padding-block: clamp(40px, 12vw, 64px);
    background-size: cover;
    background-position: top right;
  }

  .resources-hero__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .resources-hero__heading {
    font-size: clamp(36px, 11vw, 48px);
  }

  .resources-hero__intro {
    flex: none;
    max-width: 100%;
  }

  .resources-hero__text {
    font-size: clamp(16px, 4.4vw, 18px);
    line-height: 1.55;
  }
}

@media (max-width: 479px) {
  .resources-hero__heading {
    font-size: clamp(32px, 12vw, 40px);
  }
}

/* --------------------------------------------------------------------
   Featured
   Figma: node 15536:21087
   -------------------------------------------------------------------- */
.featured {
  padding-block: clamp(48px, 6vw, 96px);
}

.featured__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.featured__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.0618em; /* Figma: -3.46px @ 56px */
  line-height: 1.304; /* Figma: 73px @ 56px */
  color: var(--color-text-light);
  margin: 0 0 clamp(20px, 1.6vw, 24px); /* Figma: 24px gap to card grid */
}

.featured__grid {
  display: grid;
  grid-template-columns: 1.27fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.featured__card {
  position: relative;
  border: 1px solid rgba(120, 82, 186, 0.28);
  border-radius: 25px;
  background:
    radial-gradient(120% 160% at 5% 0%, rgba(96, 52, 164, 0.22) 0%, rgba(96, 52, 164, 0) 54%),
    linear-gradient(180deg, rgba(37, 13, 93, 0.144) 0%, rgba(37, 13, 93, 0.115) 100%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24), inset 0 1px 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured__card:hover,
.featured__card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(185, 108, 255, 0.5);
  box-shadow: 0 22px 60px rgba(120, 60, 200, 0.22), inset 0 1px 0 1px rgba(255, 255, 255, 0.02);
}

.featured__card-media {
  flex-shrink: 0;
  overflow: hidden;
}

.featured__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.featured__card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding-inline: 14px;
  border-radius: 43px;
  background-color: #050216;
  border: 1px solid currentColor;
  opacity: 0.9;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.featured__tag--intelligent-web { color: #c987ff; }
.featured__tag--agents { color: #51dec3; }
.featured__tag--automations { color: #6eaeff; }

.featured__date {
  font-family: var(--font-base);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.featured__card-title {
  font-family: var(--font-base);
  font-weight: 700;
  color: var(--color-text-light);
  margin: 0;
}

.featured__card--main .featured__card-title {
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.25;
}

.featured__card--side .featured__card-title {
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.25;
}

.featured__card-desc {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.625; /* Figma: 26px @ 16px */
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.featured__hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-base);
  font-size: 14px;
  color: #b67ae8;
}

/* Main (large) card — image on top, content below */
.featured__card--main {
  display: flex;
  flex-direction: column;
}

.featured__card--main .featured__card-media {
  aspect-ratio: 783 / 324;
}

.featured__card--main .featured__card-body {
  padding: clamp(20px, 2.4vw, 32px);
}

/* Side cards — content left, image right */
.featured__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured__card--side {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 216px;
}

.featured__card--side .featured__card-body {
  flex: 1 1 auto;
  justify-content: center;
  padding: clamp(18px, 2vw, 28px);
}

.featured__card--side .featured__card-media {
  width: clamp(120px, 22%, 207px);
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }

  .featured__side {
    flex-direction: row;
  }

  .featured__card--side {
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
  }

  .featured__card--side .featured__card-media {
    width: 100%;
    aspect-ratio: 3 / 2;
    order: -1;
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .featured__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured__side {
    flex-direction: column;
  }

  .featured__card--side {
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .featured__card--side .featured__card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .featured__card--main .featured__card-title {
    font-size: 24px;
  }

  .featured__card--side .featured__card-title {
    font-size: 20px;
  }

  .featured__card-desc {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .featured__card:hover {
    transform: none;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24), inset 0 1px 0 1px rgba(255, 255, 255, 0.02);
    border-color: rgba(120, 82, 186, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured__card {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------
   Intelligent Web
   Figma: node 15536:21088 — horizontally scrollable article row with a
   right-edge fade indicating more cards off-screen.
   -------------------------------------------------------------------- */
.intel-web {
  position: relative;
  background-color: #050216;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.intel-web__glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 45%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(154, 96, 251, 0.22), rgba(154, 96, 251, 0) 65%);
  pointer-events: none;
}

.intel-web__container {
  position: relative;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.intel-web__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.0618em; /* Figma: -3.46px @ 56px */
  line-height: 1.304; /* Figma: 73px @ 56px */
  color: var(--color-text-light);
  margin: 0;
}

.intel-web__subtitle {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.667; /* Figma: 30px @ 18px */
  color: rgba(255, 255, 255, 0.7);
  margin: 6px 0 clamp(24px, 2.2vw, 32px); /* Figma: 6px from heading, 32px to cards */
}

/* Rows scrolled via JS drag/wheel mapping (see js/main.js) — no visible
   scrollbar or arrow control exists, so the cursor is the only affordance. */
[data-drag-scroll] {
  cursor: grab;
}

[data-drag-scroll].is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* Click-to-scroll pagination dots (see [data-carousel-dots] in js/main.js)
   for .intel-web__row / .ai-agents__row — the only affordance besides the
   drag/wheel handlers, since neither row has a visible scrollbar. */
.intel-web__dots,
.ai-agents__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(24px, 2.2vw, 32px);
}

.intel-web__dots button,
.ai-agents__dots button {
  padding: 0;
  border: 0;
  background-color: rgba(255, 255, 255, 0.24);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.intel-web__dots button.is-active,
.ai-agents__dots button.is-active {
  width: 32px;
  background-color: #b96cff;
}

.intel-web__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
}

.intel-web__row::-webkit-scrollbar {
  display: none;
}

.intel-web__card {
  flex: 0 0 min(370px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.intel-web__card-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 386 / 258;
}

.intel-web__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Real WordPress featured images vary wildly in aspect ratio (unlike the
   approved static design's pre-cropped assets). A fixed-ratio box forces a
   choice between cropping (cover) or letterbox bars (contain) — instead
   the box's own height follows the image's natural ratio at the fixed
   card width, so the image fills it edge-to-edge with nothing cropped and
   no backdrop/letterbox needed. .intel-web__row switches to
   align-items: flex-start so taller/shorter cards in the same row don't
   get stretched to match each other. */
.intel-web__card-media--photo {
  aspect-ratio: auto;
}

.intel-web__card-media--photo img {
  height: auto;
  object-fit: initial;
}

.intel-web__card:hover .intel-web__card-media img,
.intel-web__card:focus-within .intel-web__card-media img {
  transform: scale(1.04);
}

.intel-web__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px; /* Figma: gap-24 in Frame1948755952 */
  padding-top: 20px;
}

.intel-web__date {
  font-family: var(--font-base);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.intel-web__card-title a {
  color: inherit;
  text-decoration: none;
}

.intel-web__card-title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.intel-web__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono-label);
  font-weight: 600;
  font-size: 14px;
  color: #b96cff;
}

.intel-web__card-link span {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.intel-web__card-link:hover span,
.intel-web__card-link:focus-visible span {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .intel-web__card {
    flex-basis: min(340px, 70vw);
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .intel-web__subtitle {
    font-size: 16px;
  }

  .intel-web__row {
    gap: 20px;
  }

  .intel-web__card {
    flex-basis: min(300px, 82vw);
  }

  .intel-web__card-title {
    font-size: 19px;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .intel-web__card:hover .intel-web__card-media img {
    transform: none;
  }

  .intel-web__card-link:hover span {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intel-web__card-media img,
  .intel-web__card-link span {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------
   Automations strip (light section)
   Figma: node 15536:21089
   -------------------------------------------------------------------- */
.automations-strip {
  background-color: #f4f3f7;
  padding-block: clamp(56px, 7vw, 96px);
}

.automations-strip__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automations-strip__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.0618em; /* Figma: -3.46px @ 56px */
  line-height: 1.304; /* Figma: 73px @ 56px */
  color: #171717;
  margin: 0;
}

.automations-strip__subtitle {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.667; /* Figma: 30px @ 18px */
  color: rgba(25, 24, 27, 0.7);
  margin: 2px 0 clamp(24px, 2.2vw, 32px); /* Figma: ~0px from heading, 32px to cards */
}

.automations-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.automations-strip__card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.automations-strip__card:hover,
.automations-strip__card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 8, 56, 0.12);
}

.automations-strip__media {
  position: relative;
  aspect-ratio: 460 / 284;
  overflow: hidden;
}

.automations-strip__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.automations-strip__card:hover .automations-strip__media img,
.automations-strip__card:focus-within .automations-strip__media img {
  transform: scale(1.04);
}

.automations-strip__media--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(5, 2, 22, 0.35);
}

.automations-strip__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 73px;
  height: 73px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.25s ease;
}

.automations-strip__card:hover .automations-strip__play,
.automations-strip__card:focus-within .automations-strip__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.automations-strip__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
}

.automations-strip__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 10px;
}

.automations-strip__label {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent-purple);
  white-space: nowrap;
}

.automations-strip__date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-base);
  font-size: 14px;
  color: rgba(25, 24, 27, 0.7);
}

.automations-strip__date::before {
  content: '';
  width: 1px;
  height: 14px;
  background-color: rgba(0, 0, 0, 0.2);
}

.automations-strip__title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.364; /* Figma: 30px @ 22px */
  color: #19181b;
  margin: 0;
}

.automations-strip__desc {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.625;
  color: rgba(25, 24, 27, 0.7);
  margin: 0;
}

/* --------------------------------------------------------------------
   Small-desktop bridge — meta row (label + date) is too tight for one
   line at the 3-col grid's narrowest card width; nudge font-size down
   just enough to avoid the separator/date wrapping onto its own line.
   -------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .automations-strip__label,
  .automations-strip__date {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .automations-strip__grid {
    grid-template-columns: 1fr 1fr;
  }

  .automations-strip__card:last-child {
    grid-column: 1 / -1;
  }

  .automations-strip__card:last-child .automations-strip__media {
    aspect-ratio: 920 / 284;
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .automations-strip__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .automations-strip__heading {
    font-size: clamp(32px, 9vw, 40px);
  }

  .automations-strip__body {
    padding: 22px;
    gap: 16px;
  }

  .automations-strip__title {
    font-size: 19px;
  }

  .automations-strip__desc {
    font-size: 15px;
  }

  .automations-strip__play {
    width: 56px;
    height: 56px;
  }

  .automations-strip__play svg {
    width: 16px;
    height: 18px;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .automations-strip__card:hover {
    transform: none;
    box-shadow: none;
  }

  .automations-strip__card:hover .automations-strip__media img {
    transform: none;
  }

  .automations-strip__card:hover .automations-strip__play {
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .automations-strip__card,
  .automations-strip__media img,
  .automations-strip__play {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------
   AI Agents
   Figma: node 15536:21090 — same horizontal-scroll pattern as
   Intelligent Web, mirrored glow placement for variety.
   -------------------------------------------------------------------- */
.ai-agents {
  position: relative;
  background-color: #0b0518;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.ai-agents::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 40%;
  height: 65%;
  background: radial-gradient(circle at 70% 30%, rgba(154, 96, 251, 0.18), rgba(154, 96, 251, 0) 65%);
  pointer-events: none;
}

.ai-agents__container {
  position: relative;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.ai-agents__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.0618em; /* Figma: -3.46px @ 56px */
  line-height: 1.304; /* Figma: 73px @ 56px */
  color: var(--color-text-light);
  margin: 0;
}

.ai-agents__subtitle {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.667; /* Figma: 30px @ 18px */
  color: rgba(255, 255, 255, 0.7);
  margin: 7px 0 clamp(24px, 2.2vw, 32px); /* Figma: 7px from heading, 32px to cards */
}

.ai-agents__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
}

.ai-agents__row::-webkit-scrollbar {
  display: none;
}

.ai-agents__card {
  flex: 0 0 min(370px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.ai-agents__card-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 386 / 258;
}

.ai-agents__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Real WordPress featured images vary wildly in aspect ratio (unlike the
   approved static design's pre-cropped assets). Matches
   .intel-web__card-media--photo's current approach: the box's own height
   follows the image's natural ratio at the fixed card width, so nothing
   is cropped and no backdrop/letterbox is needed. */
.ai-agents__card-media--photo {
  aspect-ratio: auto;
}

.ai-agents__card-media--photo img {
  height: auto;
  object-fit: initial;
}

.ai-agents__card:hover .ai-agents__card-media img,
.ai-agents__card:focus-within .ai-agents__card-media img {
  transform: scale(1.04);
}

.ai-agents__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px; /* Figma: gap-24 in Frame1597893004/5/6/7 */
  padding-top: 20px;
}

.ai-agents__date {
  font-family: var(--font-base);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.ai-agents__card-title a {
  color: inherit;
  text-decoration: none;
}

.ai-agents__card-title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ai-agents__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono-label);
  font-weight: 600;
  font-size: 14px;
  color: #b96cff;
}

.ai-agents__card-link span {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.ai-agents__card-link:hover span,
.ai-agents__card-link:focus-visible span {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .ai-agents__card {
    flex-basis: min(340px, 70vw);
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .ai-agents__subtitle {
    font-size: 16px;
  }

  .ai-agents__row {
    gap: 20px;
  }

  .ai-agents__card {
    flex-basis: min(300px, 82vw);
  }

  .ai-agents__card-title {
    font-size: 19px;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .ai-agents__card:hover .ai-agents__card-media img {
    transform: none;
  }

  .ai-agents__card-link:hover span {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-agents__card-media img,
  .ai-agents__card-link span {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------
   Tech News (light section)
   Figma: node 15536:21091 — 4-column text-only news list.
   -------------------------------------------------------------------- */
.tech-news {
  background-color: #ffffff;
  padding-block: clamp(56px, 7vw, 96px);
}

.tech-news__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.tech-news__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.0618em; /* Figma: -3.46px @ 56px */
  line-height: 1.304; /* Figma: 73px @ 56px */
  color: #171717;
  margin: 0 0 clamp(28px, 2.4vw, 36px); /* Figma: ~35px gap to grid */
}

.tech-news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.tech-news__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 31px;
  color: inherit;
  text-decoration: none;
}

.tech-news__rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent-purple);
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.tech-news__item:hover .tech-news__rule,
.tech-news__item:focus-visible .tech-news__rule {
  background-color: #171717;
}

.tech-news__label {
  font-family: var(--font-base);
  font-size: 14px;
  color: #19181b;
}

.tech-news__title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.364; /* Figma: 30px @ 22px */
  color: #19181b;
  margin: 0;
}

.tech-news__date {
  font-family: var(--font-base);
  font-size: 12px;
  line-height: 2.5; /* Figma: 30px @ 12px */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(25, 24, 27, 0.7);
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .tech-news__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .tech-news__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tech-news__title {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .tech-news__item:hover .tech-news__rule {
    background-color: var(--color-accent-purple);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-news__rule {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------
   eCommerce & Development (light section)
   Figma: node 15536:21092 — 2-column divided list, 8 items.
   -------------------------------------------------------------------- */
.ecom-list {
  background-color: #f4f3f7;
  padding-block: clamp(56px, 7vw, 96px);
}

.ecom-list__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.ecom-list__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.0618em; /* Figma: -3.46px @ 56px */
  line-height: 1.304; /* Figma: 73px @ 56px */
  color: #171717;
  margin: 0; /* Figma: first item starts flush against the divider line */
  padding-bottom: clamp(20px, 2.3vw, 35px); /* Figma: ~35px gap to divider */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ecom-list__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

.ecom-list__grid::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.ecom-list__item {
  display: flex;
  align-items: flex-start;
  gap: 20.71px; /* Figma: image-box right edge (260.47) to text-frame x (281.18) */
  padding-block: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ecom-list__item:nth-last-child(-n+2) {
  border-bottom: none;
}

.ecom-list__media {
  flex: 0 0 clamp(140px, 16vw, 220px);
  aspect-ratio: 220 / 140;
  border-radius: 12px;
  overflow: hidden;
}

.ecom-list__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Fixed box matching Figma's actual measured media-mask ratio
   (219.78 x 124.54 = ~1.764), not the old 220/140 (~1.571) value the
   base rule below uses for the static design's pre-cropped assets. Real
   WordPress featured images vary in aspect ratio, so they're shown in
   full via contain + a blurred backdrop fill rather than cropped. */
.ecom-list__media--photo {
  aspect-ratio: 220 / 124.54;
  position: relative;
}

.ecom-list__media-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.85);
  transform: scale(1.15);
}

.ecom-list__media--photo img:not(.ecom-list__media-backdrop) {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.ecom-list__item:hover .ecom-list__media img:not(.ecom-list__media-backdrop),
.ecom-list__item:focus-visible .ecom-list__media img:not(.ecom-list__media-backdrop) {
  transform: scale(1.06);
}

.ecom-list__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 31px; /* Figma: gap-31 in Frame1597892977 etc. */
  padding-top: 2px;
}

.ecom-list__label {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  /* Category tag, not a link — the whole card is one <a>, but this
     shouldn't read/behave as its own separate clickable target. */
  cursor: default;
  pointer-events: none;
}

.ecom-list__title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: #19181b;
  margin: 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ecom-list__item:hover .ecom-list__title,
.ecom-list__item:focus-visible .ecom-list__title {
  color: var(--color-accent-purple);
}

.ecom-list__date {
  font-family: var(--font-base);
  font-size: 14px;
  color: rgba(25, 24, 27, 0.7);
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .ecom-list__grid {
    column-gap: 40px;
  }

  .ecom-list__title {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------
   Mobile — single column, no vertical divider
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .ecom-list__grid {
    grid-template-columns: 1fr;
  }

  .ecom-list__grid::before {
    display: none;
  }

  .ecom-list__item {
    padding-block: 24px;
    gap: 16px;
  }

  .ecom-list__item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .ecom-list__item:last-child {
    border-bottom: none;
  }

  .ecom-list__media {
    flex-basis: 110px;
  }

  .ecom-list__title {
    font-size: 16px;
    line-height: 1.4;
  }

  .ecom-list__label {
    font-size: 11px;
  }

  .ecom-list__date {
    font-size: 13px;
  }
}

@media (max-width: 479px) {
  .ecom-list__item {
    gap: 12px;
  }

  .ecom-list__media {
    flex-basis: 88px;
  }

  .ecom-list__body {
    gap: 8px;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .ecom-list__item:hover .ecom-list__media img {
    transform: none;
  }

  .ecom-list__item:hover .ecom-list__title {
    color: #19181b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecom-list__media img,
  .ecom-list__title {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------
   Promo CTA — dual card (AI-Readiness Audit / Ask Jovian)
   Figma: node 15536:21093 (auto-named "Tech News" from a stray text
   layer per the known Figma-naming quirk — this is a two-CTA promo,
   not article content).
   -------------------------------------------------------------------- */
.promo-cta {
  background-color: #0d0714;
  padding-block: clamp(48px, 6vw, 80px);
}

.promo-cta__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.promo-cta__card {
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.promo-cta__card--audit {
  background-color: #f6e33b;
}

.promo-cta__card--jovian {
  background-color: #050216;
  background-image: radial-gradient(circle at 100% 100%, rgba(154, 96, 251, 0.35), rgba(154, 96, 251, 0) 60%);
}

.promo-cta__eyebrow {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
}

.promo-cta__eyebrow--light {
  color: #b67ae8;
}

.promo-cta__heading {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: clamp(26px, 2.8vw, 34px);
  color: #171717;
  margin: 0;
}

.promo-cta__heading--light {
  color: var(--color-text-light);
}

.promo-cta__text {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.625;
  color: rgba(25, 24, 27, 0.7);
  margin: 0;
  max-width: 34em;
}

.promo-cta__text--light {
  color: rgba(255, 255, 255, 0.7);
}

.promo-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding-inline: 36px;
  border-radius: 4px;
  font-family: var(--font-mono-label);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 8px;
  transition: transform 0.2s ease;
}

.promo-cta__button--dark {
  background-color: #171717;
}

.promo-cta__button--purple {
  background-color: #7605f5;
}

.promo-cta__button:hover,
.promo-cta__button:focus-visible {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .promo-cta__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
  .promo-cta__container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .promo-cta__heading {
    font-size: 26px;
  }

  .promo-cta__button {
    height: 56px;
    padding-inline: 28px;
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  .promo-cta__button {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------
   Touch-guard + reduced-motion
   -------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .promo-cta__button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-cta__button {
    transition: none !important;
  }
}
