/* ============================================================
   BLOG SUBPAGE STYLESHEET
   Ink Journal — dark hero + paper catalog, matching site system
   Inherits design tokens from ../home.css
   ============================================================ */

/* Page layout */
body.is-subpage {
    background: var(--black);
    color: var(--black);
    min-height: 100vh;
    padding-top: 64px;
    overflow-x: hidden;
}

@media (min-width: 961px) {
    body.is-subpage {
        padding-top: 84px;
    }
}

@media (max-width: 640px) {
    body.is-subpage {
        padding-top: 54px;
    }
}

/* Subpage header — clean dark glass */
.is-subpage .o-header {
    mix-blend-mode: normal;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--white);
}

/* Active Nav State */
.o-header_nav a.is-active {
    color: var(--white);
    opacity: 1;
    position: relative;
}

.o-header_nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* Subpage main container — paper like Projects / Journey */
.is-subpage main {
    position: relative;
    z-index: 2;
    background-color: #fcfcfc;
    background-image: url('../assets/textures/paper.png');
    background-repeat: repeat;
    background-size: 1000px auto;
    min-height: calc(100vh - 84px);
}

/* Subpage scroll reveal */
.is-subpage [data-scroll-reveal] {
    visibility: visible;
}

/* ============================================================
   BLOG HERO (dark, monochrome — like site heroes)
   ============================================================ */
.bl-hero {
    position: relative;
    padding: 9rem 3rem 8rem;
    background:
        radial-gradient(ellipse 60% 50% at 12% 0%, rgba(255, 255, 255, 0.09), transparent 60%),
        radial-gradient(ellipse 50% 45% at 90% 25%, rgba(255, 255, 255, 0.05), transparent 60%),
        #0b0b0e;
    overflow: hidden;
}

.bl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 80% at 50% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 20%, #000 30%, transparent 75%);
    pointer-events: none;
}

.bl-hero_inner {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
}

.bl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.bl-eyebrow_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    animation: blPulse 2.2s ease-in-out infinite;
}

@keyframes blPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.bl-title {
    font-family: var(--font-display);
    font-size: clamp(6rem, 13vw, 15rem);
    line-height: 0.9;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--white);
    margin: 1.2rem 0 0;
}

.bl-title em {
    font-style: normal;
    background: linear-gradient(100deg, #ffffff 10%, #a3a3a3 55%, #ffffff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bl-subtitle {
    font-size: clamp(1.5rem, 1.8vw, 1.9rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    max-width: 640px;
    margin: 1.6rem 0 0;
}

.bl-hero_stats {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bl-hstat {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
}

.bl-hstat_val {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--white);
}

.bl-hstat_lbl {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   FEATURED ARTICLE (paper card like project cards)
   ============================================================ */
.bl-featured_wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 3rem 0;
    position: relative;
    z-index: 3;
}

.bl-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
    text-align: left;
    width: 100%;
    color: var(--black);
    padding: 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

/* Prevent grid blowout from long titles / content */
.bl-featured > * {
    min-width: 0;
}

.bl-featured:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.bl-featured_media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    margin: 0;
    background: #111111;
}

.bl-featured_media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

.bl-featured:hover .bl-featured_media img {
    transform: scale(1.05);
}

.bl-featured_body {
    padding: 4rem 3.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
}

.bl-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555555;
}

.bl-tag::before {
    content: '';
    width: 2.2rem;
    height: 1px;
    background: #000000;
}

.bl-featured_title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 4vw, 4.6rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    color: var(--black);
}

.bl-featured_excerpt {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #555555;
}

.bl-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
}

.bl-meta_sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.bl-read {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
}

.bl-read svg {
    width: 1.4rem;
    height: 1.4rem;
    transition: transform 0.3s;
}

.bl-featured:hover .bl-read svg,
.bl-card:hover .bl-read svg {
    transform: translateX(6px);
}

/* ============================================================
   FILTERS + GRID (same pill system as Projects)
   ============================================================ */
.bl-catalog {
    max-width: 1300px;
    margin: 0 auto;
    padding: 7rem 3rem 9rem;
}

