/* ==========================================================================
   Nevion Labs — blog (WordPress theme "Nevion Labs")
   Loaded after the site's css/base.css and css/components.css.
   Values recreated from the original Insights and Article designs.
     ins-*   listing pages (blog home, archives, search)
     art-*   single article, page and 404
   Breakpoints: 960px (narrow, single column), 640px (mobile).
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @keyframes nvWord { from { opacity: 0; transform: translateY(0.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes nvDrift { to { background-position: 36px 36px; } }
  @keyframes nvMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes nvFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   Listing — hero
   ========================================================================== */
.ins-hero { position: relative; isolation: isolate; overflow: hidden; }
.ins-hero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(11, 11, 11, 0.06) 0 1px, transparent 1px 120px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.ins-hero__dots {
  position: absolute;
  right: -8%;
  top: 4%;
  width: 55%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 11, 11, 0.2) 1px, transparent 1.2px);
  background-size: 18px 18px;
  animation: nvDrift 5s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.ins-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(32px, 4vw, 56px);
}
.ins-hero__crumb { flex-wrap: nowrap; }
.ins-hero__crumb .breadcrumb__current { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ins-hero__count { margin-left: auto; white-space: nowrap; }

.ins-hero__grid {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 64px;
  align-items: end;
}
.ins-hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(36px, 7.4vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 11ch;
  text-wrap: balance;
}
.ins-word { display: inline-block; animation: nvWord .9s var(--ease-out) both; }
.ins-word--2 { animation-delay: .07s; }
.ins-word--3 { animation-delay: .14s; }
.ins-word--serif { animation-duration: 1s; animation-delay: .24s; }
.ins-word--dot { color: var(--red); animation: nvWord .6s ease .4s both; }

.ins-hero__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: nvRise 1s var(--ease-out) .1s both;
}
.ins-hero__intro {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text);
  max-width: 40ch;
}

/* Search (searchform.php) */
.ins-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
  transition: border-color .2s;
}
.ins-search.is-filled { border-bottom-color: var(--red); }
.ins-search__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: text;
}
.ins-search__input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 1px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.ins-search__input::placeholder { color: var(--muted-2); opacity: 1; }
.ins-search__input::-webkit-search-cancel-button,
.ins-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.ins-search__clear { font-size: 13px; color: var(--muted); }
.ins-search__clear:hover { color: var(--red); }

/* Topic chips */
.ins-cats {
  margin-top: clamp(24px, 3vw, 40px);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ins-cats::-webkit-scrollbar { display: none; }
.ins-cat {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  transition: all .25s;
}
.ins-cat:hover { color: var(--ink); border-color: var(--ink); }
.ins-cat__count { font-family: var(--mono); font-size: 10px; color: #8A8984; }
.ins-cat[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ins-cat[aria-current] .ins-cat__count { color: var(--red); }

/* ==========================================================================
   Listing — featured article
   ========================================================================== */
.ins-feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 6vw, 88px);
}
.ins-feature__card {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  background: var(--ink);
  color: var(--white);
  animation: nvRise 1s var(--ease-out) .2s both;
  transition: transform .4s var(--ease-out);
}
.ins-feature__card:hover { transform: translateY(-6px); color: var(--white); }
.ins-feature__cover {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  border-right: 1px solid var(--line-dark);
}
.ins-feature__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ins-feature__num {
  position: absolute;
  right: -0.05em;
  bottom: -0.2em;
  font-size: clamp(200px, 24vw, 380px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  animation: nvFloat 8s ease-in-out infinite;
}
.ins-feature__cover { --bar: 38%; --x: clamp(20px, 3vw, 40px); }
.ins-feature__cover.is-long { --bar: 58%; }
.ins-feature__bar {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: var(--bar);
  height: 2px;
  background: var(--red);
  transition: width 1.6s var(--ease-out);
}
.ins-feature__node {
  position: absolute;
  left: calc(var(--x) + var(--bar));
  top: calc(50% - 6px);
  width: 14px;
  height: 14px;
  background: var(--red);
  animation: nvPulse 1.8s ease-out infinite;
  transition: left 1.6s var(--ease-out);
}
.ins-feature__tag {
  position: absolute;
  left: var(--x);
  top: clamp(20px, 3vw, 32px);
  padding: 7px 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.ins-feature__body {
  padding: clamp(24px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.ins-feature__text { display: flex; flex-direction: column; gap: 18px; }
.ins-feature__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); }
.ins-feature__title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.ins-feature__excerpt { font-size: 17px; line-height: 1.55; color: var(--on-dark-2); max-width: 46ch; }
.ins-feature__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #262624;
}
.ins-author { display: flex; align-items: center; gap: 12px; }
.ins-author__photo {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 20%;
  background-color: var(--text);
}
.ins-author__text { display: flex; flex-direction: column; gap: 2px; }
.ins-author__name { font-size: 14px; font-weight: 500; }
.ins-author__role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2); }
.ins-feature__read { display: flex; gap: 10px; font-size: 15px; font-weight: 500; color: var(--white); }
.ins-feature__read span { color: var(--red); }

