/* ══════════════════════════════════════════════
   ACTINUANCE — Publications (blog, client stories, innovation)
   Chargée après ax.css. Style le balisage injecté par les scripts
   des pages (cartes .ressource-card, bandeau LinkedIn, corps
   d'article #articleContent, fiche .rex-meta-*).
════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────── */
.ax-hero--list { min-height: min(68svh, 640px); }

/* Articles : hero court, le texte prime. */
.ax-hero--article {
  min-height: 0;
  padding: calc(var(--nav-height) + 64px) 0 clamp(88px, 10vw, 128px);
}
.ax-hero--article .ax-hero-art { right: -14%; width: min(46vw, 600px); opacity: 0.8; }
.ax-hero--article .ax-hero-copy { max-width: 820px; }
.ax-page main .ax-hero--article h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

.ax-pub-tag {
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ax-orange);
}
.ax-pub-meta {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--ax-on-dark);
}
.ax-pub-meta:empty,
.ax-hero-lead:empty { display: none; }

/* ─── GRILLES DE CARTES (listes) ────────────────── */
.ax-pubgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ax-page .ax-pubgrid .ressource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--ax-radius);
  background: var(--ax-dark);
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: transform 0.45s var(--ax-ease), box-shadow 0.45s var(--ax-ease);
}
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2) { background: #f4ecf8; }
.ax-page .ax-pubgrid .ressource-card:nth-child(3n) { background: var(--ax-orange); }
.ax-page .ax-pubgrid .ressource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(55, 24, 70, 0.18);
}
.ax-page .ax-pubgrid .ressource-card::before { content: none; }

/* Triangle de marque dans le coin de chaque carte. */
.ax-page .ax-pubgrid .ressource-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 150px;
  aspect-ratio: 1 / 0.88;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(241, 136, 71, 0.8);
  pointer-events: none;
  transition: transform 0.7s var(--ax-ease);
}
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2)::after { background: rgba(142, 42, 168, 0.18); }
.ax-page .ax-pubgrid .ressource-card:nth-child(3n)::after { background: rgba(55, 24, 70, 0.16); }
.ax-page .ax-pubgrid .ressource-card:hover::after { transform: translate(-12px, -14px) rotate(-18deg) scale(1.25); }

/* Lien couvrant (client stories, innovation : <article><a>…</a></article>). */
.ax-page .ax-pubgrid .ressource-card > a {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

/* Couverture */
.ax-page .ax-pubgrid .ressource-cover-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 0;
  background: #4a2560;
  overflow: hidden;
}
.ax-page .ax-pubgrid .ressource-cover {
  position: static;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  opacity: 1;
  object-fit: cover;
  transition: transform 0.9s var(--ax-ease);
}
.ax-page .ax-pubgrid .ressource-card:hover .ressource-cover { transform: scale(1.05); }
.ax-page .ax-pubgrid .ressource-cover.placeholder {
  background:
    linear-gradient(165deg, rgba(178, 96, 208, 0.75), rgba(104, 1, 127, 0.15) 70%),
    var(--ax-dark);
  clip-path: none;
}

/* Textes des cartes : couleurs posées sur les enfants (le lien
   injecté porte style="color:inherit"). */
.ax-page .ax-pubgrid .ressource-tag,
.ax-page .ax-pubgrid .ressource-card h3,
.ax-page .ax-pubgrid .ressource-meta,
.ax-page .ax-pubgrid .ressource-card p,
.ax-page .ax-pubgrid .card-link {
  position: relative;
  z-index: 1;
  padding-inline: clamp(22px, 2.4vw, 30px);
}

.ax-page .ax-pubgrid .ressource-tag {
  margin: 24px 0 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #ffa466;
}
.ax-page .ax-pubgrid .ressource-card h3 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.3rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}
.ax-page .ax-pubgrid .ressource-meta {
  margin: 10px 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}
