/* Blog styles — listing + article. Pairs with variables.css.
   Self-contained: generated blog pages carry no inline CSS. */

:root { --article-w: 680px; --card-bg: rgba(3,22,38,0.72); --card-border: rgba(255,255,255,0.07); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 12px; scrollbar-gutter: stable; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--dark-blue); color: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.skip-link { position: absolute; top: -999px; left: 1rem; background: var(--aqua); color: var(--dark-blue); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 4px; z-index: 99999; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Background (listing) */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--dark-blue); overflow: hidden; }
.page-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(7,217,217,0.07) 0%, transparent 55%), radial-gradient(ellipse at 15% 80%, rgba(7,217,217,0.04) 0%, transparent 40%); }
.page-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%); }
.page-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Reading progress */
#reading-progress { position: fixed; top: 68px; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--aqua) 0%, var(--seafoam) 100%); z-index: 299; transition: width 0.08s linear; box-shadow: 0 0 8px rgba(7,217,217,0.5); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(1.5rem, 4vw, 3rem); z-index: 300; background: rgba(3,22,38,0.75); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid rgba(7,217,217,0.1); }
.nav-logo { display: flex; align-items: center; line-height: 0; position: relative; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-logo .logo-dark { opacity: 1; }
.nav-logo .logo-light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n300); transition: color 0.45s var(--ease-expo); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--aqua); transition: width 0.25s var(--ease-expo); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--aqua); }
.nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all 0.2s; }
.nav-links.mobile-open { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 1.5rem; background: rgba(3,22,38,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 2.5rem clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid rgba(7,217,217,0.15); z-index: 299; transform: none; }
@media (max-width: 860px) { .nav-links:not(.mobile-open) { display: none; } .nav-hamburger { display: flex; } .nav-actions .btn:first-child { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border-radius: var(--radius-md); padding: 12px 24px; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn-primary { background: var(--aqua); color: var(--dark-blue); border: 2px solid var(--aqua); }
.btn-primary:hover { background: var(--seafoam); border-color: var(--seafoam); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(7,217,217,0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(7,217,217,0.28); }
.btn-ghost:hover { background: rgba(7,217,217,0.1); border-color: var(--aqua); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 10px; }
.btn-arrow { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.accent { color: var(--aqua); }
.aqua { color: var(--aqua); }

/* ── LISTING ─────────────────────────────────────────── */
.blog-hero { text-align: center; padding: clamp(110px, 15vw, 160px) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.cs-eyebrow { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.cs-eyebrow::before, .cs-eyebrow::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--aqua)); }
.cs-eyebrow::after { transform: scaleX(-1); }
.blog-hero-title { font-family: var(--font-hed); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3.4rem); letter-spacing: 0.04em; line-height: 1.0; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.blog-hero-sub { font-size: clamp(13px, 1.1vw, 15px); color: rgba(212,220,228,0.72); line-height: 1.75; max-width: 52ch; margin: 0 auto; }

.blog-controls { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 2.5rem; }
.blog-search { display: flex; align-items: center; gap: 10px; background: rgba(7,217,217,0.04); border: 1px solid rgba(7,217,217,0.18); border-radius: var(--radius-pill); padding: 10px 18px; min-width: 240px; }
.blog-search svg { width: 15px; height: 15px; color: var(--n400); flex-shrink: 0; }
.blog-search input { background: none; border: none; outline: none; color: var(--white); font-size: 13px; width: 100%; }
.blog-search input::placeholder { color: var(--n500); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n300); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-pill); padding: 8px 15px; transition: all 0.2s var(--ease-expo); }
.tag-pill:hover { border-color: rgba(7,217,217,0.4); color: var(--white); }
.tag-pill.active { background: var(--aqua); color: var(--dark-blue); border-color: var(--aqua); }

/* Featured */
.featured-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; max-width: 1180px; margin: 0 auto 2.5rem; border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden; background: var(--card-bg); transition: border-color 0.35s var(--ease-expo), transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo); }
.featured-card:hover { border-color: rgba(7,217,217,0.22); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.featured-media { min-height: 300px; overflow: hidden; border-right: 1px solid rgba(255,255,255,0.05); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-expo); }
.featured-card:hover .featured-media img { transform: scale(1.05); }
.featured-body { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
.featured-title { font-family: var(--font-hed); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2.1rem); letter-spacing: 0.03em; line-height: 1.05; text-transform: uppercase; color: var(--white); margin: 12px 0 14px; }
.featured-excerpt { font-size: 13px; color: var(--n300); line-height: 1.75; margin-bottom: 18px; }
.featured-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); margin-top: 6px; }
.featured-cta svg { width: 13px; height: 13px; transition: transform 0.2s; }
.featured-card:hover .featured-cta svg { transform: translateX(4px); }
@media (max-width: 760px) { .featured-card { grid-template-columns: 1fr; } .featured-media { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); min-height: 200px; } }