/* ==========================================================================
   Listing — articles
   ========================================================================== */
.ins-articles { background: var(--paper-2); scroll-margin-top: 76px; }
.ins-articles__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
}
.ins-articles__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.ins-articles__heading { display: flex; flex-direction: column; gap: 6px; }
.ins-articles__title { margin: 0; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; font-weight: 500; }
.ins-articles__range { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }

.ins-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ins-years {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.ins-years__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.ins-years__group { display: flex; gap: 2px; }
.ins-year { padding: 6px 8px; font-size: 13px; color: var(--ink); transition: all .2s; }
.ins-year:hover { color: var(--red); }
.ins-year[aria-current], .ins-year[aria-current]:hover { background: var(--ink); color: var(--white); }

.ins-toggle { display: flex; height: 42px; border: 1px solid var(--ink); }
.ins-toggle__btn {
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.ins-toggle__btn:hover { color: var(--red); }
.ins-toggle__btn[aria-current],
.ins-toggle__btn[aria-pressed="true"],
.ins-toggle__btn[aria-current]:hover,
.ins-toggle__btn[aria-pressed="true"]:hover { background: var(--ink); color: var(--white); }
.ins-toggle--view .ins-toggle__btn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }

/* One markup for both views (template-parts/post-item.php). List view: */
.ins-list, .ins-grid { display: flex; flex-direction: column; }
.ins-post {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 120px;
  gap: 10px clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  animation: nvFadeUp .45s var(--ease-out) both;
  transition: padding .35s var(--ease-out), background .35s;
}
.ins-post:hover { padding-left: 16px; background: #E4E3DC; color: var(--ink); }
.ins-post:nth-child(2) { animation-delay: .04s; }
.ins-post:nth-child(3) { animation-delay: .08s; }
.ins-post:nth-child(4) { animation-delay: .12s; }
.ins-post:nth-child(5) { animation-delay: .16s; }
.ins-post:nth-child(6) { animation-delay: .2s; }
.ins-post:nth-child(7) { animation-delay: .24s; }
.ins-post:nth-child(8) { animation-delay: .28s; }
.ins-post:nth-child(9) { animation-delay: .32s; }
.ins-post:nth-child(10) { animation-delay: .36s; }
.ins-post:nth-child(n+11) { animation-delay: .4s; }

.ins-post__cover, .ins-post__cardmeta, .ins-post__excerpt--short, .ins-post__more { display: none; }
.ins-post__date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ins-post__num { color: var(--red); }
.ins-post__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ins-post__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.ins-post:hover .ins-post__cat { color: var(--red); }
.ins-post__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  font-weight: 500;
  text-wrap: balance;
}
.ins-post__excerpt { font-size: 16px; line-height: 1.55; color: #4A4945; max-width: 62ch; }
.ins-post__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-top: 6px;
}
.ins-post__mins { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.ins-post__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  transition: all .35s;
}
.ins-post:hover .ins-post__arrow { border-color: var(--red); background: var(--red); color: var(--white); transform: rotate(-45deg); }

/* Grid view (from 640px; below that the list view is always used) */
@media (min-width: 640px) {
  .ins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(14px, 1.6vw, 22px);
    padding-top: clamp(20px, 2.4vw, 32px);
  }
  .ins-grid .ins-post {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    transition: transform .35s var(--ease-out), box-shadow .35s;
  }
  .ins-grid .ins-post:hover { padding: 0; background: var(--paper); transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.35); }
  .ins-grid .ins-post__date,
  .ins-grid .ins-post__cat,
  .ins-grid .ins-post__excerpt,
  .ins-grid .ins-post__meta { display: none; }
  .ins-grid .ins-post__cover {
    position: relative;
    display: block;
    height: 120px;
    background: var(--charcoal);
    overflow: hidden;
  }
  .ins-post__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .ins-post__bignum {
    position: absolute;
    right: 10px;
    bottom: -14px;
    font-size: 84px;
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #2F2F2D;
  }
  .ins-post__tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 8px;
    background: var(--red);
    color: var(--white);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .ins-grid .ins-post__main { flex: 1; padding: 18px; gap: 10px; }
  .ins-grid .ins-post__cardmeta { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
  .ins-grid .ins-post__title { font-size: 20px; letter-spacing: -0.03em; line-height: 1.12; text-wrap: wrap; }
  .ins-grid .ins-post__excerpt--short { display: block; font-size: 14px; line-height: 1.5; color: #4A4945; max-width: none; }
  .ins-grid .ins-post__more { display: block; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 500; }
}

/* Empty state */
.ins-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 56px 0; }
.ins-empty__label { font-size: 24px; letter-spacing: -0.03em; font-weight: 500; }
.ins-empty__reset { font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.ins-empty__reset:hover { color: var(--red); border-color: var(--red); }

/* Pagination */
.ins-pager {
  margin-top: clamp(28px, 3vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ins-pager__step { padding: 12px 16px; border: 1px solid var(--ink); font-size: 14px; color: var(--ink); }
a.ins-pager__step:hover { background: var(--ink); color: var(--white); }
.ins-pager__step.is-disabled { opacity: 0.3; }
.ins-pager__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ins-page {
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  transition: all .2s;
}
a.ins-page:hover { border-color: var(--red); color: var(--ink); }
.ins-page[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ins-page--gap { border-color: transparent; }

/* ==========================================================================
   Listing — explore links, FAQ, CTA
   ========================================================================== */
.ins-explore { background: var(--paper); }
.ins-explore__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3.5vw, 56px);
}
.ins-explore__col { display: flex; flex-direction: column; }
.ins-explore__label { margin-bottom: 10px; }
.ins-explore__link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(16px, 1.3vw, 19px);
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.3;
}
.ins-explore__link span:last-child { flex: none; }

.ins-faq { background: var(--paper-2); }
.ins-faq__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.ins-faq__about { display: flex; flex-direction: column; gap: 20px; }
.ins-faq__title { margin: 0; font-size: clamp(30px, 3.8vw, 58px); line-height: 1; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.ins-faq__text { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 52ch; }
.ins-faq__ask { align-self: flex-start; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.ins-faq__ask:hover { color: var(--red); border-color: var(--red); }
.ins-faq__list { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule-strong); }
.ins-faq__label { margin-bottom: 12px; }
.ins-faq__item { border-top: 1px solid var(--rule-strong); }
.ins-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
}
.ins-faq__q:hover { color: var(--red); }
.ins-faq__plus { flex: none; font-family: var(--mono); font-size: 16px; color: var(--red); }
.ins-faq__a { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: #4A4945; max-width: 60ch; }

.ins-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); }
.ins-cta__marquee {
  position: absolute;
  left: 0;
  bottom: -0.28em;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(110px, 13vw, 210px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #1F1F1D;
  animation: nvMarquee 50s linear infinite;
}
.ins-cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 144px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px 64px;
  align-items: end;
}
.ins-cta__title { margin: 0; font-size: clamp(40px, 5.6vw, 92px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 500; max-width: 12ch; text-wrap: balance; }
.ins-cta__accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); }
.ins-cta__side { display: flex; flex-direction: column; gap: 22px; }
.ins-cta__text { font-size: 18px; line-height: 1.55; color: var(--on-dark); max-width: 40ch; }
.ins-cta__btn {
  align-self: flex-start;
  display: flex;
  gap: 14px;
  padding: 20px 30px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: background .2s;
}
.ins-cta__btn:hover { background: var(--red); color: var(--white); }

