/* ==========================================================
   B Stories - EXPERIENCE LAYER (loaded after style.css)
   Dark holographic theme, centered floating menu, glass cards,
   cursor effects, animated headlines, pinned horizontal scroll.
   Brand colours still come from :root in style.css.
   ========================================================== */

:root {
  color-scheme: dark;
  --text: #E8ECFF;
  --muted: #A5B0D4;
  --muted-dark: #A5B0D4;
  --line: rgba(150, 165, 255, .18);
  --mist: rgba(255, 255, 255, .04);
  --edge: rgba(160, 170, 255, .24);
  --glass: linear-gradient(150deg, rgba(27, 36, 96, .74), rgba(10, 14, 42, .78));
  --shadow: 0 24px 60px rgba(0, 0, 0, .38);
  --font-h: "Sora", "Poppins", "Segoe UI", Arial, sans-serif;
  --grad-text: linear-gradient(90deg, #6BA2FF 0%, #A48DFF 50%, #18B6EA 100%);
  --cyan: #18B6EA;
}

html { background: #050818; overflow-x: clip; }
body { background: transparent; color: var(--text); overflow-x: clip; }
h1, h2, h3, .step-no, .stats strong, .hs-no { font-family: var(--font-h); }
::selection { background: rgba(123, 92, 255, .55); color: #fff; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- Backgrounds ---------- */
.bg-fallback {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(123, 92, 255, .34), transparent 65%),
    radial-gradient(55% 50% at 6% 92%, rgba(24, 182, 234, .16), transparent 65%),
    radial-gradient(50% 40% at 50% 50%, rgba(75, 140, 255, .08), transparent 70%),
    #050818;
}
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease .2s; display: block; }
.has-3d #bg3d { opacity: 1; }
/* when WebGL is unavailable we draw a CSS perspective grid instead */
.no-3d #bg3d { display: none; }
.no-3d .bg-fallback::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image: linear-gradient(rgba(123, 92, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 92, 255, .35) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
  animation: gridmove 6s linear infinite;
}
@keyframes gridmove { to { background-position: 0 64px, 0 0; } }

.scanlines {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(2, 4, 16, .55) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}

/* ---------- Header: logo left, MENU CENTERED, button right ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; transition: top .3s; }
.site-header.scrolled { top: 8px; }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: 1320px; margin: 0 auto; padding: 0 28px; height: auto;
}
.header-inner > * { pointer-events: auto; }
.brand { justify-self: start; display: inline-flex; filter: drop-shadow(0 0 18px rgba(123, 92, 255, .55)); transition: transform .3s; }
.brand:hover { transform: scale(1.04); }
.brand img { height: 38px; }
.site-nav { justify-self: center; }
.nav-list {
  display: flex; align-items: center; justify-content: center; gap: 2px; padding: 6px;
  background: rgba(10, 16, 46, .58); border: 1px solid var(--edge); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .4), 0 0 46px rgba(123, 92, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav-list > li { position: relative; }
.nav-link { position: relative; display: block; padding: 10px 20px; border-radius: 999px; color: #D9DFFA; font-weight: 500; font-size: .9rem; letter-spacing: .01em; transition: color .25s, background .25s, box-shadow .25s; }
.nav-link:hover { color: #fff; background: rgba(123, 92, 255, .2); }
.nav-link[aria-current="page"] { color: #fff; background: linear-gradient(120deg, rgba(63, 123, 239, .55), rgba(123, 92, 255, .6)); box-shadow: 0 0 22px rgba(123, 92, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .2); }
.has-menu > .nav-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .25s; }
.has-menu:hover > .nav-link::after { transform: translateY(0) rotate(225deg); }
.header-cta { justify-self: end; }
.header-cta .btn { box-shadow: 0 0 30px rgba(123, 92, 255, .55), 0 8px 24px rgba(63, 123, 239, .35); }
.nav-cta-m { display: none; }
.menu {
  top: calc(100% + 10px); background: rgba(9, 14, 42, .92); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(123, 92, 255, .2);
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu a { border-radius: 8px; padding: 6px 10px; margin: 0 -10px; transition: background .2s, color .2s, transform .2s; }
.menu a:hover { background: rgba(123, 92, 255, .2); transform: translateX(4px); }

/* ---------- Preloader + page wipe ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, #15103f, #050818 70%);
  transition: opacity .8s ease, visibility .8s, transform 1s cubic-bezier(.7, 0, .2, 1);
  animation: preFail .6s 5.2s forwards;
}
#preloader.out { opacity: 0; visibility: hidden; transform: scale(1.12); }
.pre-done #preloader { display: none; }
.pre-box { text-align: center; }
.pre-box img { margin: 0 auto; width: 150px; height: auto; filter: drop-shadow(0 0 28px rgba(123, 92, 255, .8)); animation: preGlow 1.8s ease-in-out infinite; }
.pre-bar { width: 220px; height: 2px; margin: 26px auto 16px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 45%; background: linear-gradient(90deg, #4B8CFF, #C77DFF, #18B6EA); animation: preBar 1.1s ease-in-out infinite; }
.pre-txt { margin: 0; font: 500 .7rem/1 var(--font-h); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); animation: blinkTxt 1.4s steps(2) infinite; }
@keyframes preBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes preGlow { 50% { transform: scale(1.06); filter: drop-shadow(0 0 40px rgba(24, 182, 234, .9)); } }
@keyframes blinkTxt { 50% { opacity: .45; } }
@keyframes preFail { to { opacity: 0; visibility: hidden; } }

#wipe { position: fixed; inset: 0; z-index: 900; pointer-events: none; transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(180deg, #0a1240, #1b0f52 60%, #0a1240); }
#wipe::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: linear-gradient(90deg, transparent, #18B6EA, #C77DFF, transparent); box-shadow: 0 0 26px 6px rgba(123, 92, 255, .8); }
.pre-done #wipe { transform-origin: 50% 100%; animation: wipeOut .75s cubic-bezier(.7, 0, .2, 1) both; }
.pre-done #wipe::after { top: -2px; bottom: auto; }
.leaving #wipe { animation: wipeIn .48s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes wipeIn { from { transform: scaleY(0); transform-origin: 50% 0; } to { transform: scaleY(1); transform-origin: 50% 0; } }
@keyframes wipeOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ---------- Cursor ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label, .has-cursor .goal, .has-cursor .c3d, .has-cursor .btn { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.cur-dot, .cur-ring, .cur-aura, .cur-trail { position: fixed; left: 0; top: 0; pointer-events: none; opacity: 0; }
.cur-trail { z-index: 9990; opacity: 1; }
.cur-on .cur-dot, .cur-on .cur-ring, .cur-on .cur-aura { opacity: 1; }
.cur-aura { z-index: -1; width: 520px; height: 520px; border-radius: 50%; mix-blend-mode: screen; transition: opacity .5s; background: radial-gradient(circle, rgba(123, 92, 255, .24), rgba(24, 182, 234, .08) 45%, transparent 70%); }
.cur-dot { z-index: 9999; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 5px rgba(155, 134, 255, .95); transition: opacity .3s; }
.cur-ring {
  z-index: 9998; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 1.5px solid rgba(185, 175, 255, .75);
  display: grid; place-items: center; transition: width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1), margin .28s cubic-bezier(.2, .8, .2, 1), background .25s, border-color .25s, opacity .3s;
}
.cur-ring span { font: 600 .68rem/1 var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cur-ring.is-link { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(123, 92, 255, .16); border-color: #C77DFF; }
.cur-ring.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: linear-gradient(135deg, rgba(63, 123, 239, .9), rgba(123, 92, 255, .92)); border-color: transparent; box-shadow: 0 0 40px rgba(123, 92, 255, .6); }
.cur-ring.is-label span { opacity: 1; }
.cur-ring.is-text { opacity: 0; }
.cur-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: rgba(199, 125, 255, .35); }

/* ---------- Headline reveal ---------- */
.fxs .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.fxs .wi { display: inline-block; opacity: 0; transform: translateY(115%) rotateX(-75deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .7s ease; transition-delay: calc(var(--i, 0) * 70ms); will-change: transform; }
.fxs.fxs-in .wi { opacity: 1; transform: none; }
.fxs .wi.grad-text { background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }

/* ---------- Tilt + glare (set by js/fx.js) ---------- */
.tilt.tilt.tilt {
  position: relative; transform-style: preserve-3d;
  transform: perspective(1100px) translate3d(0, var(--ty, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out, box-shadow .35s, border-color .35s, background .35s;
}
.tilt.tilt.tilt:hover { --ty: -6px; }
a.card.tilt { overflow: visible; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 3;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(190, 180, 255, .24), rgba(75, 140, 255, .07) 40%, transparent 66%);
}
.tilt:hover::after { opacity: 1; }
.tilt .icon-tile { transform: translateZ(38px); }
.tilt h3 { transform: translateZ(24px); }

/* ---------- Hero ---------- */
.hero, .page-hero { background: none; overflow: visible; color: #fff; }
.hero::after, .hero-3d::after { display: none; }
.hero-xl { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 96px; }
.hero-xl .hero-grid { width: 100%; grid-template-columns: 1.08fr .92fr; }
.hero h1 { font-family: var(--font-h); font-weight: 800; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.04; letter-spacing: -.035em; text-shadow: 0 0 60px rgba(75, 140, 255, .25); }
.hero-lead { color: #CBD3F2; font-size: 1.08rem; max-width: 48ch; }
.hero-stage { width: min(100%, 600px); }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.hero-fallback img { width: 56%; height: auto; filter: drop-shadow(0 0 50px rgba(123, 92, 255, .8)); animation: float 5s ease-in-out infinite; }
.no-3d .hero-fallback { opacity: 1; }

.hud { position: absolute; inset: 104px 28px 26px; pointer-events: none; z-index: 1; }
.hud-c { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(160, 175, 255, .55); }
.hud-c.tl { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.hud-c.tr { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.hud-c.bl { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.hud-c.br { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.hud-t { position: absolute; bottom: 10px; font: 500 .66rem/1 var(--font-h); letter-spacing: .26em; text-transform: uppercase; color: rgba(170, 182, 235, .6); }
.hud-t.l { left: 40px; } .hud-t.r { right: 40px; }
.hero-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .08em; color: #B5C0E8; opacity: 0; transition: opacity .8s; z-index: 2; white-space: nowrap; }
.hero-hint.show { opacity: 1; }
.hero-hint.gone { opacity: 0 !important; }
.hero-hint .mouse { width: 20px; height: 32px; border: 1.5px solid #B5C0E8; border-radius: 12px; position: relative; flex: none; }
.hero-hint .mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #C77DFF; animation: wheel 1.5s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(10px); opacity: 0; } }

.page-hero { padding: 150px 0 clamp(48px, 7vw, 90px); }
.page-hero h1 { font-weight: 800; letter-spacing: -.03em; }
.page-hero .lead { color: #CBD3F2; }
.nf { padding-top: clamp(150px, 16vw, 220px); }

/* ---------- Big moving words ---------- */
.mq-big { overflow: hidden; padding: 14px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); user-select: none; }
.mq-row { overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; will-change: transform; }
.mq-track span { font: 800 clamp(2.4rem, 7.5vw, 6.4rem)/1.12 var(--font-h); text-transform: uppercase; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(170, 182, 255, .5); }
.mq-row.alt .mq-track span { -webkit-text-stroke: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; opacity: .92; }
.mq-track i { font-style: normal; font-size: 1.7rem; color: var(--lavender); text-shadow: 0 0 20px rgba(199, 125, 255, .9); }

/* ---------- Sections go transparent so the 3D scene shows through ---------- */
.section { position: relative; }
.section.tint { background: linear-gradient(180deg, transparent, rgba(24, 28, 84, .38) 20%, rgba(24, 28, 84, .38) 80%, transparent); }
.section.dark { background: none; color: var(--text); }
.section-head h2 { font-weight: 700; letter-spacing: -.02em; color: #fff; }
.section-head p { color: var(--muted); }
.chip { border-color: rgba(160, 175, 255, .35); background: rgba(123, 92, 255, .12); color: #CFD6FF; letter-spacing: .14em; font-family: var(--font-h); font-size: .66rem; box-shadow: 0 0 22px rgba(123, 92, 255, .18); }
.chip.light { border-color: rgba(160, 175, 255, .35); background: rgba(123, 92, 255, .12); color: #CFC6FF; }

.trusted { background: rgba(8, 12, 36, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.trusted-label { color: #D9DFFA; }
.marquee-track li { background: #fff; border-color: rgba(255, 255, 255, .5); border-radius: 18px; box-shadow: 0 0 0 1px rgba(160, 175, 255, .2), 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s, box-shadow .3s; }
.marquee-track li:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 1px #C77DFF, 0 0 34px rgba(123, 92, 255, .8); }

/* cards = glass */
.card, .pf-card, .pf-quote, .proof, .form, .goal, .ex-links a, .tags li, .faq details, .pj-box, .hs-card {
  background: var(--glass); border: 1px solid var(--edge);
}
.card { border-radius: 20px; box-shadow: 0 22px 54px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08); }
a.card:hover { border-color: rgba(199, 125, 255, .65); box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 44px rgba(123, 92, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.card h3, .pf-body h3 { color: #fff; }
.card p, .pf-body p { color: var(--muted); }
/* holographic corner brackets */
a.card::before, .card::before {
  content: ""; position: absolute; inset: 9px; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .3s, inset .3s; z-index: 2;
  background:
    linear-gradient(#C77DFF, #C77DFF) top left / 16px 1.5px no-repeat, linear-gradient(#C77DFF, #C77DFF) top left / 1.5px 16px no-repeat,
    linear-gradient(#18B6EA, #18B6EA) top right / 16px 1.5px no-repeat, linear-gradient(#18B6EA, #18B6EA) top right / 1.5px 16px no-repeat,
    linear-gradient(#18B6EA, #18B6EA) bottom left / 16px 1.5px no-repeat, linear-gradient(#18B6EA, #18B6EA) bottom left / 1.5px 16px no-repeat,
    linear-gradient(#C77DFF, #C77DFF) bottom right / 16px 1.5px no-repeat, linear-gradient(#C77DFF, #C77DFF) bottom right / 1.5px 16px no-repeat;
}
a.card:hover::before, .card:hover::before { opacity: 1; inset: 6px; }
.icon-tile { background: linear-gradient(135deg, rgba(123, 92, 255, .38), rgba(24, 182, 234, .22)); color: #D8D0FF; border: 1px solid rgba(170, 180, 255, .34); box-shadow: 0 0 26px rgba(123, 92, 255, .35); }
.step-no, .pf-tag { color: #CFC6FF; }
.pf-tag { background: rgba(123, 92, 255, .16); }
.link-list a:hover, .contact-details a:hover { color: #C77DFF; }
.faq summary { color: #fff; } .faq summary::after { color: #C77DFF; }
.ticker { background: rgba(8, 12, 36, .45); border-color: var(--line); }
.ticker-track li { background: rgba(123, 92, 255, .12); color: #D5CEFF; border-color: rgba(160, 175, 255, .28); }
.pf-filter { background: var(--glass); color: #D9DFFA; border-color: var(--edge); }
.proof { background: rgba(10, 14, 42, .8); }
.proof figcaption { color: var(--muted); }
.ex-links a { color: #E8ECFF; }
.ex-links a:hover { background: linear-gradient(120deg, #3F7BEF, #7B5CFF); border-color: transparent; }
.btn-outline-dark { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-dark:hover { background: #fff; color: var(--navy); }
.btn-primary { box-shadow: 0 8px 30px rgba(108, 77, 245, .5), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.btn-primary:hover { box-shadow: 0 14px 44px rgba(108, 77, 245, .75), 0 0 36px rgba(24, 182, 234, .4); }
.btn-ghost { backdrop-filter: blur(8px); }

/* stats */
.stats { background: rgba(7, 11, 34, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0; }
.stats strong { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #A48DFF 70%, #4B8CFF); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 0 22px rgba(123, 92, 255, .55)); }
.stats li { border-color: var(--line); transition: transform .35s; }
.stats span { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }

/* process */
.steps::before { border-top: 2px dashed rgba(160, 175, 255, .4); }
.step-icon { box-shadow: 0 0 34px rgba(123, 92, 255, .6); }
.steps h3 { color: #fff; }

/* 3D service carousel + goals */
.c3d-section { background: none; }
.goal { color: #fff; }
.goal[aria-checked="true"] { background: linear-gradient(120deg, #3F7BEF, #7B5CFF); border-color: transparent; box-shadow: 0 0 40px rgba(123, 92, 255, .6); }
.goal-result { background: rgba(10, 14, 44, .6); border: 1px solid var(--edge); }

/* illustration frames */
.ill-frame { background: radial-gradient(80% 80% at 75% 15%, rgba(123, 92, 255, .34), transparent 70%), linear-gradient(160deg, rgba(18, 28, 78, .82), rgba(7, 12, 34, .82)); border: 1px solid var(--edge); box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 60px rgba(123, 92, 255, .22); }
.ill-frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px; pointer-events: none; z-index: 2; background: linear-gradient(180deg, transparent, rgba(120, 170, 255, .16) 55%, transparent); animation: scanY 5s linear infinite; }
@keyframes scanY { 0% { transform: translateY(-100%); } 100% { transform: translateY(520%); } }

/* ---------- Pinned horizontal scroll ---------- */
.hs { position: relative; }
.hs-track { display: flex; gap: 28px; padding: 0 48px; align-items: stretch; will-change: transform; }
.hs-intro { flex: none; width: min(460px, 38vw); align-self: center; padding-right: 20px; }
.hs-intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hs-intro p { color: var(--muted); }
.hs-scrollcue { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 600 .78rem/1 var(--font-h); letter-spacing: .2em; text-transform: uppercase; color: #C77DFF !important; }
.hs-scrollcue svg { width: 18px; height: 18px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.hs-card { flex: none; width: min(780px, 66vw); min-height: min(520px, 64vh); display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; padding: 34px; border-radius: 30px; align-items: center; box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
.hs-on .hs-card { scale: calc(.9 + var(--f, 1) * .1); opacity: calc(.4 + var(--f, 1) * .6); }
.hs-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 70% at 100% 0, var(--hc, rgba(123, 92, 255, .3)), transparent 70%); }
.hs-card.c1 { --hc: rgba(24, 182, 234, .3); } .hs-card.c2 { --hc: rgba(199, 125, 255, .32); } .hs-card.c3 { --hc: rgba(75, 140, 255, .34); }
.hs-no { position: absolute; right: 28px; top: 14px; font: 800 5rem/1 var(--font-h); color: transparent; -webkit-text-stroke: 1.5px rgba(170, 182, 255, .28); }
.hs-body { position: relative; z-index: 1; }
.hs-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: #fff; margin-bottom: .3em; }
.hs-body > p { color: var(--muted); }
.hs-body .ex-links { margin-top: 18px; }
.hs-ill { position: relative; z-index: 1; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 10px; }
.hs-ill svg { width: 100%; height: auto; display: block; }
.hs-progress { display: none; }
.hs-on .hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hs-on .hs-progress { display: block; position: absolute; left: 48px; right: 48px; bottom: 44px; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; }
.hs-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #4B8CFF, #C77DFF, #18B6EA); box-shadow: 0 0 16px rgba(123, 92, 255, .9); border-radius: 2px; }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; background: linear-gradient(110deg, #3F7BEF 0%, #7B5CFF 52%, #C77DFF 100%); box-shadow: 0 40px 110px rgba(123, 92, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cta-card::before { content: ""; position: absolute; inset: -40% -10%; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); animation: sheen 5.5s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-70%); } 60%, 100% { transform: translateX(70%); } }
.cta-card > * { position: relative; }
.cta-card h2 { font-weight: 800; letter-spacing: -.03em; }

/* ---------- Forms ---------- */
.field input, .field select, .field textarea { background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(160, 175, 255, .3); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: rgba(200, 208, 240, .45); }
.field select option { background: #0D1838; color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #C77DFF; box-shadow: 0 0 0 4px rgba(123, 92, 255, .25), 0 0 30px rgba(123, 92, 255, .35); outline: none; }
.form-error { color: #FF9AA2; }
.contact-details li { border-color: var(--line); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(5, 8, 24, .9) 28%); border-top: 1px solid var(--line); }
.site-footer .wrap { position: relative; z-index: 1; }
.foot-mega { position: absolute; left: 50%; bottom: -3vw; transform: translateX(-50%); font: 800 clamp(5rem, 21vw, 19rem)/1 var(--font-h); letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(150, 165, 255, .16); pointer-events: none; user-select: none; }
.footer-grid h3 { font-family: var(--font-h); letter-spacing: .02em; }
.footer-grid a:hover { color: #fff; text-decoration: none; text-shadow: 0 0 16px rgba(155, 134, 255, .9); }
.footer-bottom { position: relative; z-index: 1; }

/* WhatsApp: pulse ring */
.wa-float { z-index: 260; box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 34px rgba(37, 211, 102, .55); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.2s ease-out infinite; }
@keyframes waPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1080px) {
  .hs-card { width: min(700px, 74vw); }
}
@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-header { top: 10px; }
  .header-inner > .brand { background: rgba(10, 16, 46, .6); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 18px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .header-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; z-index: 5; background: rgba(10, 16, 46, .6); border: 1px solid var(--edge); border-radius: 50%; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .site-nav {
    position: fixed; inset: 0; top: 0; z-index: 4; justify-self: stretch; align-self: stretch; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 100px 24px 40px;
    background: radial-gradient(80% 60% at 50% 30%, rgba(44, 30, 130, .97), rgba(5, 8, 24, .99) 75%); border: 0;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility .35s;
  }
  .site-nav.is-open { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .nav-link { padding: 12px 24px; font: 700 clamp(1.7rem, 7vw, 2.4rem)/1.2 var(--font-h); background: none !important; box-shadow: none !important; }
  .nav-link[aria-current="page"] { background: var(--grad-text) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
  .has-menu > .nav-link::after { display: none; }
  .nav-cta-m { display: block; margin-top: 18px; }
  .nav-cta-m .btn { width: 100%; }
  .menu { display: none; }
  html.menu-open { overflow: hidden; }
  .hero-xl { min-height: 0; padding: 120px 0 90px; }
  .hero-xl .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { width: min(100%, 420px); margin-top: 6px; }
  .hud, .hero-hint { display: none; }
  .hs-track { flex-direction: column; padding: 0 20px; gap: 18px; }
  .hs-intro { width: auto; padding: 0 0 8px; }
  .hs-card { width: auto; grid-template-columns: 1fr; min-height: 0; padding: 24px; }
  .hs-no { font-size: 3.4rem; }
  .mq-track span { -webkit-text-stroke-width: 1px; }
}
@media (hover: none) {
  .cur-dot, .cur-ring, .cur-aura { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #preloader, #wipe, .cur-dot, .cur-ring, .cur-aura, .cur-trail, .scanlines { display: none !important; }
  .fxs .wi { opacity: 1; transform: none; transition: none; }
  .hs-track { flex-direction: column; }
  .cta-card::before, .ill-frame::before, .wa-float::before { animation: none; }
}

/* header stays a floating pill even after scrolling */
.site-header.scrolled { background: none; box-shadow: none; }

/* ==========================================================
   BLOG
   ========================================================== */
.bl-hero h1 { max-width: 18ch; }
.bl-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(10, 16, 46, .6); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 40px rgba(123, 92, 255, .18); transition: border-color .25s, box-shadow .25s; }
.bl-search:focus-within { border-color: #C77DFF; box-shadow: 0 0 0 4px rgba(123, 92, 255, .2), 0 0 50px rgba(123, 92, 255, .35); }
.bl-search svg { width: 20px; height: 20px; color: #B9AEFF; flex: none; }
.bl-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 1rem; padding: 10px 0; }
.bl-search input::placeholder { color: rgba(200, 208, 240, .55); }
.bl-search .btn { border-radius: 999px; }
.bl-section { padding-top: clamp(20px, 3vw, 40px); }
.bl-cats { margin-bottom: 34px; }
.bl-cats a.pf-filter { text-decoration: none; }
.bl-cats a[aria-current="page"] { background: linear-gradient(120deg, #3F7BEF, #7B5CFF); color: #fff; border-color: transparent; box-shadow: 0 0 30px rgba(123, 92, 255, .5); }
.bl-found { color: var(--muted); margin: -14px 0 24px; } .bl-found a { color: #C77DFF; }

/* featured / latest */
.bl-lead { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 30px; overflow: hidden; text-decoration: none; margin-bottom: 34px; background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 34px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); transition: border-color .35s, box-shadow .35s, transform .35s; }
.bl-lead:hover { border-color: rgba(199, 125, 255, .65); box-shadow: 0 40px 110px rgba(0, 0, 0, .55), 0 0 60px rgba(123, 92, 255, .35); transform: translateY(-4px); }
.bl-lead-cover { position: relative; min-height: 400px; overflow: hidden; }
.bl-lead-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.bl-lead:hover .bl-lead-cover img { transform: scale(1.06); }
.bl-lead-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bl-lead-body h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: #fff; margin: 6px 0 14px; }
.bl-lead-body > p { color: var(--muted); font-size: 1.02rem; }
.bl-badge { font: 600 .66rem/1 var(--font-h); letter-spacing: .2em; text-transform: uppercase; color: #fff; padding: 8px 12px; border-radius: 999px; background: linear-gradient(120deg, #3F7BEF, #7B5CFF); box-shadow: 0 0 24px rgba(123, 92, 255, .55); margin-bottom: 16px; }
.bl-read { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; color: #C77DFF; }
.bl-read svg { width: 18px; height: 18px; transition: transform .3s; }
.bl-lead:hover .bl-read svg { transform: translateX(6px); }

/* cards */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none; background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 22px 54px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08); }
.bl-card:hover { border-color: rgba(199, 125, 255, .6); box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 44px rgba(123, 92, 255, .32); }
.bl-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.bl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.bl-card:hover .bl-cover img { transform: scale(1.07); }
.bl-cover::after, .bl-lead-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(6, 9, 28, .55)); }
.bl-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bl-body h3 { font-size: 1.16rem; line-height: 1.3; color: #fff; margin: 4px 0 10px; }
.bl-body > p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-body .pf-tag, .bl-lead-body .pf-tag { align-self: flex-start; margin-bottom: 6px; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; font-size: .82rem; color: #9AA6CF; }
.bl-meta span + span::before { content: "\2022"; color: #9C86FF; margin-right: 12px; }

/* placeholder cover when no image */
.is-ph { display: grid; place-items: center; background: radial-gradient(70% 90% at 80% 10%, rgba(199, 125, 255, .55), transparent 60%), linear-gradient(135deg, #1B2A6B, #4B2FC0 60%, #7B5CFF); }
.is-ph.ph1 { background: radial-gradient(70% 90% at 80% 10%, rgba(24, 182, 234, .55), transparent 60%), linear-gradient(135deg, #0D2A5C, #2F5FD6 60%, #4B8CFF); }
.is-ph.ph2 { background: radial-gradient(70% 90% at 20% 10%, rgba(255, 140, 220, .45), transparent 60%), linear-gradient(135deg, #2A0F57, #6C2FC0 60%, #C77DFF); }
.is-ph.ph3 { background: radial-gradient(70% 90% at 80% 90%, rgba(24, 182, 234, .5), transparent 60%), linear-gradient(135deg, #10163F, #3A2F9E 55%, #18B6EA); }
.is-ph span { font: 800 clamp(4rem, 9vw, 7rem)/1 var(--font-h); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); }
.is-ph em { position: absolute; left: 18px; bottom: 14px; font: 600 .68rem/1 var(--font-h); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); z-index: 1; }
.bl-lead-cover.is-ph { min-height: 400px; }

.bl-pages { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; color: var(--muted); }
.bl-empty { text-align: center; max-width: 560px; margin: 20px auto; padding: 50px 30px; border-radius: 28px; background: var(--glass); border: 1px solid var(--edge); }
.bl-empty .icon-tile { margin: 0 auto 18px; }
.bl-empty h2 { color: #fff; }
.bl-empty p { color: var(--muted); }

/* ---------- article page ---------- */
.bl-preview { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 500; max-width: 92vw; padding: 12px 20px; border-radius: 999px; background: #FFB020; color: #1B1300; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.bl-narrow { max-width: 900px; }
.bl-post-hero { padding-bottom: clamp(30px, 4vw, 50px); }
.bl-post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; line-height: 1.1; }
.bl-post-hero .lead { font-size: 1.14rem; max-width: 62ch; }
.bl-byline { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.bl-byline strong { color: #fff; display: block; font-size: .98rem; }
.bl-byline .bl-meta { margin-top: 2px; }
.bl-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 1.1rem/1 var(--font-h); color: #fff; background: linear-gradient(135deg, #7B5CFF, #4B8CFF); box-shadow: 0 0 26px rgba(123, 92, 255, .6); }
.bl-avatar.lg { width: 64px; height: 64px; font-size: 1.5rem; }
.bl-wide { max-width: 1180px; }
.bl-hero-img { margin: 0 0 clamp(36px, 5vw, 64px); border-radius: 28px; overflow: hidden; border: 1px solid var(--edge); box-shadow: 0 40px 110px rgba(0, 0, 0, .55), 0 0 60px rgba(123, 92, 255, .22); }
.bl-hero-img img { width: 100%; max-height: 620px; object-fit: cover; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; padding-bottom: clamp(48px, 6vw, 80px); }
.bl-layout.has-toc { grid-template-columns: 240px minmax(0, 760px); }
.bl-toc { position: sticky; top: 110px; align-self: start; padding: 22px; border-radius: 20px; background: rgba(10, 16, 46, .55); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bl-toc p { font: 600 .68rem/1 var(--font-h); letter-spacing: .2em; text-transform: uppercase; color: #C77DFF; margin-bottom: 14px; }
.bl-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.bl-toc li { counter-increment: toc; }
.bl-toc a { display: flex; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4; transition: background .2s, color .2s; }
.bl-toc a::before { content: counter(toc, decimal-leading-zero); font: 600 .72rem/1.9 var(--font-h); color: rgba(185, 174, 255, .55); }
.bl-toc a:hover, .bl-toc a.on { color: #fff; background: rgba(123, 92, 255, .2); }
.bl-toc a.on::before { color: #C77DFF; }

/* the article text */
.bl-prose { font-size: 1.1rem; line-height: 1.85; color: #D7DDF6; }
.bl-prose > * + * { margin-top: 1.25em; }
.bl-prose p { margin: 0; }
.bl-prose > p:first-child::first-letter { float: left; font: 800 3.6em/.82 var(--font-h); margin: .08em .1em 0 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); color: #fff; letter-spacing: -.02em; line-height: 1.2; margin-top: 2.1em; padding-top: .3em; scroll-margin-top: 110px; position: relative; }
.bl-prose h2::before { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-bottom: 18px; background: linear-gradient(90deg, #4B8CFF, #C77DFF); box-shadow: 0 0 16px rgba(123, 92, 255, .8); }
.bl-prose h3 { font-size: 1.35rem; color: #fff; margin-top: 1.8em; scroll-margin-top: 110px; }
.bl-prose h4 { font-size: 1.1rem; color: #E7E2FF; margin-top: 1.6em; }
.bl-prose strong { color: #fff; }
.bl-prose a { color: #C9B8FF; text-decoration: underline; text-decoration-color: rgba(199, 125, 255, .5); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.bl-prose a:hover { color: #fff; text-decoration-color: #C77DFF; }
.bl-prose ul, .bl-prose ol { padding-left: 0; display: grid; gap: .55em; }
.bl-prose ul li { position: relative; padding-left: 30px; }
.bl-prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, #4B8CFF, #C77DFF); box-shadow: 0 0 10px rgba(123, 92, 255, .8); }
.bl-prose ol { counter-reset: li; }
.bl-prose ol li { counter-increment: li; position: relative; padding-left: 44px; }
.bl-prose ol li::before { content: counter(li); position: absolute; left: 0; top: .15em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem/1 var(--font-h); color: #fff; background: linear-gradient(135deg, #3F7BEF, #7B5CFF); }
.bl-prose blockquote { margin: 1.8em 0; padding: 26px 28px 26px 32px; border-radius: 20px; position: relative; background: linear-gradient(135deg, rgba(123, 92, 255, .2), rgba(24, 182, 234, .08)); border: 1px solid var(--edge); font-size: 1.22rem; line-height: 1.6; color: #fff; font-weight: 500; }
.bl-prose blockquote::before { content: "\201C"; position: absolute; left: 18px; top: -26px; font: 800 5rem/1 var(--font-h); color: #C77DFF; text-shadow: 0 0 20px rgba(199, 125, 255, .8); }
.bl-prose hr { border: 0; height: 1px; margin: 2.4em 0; background: linear-gradient(90deg, transparent, rgba(160, 175, 255, .5), transparent); }
.bl-prose code { font-size: .9em; padding: 2px 7px; border-radius: 6px; background: rgba(123, 92, 255, .2); color: #E7E2FF; }
.bl-prose .md-fig { margin: 2em 0; }
.bl-prose .md-fig img, .bl-prose p img { width: 100%; border-radius: 18px; border: 1px solid var(--edge); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.bl-prose figcaption { margin-top: 10px; text-align: center; font-size: .88rem; color: #9AA6CF; }
.bl-prose .md-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--edge); }
.bl-prose .md-btn { text-align: left; }
.bl-prose .md-btn a { text-decoration: none; color: #fff; }

.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.bl-tags li { font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: rgba(123, 92, 255, .12); border: 1px solid var(--edge); color: #D5CEFF; }
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding: 20px 0; border-block: 1px solid var(--line); }
.bl-share span { font-weight: 600; color: #fff; margin-right: 6px; }
.bl-share a, .bl-share button { font: inherit; font-size: .86rem; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .04); color: #E8ECFF; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.bl-share a:hover, .bl-share button:hover { background: linear-gradient(120deg, #3F7BEF, #7B5CFF); border-color: transparent; transform: translateY(-2px); }
.bl-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 30px; padding: 26px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge); }
.bl-author small { display: block; color: #9AA6CF; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.bl-author strong { display: block; color: #fff; font-size: 1.1rem; margin: 2px 0 6px; }
.bl-author p { color: var(--muted); margin: 0; font-size: .94rem; }

@media (max-width: 1080px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-layout.has-toc { grid-template-columns: minmax(0, 760px); }
  .bl-toc { position: static; }
}
@media (max-width: 760px) {
  .bl-lead { grid-template-columns: 1fr; }
  .bl-lead-cover, .bl-lead-cover.is-ph { min-height: 230px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-prose { font-size: 1.04rem; }
  .bl-search .btn { display: none; }
  .bl-author { flex-direction: column; }
}

/* readable rich text on the dark theme (portfolio stories, extra pages, blog) */
.md p, .md li { color: #CBD3F2; }
.md h2, .md h3, .md h4, .md strong { color: #fff; }
.md a { color: #C9B8FF; }
.md blockquote p { color: #fff; }
.bl-prose p, .bl-prose li { color: #D7DDF6; max-width: none; }
.bl-prose ul, .bl-prose ol { list-style: none; margin-bottom: 0; }
/* a calm reading sheet so the 3D background never competes with the text */
.bl-content { position: relative; padding: clamp(26px, 4vw, 54px); border-radius: 30px; background: rgba(6, 9, 28, .82); border: 1px solid rgba(150, 165, 255, .14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.bl-toc { background: rgba(6, 9, 28, .82); }
.bl-layout { grid-template-columns: minmax(0, 840px); }
.bl-layout.has-toc { grid-template-columns: 250px minmax(0, 840px); gap: 40px; }
@media (max-width: 1080px) { .bl-layout.has-toc { grid-template-columns: minmax(0, 840px); } }
@media (max-width: 760px) { .bl-content { padding: 22px 18px; border-radius: 22px; } }
.bl-meta span { white-space: nowrap; }

/* ============ GUIDES ============ */
.gd-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.gd-key{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font:700 .72rem/1 'Sora',system-ui,sans-serif;letter-spacing:.08em;color:#0B0F24;background:linear-gradient(90deg,#7CF3FF,#B79CFF);box-shadow:0 0 18px rgba(124,243,255,.35)}
.gd-key.lg{font-size:.8rem;padding:7px 14px}
.gd-actions{margin-top:22px;display:flex;flex-wrap:wrap;gap:12px}
.gd-note{margin-top:18px;display:inline-flex;gap:10px;align-items:center;padding:10px 16px;border-radius:14px;border:1px dashed rgba(124,243,255,.4);background:rgba(124,243,255,.06);color:#CBD3F2;font-size:.95rem}
.gd-note svg{width:18px;height:18px;flex:none;stroke:#7CF3FF}
.gd-layout{display:block}
.gd-layout .bl-content{max-width:860px;margin:0 auto}
.gd-cover{margin:0 0 28px;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.gd-cover img{display:block;width:100%;height:auto}
.gd-box{margin:0 0 28px;padding:22px;border-radius:18px;background:rgba(18,22,52,.72);border:1px solid rgba(124,243,255,.18);box-shadow:0 10px 40px rgba(0,0,0,.25);scroll-margin-top:110px}
.gd-box h2{display:flex;align-items:center;gap:10px;font-size:1.25rem;margin:0 0 16px;color:#fff}
.gd-box h2 svg{width:22px;height:22px;stroke:#7CF3FF}
.gd-files{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.gd-files li{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.gd-ext{flex:none;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;font:800 .78rem/1 'Sora',sans-serif;color:#fff;background:#4A36C4}
.gd-ext.pdf{background:linear-gradient(135deg,#FF5C7A,#C2185B)}
.gd-ext.zip{background:linear-gradient(135deg,#7CF3FF,#4A36C4);color:#0B0F24}
.gd-fname{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.gd-fname strong{color:#fff;font-size:1rem;overflow-wrap:anywhere}
.gd-fname small{color:#94A0C8;font-size:.82rem}
.gd-prompt{margin:0 0 16px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:#0A0D22}
.gd-prompt:last-child{margin-bottom:0}
.gd-prompt-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 10px 16px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.08)}
.gd-prompt-top span{color:#CBD3F2;font-weight:600;font-size:.92rem}
.gd-copy{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;min-height:40px;border-radius:10px;border:0;cursor:pointer;font:700 .85rem/1 'Sora',sans-serif;color:#0B0F24;background:linear-gradient(90deg,#7CF3FF,#B79CFF);transition:transform .15s}
.gd-copy:hover{transform:translateY(-1px)}
.gd-copy svg{width:16px;height:16px;display:none}
.gd-copy em{font-style:normal}
.gd-copy.done svg{display:block}
.gd-prompt pre{margin:0;padding:16px;max-height:420px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:400 .9rem/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#E6EBFF}
.gd-prompt pre code{background:none;padding:0;color:inherit;font:inherit}
.gd-steps{margin-bottom:28px}
.gd-reel{margin:0 0 28px}
.gd-reel h2{font-size:1.25rem;color:#fff;margin:0 0 14px}
.gd-reel .instagram-media{margin:0 auto!important;max-width:540px!important;min-width:0!important;width:100%!important;border-radius:14px!important}
.gd-sources{margin:0 0 24px;padding:18px 20px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.gd-sources h3{margin:0 0 10px;font-size:1rem;color:#fff}
.gd-sources ul{margin:0;padding-left:18px;color:#CBD3F2}
.gd-sources a{color:#7CF3FF;overflow-wrap:anywhere}
.gd-cta{margin:8px 0 28px}
.gd-card .bl-meta{margin-top:auto}
@media (max-width:640px){
  .gd-box{padding:16px}
  .gd-files li{flex-wrap:wrap}
  .gd-files li .btn{width:100%;justify-content:center}
  .gd-note{font-size:.88rem}
  .gd-actions .btn{flex:1 1 100%;justify-content:center}
}
.gd-chips .chip{margin:0}
.gd-intro{margin:0 0 24px;font-size:1.12rem;line-height:1.75}
.gd-intro p{margin:0 0 12px}
