/* base: extracted from site (shared design tokens, header, footer, buttons) */
:root {
  --bg-deep: #08090d;
  --bg-card: #0f1118;
  --bg-card-hover: #151824;
  --border: #1a1d2e;
  --border-strong: #2a2f4a;
  --border-glow: #2a1f5e;

  --accent: #a855f7;
  --accent-hot: #c084fc;
  --accent-dim: #7c3aed;
  --gold: #f59e0b;
  --gold-dim: #d97706;
  --cyan: #22d3ee;
  --green: #22c55e;
  --tg-blue: #26a5e4;

  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #475569;

  --maxw: 1140px;
  --pad: clamp(16px, 4vw, 32px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  width: 100%; max-width: 100vw;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
h1,h2,h3,h4,p,a,span,li { overflow-wrap: break-word; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Background atmosphere */
.bg-atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-atmosphere .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.bg-atmosphere .orb-1 { width: 600px; height: 600px; background: #6d28d9; top: -200px; left: -150px; }
.bg-atmosphere .orb-2 { width: 500px; height: 500px; background: #f59e0b; top: 40%; right: -200px; opacity: 0.16; }
.bg-atmosphere .orb-3 { width: 400px; height: 400px; background: #22d3ee; bottom: -100px; left: 30%; opacity: 0.13; }
.bg-atmosphere .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(168,85,247,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
}
.bg-atmosphere .noise { position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay; }

main, header, footer { position: relative; z-index: 1; }

.unbounded { font-family: 'Unbounded', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-hot) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 24px;
}
.eyebrow > span {
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(168,85,247,0.05);
  white-space: nowrap;
}
.eyebrow > span:nth-child(2) {
  color: var(--cyan);
  border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.04);
}

.section-title {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 16px; max-width: 24ch;
}
.section-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 48px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }

/* === MINIMAL HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: 16px; letter-spacing: -0.01em;
  flex: none;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  display: grid; place-items: center;
  font-size: 13px; color: #08090d; font-weight: 800;
  box-shadow: 0 0 24px rgba(168,85,247,0.35);
}
.brand-name--short { display: none; }
.header-meta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.header-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.2s; border: 1px solid transparent; flex: none; }
.btn-tg {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-tg:hover { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(124,58,237,0.5); }
.btn-tg svg { width: 16px; height: 16px; }
.btn-ghost { border-color: var(--border-strong); color: var(--text-dim); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

@media (max-width: 640px) {
  .brand-name--full { display: none; }
  .brand-name--short { display: inline; }
  .header-meta { display: none; }
}

/* === HERO === */
.hero { padding-top: clamp(40px, 5vw, 60px); padding-bottom: clamp(24px, 3vw, 36px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero h1 {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem);
  line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero p.sub {
  font-size: clamp(1rem, 1.3vw + 0.4rem, 1.15rem);
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 56ch;
}
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 22px; font-size: 15px; }

.hero-portrait { position: relative; justify-self: end; max-width: 100%; }
.hero-portrait__frame {
  position: relative;
  width: 320px; aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 80px rgba(124,58,237,0.25), inset 0 0 0 1px rgba(255,255,255,0.04);
  background: var(--bg-card);
}
.hero-portrait__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.hero-portrait__noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.5;
}
.hero-portrait__glow {
  position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(168,85,247,0.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(34,211,238,0.35), transparent 60%);
  filter: blur(40px);
}
.hero-portrait__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(34,211,238,0.04) 3px 4px
  );
  mix-blend-mode: overlay;
}
.hero-portrait__label {
  position: absolute; top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(8,9,13,0.7);
  padding: 5px 8px; border-radius: 3px;
  border: 1px solid rgba(34,211,238,0.25);
}
.hero-portrait__caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(8,9,13,0.7);
  padding: 6px 10px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 8px;
}
.hero-portrait__caption .ok { color: var(--green); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { justify-self: center; order: -1; }
  .hero-portrait__frame { width: 240px; }
}

/* === METRICS === */
.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.metrics-grid > * { min-width: 0; }
.metric-card {
  position: relative; padding: 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.metric-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.metric-card .num {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw + 0.4rem, 2.1rem);
  line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.metric-card .cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.4;
}
.metric-card .corner {
  position: absolute; top: 8px; right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text-muted); letter-spacing: 1px;
}
@media (max-width: 980px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .metric-card { padding: 18px 14px; }}