.ax-page .ax-pubgrid .ressource-card p {
  margin: 14px 0 0;
  font-size: 0.975rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.ax-page .ax-pubgrid .card-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  padding-bottom: 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ax-orange);
}
.ax-page .ax-pubgrid .ressource-card:hover .card-link { text-decoration: underline; text-underline-offset: 4px; }

/* Variante lavande */
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2) .ressource-tag,
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2) .card-link { color: var(--ax-purple); }
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2) h3 { color: var(--ax-ink); }
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2) .ressource-meta,
.ax-page .ax-pubgrid .ressource-card:nth-child(3n + 2) p { color: var(--ax-muted); }

/* Variante orange : texte foncé. */
.ax-page .ax-pubgrid .ressource-card:nth-child(3n) .ressource-tag,
.ax-page .ax-pubgrid .ressource-card:nth-child(3n) h3,
.ax-page .ax-pubgrid .ressource-card:nth-child(3n) .card-link { color: var(--ax-dark); }
.ax-page .ax-pubgrid .ressource-card:nth-child(3n) .ressource-meta,
.ax-page .ax-pubgrid .ressource-card:nth-child(3n) p { color: rgba(55, 24, 70, 0.88); }

/* Innovation : la première publication occupe deux colonnes. */
.ax-page .ax-pubgrid .ressource-card.big:has(> a) {
  grid-column: span 2;
  grid-row: auto;
  justify-content: flex-start;
  min-height: 320px;
}
.ax-page .ax-pubgrid .ressource-card.big:has(> a) h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; }
.ax-page .ax-pubgrid .ressource-card.big:has(> a) p { max-width: 54ch; font-size: 1.0625rem; }
.ax-page .ax-pubgrid .ressource-card.big:has(> a)::after { width: 240px; }

/* Cartes sans couverture (innovation) : un peu d'air en haut. */
.ax-page .ax-pubgrid .ressource-card > a > .ressource-tag:first-child { margin-top: clamp(28px, 3vw, 38px); }

/* ─── ÉTATS : chargement, vide, erreur ──────────── */
/* Carte d'attente (#…LoadingCard) et carte d'état injectée
   (article sans lien) : panneau pleine largeur, lisible. */
.ax-page .ax-pubgrid > article.ressource-card:only-child:not(:has(> a:not(.card-link))) {
  grid-column: 1 / -1;
  min-height: 0;
  padding: clamp(28px, 4vw, 48px) 0;
  background: var(--ax-grey);
  cursor: default;
  transform: none;
  box-shadow: none;
}
.ax-page .ax-pubgrid > article.ressource-card:only-child:not(:has(> a:not(.card-link)))::after {
  width: 120px;
  background: rgba(142, 42, 168, 0.12);
  transform: none;
}
.ax-page .ax-pubgrid > article.ressource-card:only-child:not(:has(> a:not(.card-link))) .ressource-tag {
  margin-top: 0;
  color: var(--ax-purple);
}
.ax-page .ax-pubgrid > article.ressource-card:only-child:not(:has(> a:not(.card-link))) h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--ax-ink);
}
.ax-page .ax-pubgrid > article.ressource-card:only-child:not(:has(> a:not(.card-link))) p {
  max-width: 70ch;
  color: var(--ax-muted);
  overflow-wrap: anywhere;
}
.ax-page .ax-pubgrid > article.ressource-card:only-child:not(:has(> a:not(.card-link))) .card-link {
  margin-top: 0;
  padding-bottom: 0;
  color: var(--ax-purple);
}

/* Attente : la pastille respire. */
.ax-pubgrid [id$='LoadingCard'] .ressource-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ax-orange);
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .ax-pubgrid [id$='LoadingCard'] .ressource-tag::before { animation: ax-pub-pulse 1.1s ease-in-out infinite alternate; }
  /* Les cartes injectées arrivent en cascade. */
  .ax-pubgrid > * { animation: ax-rise 0.7s var(--ax-ease) both; }
  .ax-pubgrid > :nth-child(2) { animation-delay: 0.06s; }
  .ax-pubgrid > :nth-child(3) { animation-delay: 0.12s; }
  .ax-pubgrid > :nth-child(4) { animation-delay: 0.18s; }
  .ax-pubgrid > :nth-child(5) { animation-delay: 0.24s; }
  .ax-pubgrid > :nth-child(n + 6) { animation-delay: 0.3s; }
}
@keyframes ax-pub-pulse {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.15); }
}

