/* Digital Interaction - /blog index redesign (dark, A3 direction).
   Layered on styles.css + conversion.css. Only blog-specific components live here. */

/* ── button centering (mirrors case-study.css, since blog doesn't load it) ── */
.btn-center {
  position: relative;
  justify-content: center;
}

.btn-center .arr {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* blog buttons use a horizontal → arrow, so the hover slide is horizontal too
   (.btn-center keeps its translateY(-50%) rule from styles.css) */
.btn:not(.btn-center):hover .arr { transform: translateX(4px); }

/* ── hero ── */
.blog-hero {
  padding-top: 28px;
  padding-bottom: 8px;
}

.blog-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.blog-h1 {
  margin-top: 22px;
  font-size: clamp(48px, 14vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.blog-h1 .it {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

.blog-hero-copy {
  margin-top: 22px;
  opacity: 0.82;
}

/* ── search ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(245, 242, 235, 0.05);
  border: 1px solid var(--hair-d2);
  border-radius: 14px;
}

.search-bar .ic {
  color: var(--bone);
  opacity: 0.6;
  font-size: 18px;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 15px;
}

.search-bar input::placeholder {
  color: rgba(245, 242, 235, 0.45);
}

/* ── filter chips ── */
.blog-filters {
  padding: 0 22px 12px;
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip-f {
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--hair-d2);
  border-radius: 999px;
  padding: 9px 14px;
  transition: background .2s, color .2s, border-color .2s;
}

.chip-f.on {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ── section rule (mono label + hairline) ── */
.blog-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.blog-rule .line {
  flex: 1;
  height: 1px;
  background: var(--bone);
  opacity: 0.7;
}

/* ── byline ── */
.byline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.byline-row .auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byline-row .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--smoke) center/cover no-repeat;
  border: 1px solid var(--hair-d2);
  display: block;
}

.byline-row .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bone);
}

.byline-row .role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0.55;
}

.byline-row .date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0.6;
}

/* ── cover image ── */
.cover {
  margin-top: 16px;
  aspect-ratio: 16 / 10;
  background: var(--smoke);
  border-radius: 16px;
  overflow: hidden;
}

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

/* ── category tags ── */
.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair-d2);
  color: var(--bone);
}

.cat.tag-bone {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ── titles + excerpts ── */
.title-f,
.title-a {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.title-f {
  font-size: 26px;
  line-height: 1.1;
  margin: 14px 0 0;
}

.title-a {
  font-size: 21px;
  line-height: 1.12;
  margin: 12px 0 0;
}

.ex-f,
.ex {
  color: var(--bone);
  opacity: 0.72;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
}

/* ── read row ── */
.read-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

.read-row .ar {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair-d2);
  border-radius: 50%;
}

/* ── featured + cards layout ── */
.featured-art {
  display: block;
  margin-top: 26px;
  text-decoration: none;
}

.blog-grid-h {
  margin-top: 22px;
  font-size: clamp(34px, 9vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.blog-grid-h .it {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

.blog-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 26px;
}

.article-card .card-link {
  display: block;
  text-decoration: none;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}

.article-card.is-hidden {
  display: none;
}

/* ── hover: reverse to bone background + ink text ── */
.article-card:hover .card-link,
.article-card:focus-within .card-link {
  background: var(--bone);
  border-color: var(--bone);
}

.article-card:hover .card-link .name,
.article-card:hover .card-link .role,
.article-card:hover .card-link .date,
.article-card:hover .card-link .title-a,
.article-card:hover .card-link .ex,
.article-card:hover .card-link .read-row,
.article-card:focus-within .card-link .name,
.article-card:focus-within .card-link .role,
.article-card:focus-within .card-link .date,
.article-card:focus-within .card-link .title-a,
.article-card:focus-within .card-link .ex,
.article-card:focus-within .card-link .read-row {
  color: var(--ink);
}

/* keep accents legible on the inverted (white) card */
.article-card:hover .cat.tag-bone,
.article-card:focus-within .cat.tag-bone {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.article-card:hover .cat,
.article-card:focus-within .cat {
  border-color: rgba(20, 20, 20, 0.25);
  color: var(--ink);
}

.article-card:hover .read-row .ar,
.article-card:focus-within .read-row .ar {
  border-color: rgba(20, 20, 20, 0.4);
}

/* ── load more ── */
.blog-loadmore {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-count {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── newsletter ── */
.newsletter {
  border: 1px solid var(--hair-d2);
  border-radius: 22px;
  padding: 28px 22px;
}

.newsletter .nl-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.newsletter .lead {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  margin-top: 16px;
  color: var(--bone);
}

.newsletter .lead .it {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

.newsletter .sub {
  opacity: 0.75;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 14px;
  color: var(--bone);
}

.newsletter .nl-cta {
  margin-top: 20px;
}

.newsletter .legal {
  margin-top: 16px;
}

/* ── topic hubs ── */
.topics-h,
.industries-h {
  margin-top: 18px;
  font-size: clamp(26px, 7vw, 30px);
  letter-spacing: -0.02em;
}

.topics-h .it,
.industries-h .it {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

.topic-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.topic-tile {
  border: 1px solid var(--hair-d2);
  border-radius: 16px;
  padding: 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-tile .n {
  font-family: var(--f-mono);
  font-size: 12px;
  opacity: 0.5;
}

.topic-tile .t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: var(--bone);
}

/* ── industries ── */
.industries {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* closer-mark (blog index + article CTA - blog.css doesn't load case-study.css) */
.closer-mark {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--bone);
}

.closer-mark .it {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   ARTICLE / blog-details redesign
   ════════════════════════════════════════════════════════════ */

/* ── article hero ── */
.art-hero {
  padding-top: 22px;
  padding-bottom: 8px;
}

.art-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.6;
}

.art-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.art-breadcrumb a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.art-breadcrumb .sep {
  opacity: 0.4;
}

.art-breadcrumb .cur {
  opacity: 1;
}

.art-h1 {
  margin: 18px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(32px, 9vw, 50px);
  color: var(--bone);
}

.art-byline {
  margin-top: 26px;
}

.art-byline .auth-link {
  text-decoration: none;
}

.art-updated {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0.45;
  margin-top: 8px;
  text-transform: uppercase;
}

/* article cover sits flush, larger radius */
.art-cover {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--smoke);
}

.art-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.art-video {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--smoke);
  margin-top: 26px;
}

.art-video::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}

.art-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── table of contents ── */
.art-toc {
  border: 1px solid var(--hair-d2);
  border-radius: 18px;
  padding: 22px;
  margin-top: 8px;
}

.art-toc-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--bone);
  margin-bottom: 14px;
}

.art-toc ul {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

.art-toc li {
  margin: 0;
}

.art-toc a {
  display: block;
  padding: 7px 0;
  color: var(--bone);
  opacity: 0.7;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: opacity .2s;
}

.art-toc a:hover {
  opacity: 1;
}

.art-toc .summary-h3 a {
  padding-left: 18px;
  opacity: 0.6;
}

.art-toc .summary-h4 a {
  padding-left: 36px;
  opacity: 0.55;
  font-size: 14px;
}

/* ── article body prose (bone on ink) ── */
.article-body {
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
}

.article-body>*:first-child {
  margin-top: 0;
}

.article-body p {
  color: rgba(245, 242, 235, 0.78);
  margin: 0 0 20px;
}

.article-body h2 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-size: clamp(26px, 6vw, 34px);
  color: var(--bone);
  margin: 46px 0 18px;
}

.article-body h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(21px, 5vw, 25px);
  color: var(--bone);
  margin: 36px 0 14px;
}

.article-body h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--bone);
  margin: 28px 0 12px;
}

.article-body ul,
.article-body ol {
  color: rgba(245, 242, 235, 0.78);
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-body li {
  margin: 0 0 10px;
  line-height: 1.6;
}

.article-body a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 242, 235, 0.4);
}