/* === CAPABILITIES === */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cap-grid > * { min-width: 0; }
.cap-card {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.cap-card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); transform: translateY(-3px); }
.cap-card .num {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  font-size: 24px; color: var(--gold);
  line-height: 1; flex: none;
  width: 48px;
}
.cap-card h3 {
  font-family: 'Unbounded', sans-serif; font-weight: 600;
  font-size: 17px; line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.cap-card p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 720px) { .cap-grid { grid-template-columns: 1fr; } .cap-card { padding: 22px; gap: 16px; } .cap-card .num { width: auto; } }

/* === EDGE === */
.edge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.edge-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--gold) 70%, transparent);
}
.edge-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(168,85,247,0.1), transparent 50%);
  pointer-events: none;
}
.edge-card blockquote {
  position: relative;
  font-family: 'Manrope', sans-serif; font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6; color: var(--text);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 24px;
  max-width: 78ch;
}
.edge-card blockquote p + p { margin-top: 14px; }
.edge-card blockquote strong { font-style: normal; color: var(--cyan); font-weight: 600; }
.edge-strip {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.edge-strip .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}
.edge-strip .badge:hover { color: var(--cyan); border-color: rgba(34,211,238,0.3); }

/* === CASE === */
.case-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.case-cols { display: grid; grid-template-columns: 1fr 1fr; }
.case-cols > div { padding: 32px; }
.case-cols > div + div { border-left: 1px solid var(--border); }
.case-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.case-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.case-col li {
  font-size: 14px; color: var(--text); line-height: 1.5;
  padding-left: 16px; position: relative;
}
.case-col li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent-hot);
  font-family: 'JetBrains Mono', monospace;
}
.case-col li { display: flex; align-items: baseline; gap: 4px; }
.case-col li strong { color: var(--text-dim); font-weight: 500; flex: 0 0 115px; }
.case-numbers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(168,85,247,0.04), transparent),
    rgba(8,9,13,0.5);
}
.case-numbers > div {
  padding: 32px 24px; text-align: left;
  position: relative;
}
.case-numbers > div + div { border-left: 1px solid var(--border); }
.case-numbers .big {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.case-numbers .lab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); line-height: 1.4;
}
.case-foot {
  padding: 18px 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .case-cols { grid-template-columns: 1fr; }
  .case-cols > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .case-cols > div { padding: 24px; }
  .case-numbers { grid-template-columns: 1fr; }
  .case-numbers > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .case-numbers > div { padding: 22px; }
  .case-foot { padding: 18px 24px; }
}

/* === STACK === */
.stack-rows { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.stack-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.stack-row .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-muted);
}
.stack-row .vals { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-row .vals .pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}
.stack-row .vals .pill:hover { color: var(--cyan); border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.04); }
@media (max-width: 720px) {
  .stack-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
}

/* === CREDENTIALS === */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cred-grid > * { min-width: 0; }
.cred-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.cred-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cred-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
}
.cred-list li:hover { border-color: var(--border-strong); }
.cred-list .icon { font-size: 18px; flex: none; }
.cred-list a { color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.cred-list a:hover { text-decoration: underline; }
.cred-list .desc { color: var(--text-dim); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.cred-foot {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.5px;
}
@media (max-width: 720px) { .cred-grid { grid-template-columns: 1fr; } }

/* === BACKGROUND === */
.bg-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}
.bg-block p {
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 70ch;
}

/* === CONTACT === */
.contact-cta {
  text-align: center; padding: 60px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  position: relative; overflow: hidden;
}
.contact-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.18), transparent 60%);
  pointer-events: none;
}
.contact-cta .btn {
  font-size: 17px; padding: 18px 32px;
  width: 100%; max-width: 480px;
  justify-content: center;
  position: relative;
  margin-top: 8px;
}
.contact-cta .disclaimer {
  margin-top: 24px; font-size: 13px; color: var(--text-muted);
  max-width: 520px; margin-left: auto; margin-right: auto;
  position: relative;
  line-height: 1.6;
}
.contact-cta .signature {
  margin-top: 16px;
  font-family: 'Unbounded', sans-serif; font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.site-footer .copy {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px;
}
.site-footer .copy .brand-mark { width: 24px; height: 24px; font-size: 10px; }
.site-footer .footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; }}