/* ─── BANDEAU LINKEDIN (blog) ───────────────────── */
.ax-pub-linkedin .ax-head { margin-bottom: 32px; }
.ax-pub-linkedin .ax-h2 { color: #fff; }
.ax-page .ax-pub-linkedin .blog-linkedin-band-wrap {
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ax-page .ax-pub-linkedin .blog-linkedin-band-track { gap: 12px; padding: 10px; }
.ax-page .ax-pub-linkedin .blog-linkedin-band-wrap:hover .blog-linkedin-band-track { animation-play-state: paused; }
.ax-page .ax-pub-linkedin .blog-linkedin-chip {
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ax-page .ax-pub-linkedin .blog-linkedin-chip:hover { background: rgba(255, 255, 255, 0.22); transform: none; }
.ax-page .ax-pub-linkedin .blog-linkedin-chip .chip-source {
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: var(--ax-orange);
  color: var(--ax-dark);
}
.ax-page .ax-pub-linkedin .blog-linkedin-chip strong {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.ax-page .ax-pub-linkedin .blog-linkedin-chip em { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.ax-page .ax-pub-linkedin a.blog-linkedin-chip:focus-visible { outline: 2px solid var(--ax-orange); outline-offset: 3px; }

/* ─── LECTURE (article, client story, innovation) ── */
.ax-pub-read { padding-top: clamp(64px, 8vw, 104px); }

.ax-article {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Couverture : large, au-dessus de la colonne de texte. */
.ax-article-cover {
  margin: 0 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  border-radius: var(--ax-radius);
  background: var(--ax-grey);
}
.ax-article-cover img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}
.ax-article-cover:has(img[src='']) { display: none; }
.ax-article-cover img:not([src]),
.ax-article-cover img[src=''] { display: none; }

/* Colonne de lecture ~70 caractères. */
.ax-page .article-content {
  max-width: 70ch;
  margin-inline: auto;
  padding: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ax-ink);
  overflow-wrap: break-word;
}
.ax-article--media .article-content { max-width: 900px; }

.ax-page .article-content > :first-child { margin-top: 0; }
.ax-page .article-content p { margin: 0 0 1.25em; font-size: inherit; line-height: inherit; color: var(--ax-ink); }
.ax-page .article-content h1,
.ax-page .article-content h2,
.ax-page .article-content h3,
.ax-page .article-content h4 {
  font-family: 'Raleway', sans-serif;
  color: var(--ax-ink);
  letter-spacing: -0.02em;
  text-transform: none;
}
/* Un h1 injecté dans le corps reste visuellement un titre de section. */
.ax-page .article-content h1,
.ax-page .article-content h2 { margin: 2em 0 0.6em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.15; }
.ax-page .article-content h3 { margin: 1.8em 0 0.5em; font-size: clamp(1.3rem, 1.9vw, 1.55rem); font-weight: 700; line-height: 1.25; }
.ax-page .article-content h4 { margin: 1.6em 0 0.5em; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--ax-purple); }
.ax-page .article-content ul,
.ax-page .article-content ol { margin: 0 0 1.25em; padding-left: 1.4em; color: var(--ax-ink); }
.ax-page .article-content ul { list-style: none; }
.ax-page .article-content ul > li { position: relative; }
.ax-page .article-content ul > li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: -1.15em;
  width: 0.5em;
  aspect-ratio: 1 / 0.88;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--ax-orange);
}
.ax-page .article-content ol li::marker { color: var(--ax-purple); font-weight: 600; }
.ax-page .article-content li { margin-bottom: 0.5em; padding-left: 0.2em; }
.ax-page .article-content blockquote {
  margin: 1.8em 0;
  padding: 1.2em 1.4em;
  border: 0;
  border-left: 4px solid var(--ax-orange);
  border-radius: 0 18px 18px 0;
  background: #f4ecf8;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2em;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ax-dark);
}
.ax-page .article-content a {
  color: var(--ax-purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ax-page .article-content a:hover { text-decoration-thickness: 2px; }
.ax-page .article-content strong { font-weight: 600; }
.ax-page .article-content code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--ax-grey);
  font-size: 0.9em;
}
/* Couleurs de texte posées dans Sanity (client stories). */
.ax-page .article-content .accent-text { color: #b4561b; }
.ax-page .article-content .violet-text { color: #532369; }
.ax-page .article-content .soft-violet-text { color: #7a55b8; }
.ax-page .article-content .ink-text { color: #1f1630; }
.ax-page .article-content .muted-text { color: var(--ax-muted); }

/* Médias insérés : image, vidéo, PDF. */
.ax-page .article-content figure {
  margin: 2em 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--ax-grey);
}
.ax-page .article-content figure img { width: 100%; height: auto; }
.ax-page .article-content-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.ax-page .article-content-pdf iframe {
  display: block;
  width: 100%;
  min-height: min(78vh, 720px);
  border: 0;
  background: #fff;
}
.ax-page .article-content figcaption,
.ax-page .article-content .media-caption {
  padding: 12px 16px;
  border: 0;
  background: var(--ax-grey);
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ax-muted);
}

/* Retour à la liste */
.ax-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: clamp(48px, 6vw, 72px);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ax-purple);
}
.ax-back::before {
  content: '';
  width: 0.42em;
  height: 0.42em;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ax-ease);
}
.ax-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.ax-back:hover::before { transform: translateX(-4px) rotate(45deg); }
.ax-back-row { max-width: 70ch; margin-inline: auto; }
.ax-article--media .ax-back-row { max-width: 900px; }