.bl-filters {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.bl-filter_btn {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.bl-filter_btn:hover {
    color: #000000;
    border-color: #000000;
}

.bl-filter_btn.is-active {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.bl-filter_count {
    font-size: 1.05rem;
    opacity: 0.7;
}

.bl-filter_btn.is-active .bl-filter_count {
    color: #ffffff;
    font-weight: 700;
    opacity: 0.85;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Blogs Loader Container (Shared with Projects) */
.bl-loader_wrap,
.sp-loader_wrap {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 5rem 1rem;
    width: 100%;
}

/* From Uiverse.io by cosnametv */ 
.loader {
  --color: #a5a5b0;
  --size: 70px;
  width: var(--size);
  height: var(--size);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.loader span {
  width: 100%;
  height: 100%;
  background-color: var(--color);
  animation: keyframes-blink 0.6s alternate infinite linear;
}

.loader span:nth-child(1) {
  animation-delay: 0ms;
}

.loader span:nth-child(2) {
  animation-delay: 200ms;
}

.loader span:nth-child(3) {
  animation-delay: 300ms;
}

.loader span:nth-child(4) {
  animation-delay: 400ms;
}

.loader span:nth-child(5) {
  animation-delay: 500ms;
}

.loader span:nth-child(6) {
  animation-delay: 600ms;
}

@keyframes keyframes-blink {
  0% {
    opacity: 0.3;
    transform: scale(0.5) rotate(5deg);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.bl-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.8rem;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    color: var(--black);
    padding: 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.bl-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.bl-card.is-hidden {
    display: none !important;
}

.bl-card:focus-visible,
.bl-featured:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}

.bl-card_media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin: 0;
    background: #111111;
}

.bl-card_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-smooth);
}

.bl-card:hover .bl-card_media img {
    transform: scale(1.07);
}

.bl-card_badge {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 3rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    z-index: 2;
}

.bl-card_body {
    padding: 2.6rem 2.6rem 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex-grow: 1;
}

.bl-card_title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    color: var(--black);
}

.bl-card_excerpt {
    font-size: 1.35rem;
    line-height: 1.65;
    color: #555555;
    flex-grow: 1;
}

/* ============================================================
   ARTICLE DETAIL PAGE — simple reading flow, no hero, no cards
   Handles short notes to long essays: p / h2 / quote / list /
   img / video / embed blocks, any count, any order.
   ============================================================ */
.bd-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px) 240px;
    justify-content: center;
    gap: 0 5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem 9rem;
    align-items: start;
}

.bd-layout--no-toc {
    grid-template-columns: minmax(0, 720px) 240px;
}

.bd-main {
    min-width: 0;
}

/* Reading progress */
.bd-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 120;
}

.bd-progress span {
    display: block;
    height: 100%;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
}

.bd-rail_label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 1.4rem;
}

/* Left rail: table of contents */
.bd-toc {
    position: sticky;
    top: 120px;
}

#bd-toc_nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

#bd-toc_nav a {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.45);
    padding: 0.5rem 0 0.5rem 1.6rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}

#bd-toc_nav a:hover {
    color: #000000;
}

#bd-toc_nav a.is-active {
    color: #000000;
    border-left-color: #000000;
}

/* Right rail: author + share */
.bd-side {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bd-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bd-author img {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.bd-author_name {
    font-size: 1.5rem;
    font-weight: 700;
}

.bd-author_role {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 0.3rem;
}

.bd-author_bio {
    font-size: 1.35rem;
    line-height: 1.65;
    color: #555555;
    margin-top: 1rem;
}

.bd-author_links {
    display: flex;
    gap: 1.4rem;
    margin-top: 1.2rem;
}

.bd-author_links a {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bd-author_links a:hover {
    opacity: 0.55;
}

.bd-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.bd-share .bd-copy {
    width: 100%;
    justify-content: center;
}

.bd-filed {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bd-filed:hover {
    opacity: 0.55;
}

.bd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 3rem;
    transition: color 0.3s, gap 0.3s;
}

.bd-back svg {
    width: 1.5rem;
    height: 1.5rem;
}

.bd-back:hover {
    color: var(--black);
    gap: 1.2rem;
}

.bd-title {
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 7vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--black);
    margin: 1.4rem 0 0;
    text-wrap: balance;
}

#bd-hero .bl-meta {
    margin-top: 1.4rem;
}

.bd-missing_text {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #555555;
    margin-top: 1.2rem;
}

.bd-hero_img {
    border-radius: 1.2rem;
    overflow: hidden;
    margin: 3rem 0 3.5rem;
}

.bd-hero_img img {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    display: block;
}

/* Article blocks */
.bd-article p {
    font-size: 1.65rem;
    line-height: 1.9;
    color: #3d3d3d;
    margin-bottom: 2rem;
}

.bd-article > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 5.2rem;
    line-height: 0.85;
    float: left;
    padding: 0.4rem 1rem 0 0;
    color: var(--black);
}