.hero-inner > *,
.metrics-grid > *,
.cap-grid > *,
.cred-grid > * { min-width: 0; }

/* === TIMELINE (work history) === */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.timeline__item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px 24px 48px;
  transition: border-color 0.3s, background 0.3s;
}
.timeline__item:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.timeline__item::before {
  content: '';
  position: absolute;
  left: 22px; top: 30px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(168,85,247,0.5);
}
.timeline__item::after {
  content: '';
  position: absolute;
  left: 25.5px; top: 44px; bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(168,85,247,0.4), transparent);
}
.timeline__item:last-child::after { display: none; }
.timeline__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
  margin-bottom: 10px;
}
.timeline__period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 4px;
  background: rgba(34,211,238,0.05);
  white-space: nowrap;
}
.timeline__role {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  margin: 0;
}
.timeline__desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.timeline__item--current {
  border-color: var(--border-glow);
  background: linear-gradient(135deg, rgba(168,85,247,0.04), rgba(34,211,238,0.02)), var(--bg-card);
}
.timeline__item--current::before {
  background: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.15), 0 0 18px rgba(168,85,247,0.6);
  animation: tl-pulse 2.4s ease-in-out infinite;
}
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(168,85,247,0.15), 0 0 18px rgba(168,85,247,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(168,85,247,0.08), 0 0 24px rgba(168,85,247,0.9); }
}
.timeline__period--live {
  color: var(--accent-hot);
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.08);
}
.timeline__period--live::before {
  content: '●';
  margin-right: 6px;
  color: var(--green);
  animation: tl-blink 1.6s ease-in-out infinite;
}
@keyframes tl-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.timeline__tag {
  display: inline-block;
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 8px;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 4px;
  background: rgba(245,158,11,0.06);
  font-weight: 400;
  vertical-align: middle;
}
.edge-aside {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: normal;
}
.timeline__roles {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
.timeline__role-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  align-items: start;
}
.timeline__role-row:first-child { border-top: none; padding-top: 0; }
.timeline__role-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 3px;
}
.timeline__role-body { display: grid; gap: 4px; }
.timeline__role-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.timeline__role-desc {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 580px) {
  .timeline__role-row { grid-template-columns: 1fr; gap: 6px; }
  .timeline__role-period { padding-top: 0; }
}
@media (max-width: 480px) {
  .timeline__item { padding: 20px 18px 20px 40px; }
  .timeline__item::before { left: 16px; top: 26px; }
  .timeline__item::after { left: 19.5px; }
}

/* === LANG SWITCH === */
.lang-switch{display:flex;gap:4px;margin-right:6px}
.lang-btn{font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:1px;text-transform:uppercase;padding:5px 10px;border:1px solid var(--border-strong);border-radius:4px;color:var(--text-muted);background:transparent;transition:all .2s;text-decoration:none}
.lang-btn.lang-active{color:var(--accent-hot);border-color:rgba(168,85,247,0.5);background:rgba(168,85,247,0.08)}
.lang-btn:hover:not(.lang-active){color:var(--text);border-color:var(--border-strong)}

/* === FOOTER ENGINE NOTE === */
.footer-engine {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}
@media (max-width: 1100px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px 16px;
  transition: border-color .2s;
}
.tool-card:hover { border-color: rgba(34,211,238,0.3); }
.tool-card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.tool-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}
.tool-card__desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  font-style: normal;
}


.pf-demo-badge--live { background: rgba(34,197,94,0.85); }