/* ─── CLIENT STORY : fiche mission + texte ──────── */
.ax-rexlayout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ax-rexlayout .article-content { margin-inline: 0; }
.ax-rexlayout + .ax-back-row { max-width: none; }

.ax-page .rex-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 28px 26px 22px;
  overflow: hidden;
  border: 0;
  border-radius: var(--ax-radius);
  background: var(--ax-dark);
  box-shadow: none;
  color: #fff;
}
.ax-page .rex-sidebar::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 130px;
  aspect-ratio: 1 / 0.88;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(241, 136, 71, 0.8);
  pointer-events: none;
}
.ax-page .rex-sidebar > * { position: relative; z-index: 1; }
.ax-page .rex-sidebar .ax-kicker { margin-bottom: 8px; color: #ffa466; }
.ax-page .rex-meta-list { display: block; margin: 0; padding: 0; list-style: none; }
.ax-page .rex-meta-item {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: none;
}
.ax-page .rex-meta-item:last-child { border-bottom: 0; }
.ax-page .rex-meta-label {
  display: block;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
}
.ax-page .rex-meta-value {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1000px) {
  .ax-pubgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-rexlayout { grid-template-columns: 1fr; }
  .ax-page .rex-sidebar { position: relative; top: auto; }
  .ax-rexlayout .article-content { margin-inline: auto; }
  .ax-rexlayout + .ax-back-row { max-width: 70ch; }
}

@media (max-width: 760px) {
  .ax-hero--list { min-height: 0; }
  .ax-hero--article { position: relative; padding: calc(var(--nav-height) + 48px) 0 80px; }
  .ax-hero--article .ax-hero-art { top: 30%; right: -40%; width: 110vw; opacity: 0.4; }
  .ax-page main .ax-hero h1 br { display: none; }
  .ax-page .article-content { font-size: 1.0625rem; }
  .ax-page .article-content-pdf iframe { min-height: 70vh; }

  /* Bandeau LinkedIn : défilement manuel au doigt. */
  .ax-page .ax-pub-linkedin .blog-linkedin-band-wrap {
    overflow-x: auto;
    border-radius: 22px;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }
  .ax-page .ax-pub-linkedin .blog-linkedin-band-wrap::-webkit-scrollbar { display: none; }
  .ax-page .ax-pub-linkedin .blog-linkedin-band-track { animation: none; padding: 10px; }
}

@media (max-width: 640px) {
  .ax-pubgrid { grid-template-columns: 1fr; }
  .ax-page .ax-pubgrid .ressource-card.big:has(> a) { grid-column: auto; min-height: 0; }
  .ax-page .ax-pubgrid .ressource-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-page .ax-pub-linkedin .blog-linkedin-band-track { animation: none; }
  .ax-page .ax-pubgrid .ressource-card,
  .ax-page .ax-pubgrid .ressource-cover,
  .ax-page .ax-pubgrid .ressource-card::after { transition: none; }
}

/* ─── EN-TÊTE D'ARTICLE (sans hero) ─────────────── */
/* Panneau coloré avec triangles de marque ; les derniers mots du titre
   passent au marqueur (orange : article, violet : Client Story, lilas : innovation). */
.ax-article-head {
  --mk: #f18847;
  --mk-ink: #2a0f3a;
  --head-bg: #fff4ec;
  --tri-a: #f18847;
  --tri-b: #c7a0ff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(36px, 5vw, 60px);
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--tri-b) 28%, transparent), transparent 70%),
    var(--head-bg);
}
.ax-article-head--rex { --mk: #632a7c; --mk-ink: #fff; --head-bg: #f3ecfc; --tri-a: #7c3aed; --tri-b: #f18847; }
.ax-article-head--innov { --mk: #c7a0ff; --mk-ink: #2a0f3a; --head-bg: #f3ecfc; --tri-a: #9b70e0; --tri-b: #f18847; }

/* Triangles de marque : un grand en filigrane, un petit plein qui flotte. */
.ax-article-head::before,
.ax-article-head::after {
  content: '';
  position: absolute;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.ax-article-head::before {
  right: -6%;
  bottom: -30%;
  width: min(42%, 360px);
  aspect-ratio: 1.15;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tri-a) 30%, transparent), transparent 75%);
  transform: rotate(-14deg);
}
.ax-article-head::after {
  right: clamp(24px, 7vw, 96px);
  top: clamp(24px, 4vw, 48px);
  width: clamp(26px, 3vw, 40px);
  aspect-ratio: 1.15;
  background: var(--tri-b);
  transform: rotate(18deg);
  animation: ax-head-float 6s ease-in-out infinite;
}
@keyframes ax-head-float { 50% { transform: translateY(-10px) rotate(32deg); } }