/* Grid */
.post-grid { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; position: relative; transition: border-color 0.35s var(--ease-expo), transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo); }
.post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, var(--aqua) 0%, rgba(7,217,217,0.3) 100%); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-expo); }
.post-card:hover { border-color: rgba(7,217,217,0.2); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.4); }
.post-card:hover::before { transform: scaleX(1); }
.post-card a { display: flex; flex-direction: column; height: 100%; }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-expo); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-cat { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); }
.post-card-title { font-family: var(--font-hed); font-weight: 400; font-size: 15px; letter-spacing: 0.02em; line-height: 1.35; color: var(--white); }
.post-card-excerpt { font-size: 12px; color: var(--n300); line-height: 1.65; flex: 1; }
.post-card-meta { font-size: 9.5px; color: var(--n500); letter-spacing: 0.05em; font-family: var(--font-mono); }

/* Thumb fallback (no cover) */
.thumb-fallback { width: 100%; height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(7,217,217,0.10) 0%, rgba(3,22,38,0.9) 70%); position: relative; }
.thumb-fallback::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 160% 100% at 50% 120%, transparent 0, transparent 26px, rgba(7,217,217,0.06) 27px, rgba(7,217,217,0.06) 28px, transparent 30px); }
.thumb-fallback span { position: relative; z-index: 1; font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(7,217,217,0.75); }

.blog-empty { text-align: center; color: var(--n400); font-size: 13px; padding: 3rem 1rem; max-width: 1180px; margin: 0 auto; }
.load-more-wrap { text-align: center; padding: 2.5rem 1rem 1rem; }

/* ── ARTICLE ─────────────────────────────────────────── */
.article-header { padding-top: clamp(100px, 15vh, 140px); padding-bottom: clamp(3rem, 6vw, 6rem); position: relative; overflow: hidden; }
.article-header::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(7,217,217,0.07) 0%, transparent 60%), radial-gradient(ellipse 40% 50% at 20% 60%, rgba(7,217,217,0.03) 0%, transparent 55%); z-index: 0; }
.article-header::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(ellipse 220% 100% at 50% 140%, transparent 0, transparent 48px, rgba(7,217,217,0.018) 50px, rgba(7,217,217,0.018) 51px, transparent 53px); z-index: 0; }
.article-header-inner { max-width: var(--article-w); margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 3rem); position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--n400); margin-bottom: 2rem; transition: color 0.2s var(--ease-expo), gap 0.3s var(--ease-expo); }
.back-link:hover { color: var(--aqua); gap: 13px; }
.back-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; flex-shrink: 0; }
.article-cat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua); border: 1px solid rgba(7,217,217,0.3); border-radius: var(--radius-pill); padding: 5px 13px; margin-bottom: 1.5rem; background: rgba(7,217,217,0.04); }
.article-cat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 5px rgba(7,217,217,0.8); }
.article-title { font-family: var(--font-hed); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 3.2rem); letter-spacing: 0.03em; line-height: 1.0; text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem; }
.article-lede { font-size: clamp(14px, 1.25vw, 17px); line-height: 1.8; color: var(--n300); max-width: 580px; margin-bottom: 2rem; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n400); padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.07); }
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(150,170,190,0.25); flex-shrink: 0; }

