@font-face {
    font-family: 'Alliance No.2';
    src: url('font/Alliance No.2 Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #FF494C;
    --bg: #000;
    --surface: #0B0606;
    --line: rgba(255,255,255,.08);
    --text: #fff;
    --soft: rgba(255,255,255,.7);
    --muted: rgba(255,255,255,.38);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Alliance No.2', -apple-system, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Ambient glow ── */
.glow {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 85% 0%, rgba(255,73,76,.12), transparent 70%),
        radial-gradient(ellipse 40% 30% at 0% 100%, rgba(255,73,76,.05), transparent 70%);
}

/* ── Page grid ── */
.page-container {
    position: relative; z-index: 10;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    padding: 3.5rem 5rem;
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Header (mirrors index.css) ── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 1s cubic-bezier(.16,1,.3,1) both;
}
.logo-link { display: inline-block; text-decoration: none; }
.logo { height: 42px; width: auto; display: block; }

.btn-early-access {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: var(--text);
    text-decoration: none;
    padding: .5rem .5rem .5rem 1.5rem;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(180deg, rgba(24,6,7,.72) 0%, rgba(8,2,3,.88) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 6px 28px rgba(0,0,0,.6),
        0 0 44px rgba(255,73,76,.07);
    transition: border-color .4s ease, box-shadow .5s ease, transform .3s ease;
}
.btn-label { font-size: .82rem; white-space: nowrap; }
.btn-badge {
    display: inline-flex;
    align-items: center;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--accent);
    padding: .34rem .68rem;
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(255,73,76,.5),
        0 2px 14px rgba(255,73,76,.45),
        0 0 26px rgba(255,73,76,.28);
}
.btn-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #fff;
    margin-right: .4rem;
}
.btn-chevron {
    color: var(--muted);
    margin-right: .7rem;
    transition: color .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.btn-early-access:hover {
    border-color: rgba(255,73,76,.32);
    transform: translateY(-2px);
}
.btn-early-access:hover .btn-chevron { color: var(--text); transform: translateX(3px); }

/* ── Intro ── */
.intro { padding: 7rem 0 3rem; max-width: 640px; }
.eyebrow {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.title {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.accent { color: var(--accent); animation: blink 1.15s infinite alternate; }
.lede { margin-top: 1.4rem; color: var(--soft); font-size: 1.05rem; line-height: 1.6; }

/* ── Filters ── */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.5rem;
}
.filter {
    font: inherit;
    font-size: .78rem;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    cursor: pointer;
    transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.filter.is-active {
    color: var(--text);
    border-color: rgba(255,73,76,.45);
    background: rgba(255,73,76,.1);
}

/* ── Cover art (generated, no images needed) ── */
.cover {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 16 / 10;
}
.cover::before {
    /* tactical grid */
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.cover::after {
    /* glow blob, positioned per post via custom props */
    content: '';
    position: absolute;
    width: 70%; aspect-ratio: 1;
    left: var(--x, 50%); top: var(--y, 50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,73,76,var(--a, .35)), transparent 65%);
    filter: blur(10px);
    transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.cover-mark {
    position: absolute;
    left: 1.1rem; bottom: .9rem;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 1;
}
.cover-reticle {
    position: absolute;
    left: var(--x, 50%); top: var(--y, 50%);
    width: 54px; height: 54px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,73,76,.6);
    border-radius: 50%;
    z-index: 1;
}
.cover-reticle::before, .cover-reticle::after {
    content: '';
    position: absolute;
    background: rgba(255,73,76,.6);
}
.cover-reticle::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.cover-reticle::after  { top: 50%; left: -12px; right: -12px; height: 1px; }

/* ── Cards ── */
.card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.card:hover .cover::after { transform: translate(-50%, -50%) scale(1.15); }
.card:hover .card-title { color: var(--text); }
.card:hover .read-more { color: var(--accent); }
.card:hover .read-more svg { transform: translateX(3px); }

.meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tag { color: var(--accent); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.card-title {
    font-weight: normal;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: rgba(255,255,255,.92);
    transition: color .3s ease;
}
.card-excerpt { color: var(--soft); line-height: 1.6; font-size: .92rem; }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--muted);
    transition: color .3s ease;
}
.read-more svg { transition: transform .35s cubic-bezier(.16,1,.3,1); }

/* featured */
.card-featured {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.card-featured .card-body { display: flex; flex-direction: column; gap: 1.1rem; }
.card-featured .card-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }

/* grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    padding-bottom: 5rem;
}
.grid .card-body { display: flex; flex-direction: column; gap: .8rem; padding-top: 1.3rem; }
.grid .card-title { font-size: 1.25rem; }
.empty { color: var(--muted); padding: 3rem 0; }

/* ── Article ── */
.article { max-width: 720px; margin: 0 auto; padding: 5rem 0 6rem; }
.back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color .3s ease;
}
.back:hover { color: var(--text); }
.article-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: normal;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 1.2rem 0 1.6rem;
}
.author { display: flex; align-items: center; gap: .8rem; margin-bottom: 3rem; }
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: .74rem;
    background: rgba(255,73,76,.12);
    border: 1px solid rgba(255,73,76,.35);
    color: var(--accent);
}
.author-name { font-size: .9rem; }
.author-role { font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.article .cover { margin-bottom: 3rem; aspect-ratio: 21 / 9; }

.prose { color: var(--soft); font-size: 1.05rem; line-height: 1.8; }
.prose p + p { margin-top: 1.4rem; }
.prose h2 {
    color: var(--text);
    font-weight: normal;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    margin: 3rem 0 1rem;
}
.prose blockquote {
    margin: 2.4rem 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--accent);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.5;
}
.prose ul { margin: 1.4rem 0; padding-left: 1.2rem; }
.prose li { margin: .5rem 0; }
.prose li::marker { color: var(--accent); }

/* ── Footer ── */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.footer-nav { display: flex; gap: 3.2rem; }
.footer-link, .copyright {
    font-size: .74rem;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
}
.footer-link { transition: color .3s ease; }
.footer-link:hover { color: var(--text); }

/* ── Motion ── */
.reveal { animation: lineIn 1.2s cubic-bezier(.16,1,.3,1) both; }
.reveal:nth-child(2) { animation-delay: .1s; }
.stagger { animation: lineIn 1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 80ms + .15s); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes lineIn {
    from { opacity: 0; filter: blur(14px); transform: translateY(20px); }
}
@keyframes blink {
    0%  { opacity: .25; }
    100%{ opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .page-container { padding: 3rem 3.5rem; }
    .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-container { padding: 2.5rem 1.8rem; }
    .intro { padding: 4.5rem 0 2.5rem; }
    .card-featured { grid-template-columns: 1fr; gap: 1.6rem; }
    .grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
    .footer-nav { gap: 2rem; }
}
@media (max-width: 480px) {
    .page-container { padding: 2rem 1rem; }
    .logo { height: 34px; }
    .btn-early-access { gap: .55rem; padding: .4rem .4rem .4rem 1.1rem; }
    .btn-label { font-size: .75rem; }
    .btn-badge { font-size: .57rem; padding: .3rem .55rem; }
    .btn-chevron { margin-right: .5rem; }
    .footer-nav { gap: 1.2rem; flex-wrap: wrap; }
    .footer-link { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .header, .reveal, .stagger { animation: none; }
    .accent { animation: none; }
}
