/* ==========================================================================
   Phixr — Blog (blog.html + blog-*.html articles)
   Loaded after styles.css + site.css; reuses the site header, hero band and footer.
   ========================================================================== */

/* ---------- Hero art (same animated coral line as Start a Conversation) ---------- */
.bl-hero-band { min-height: 520px; }
.cc-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cc-art .sf-orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.cc-art .sf-disc circle { fill: rgba(109, 91, 255, .32); }
.cc-art .sf-disc.d2 circle { fill: rgba(123, 115, 255, .34); }
.cc-art .o-coral { fill: none; stroke: #FF6B6B; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cc-art .o-dot circle { fill: #FF6B6B; }
.cc-art .o-dot .halo { fill: rgba(255, 107, 107, .3); }
.cc-art .sf-disc { transform-box: fill-box; transform-origin: center; }
.motion .cc-art .sf-disc { opacity: 0; transform: scale(.88) translateY(40px); transition: opacity 1.8s ease, transform 2.4s cubic-bezier(.22,1,.36,1); }
.motion .cc-art.on .sf-disc { opacity: 1; transform: none; }
.motion .cc-art.on .sf-disc.d2 { transition-delay: .3s; }
.motion .cc-art .o-dot { opacity: 0; transition: opacity .5s ease; }
.motion .cc-art .o-dot.on { opacity: 1; }
.motion .cc-art .sf-orbits:not(.is-on) .o-coral { visibility: hidden; }
@media (max-width: 1000px) { .bl-hero-band { min-height: 0; } .cc-art { opacity: .6; } }

.bl-hero h1 span { color: #A7ABFF; }
.bl-hero p { font-size: 20px !important; line-height: 1.55 !important; }

/* ---------- Shared type ---------- */
.bl-kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; color: #540DEE; }
.bl-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FF6B6B; }

/* ---------- Banner image (placeholder until the real image arrives) ---------- */
.bl-img { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 78% 28%, #7B73FF 0, transparent 42%), linear-gradient(135deg, #2E008C 0%, #540DEE 60%, #6139FF 100%); }
.bl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-img--b { background: radial-gradient(circle at 20% 80%, #6139FF 0, transparent 45%), linear-gradient(160deg, #3A01AC 0%, #540DEE 100%); }
.bl-img--c { background: radial-gradient(circle at 70% 70%, #A7ABFF 0, transparent 40%), linear-gradient(120deg, #540DEE 0%, #7B73FF 100%); }
.bl-img--d { background: radial-gradient(circle at 30% 25%, #6139FF 0, transparent 40%), linear-gradient(140deg, #17112D 0%, #3A01AC 100%); }
/* placeholder decoration: dot field + coral arc */
.bl-img:not(.has-img)::before { content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: radial-gradient(#fff 1.2px, transparent 1.3px); background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.bl-img:not(.has-img)::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%; border: 2px solid #FF6B6B; opacity: .9; }
.bl-img-tag { position: absolute; left: 20px; bottom: 18px; z-index: 1; padding: 7px 13px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(23, 17, 45, .35); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- Post meta ---------- */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; font-weight: 600; color: #6E6A80; }
.bl-meta .cat { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #540DEE; }
.bl-meta i { width: 4px; height: 4px; border-radius: 50%; background: #FF6B6B; }

/* ---------- Listing ---------- */
.bl-main { background: #FAF9FC; padding: 100px 0 120px; }
.bl-featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 26px; margin: 0 0 90px; background: #fff; border: 1px solid #EEEBF6; border-radius: 30px; box-shadow: 0 30px 80px rgba(46, 0, 140, .10); text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.bl-featured:hover { transform: translateY(-4px); box-shadow: 0 40px 90px rgba(46, 0, 140, .16); }
.bl-featured .bl-img { aspect-ratio: 16 / 10; }
.bl-featured-copy { padding: 10px 26px 10px 0; }
.bl-featured h2 { margin: 18px 0 18px; font-size: clamp(32px, 3.2vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; color: #17112D; }
.bl-featured p { margin: 0 0 28px; font-size: 18px; line-height: 1.65; color: #5c5670; }
.bl-flag { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: #FF6B6B; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bl-read { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: #540DEE; }
.bl-read span { transition: transform .3s; }
a:hover .bl-read span { transform: translateX(4px); }

.bl-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.bl-head h2 { margin: 18px 0 0; font-size: clamp(46px, 5.4vw, 78px); font-weight: 800; line-height: .96; letter-spacing: -.055em; color: #17112D; }
.bl-head h2 span { color: #7B73FF; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid #DCD7E6; background: #fff; color: #17112D; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .2s; }
.bl-filters button:hover { border-color: #540DEE; }
.bl-filters button[aria-pressed="true"] { background: #540DEE; border-color: #540DEE; color: #fff; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #EEEBF6; border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(46, 0, 140, .12); }
.bl-card .bl-img { border-radius: 0; aspect-ratio: 16 / 10; }
.bl-card-copy { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.bl-card h3 { margin: 14px 0 12px; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: #17112D; }
.bl-card p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: #6E6A80; }
.bl-card .bl-read { margin-top: auto; font-size: 14px; }
.bl-card.is-hidden { display: none; }

/* ---------- Article ---------- */
.ar-hero h1 { max-width: 1000px; }
.ar-hero .bl-meta { color: #d9d2ff; margin-top: 4px; }
.ar-hero .bl-meta .cat { color: #A7ABFF; }
.ar-hero .ar-standfirst { max-width: 780px; margin: 0 0 30px !important; font-size: 21px !important; line-height: 1.55 !important; color: #eee8ff; }
.ar-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 13px; font-weight: 700; color: #d9d2ff; text-decoration: none; }
.ar-back:hover { color: #fff; }


.ar-main { background: #fff; padding: 100px 0 110px; }
.ar-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 80px; justify-content: center; }
.ar-aside { position: sticky; top: 110px; align-self: start; padding-top: 6px; border-top: 1px solid #E4E1F0; }
.ar-aside dt { margin: 22px 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8a8599; }
.ar-aside dd { margin: 0; font-size: 15px; font-weight: 600; color: #17112D; }
.ar-share { display: flex; gap: 10px; margin-top: 10px; }
.ar-share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #DCD7E6; color: #540DEE; font-size: 13px; font-weight: 800; text-decoration: none; transition: .2s; }
.ar-share a:hover { border-color: #540DEE; background: #F5F1FF; }

.ar-body { font-size: 19px; line-height: 1.75; color: #3d3650; }
.ar-body p { margin: 0 0 24px; }
.ar-body > p:first-child { font-size: 22px; line-height: 1.6; color: #17112D; font-weight: 500; }
.ar-body h2 { position: relative; margin: 64px 0 22px; padding-top: 30px; font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; color: #17112D; }
.ar-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; border-radius: 3px; background: #FF6B6B; }
.ar-body strong { color: #17112D; }
.ar-body .ar-close { margin-top: 48px; padding: 34px 0 0; border-top: 1px solid #E4E1F0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; color: #540DEE; }
.ar-body .ar-close strong { color: inherit; }

/* closing CTA */
.ar-cta { margin-top: 70px; padding: 54px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 90% 10%, #6139FF 0, transparent 45%), linear-gradient(135deg, #3A01AC, #540DEE); }
.ar-cta::after { content: ""; position: absolute; width: 360px; height: 360px; right: -150px; top: -170px; border: 2px solid #FF6B6B; border-radius: 50%; pointer-events: none; }
.ar-cta h3 { position: relative; margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.ar-cta p { position: relative; margin: 0 0 28px; max-width: 520px; font-size: 17px; line-height: 1.6; color: #e9e1ff; }
.ar-cta .actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; }

.ar-more { background: #FAF9FC; padding: 100px 0 120px; }

@media (max-width: 1000px) {
  .bl-featured { grid-template-columns: 1fr; gap: 26px; padding: 18px; }
  .bl-featured-copy { padding: 0 10px 14px; }
  .bl-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .bl-head { flex-direction: column; align-items: flex-start; }
  .ar-layout { grid-template-columns: 1fr; gap: 30px; }
  .ar-aside { position: static; display: flex; flex-wrap: wrap; gap: 0 34px; }
  .ar-aside dl { display: contents; }
}
@media (max-width: 640px) {
  .bl-main, .ar-more { padding: 70px 0 90px; }
  .bl-featured { margin-bottom: 64px; border-radius: 24px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-hero p { font-size: 17px !important; }
  .ar-hero .ar-standfirst { font-size: 18px !important; }
  .ar-main { padding: 50px 0 80px; }
  .ar-body { font-size: 17px; }
  .ar-body > p:first-child { font-size: 19px; }
  .ar-body h2 { margin-top: 48px; }
  .ar-cta { padding: 36px 26px; }
}

/* buttons (site.css pages use styles.css .btn) */
.ar-cta .btn, .bl-head .btn { font-weight: 700; font-size: 15px; padding: 15px 24px; }
.ar-cta .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.6); background: transparent; }
.ar-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.bl-head .btn-ghost-dark { color: #540DEE; border: 1px solid #540DEE; background: transparent; }
.bl-head .btn-ghost-dark:hover { background: rgba(84,13,238,.06); }
/* card meta stays on one line */
.bl-card .bl-meta { flex-wrap: nowrap; white-space: nowrap; gap: 9px; font-size: 12px; }
.bl-card .bl-meta .cat { font-size: 10.5px; letter-spacing: .13em; }
@media (max-width: 640px) {
  .bl-card-copy { padding: 22px 22px 26px; }
  .bl-card .bl-meta { gap: 7px; font-size: 11.5px; }
  .bl-card .bl-meta .cat { font-size: 10px; letter-spacing: .1em; }
}
@media (max-width: 420px) { .bl-card .bl-meta i:nth-of-type(2), .bl-card .bl-meta > span:last-child { display: none; } }
@media (max-width: 420px) {
  .bl-featured .bl-meta { flex-wrap: nowrap; white-space: nowrap; gap: 8px; font-size: 12px; }
  .bl-featured .bl-meta i:nth-of-type(2), .bl-featured .bl-meta > span:last-child { display: none; }
  .bl-featured h2 { font-size: 30px; }
  .bl-featured p { font-size: 16px; }
}
/* article sub-headings + mid-article pull line */
.ar-body h3 { margin: 40px 0 14px; font-size: clamp(21px, 1.8vw, 25px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; color: #540DEE; }
.ar-body .ar-pull { margin: 34px 0; padding-left: 22px; border-left: 3px solid #FF6B6B; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; color: #17112D; }

/* ---------- Article hero: banner image sits behind the hero (like the other pages) ---------- */
.ar-hero { min-height: 640px; padding-bottom: 110px; }
.ar-hero-img { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: min(60vw, 1100px);
  background-repeat: no-repeat; background-position: center; background-size: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.ar-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(84,13,238,.35) 0, rgba(84,13,238,0) 30%, rgba(84,13,238,0) 70%, rgba(84,13,238,.45) 100%); }
.ar-hero-img .bl-img-tag { left: auto; right: 24px; bottom: 22px; }
.ar-hero .px-dots { z-index: 1; }
.ar-hero .px-hero-copy { max-width: 1240px; }
.ar-hero .px-hero-copy > * { max-width: min(760px, 52vw); }
.ar-hero h1 { font-size: clamp(42px, 4.6vw, 70px) !important; }
.ar-hero .px-header { position: relative; z-index: 5; }
.motion .ar-hero-img { animation: arImg 2.4s cubic-bezier(.22,1,.36,1) .15s both; }
@keyframes arImg { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .motion .ar-hero-img { animation: none; } }
@media (max-width: 1000px) {
  .ar-hero { min-height: 0; padding-bottom: 80px; }
  .ar-hero-img { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .ar-hero-img::after { background: linear-gradient(180deg, rgba(84,13,238,.72) 0, rgba(84,13,238,.86) 55%, #540DEE 100%); }
  .ar-hero .px-hero-copy > * { max-width: none; }
  .ar-hero-img .bl-img-tag { right: 16px; bottom: 16px; }
}

/* article side info on tablets/phones: tidy 2-column grid */
@media (max-width: 1000px) {
  .ar-aside { display: block; padding-top: 0; }
  .ar-aside dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
  .ar-aside dl > div { padding: 16px 0; border-bottom: 1px solid #EEEBF6; }
  .ar-aside dt { margin: 0 0 6px; }
}
/* article hero: let the banner image read clearly (no purple discs over it) */
.ar-hero .sf-disc { display: none; }
/* card / featured images: slight brand tint at the bottom so the tag stays legible */
.bl-img.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(84,13,238,0) 55%, rgba(46,0,140,.55) 100%); }
.bl-img.has-img .bl-img-tag { z-index: 2; }
.bl-card .bl-img img, .bl-featured .bl-img img { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.bl-card:hover .bl-img img, .bl-featured:hover .bl-img img { transform: scale(1.04); }

/* real banner images: lighter tint on cards */
.bl-img.has-img::after { background: linear-gradient(180deg, rgba(84,13,238,0) 65%, rgba(46,0,140,.28) 100%); }