.article-hero { max-width: 980px; margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(3.5rem, 6vw, 6rem); }
.article-hero-img { width: 100%; aspect-ratio: 21/9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); position: relative; box-shadow: 0 32px 80px rgba(0,0,0,0.5); }
.article-hero-img::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, var(--aqua) 0%, rgba(7,217,217,0.3) 50%, transparent 100%); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-layout { display: grid; grid-template-columns: 220px min(var(--article-w), 100%) 1fr; gap: 0 4rem; max-width: 1020px; margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: clamp(5rem, 8vw, 9rem); }
.article-main { grid-column: 2; min-width: 0; }
.article-toc { grid-column: 1; grid-row: 1; position: sticky; top: calc(68px + 2.5rem); display: none; }
@media (min-width: 1080px) { .article-toc { display: block; } }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; max-width: var(--article-w); } .article-main { grid-column: 1; } }
.article-layout.no-toc { grid-template-columns: min(var(--article-w), 100%); max-width: var(--article-w); }
.article-layout.no-toc .article-main { grid-column: 1; }
.toc-label { font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--n500); margin-bottom: 14px; }
.toc-nav { display: flex; flex-direction: column; gap: 4px; }
.toc-link { font-size: 11px; line-height: 1.45; color: var(--n400); padding: 6px 10px 6px 12px; border-left: 2px solid rgba(255,255,255,0.06); transition: color 0.2s var(--ease-expo), border-color 0.2s var(--ease-expo), padding-left 0.2s var(--ease-expo); display: block; }
.toc-link:hover { color: var(--n200); border-color: rgba(7,217,217,0.3); padding-left: 16px; }
.toc-link.active { color: var(--aqua); border-color: var(--aqua); }
.toc-link.toc-sub { padding-left: 24px; font-size: 10.5px; }
.toc-link.toc-sub:hover { padding-left: 28px; }

.article-body { font-size: clamp(14px, 1.1vw, 16px); line-height: 1.88; color: rgba(212,220,228,0.88); }
.article-body > p:first-of-type { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.82; color: rgba(255,255,255,0.72); }
.article-body p { margin-bottom: 1.6em; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 { font-family: var(--font-hed); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: 0.06em; line-height: 1.0; text-transform: uppercase; color: var(--white); margin-top: 3em; margin-bottom: 1em; padding-top: 1em; border-top: 1px solid rgba(255,255,255,0.06); scroll-margin-top: 110px; }
.article-body h3 { font-family: var(--font-hed); font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.35rem); letter-spacing: 0.02em; line-height: 1.4; color: rgba(255,255,255,0.9); margin-top: 2em; margin-bottom: 0.7em; scroll-margin-top: 110px; }
.article-body > h2:first-child, .article-body > h3:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body blockquote { margin: 2.5em 0; padding: 2rem 2rem 2rem 2.5rem; background: rgba(7,217,217,0.04); border: 1px solid rgba(7,217,217,0.16); border-left: 3px solid var(--aqua); border-radius: 0 12px 12px 0; position: relative; font-style: normal; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.72; color: rgba(255,255,255,0.85); }
.article-body blockquote::before { content: '\201C'; font-family: Georgia, serif; font-size: 5rem; color: var(--aqua); opacity: 0.25; position: absolute; top: -0.75rem; left: 0.75rem; line-height: 1; pointer-events: none; }
.article-body blockquote p { margin-bottom: 0; color: inherit; font-size: inherit; }
.article-body ul, .article-body ol { margin: 1.4em 0 1.4em 1.2rem; }
.article-body li { margin-bottom: 0.65em; padding-left: 0.3rem; }
.article-body ul li::marker { color: var(--aqua); }
.article-body ol li::marker { color: var(--aqua); font-family: var(--font-mono); font-size: 0.85em; }
.article-body code { font-family: var(--font-mono, monospace); font-size: 0.875em; background: rgba(7,217,217,0.08); border: 1px solid rgba(7,217,217,0.15); border-radius: 4px; padding: 0.15em 0.45em; color: var(--aqua); }
.article-body a { color: var(--aqua); text-decoration: underline; text-decoration-color: rgba(7,217,217,0.3); text-underline-offset: 3px; transition: text-decoration-color 0.15s, color 0.15s; }
.article-body a:hover { color: var(--seafoam); text-decoration-color: var(--seafoam); }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { color: var(--n300); }
/* Buttons inside prose keep their own styling (not the prose link colour) */
.article-body a.btn { text-decoration: none; }
.article-body a.btn-primary { color: var(--dark-blue); }
.article-body a.btn-ghost { color: var(--white); }
.article-body img { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 16px 40px rgba(0,0,0,0.35); margin: 2.5em 0; }
.article-body figure { margin: 2.5em 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { margin-top: 12px; font-size: 10px; letter-spacing: 0.07em; color: var(--n500); text-align: center; line-height: 1.5; }

.article-cta { margin: 3em 0; padding: clamp(1.5rem, 3vw, 2.25rem); background: linear-gradient(135deg, rgba(7,217,217,0.07) 0%, rgba(7,217,217,0.02) 100%); border: 1px solid rgba(7,217,217,0.18); border-radius: 16px; position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--aqua) 0%, rgba(7,217,217,0.2) 100%); }
.article-cta-eyebrow { font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua); margin-bottom: 10px; }
.article-cta h4 { font-family: var(--font-hed); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; line-height: 1.1; }
.article-cta p { font-size: 13px; color: var(--n300); line-height: 1.7; margin-bottom: 1.25rem; }