.bd-article p strong {
    color: var(--black);
}

.bd-article h2 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    color: var(--black);
    margin: 4rem 0 1.5rem;
}

.bd-article h2[id] {
    scroll-margin-top: 110px;
}

.bd-end {
    font-size: 1.4rem;
    color: rgba(0, 0, 0, 0.45);
    margin: 4rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.bd-end::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #000000;
    margin-bottom: 1.2rem;
}

.bd-article ul {
    margin: 0 0 2.2rem 2rem;
    padding: 0;
    list-style: disc;
}

.bd-article ul li {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #3d3d3d;
    margin-bottom: 0.8rem;
}

.bd-article ul li strong {
    color: var(--black);
}

.bd-quote {
    margin: 3.2rem 0;
    padding: 0.5rem 0 0.5rem 2.2rem;
    border-left: 3px solid #000000;
}

.bd-quote p {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.bd-quote cite {
    display: block;
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 1rem;
}

.bd-figure {
    margin: 3.2rem 0;
}

.bd-figure img {
    width: 100%;
    border-radius: 1.2rem;
    display: block;
}

.bd-figure figcaption {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.bd-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1.2rem;
    display: block;
    background: #000000;
}

.bd-embed {
    aspect-ratio: 16/9;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #000000;
}

.bd-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.bd-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.1rem 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: rgba(0, 0, 0, 0.03);
    color: var(--black);
    transition: all 0.3s var(--ease-out);
}

.bd-copy svg {
    width: 1.4rem;
    height: 1.4rem;
}

.bd-copy:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* ============================================================
   BLOG BANNER (paper callout like Projects CTA)
   ============================================================ */
.bl-banner {
    max-width: 1300px;
    margin: 0 auto 9rem;
    padding: 0 6rem 10rem ;
}

.bl-banner_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 5rem 4rem;
    border-radius: 2rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.bl-banner_title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 4.5vw, 5rem);
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--black);
}

.bl-banner_desc {
    font-size: 1.45rem;
    color: #555555;
    margin-top: 0.8rem;
}

.bl-banner_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.3rem 3rem;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.bl-banner_btn:hover {
    transform: translateY(-2px);
    background: #222222;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   FOOTER (shared sticky reveal)
   ============================================================ */
.is-subpage .o-footer_placeholder {
    width: 100%;
    height: var(--footer-height, 500px);
    pointer-events: none;
    /* Overlap main by 1px so subpixel rounding never leaves a hairline gap */
    margin-top: -1px;
    padding-top: 1px;
}

.is-subpage .m-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    user-select: none;
    pointer-events: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3.5rem, #000 calc(100% - 3.5rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 3.5rem, #000 calc(100% - 3.5rem), transparent 100%);
}

.is-subpage .m-marquee_viewport {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: footerMarquee 26s linear infinite;
    will-change: transform;
}

.is-subpage .m-marquee:hover .m-marquee_viewport {
    animation-play-state: paused;
}

.is-subpage .m-marquee_item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.8rem;
    padding-right: 3.5rem;
}

@keyframes footerMarquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .bl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bl-featured {
        grid-template-columns: 1fr;
    }
    .bl-featured_media {
        min-height: 260px;
    }
}

@media (max-width: 1100px) {
    .bd-layout,
    .bd-layout--no-toc {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
        gap: 0;
        padding-bottom: 7rem;
    }
    .bd-toc {
        display: none;
    }
    .bd-side {
        position: static;
        margin-top: 4rem;
        padding-top: 3rem;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }
    .bd-share .bd-copy {
        width: auto;
    }
}

@media (max-width: 640px) {
    .bl-hero {
        padding: 6rem 1.8rem 8rem;
    }
    .bl-featured_wrap,
    .bl-catalog {
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }
    .bl-featured_body {
        padding: 2.6rem 2.2rem;
    }
    .bl-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    .bl-banner {
        padding: 0 1.8rem;
    }
    .bl-banner_inner {
        padding: 3.5rem 2.4rem;
    }
    .bd-layout {
        padding: 4rem 1.8rem 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .is-subpage .m-marquee_viewport {
        animation: none !important;
    }
    .is-subpage .m-marquee {
        overflow-x: auto;
    }
    .bl-eyebrow_dot {
        animation: none;
    }
}