.ax-article:has(.ax-rexlayout) .ax-article-head { max-width: none; }
.ax-back--top { margin: 0 0 24px; font-size: 0.95rem; }
.ax-article-head .ax-pub-tag { margin-bottom: 14px; font-weight: 600; }
.ax-article-head--rex .ax-pub-tag,
.ax-article-head--innov .ax-pub-tag { color: #7c3aed; }
.ax-page main .ax-article-head h1 {
  max-width: 22ch;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #2a0f3a;
}
.ax-article-head .ax-mk {
  padding: 0 0.14em;
  border-radius: 0.14em;
  color: inherit;
  background: linear-gradient(var(--mk), var(--mk)) no-repeat 0 0 / 0 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s, color 0.4s ease 0.5s;
}
.ax-article-head .ax-mk.is-lit { background-size: 100% 100%; color: var(--mk-ink); }
.ax-article-head .ax-pub-meta { margin-top: 18px; color: var(--ax-muted); }
.ax-article-lead { max-width: 60ch; margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: #4b3f55; }
.ax-article-lead:empty { display: none; }
.ax-nohero .ax-pub-read { padding-top: clamp(32px, 4vw, 56px); }

@media (prefers-reduced-motion: reduce) {
  .ax-article-head::after { animation: none; }
  .ax-article-head .ax-mk { transition: none; }
}