.article-end { max-width: var(--article-w); margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(4rem, 7vw, 8rem); }
.author-block { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.07); }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: rgba(7,217,217,0.08); border: 1px solid rgba(7,217,217,0.2); display: flex; align-items: center; justify-content: center; font-family: var(--font-hed); font-weight: 800; font-size: 14px; color: var(--aqua); letter-spacing: 0.02em; }
.author-name { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.author-bio { font-size: 11px; color: var(--n400); line-height: 1.6; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.share-label { font-family: var(--font-body); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--n500); margin-right: 4px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--n300); transition: all 0.2s var(--ease-expo); cursor: pointer; flex-shrink: 0; }
.share-btn:hover { border-color: var(--aqua); color: var(--aqua); background: rgba(7,217,217,0.08); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }
.share-btn.copy-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-confirm { font-size: 10px; color: var(--aqua); letter-spacing: 0.08em; opacity: 0; transition: opacity 0.3s; font-family: var(--font-mono); }
.copy-confirm.visible { opacity: 1; }

.article-related { max-width: var(--article-w); margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(5rem, 8vw, 9rem); }
.section-label { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--n500); display: flex; align-items: center; gap: 16px; margin-bottom: 1.5rem; }
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.07) 0%, transparent 100%); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; transition: border-color 0.35s var(--ease-expo), transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo); position: relative; }
.related-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, var(--aqua) 0%, rgba(7,217,217,0.3) 100%); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-expo); }
.related-card:hover { border-color: rgba(7,217,217,0.2); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.4); }
.related-card:hover::before { transform: scaleX(1); }
.related-card a { display: flex; flex-direction: column; color: inherit; }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-expo); }
.related-card:hover .related-thumb img { transform: scale(1.06); }
.related-body { padding: 16px; }
.related-cat { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); display: block; margin-bottom: 6px; }
.related-title { font-family: var(--font-hed); font-weight: 400; font-size: 13px; letter-spacing: 0.02em; line-height: 1.45; color: var(--white); margin-bottom: 8px; }
.related-meta { font-size: 9px; color: var(--n500); letter-spacing: 0.05em; }

/* Footer */
.footer { background: var(--n900); position: relative; overflow: hidden; z-index: 1; }
.footer::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 180% 100% at 50% 115%, transparent 0, transparent 48px, rgba(7,217,217,0.055) 50px, rgba(7,217,217,0.055) 51px, transparent 53px); pointer-events: none; }
.footer-body { max-width: 1320px; margin-inline: auto; padding: 64px clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 2; }
@media (max-width: 960px) { .footer-body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-body { grid-template-columns: 1fr; } }
.footer-desc { font-size: 12px; color: var(--n300); line-height: 1.8; max-width: 270px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; background: rgba(30,255,142,0.06); border: 1px solid rgba(30,255,142,0.18); border-radius: var(--radius-pill); padding: 6px 14px; margin-top: 24px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-success); }
.footer-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 6px rgba(30,255,142,0.8); animation: blink 2.4s ease-in-out infinite; flex-shrink: 0; }
.footer-col-title { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(7,217,217,0.12); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { font-size: 13px; color: var(--n100); transition: color 0.15s, padding-left 0.2s; display: inline-block; }
.footer-links a:hover { color: var(--aqua); padding-left: 6px; }
.footer-base { max-width: 1320px; margin-inline: auto; padding: 24px clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--n400); position: relative; z-index: 2; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--n300); transition: color 0.15s; display: flex; align-items: center; }
.footer-social a:hover { color: var(--aqua); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 540px) { .footer-base { flex-direction: column; gap: 16px; text-align: center; } }

@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: revealUp 0.75s var(--ease-expo) forwards; }
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.13s; }
.animate-in:nth-child(3) { animation-delay: 0.22s; }
.animate-in:nth-child(4) { animation-delay: 0.31s; }
.animate-in:nth-child(5) { animation-delay: 0.40s; }