@media (max-width: 959.98px) {
  .ins-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ins-feature__card { grid-template-columns: minmax(0, 1fr); }
  .ins-feature__cover { min-height: 300px; }
  .ins-post { grid-template-columns: 110px minmax(0, 1fr); }
  .ins-post__meta { display: none; }
}
@media (max-width: 639.98px) {
  .ins-feature__cover { min-height: 220px; }
  .ins-post { grid-template-columns: minmax(0, 1fr); }
  .ins-toggle--view { display: none; }
}

/* ==========================================================================
   Article — reading progress
   ========================================================================== */
.art-progress {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  height: 3px;
  background: transparent;
}
.art-progress__bar {
  height: 3px;
  width: calc(var(--progress, 0) * 100%);
  background: var(--red);
  transition: width .12s linear;
}
.art-progress__left {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  top: 8px;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity .3s;
}
.art-progress__left.is-visible { opacity: 1; }

/* ==========================================================================
   Article — hero + cover
   ========================================================================== */
.art-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) var(--gutter) clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 32px);
}
.art-hero .breadcrumb .art-hero__cat { color: var(--red); }
.art-hero .breadcrumb .art-hero__cat:hover { color: var(--ink); }
.art-hero__title { margin: 0; font-weight: 500; font-size: clamp(38px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.art-hero__excerpt { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; letter-spacing: -0.01em; color: var(--text); max-width: 52ch; }
.art-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.art-byline { display: flex; align-items: center; gap: 14px; }
.art-byline__photo {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 20%;
  background-color: var(--rule);
}
.art-byline__text { display: flex; flex-direction: column; gap: 3px; }
.art-byline__name { font-size: 16px; font-weight: 500; }
.art-byline__role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.art-hero__facts { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.art-share { display: flex; gap: 6px; }
.art-share__btn {
  appearance: none;
  margin: 0;
  border-radius: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: normal;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
}
.art-share__btn:hover { border-color: var(--red); color: var(--red); }

.art-cover { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.art-cover__box { position: relative; height: 380px; margin: 0; background: var(--charcoal); overflow: hidden; isolation: isolate; }
.art-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-cover__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.art-cover__num {
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  font-size: clamp(180px, 24vw, 400px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  animation: nvFloat 8s ease-in-out infinite;
}
.art-cover__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #262624; }
.art-cover__scan { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--red); animation: nvScan 6s ease-in-out infinite; }
.art-cover__tag,
.art-cover__brand {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.art-cover__tag { top: clamp(20px, 3vw, 32px); padding: 7px 10px; background: var(--red); color: var(--white); }
.art-cover__brand { bottom: clamp(20px, 3vw, 32px); color: var(--muted-dark); }

/* ==========================================================================
   Article — layout, contents
   ========================================================================== */
.art-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(56px, 7vw, 112px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.art-layout--page { max-width: 1100px; grid-template-columns: minmax(0, 1fr); padding-top: 0; }

.art-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; }
.art-toc__label { margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.art-toc__links { display: flex; flex-direction: column; gap: 2px; }
.art-toc__link {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  transition: color .3s;
}
.art-toc__link:hover { color: var(--red); }
.art-toc__num { padding-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.art-toc__link.is-active { color: var(--ink); }
.art-toc__link.is-active .art-toc__num { color: var(--red); }
.art-toc__cta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}
.art-toc__cta:hover { background: var(--red); color: var(--white); }

.art-main { display: flex; flex-direction: column; gap: 24px; max-width: 70ch; min-width: 0; }
.art-mtoc { display: none; flex-direction: column; padding: 16px 18px; border: 1px solid var(--rule); background: var(--white); }
.art-mtoc__label { margin-bottom: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.art-mtoc__links { display: flex; flex-direction: column; }
.art-mtoc__link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 15px;
  line-height: 1.35;
}
.art-mtoc__num { padding-top: 3px; font-family: var(--mono); font-size: 10px; color: var(--red); }

/* ==========================================================================
   Article — body (core block output)
   ========================================================================== */
.art-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; counter-reset: art-h2; }
.art-body > * { margin-top: 0; margin-bottom: 0; }

.art-body p { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.72; color: var(--text-body); }
.art-body a:not([class]) { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-body a:not([class]):hover { color: var(--red); }
.art-body strong { font-weight: 600; }
.art-body em { font-style: italic; }

.art-body h2 {
  margin: 24px 0 0;
  scroll-margin-top: 110px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 500;
}
.art-body h2::before {
  counter-increment: art-h2;
  content: counter(art-h2, decimal-leading-zero);
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--red);
}
.art-body h2 .art-h2__text { min-width: 0; }
.art-body h3 { margin: 8px 0 0; scroll-margin-top: 110px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.art-body h4, .art-body h5, .art-body h6 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }

/* Lists: dash bullets / mono numbers, ruled rows */
.art-body ul, .art-body ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.art-body ul > li, .art-body ol:not(.is-style-steps) > li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
}
.art-body ul > li::before { content: "—"; position: absolute; left: 0; top: 12px; color: var(--red); }
.art-body ol:not(.is-style-steps) { counter-reset: art-ol; }
.art-body ol:not(.is-style-steps) > li { counter-increment: art-ol; }
.art-body ol:not(.is-style-steps) > li::before {
  content: counter(art-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 27.2px;
  color: var(--red);
}
.art-body li ul, .art-body li ol { margin-top: 12px; }
.art-body li li:last-child { padding-bottom: 0; }

/* "Steps" list style (register_block_style core/list "steps"): <ol class="is-style-steps"><li><strong>Title</strong> Description</li> */
.art-body ol.is-style-steps {
  margin: 8px 0;
  background: var(--ink);
  color: var(--white);
  counter-reset: art-step;
}
.art-body ol.is-style-steps > li {
  position: relative;
  counter-increment: art-step;
  padding: 18px clamp(16px, 2vw, 24px) 18px calc(clamp(16px, 2vw, 24px) + 62px);
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-dark-2);
  transition: background .5s;
}
.art-body ol.is-style-steps > li::before {
  content: counter(art-step, decimal-leading-zero);
  position: absolute;
  left: clamp(16px, 2vw, 24px);
  top: 21px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: normal;
  color: var(--muted-dark);
  transition: color .5s;
}
.art-body ol.is-style-steps > li > strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.015em;
  color: var(--white);
}
.art-body ol.is-style-steps > li.is-active { background: var(--red-deep); }
.art-body ol.is-style-steps > li.is-active::before { color: var(--red); }

/* "Key takeaway" style (core/group or core/paragraph "callout") */
.art-body .is-style-callout {
  margin: 8px 0;
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
}
.art-body .is-style-callout::before { content: "KEY TAKEAWAY"; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.08em; line-height: normal; color: var(--red); }
.art-body .is-style-callout > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 8px; }
.art-body .is-style-callout p,
.art-body p.is-style-callout { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.art-body p.is-style-callout::before { display: block; margin-bottom: 0; }

/* Quote + pull quote */
.art-body blockquote,
.art-body .wp-block-pullquote {
  margin: 8px 0;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  color: var(--ink);
  text-align: left;
}
.art-body .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.art-body blockquote p { font: inherit; color: inherit; line-height: inherit; }
.art-body blockquote p + p { margin-top: 12px; }
.art-body blockquote cite,
.art-body .wp-block-pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Images, video, embeds */
.art-body figure { margin: 8px 0; }
.art-body img { display: block; max-width: 100%; height: auto; }
.art-body .wp-block-image img { width: auto; }
.art-body .wp-block-image.aligncenter img, .art-body .aligncenter { margin-left: auto; margin-right: auto; }
.art-body figcaption,
.art-body .wp-element-caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.art-body iframe, .art-body video { display: block; max-width: 100%; }

/* Tables */
.art-body .wp-block-table { overflow-x: auto; }
.art-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.art-body th, .art-body td { padding: 12px 14px 12px 0; border: 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.art-body thead th, .art-body thead td { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.art-body tfoot td { font-weight: 500; border-top: 1px solid var(--ink); }

/* Code */
.art-body code, .art-body kbd { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.35em; background: var(--paper-2); }
.art-body pre {
  margin: 8px 0;
  padding: 20px clamp(16px, 2vw, 24px);
  overflow-x: auto;
  background: var(--ink);
  color: #E4E3DE;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
  border: 0;
  border-radius: 0;
}
.art-body pre code { padding: 0; background: none; font-size: inherit; color: inherit; }

/* Separator, buttons, misc */
.art-body hr, .art-body .wp-block-separator { width: 100%; height: 0; margin: 8px 0; border: 0; border-top: 1px solid var(--rule); background: none; opacity: 1; }
.art-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.art-body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.art-body .wp-block-button__link:hover { background: var(--red); color: var(--white); }
.art-body .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.art-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.art-body .wp-block-column { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.art-body .has-text-align-center { text-align: center; }
.art-body .has-text-align-right { text-align: right; }

/* Inline CTA before the second section (inc/content.php) */
.art-inline-cta {
  margin: 8px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--ink);
  color: var(--white);
  border-left: 3px solid var(--red);
  transition: transform .3s;
}
.art-inline-cta:hover { transform: translateX(6px); color: var(--white); }
.art-inline-cta__text { display: flex; flex-direction: column; gap: 6px; }
.art-inline-cta__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--red); }
.art-inline-cta__title { font-size: 19px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.25; }
.art-inline-cta__link { justify-self: start; padding-bottom: 3px; border-bottom: 1px solid var(--white); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ==========================================================================
   Article — filed under, previous / next, author
   ========================================================================== */
.art-filed { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.art-filed__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.art-filed__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.art-chip { padding: 7px 10px; border: 1px solid var(--rule-strong); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.art-chip:hover { border-color: var(--red); color: var(--red); }
.art-chip--cat { border: 0; background: var(--ink); color: var(--white); }
.art-chip--cat:hover { background: var(--red); color: var(--white); }

.art-pn { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.art-pn__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--white);
  text-align: left;
  transition: border-color .25s;
}
.art-pn__link:hover { border-color: var(--red); color: var(--ink); }
.art-pn__link--next { text-align: right; }
.art-pn__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.art-pn__title { font-size: 17px; letter-spacing: -0.015em; font-weight: 500; line-height: 1.25; }

.art-author {
  margin-top: 24px;
  padding: clamp(20px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: var(--white);
}
.art-author__photo { display: block; width: 88px; height: 88px; object-fit: cover; object-position: 50% 20%; background-color: var(--text); }
.art-author__text { display: flex; flex-direction: column; gap: 6px; }
.art-author__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted-2); }
.art-author__name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.art-author__role { font-size: 14px; color: var(--on-dark-2); }
.art-author__btn {
  justify-self: end;
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.art-author__btn:hover { background: var(--red); color: var(--white); }

/* ==========================================================================
   Related articles ("Keep reading" / "Latest articles")
   ========================================================================== */
.art-related { background: var(--paper-2); }
.art-related__inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 112px) var(--gutter); }
.art-related__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.art-related__title { margin: 0; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; font-weight: 500; }
.art-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.art-rel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  transition: padding .35s;
}
.art-rel:hover { padding-left: 12px; color: var(--ink); }
.art-rel__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.art-rel__title { margin: 0; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.035em; line-height: 1.08; font-weight: 500; }
.art-rel__excerpt { font-size: 15px; line-height: 1.55; color: #4A4945; }
.art-rel__more { font-size: 14px; font-weight: 500; }

/* ==========================================================================
   404 — article not found
   ========================================================================== */
.art-missing {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) var(--gutter) clamp(56px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  animation: nvRise .9s var(--ease-out) both;
}
.art-missing .eyebrow { margin-top: 4px; }
.art-missing__title { margin: 4px 0 0; font-size: clamp(40px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 500; }
.art-missing__text { max-width: 52ch; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; letter-spacing: -0.01em; color: var(--text); }
.art-missing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }

@media (max-width: 959.98px) {
  .art-cover__box { height: 280px; }
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-toc { display: none; }
  .art-mtoc { display: flex; }
}
@media (max-width: 639.98px) {
  .art-cover__box { height: 200px; }
  .art-mtoc { display: none; }
  .art-inline-cta { grid-template-columns: minmax(0, 1fr); }
  .art-pn { grid-template-columns: minmax(0, 1fr); }
  .art-author { grid-template-columns: minmax(0, 1fr); }
  .art-author__btn { justify-self: start; }
}