.article-body a:hover {
  text-decoration-color: var(--bone);
}

.article-body strong {
  color: var(--bone);
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--hair-d2);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--bone);
}

.article-body figure,
.article-body .pt-image {
  margin: 28px 0;
}

.article-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--hair-d2);
  margin: 36px 0;
}

/* ── pull quote box ── */
.art-quote {
  margin-top: 40px;
  border: 1px solid var(--hair-d2);
  border-radius: 18px;
  padding: 28px 24px;
}

.art-quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.32;
  color: var(--bone);
  margin: 0;
}

.art-quote .who {
  display: block;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── tags ── */
.art-tags {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.art-tags .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-right: 4px;
}

/* ── faq (native details) ── */
.art-faq {
  margin-top: 48px;
}

.art-faq .art-faq-h {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 6vw, 30px);
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0 0 20px;
}

.faq-item {
  border-top: 1px solid var(--hair-d2);
}

.art-faq .faq-item:last-child {
  border-bottom: 1px solid var(--hair-d2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--bone);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .ic {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 2px;
}

.faq-item summary .ic::before,
.faq-item summary .ic::after {
  content: '';
  position: absolute;
  background: var(--bone);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}

.faq-item summary .ic::before {
  left: 3px;
  right: 3px;
  top: 10px;
  height: 2px;
}

.faq-item summary .ic::after {
  top: 3px;
  bottom: 3px;
  left: 10px;
  width: 2px;
}

.faq-item[open] summary .ic::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-item .faq-a {
  color: rgba(245, 242, 235, 0.75);
  font-size: 16px;
  line-height: 1.6;
  padding: 0 0 22px;
}

.faq-item .faq-a p {
  margin: 0 0 12px;
}

/* ── author bio card ── */
.art-author {
  margin-top: 48px;
  border: 1px solid var(--hair-d2);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.art-author .av {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hair-d2);
}

.art-author .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.art-author .name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--bone);
  margin: 6px 0 2px;
}

.art-author .role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.art-author .bio {
  color: rgba(245, 242, 235, 0.72);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 12px;
}

.art-author .bio a {
  color: var(--bone);
}

/* ── recent posts list ── */
.art-recent {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.art-recent-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.art-recent-item .th {
  flex: 0 0 auto;
  width: 80px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--smoke);
}

.art-recent-item .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-recent-item .ti {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--bone);
}

.art-recent-item .dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.5;
  color: var(--bone);
  margin-top: 6px;
}

.art-recent-item:hover .ti {
  opacity: 0.8;
}

/* ── next post card ── */
.art-next {
  margin-top: 12px;
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.art-next .cov {
  aspect-ratio: 16 / 9;
  background: var(--smoke);
}

.art-next .cov img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-next .ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.2) 60%, transparent 100%);
}

.art-next .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.75;
}

.art-next .t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.1;
  color: var(--bone);
  margin-top: 8px;
}

/* ════════════ DESKTOP (≥ 768px) ════════════ */
@media (min-width: 768px) {
  .blog-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .title-a {
    font-size: 24px;
  }

  /* featured laid out side-by-side on wide screens */
  .featured-art {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .featured-art .byline-row {
    grid-column: 1 / -1;
  }

  .title-f {
    font-size: 40px;
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* article body reads a touch larger on wide screens */
  .article-body {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .blog-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}