.pf-card[data-niche="betting"]:hover { border-color: rgba(251,191,36,0.32); box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 28px rgba(251,191,36,0.06); }
.pf-card[data-niche="betting"]::after { background: linear-gradient(90deg, transparent 5%, #fbbf24 40%, transparent 95%); }
.pf-badge-niche--betting { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }
.pf-preview--betting { background: linear-gradient(135deg, #0a0f1e 0%, #1a1400 100%); }

/* ============ BLOG additions ============ */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 40px var(--pad) 20px; }
.blog-wrap--wide { max-width: var(--maxw); }
.crumbs { font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--text-muted); letter-spacing:.5px; margin-bottom:22px; }
.crumbs a { color:var(--text-dim); text-decoration:none; }
.crumbs a:hover { color:var(--accent-hot); }

.art-cat { display:inline-block; font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:1.2px; text-transform:uppercase; color:var(--accent-hot); border:1px solid var(--border-strong); border-radius:4px; padding:4px 10px; margin-bottom:18px; }
.art-title { font-family:'Unbounded',sans-serif; font-weight:800; font-size:clamp(1.7rem,4vw,2.7rem); line-height:1.12; letter-spacing:-.02em; margin:0 0 16px; }
.art-meta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--text-muted); margin-bottom:26px; }
.art-meta .sep { opacity:.4; }
.art-cover { width:100%; border-radius:14px; border:1px solid var(--border); margin:0 0 32px; display:block; }

.prose { font-size:17px; line-height:1.75; color:var(--text); }
.prose > p { margin:0 0 20px; }
.prose h2 { font-family:'Unbounded',sans-serif; font-weight:600; font-size:1.42rem; line-height:1.25; letter-spacing:-.01em; margin:38px 0 14px; }
.prose h3 { font-family:'Manrope',sans-serif; font-weight:700; font-size:1.15rem; margin:28px 0 10px; }
.prose ul, .prose ol { margin:0 0 20px; padding-left:22px; }
.prose li { margin:0 0 8px; }
.prose a { color:var(--accent-hot); text-decoration:underline; text-underline-offset:3px; }
.prose strong { color:#fff; font-weight:700; }
.prose code { font-family:'JetBrains Mono',monospace; font-size:.9em; background:var(--bg-card); border:1px solid var(--border); border-radius:5px; padding:1px 6px; }
.prose blockquote { border-left:3px solid var(--accent-dim); margin:0 0 20px; padding:2px 0 2px 18px; color:var(--text-dim); }

.author-card { display:flex; align-items:center; gap:16px; margin:44px 0 0; padding:22px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; }
.author-card__ava { width:52px; height:52px; border-radius:50%; flex:none; background:linear-gradient(135deg,var(--accent),var(--gold)); display:flex; align-items:center; justify-content:center; font-family:'JetBrains Mono',monospace; font-weight:700; color:#000; font-size:15px; }
.author-card__name { font-weight:700; font-size:15px; }
.author-card__bio { font-size:13px; color:var(--text-dim); margin-top:3px; line-height:1.5; }
.author-card__bio a { color:var(--accent-hot); text-decoration:none; }

.channel-cta { margin:34px 0 0; padding:20px 22px; background:linear-gradient(135deg,rgba(38,165,228,.10),rgba(168,85,247,.06)); border:1px solid var(--border-strong); border-radius:14px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.channel-cta__txt { font-size:14px; color:var(--text-dim); }

/* listing */
.blog-hero { padding:52px var(--pad) 8px; max-width:var(--maxw); margin:0 auto; }
.blog-hero h1 { font-family:'Unbounded',sans-serif; font-weight:800; font-size:clamp(2rem,5vw,3rem); letter-spacing:-.02em; margin:0 0 12px; }
.blog-hero p { color:var(--text-dim); font-size:17px; max-width:60ch; margin:0; }
.post-grid { max-width:var(--maxw); margin:0 auto; padding:28px var(--pad) 60px; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .post-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .post-grid{ grid-template-columns:1fr; } }
.post-card { display:flex; flex-direction:column; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; overflow:hidden; text-decoration:none; transition:border-color .2s, transform .2s; }
.post-card:hover { border-color:var(--accent-dim); transform:translateY(-3px); }
.post-card__shot { width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--bg-card-hover); }
.post-card__body { padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.post-card__cat { font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--accent-hot); }
.post-card__title { font-weight:700; font-size:16px; line-height:1.3; color:var(--text); }
.post-card__desc { font-size:13px; color:var(--text-dim); line-height:1.5; }
.post-card__date { margin-top:auto; font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-muted); }
