/* ============================================================
   style.css — Next-Gen Bento Grid & Cyberpunk Design System
   Website: moiz-solutions-monorepo (Astro 5)
   ============================================================ */

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

:root {
  --bg: #0f1012;
  --bg-subtle: #17191c;
  --card-bg: rgba(23, 25, 28, 0.88);
  --card-border: #2e333a;

  --text-main: #f0f2f4;
  --text-muted: #8c939e;
  --text-dim: #555d67;

  --accent-cyan: #f16521;
  --accent-teal: #fca64d;
  --accent-green: #22c55e;

  --grad-primary: linear-gradient(135deg, #f16521 0%, #fca64d 100%);
  --grad-accent-text: linear-gradient(135deg, #f16521 0%, #fca64d 100%);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --nav-height: 76px;
  --max-width: 1200px;

  --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 600px;
  background: radial-gradient(ellipse at top, rgba(241, 101, 33, 0.1) 0%, rgba(252, 166, 77, 0.05) 45%, transparent 75%);
  pointer-events: none; z-index: 0;
}

a { color: var(--accent-cyan); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #fff; text-shadow: 0 0 12px rgba(241, 101, 33, 0.6); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--text-main); }

.container, .wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 56px 0; border-bottom: 1px solid var(--card-border); position: relative; z-index: 1; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan);
  background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.25);
  padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.section-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); display: inline-block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 16, 18, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.nav-wrap {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img {
  width: 42px; height: 42px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0; background: var(--grad-primary);
  padding: 2px; box-shadow: 0 0 20px rgba(241, 101, 33, 0.35);
}
.logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.logo-text .name { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; color: #fff; }
.logo-text .domain { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.08em; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 8px 16px; border-radius: var(--radius-sm); transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent-cyan); background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.3); font-weight: 600; }
.nav-cta {
  background: var(--grad-primary) !important; color: #07090E !important; font-weight: 700 !important;
  box-shadow: var(--shadow-glow) !important; border-radius: 10px !important; padding: 10px 20px !important;
}

.nav-toggle {
  display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-main);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(241, 101, 33, 0.5); }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }

/* ── PAGE HERO ── */
.page-hero { background: var(--bg-subtle); padding: calc(var(--nav-height) + 40px) 0 48px; color: #fff; border-bottom: 1px solid var(--card-border); }
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.page-hero-grid { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 40px; align-items: center; }
.hero-preview-card.margin-top { margin-top: 0; }
.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; display: flex; gap: 8px; }
.page-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 54px); color: #fff; margin-bottom: 16px; }
.page-hero h1 em, .type-head-accent { background: var(--grad-accent-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }
.type-head { font-size: clamp(28px, 4vw, 46px); color: #fff; margin-bottom: 16px; }
.type-head-caret { display: inline-block; vertical-align: -0.08em; width: 3px; height: 0.9em; margin-left: 4px; background: var(--accent-cyan); border-radius: 2px; animation: esid-caret 1s step-end infinite; }
.page-hero-sub { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 650px; }

/* ── ARTICLE POST CARDS ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.blog-card {
  background: var(--card-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-6px); border-color: rgba(241, 101, 33, 0.5);
  box-shadow: var(--shadow-glow);
}
.blog-card-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--accent-cyan); background: rgba(241, 101, 33, 0.1);
  border: 1px solid rgba(241, 101, 33, 0.25); padding: 4px 12px;
  border-radius: var(--radius-full); align-self: flex-start; margin-bottom: 16px;
}
.blog-card h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.35; }
.blog-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; flex: 1; }
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--card-border); padding-top: 16px; margin-top: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim);
}

/* ── SINGLE ARTICLE CONTENT STYLING ── */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 60px 24px 100px; }
.article-content { font-size: 17px; line-height: 1.85; color: var(--text-main); }
.article-content p { margin-bottom: 24px; color: #E2E8F0; }
.article-content h2 { font-size: 28px; font-weight: 800; color: #fff; margin: 48px 0 20px; border-bottom: 1px solid var(--card-border); padding-bottom: 12px; }
.article-content h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 36px 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; color: #CBD5E1; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
  background: rgba(241, 101, 33, 0.05); border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md); padding: 20px 24px; margin: 32px 0;
  font-style: italic; color: var(--text-main);
}
.article-content code { font-family: 'JetBrains Mono', monospace; font-size: 14px; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px; color: var(--accent-cyan); }
.article-content hr { border: none; border-top: 1px solid var(--card-border); margin: 40px 0; }

/* Callout Boxes */
.callout { border-radius: var(--radius-md); padding: 24px; margin: 32px 0; backdrop-filter: blur(16px); }
.callout.green { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.3); border-left: 4px solid #10B981; }
.callout.yellow { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.3); border-left: 4px solid #F59E0B; }
.callout.red { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3); border-left: 4px solid #EF4444; }
.callout.grey { background: var(--card-bg); border: 1px solid var(--card-border); border-left: 4px solid var(--accent-cyan); }
.callout-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.callout.green .callout-label { color: #10B981; }
.callout.yellow .callout-label { color: #F59E0B; }
.callout.red .callout-label { color: #EF4444; }
.callout.grey .callout-label { color: var(--accent-cyan); }
.callout p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Tool Banner & Key Takeaways */
.tool-banner { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(18, 24, 38, 0.8) 100%); border: 1px solid rgba(245, 158, 11, 0.4); border-radius: var(--radius-lg); padding: 28px; margin: 36px 0; }
.key-takeaway { background: linear-gradient(135deg, rgba(241, 101, 33, 0.15) 0%, rgba(252, 166, 77, 0.1) 100%); border: 1px solid rgba(241, 101, 33, 0.4); border-radius: var(--radius-md); padding: 28px; margin: 36px 0; }
.kt-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--accent-cyan); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.kt-text { font-size: 16px; color: #fff !important; line-height: 1.65; font-weight: 600; margin: 0 !important; }

.article-cta { background: var(--card-bg); border: 1px solid rgba(241, 101, 33, 0.3); box-shadow: var(--shadow-glow); border-radius: var(--radius-lg); padding: 36px; margin: 48px 0; text-align: center; }
.article-cta h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.article-cta p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; max-width: 550px; margin-left: auto; margin-right: auto; }

/* Related Grid & Cards */
.related { border-top: 1px solid var(--card-border); padding-top: 40px; margin-top: 48px; }
.related-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--accent-cyan); text-transform: uppercase; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 24px; transition: all 0.25s; }
.related-card:hover { border-color: rgba(241, 101, 33, 0.4); transform: translateY(-4px); }
.related-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent-cyan); text-transform: uppercase; margin-bottom: 8px; }
.related-card h4 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 12px; }
.related-read { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent-cyan); font-weight: 700; }

/* Author Bio Strip */
.author-bio {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px; margin-top: 60px;
  display: flex; gap: 24px; align-items: center;
}
.author-avatar { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-cyan); flex-shrink: 0; background: var(--bg-subtle); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--grad-primary) !important; color: #07090E !important;
  font-weight: 800; font-size: 15px; padding: 14px 28px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-glow); border: none;
}
.btn-primary:hover { transform: translateY(-3px); color: #07090E !important; text-shadow: none !important; }

/* ── BENTO & TOOLS GRID ── */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.tool-card-bento {
  border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 0;
  display: flex; flex-direction: column; background: var(--card-bg);
  backdrop-filter: blur(16px); transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; color: inherit; overflow: hidden; position: relative;
}
.tool-card-bento:hover {
  border-color: var(--accent-cyan); box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}
.tool-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.tool-icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px; border: 1px solid var(--card-border);
}
.tool-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan);
  background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.25);
  padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: 12px;
  align-self: flex-start;
}
.tool-card-bento h3 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.tool-card-bento p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.tool-card-bento-footer {
  border-top: 1px solid var(--card-border); padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent-cyan);
  letter-spacing: 0.04em; display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.3); margin-top: auto;
}
.tool-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-pill { font-size: 11.5px; color: var(--text-muted); border: 1px solid var(--card-border); background: rgba(255,255,255,0.03); padding: 4px 12px; border-radius: var(--radius-full); font-family: 'JetBrains Mono', monospace; }
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; border-top: 1px solid var(--card-border); padding-top: 24px; }
.hub-stat { text-align: left; }
.hub-stat-num { font-family: 'Outfit', sans-serif; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; background: var(--grad-accent-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.hub-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── FOOTER ── */
footer { background: #0a0b0d; color: #fff; padding: 64px 0 36px; border-top: 1px solid var(--card-border); }
.footer-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--card-border); }
.footer-brand-name { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); }
.footer-socials a:hover { color: var(--accent-cyan); }

/* ══════════════════════ SITE-WIDE EXTENSIONS ══════════════════════ */
.section.alt { background: var(--bg-subtle); }
.section-title { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--text-main); margin: 8px 0 12px; line-height: 1.15; }
.section-sub { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; max-width: 720px; }
section[id], div[id] { scroll-margin-top: calc(var(--nav-height) + 20px); }

/* ── HERO (homepage) ── */
.hero { padding: calc(var(--nav-height) + 64px) 0 56px; border-bottom: 1px solid var(--card-border); position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 340px; gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-cyan); background: rgba(241, 101, 33, 0.08); border: 1px solid rgba(241, 101, 33, 0.25); padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 20px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero .type-head { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.03em; }
.hero h1 em, .hero .type-head-accent { background: var(--grad-accent-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; font-style: normal; }
.hero-sub { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pill { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); border: 1px solid var(--card-border); background: rgba(255,255,255,0.03); padding: 7px 14px; border-radius: var(--radius-full); }

.hero-photo-wrap { position: relative; }
.hero-preview-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 18px 18px 14px; margin-bottom: 16px; box-shadow: var(--shadow-glow);
  animation: esid-preview-in 0.6s ease-out both;
}
.hero-preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hero-preview-icon { font-size: 16px; }
.hero-preview-name { font-size: 13px; font-weight: 700; color: #fff; }
.hero-preview-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-green); }
.hero-preview-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); animation: esid-badge-pulse 2s ease-in-out infinite; }
.hero-preview-body { display: flex; flex-direction: column; gap: 8px; }
.hero-preview-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.hero-preview-check-mark { color: var(--accent-green); font-weight: 800; font-size: 12px; }
.hero-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--card-border); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); }
.hero-preview-progress { width: 44px; height: 4px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; position: relative; }
.hero-preview-progress::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal)); animation: esid-progress 1.6s ease-in-out infinite; }
@keyframes esid-preview-in { 0% { opacity: 0; transform: translateY(12px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes esid-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-photo-card { position: relative; border: 1px solid rgba(241, 101, 33, 0.3); border-radius: var(--radius-lg); overflow: hidden; padding: 10px; background: var(--card-bg); backdrop-filter: blur(16px); box-shadow: var(--shadow-glow), 0 30px 80px rgba(0,0,0,0.5); }
.hero-photo { width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: center top; border-radius: calc(var(--radius-lg) - 4px); user-select: none; }
.hero-photo-badge { position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 2px; background: rgba(7,9,14,0.82); backdrop-filter: blur(14px); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 14px 16px; }
.photo-badge-title { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; color: #fff; }
.photo-badge-sub { font-size: 11.5px; color: var(--text-muted); }

/* ── BUTTONS ── */
.btn-outline { background: transparent; color: var(--accent-cyan); font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 12px; border: 1px solid rgba(241, 101, 33, 0.4); display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { background: rgba(241, 101, 33, 0.08); color: var(--accent-cyan); }
.btn-white { background: #fff; color: #07090E; font-weight: 800; font-size: 15px; padding: 14px 28px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; }
.btn-white:hover { background: var(--accent-cyan); color: #07090E; }
.btn-ghost-w { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost-w:hover { border-color: #fff; color: #fff; }

/* ── STATS BAR ── */
.stats-bar { background: linear-gradient(90deg, rgba(241, 101, 33, 0.12), rgba(252, 166, 77, 0.06)); border-top: 1px solid rgba(241, 101, 33, 0.15); border-bottom: 1px solid var(--card-border); padding: 30px 0; position: relative; z-index: 1; }
.stats-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-around; align-items: center; gap: 20px; padding: 0 24px; flex-wrap: wrap; }
.stat-cell { text-align: center; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; background: var(--grad-accent-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 6px; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── BENTO PROOF GRID ── */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.bento-card { position: relative; cursor: pointer; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.35s ease; }
.bento-card:hover { transform: translateY(-6px); border-color: rgba(241, 101, 33, 0.5); box-shadow: var(--shadow-glow); }
.bento-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-subtle); }
.bento-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bento-card:hover .bento-img-wrap img { transform: scale(1.04); }
.bento-info { padding: 18px 20px; }
.bento-title { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.bento-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ── CTA ── */
.cta-section { padding: 0 0 64px; position: relative; z-index: 1; }
.cta-box { background: linear-gradient(135deg, rgba(241, 101, 33, 0.12), rgba(252, 166, 77, 0.06)); border: 1px solid rgba(241, 101, 33, 0.3); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-glow); }
.cta-box h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.02em; line-height: 1.2; }
.cta-box p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; max-width: 640px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER DOMAIN CHIPS ── */
.footer-domain-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-domain-chip { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-dim); border: 1px solid var(--card-border); border-radius: var(--radius-full); padding: 6px 12px; }
.footer-domain-chip:hover { color: var(--accent-cyan); border-color: rgba(241, 101, 33, 0.4); }

/* ── PROOF LIGHTBOX ── */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0.25s ease; }
.lightbox.open { visibility: visible; opacity: 1; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(3,5,9,0.92); backdrop-filter: blur(6px); }
.lb-box { position: relative; max-width: min(1200px, 92vw); width: 100%; }
.lb-box img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--card-border); display: block; max-height: 82vh; object-fit: contain; background: #000; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--bg-subtle); color: #fff; font-size: 18px; cursor: pointer; z-index: 2; line-height: 1; }
.lb-close:hover { background: var(--accent-cyan); color: #07090E; }
.lb-cap { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* ── SERVICES PAGE ── */
.svc-nav { position: sticky; top: 0; z-index: 900; background: rgba(15, 16, 18, 0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--card-border); }
.svc-nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 12px 24px; display: flex; gap: 8px; overflow-x: auto; }
.svc-nav-link { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 8px 16px; border-radius: var(--radius-full); white-space: nowrap; border: 1px solid transparent; }
.svc-nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.svc-nav-link.active { color: var(--accent-cyan); background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.3); }
.svc-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 48px; align-items: start; }
.svc-layout.flip > :first-child { order: 2; }
.svc-layout.flip > :last-child { order: 1; }
.svc-num { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 14px; padding: 6px 14px; background: rgba(241, 101, 33, 0.08); border: 1px solid rgba(241, 101, 33, 0.25); border-radius: var(--radius-full); }
.svc-main h3 { font-size: 27px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 16px; }
.svc-main > p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.svc-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tier { font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: var(--radius-full); border: 1px solid var(--card-border); }
.tier.primary { color: var(--accent-cyan); background: rgba(241, 101, 33, 0.08); border-color: rgba(241, 101, 33, 0.3); }
.tier.secondary { color: var(--text-muted); background: rgba(255,255,255,0.03); }
.for-box, .not-box { display: flex; gap: 16px; align-items: flex-start; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 20px; margin: 16px 0; }
.not-box { border-left: 4px solid #EF4444; }
.for-icon { width: 46px; height: 46px; min-width: 46px; border-radius: var(--radius-sm); background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.25); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.for-label, .not-box-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 6px; }
.not-box-label { color: #EF4444; }
.for-text, .not-box-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.del-head { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin: 24px 0 12px; }
.del-list { border-left: 2px dashed var(--card-border); margin-left: 6px; }
.del-item { position: relative; padding: 8px 0 8px 22px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.del-item::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); }
.process-card { position: relative; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.process-card-head h4 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 16px; }
.process-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--card-border); }
.process-step:last-child { border-bottom: none; }
.ps-num { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.3); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--accent-cyan); }
.ps-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.ps-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.metric-card { background: linear-gradient(135deg, rgba(16,185,129,0.12), var(--card-bg)); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius-lg); padding: 26px; }
.metric-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.metric-num { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; color: #10B981; line-height: 1; margin-bottom: 10px; }
.metric-sub { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.highlight-card { background: rgba(241, 101, 33, 0.05); border: 1px solid rgba(241, 101, 33, 0.25); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.hc-icon { font-size: 26px; margin-bottom: 12px; }
.hc-title { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.hc-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.hc-list { list-style: none; margin: 0; padding: 0; }
.hc-list li { position: relative; padding: 7px 0 7px 20px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.hc-list li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-cyan); }
.call-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; }
.call-card-icon { font-size: 24px; margin-bottom: 10px; }
.call-card h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.call-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.call-card-note { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); border-top: 1px solid var(--card-border); padding-top: 12px; }
.tool-ref-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 20px; }
.tool-ref-head h4 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 12px; }
.tool-ref-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-md); transition: background 0.2s; }
.tool-ref-item:hover { background: rgba(255,255,255,0.04); }
.tri-icon { font-size: 20px; }
.tri-name { font-size: 14px; font-weight: 700; color: #fff; }
.tri-sub { font-size: 11.5px; color: var(--text-muted); }
.section.bg { background: var(--bg-subtle); }

/* ── SERVICES ── */
.svc-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--card-border); max-width: 620px; }
.svc-stat-num { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #fff; margin-bottom: 6px; }
.svc-stat-lab { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.svc-nav { position: sticky; top: 0; z-index: 900; background: rgba(15, 16, 18, 0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--card-border); }
.svc-nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 12px 24px; display: flex; gap: 8px; overflow-x: auto; }
.svc-nav-link { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 8px 16px; border-radius: var(--radius-full); white-space: nowrap; border: 1px solid transparent; }

/* ── JOURNEY PAGE ── */
.main-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.timeline { position: relative; max-width: 760px; }
.timeline::before {
  content: ''; position: absolute; top: 24px; bottom: 24px; left: 5px;
  width: 2px; background: linear-gradient(180deg, var(--card-border), var(--accent-cyan));
  opacity: 0.5; z-index: 0;
}
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin-bottom: 20px; position: relative; z-index: 1; }
.tl-year { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.tl-yr { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent-cyan); background: var(--bg); border: 1px solid rgba(241, 101, 33, 0.3); padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--card-border); border: 2px solid var(--text-dim); margin-left: 0; align-self: start; margin-top: 4px; position: relative; }
.tl-dot.on { background: var(--accent-cyan); border-color: var(--accent-cyan); box-shadow: 0 0 0 5px rgba(241, 101, 33, 0.12), 0 0 12px var(--accent-cyan); }
.tl-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 24px; transition: all 0.3s ease; }
.tl-card:hover { border-color: rgba(252, 166, 77, 0.4); transform: translateY(-3px); }
.tl-card.hl { border-color: rgba(241, 101, 33, 0.35); box-shadow: var(--shadow-glow); }
.tl-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 8px; }
.tl-card h3 { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.company { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; font-family: 'JetBrains Mono', monospace; }
.tl-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); border: 1px solid var(--card-border); padding: 4px 10px; border-radius: var(--radius-full); }
.tl-tag.g { color: var(--accent-cyan); border-color: rgba(241, 101, 33, 0.3); }
.tl-profile-link { display: inline-flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent-cyan); margin-top: 10px; }
.now-card { border: 1.5px dashed rgba(241, 101, 33, 0.6); background: rgba(241, 101, 33, 0.06); }
.tl-card code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; color: var(--accent-cyan); }
.tl-tags-sp { margin-top: 14px; }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }

/* ── JOURNEY SIDEBAR ── */
.journey-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-height) + 20px); }
.jar-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 22px; }
.jar-card-head { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--accent-cyan); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--card-border); }
.jar-skill { margin-bottom: 14px; }
.jar-skill:last-child { margin-bottom: 0; }
.jar-skill-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.jar-skill-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent-cyan); font-weight: 700; }
.jar-bar { height: 6px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; }
.jar-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal)); }
.jar-cred { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.jar-cred + .jar-cred { border-top: 1px dashed var(--card-border); }
.jar-cred-ic { width: 38px; height: 38px; min-width: 38px; border-radius: var(--radius-sm); background: rgba(241, 101, 33, 0.1); border: 1px solid rgba(241, 101, 33, 0.25); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.jar-cred-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 3px; }
.jar-cred-sub { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.jar-lang { margin-bottom: 14px; }
.jar-lang:last-child { margin-bottom: 0; }
.jar-lang-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.jar-lang-lv { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); }
.jar-dots { display: flex; gap: 6px; }
.jar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-subtle); border: 1px solid var(--card-border); }
.jar-dot.on { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.jar-cta { background: linear-gradient(135deg, rgba(241, 101, 33, 0.12), rgba(252, 166, 77, 0.05)); border: 1px solid rgba(241, 101, 33, 0.3); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.jar-cta h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.jar-cta p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

/* ── JOURNEY REBUILD ── */
.journey-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--card-border); }
.journey-stat { text-align: center; }
.journey-stat-num { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1; background: var(--grad-accent-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.journey-stat-lab { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

.tl-phase { display: flex; align-items: center; gap: 16px; margin: 36px 0 20px; }
.tl-phase + .tl-item { margin-top: 0; }
.tl-phase-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.09em; white-space: nowrap; padding: 7px 16px; border-radius: var(--radius-full); border: 1px solid rgba(241, 101, 33, 0.3); background: rgba(241, 101, 33, 0.08); }
.tl-phase::before, .tl-phase::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }

.tl-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--accent-cyan); background: rgba(241, 101, 33, 0.08); border: 1px solid rgba(241, 101, 33, 0.25); padding: 6px 12px; border-radius: var(--radius-full); margin: 12px 0 0; }
.inline-link { color: var(--accent-cyan); font-weight: 600; }

.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lesson-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 28px; }
.lesson-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 10px; }
.lesson-icon { font-size: 26px; margin-bottom: 12px; }
.lesson-card h3 { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 8px; }
.lesson-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 28px; border-top: 3px solid var(--accent-cyan); }
.value-num { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--accent-cyan); margin-bottom: 10px; }
.value-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

@media (max-width: 1024px) {
  .hero-grid, .svc-layout, .main-wrap { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .hero-preview-card { max-width: 360px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .svc-layout.flip > :first-child { order: initial; }
  .svc-layout.flip > :last-child { order: initial; }
  .journey-side { position: static; }
  .lesson-grid, .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .svc-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .journey-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .lesson-grid, .value-grid { grid-template-columns: 1fr; }
  .hub-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; align-items: center; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .timeline::before { left: 7px; top: 28px; }
  .tl-year { flex-direction: row; align-items: center; gap: 12px; padding-top: 0; }
  .tl-dot { margin-top: 0; }
}

@media (max-width: 900px) {
  .blog-grid, .tools-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .author-bio { flex-direction: column; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE NAV ── */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: calc(var(--nav-height) + 10px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch;
    background: rgba(15, 16, 18, 0.97);
    border: 1px solid var(--card-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    padding: 10px; gap: 4px;
    max-height: calc(100vh - var(--nav-height) - 24px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav-wrap.open .nav-links {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .nav-links a {
    width: 100%; padding: 12px 16px; font-size: 15px; border-radius: 10px;
    color: var(--text-main); text-align: left;
  }
  .nav-links a.active { justify-content: flex-start; }
  .nav-links a.nav-cta { text-align: center; margin-top: 8px; }
  .nav-wrap.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-wrap.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-wrap.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ══════════════════════ ESID-STYLE ANIMATIONS ══════════════════════ */
@keyframes esid-fade-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes esid-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(241, 101, 33, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(241, 101, 33, 0.05); }
}
@keyframes esid-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes esid-glow-float {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-6px); opacity: 0.85; }
}
@keyframes esid-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.page-hero, .hero { animation: esid-fade-up 0.5s ease-out both; }
.tool-icon-box {
  background: linear-gradient(100deg,
    var(--bg-subtle) 0%, var(--bg-subtle) 40%,
    rgba(241, 101, 33, 0.15) 50%,
    var(--bg-subtle) 60%, var(--bg-subtle) 100%);
  background-size: 200% 100%;
  animation: esid-shimmer 4s linear infinite;
}
.tool-status-badge, .hero-badge, .section-tag { animation: esid-badge-pulse 2.4s ease-in-out infinite; }

.tool-card-bento, .blog-card, .bento-card, .related-card, .tool-card-simple,
.svc-main, .process-card, .metric-card, .highlight-card, .call-card, .tool-ref-card,
.tl-card, .for-box, .not-box, .cta-box, .author-bio {
  animation: esid-fade-up 0.5s ease-out both;
}
.tools-grid > *:nth-child(2), .blog-grid > *:nth-child(2), .bento-grid > *:nth-child(2),
.tool-card-bento:nth-child(2) { animation-delay: 0.06s; }
.tool-card-bento:nth-child(3), .tools-grid > *:nth-child(3), .blog-grid > *:nth-child(3), .bento-grid > *:nth-child(3) { animation-delay: 0.12s; }
.tool-card-bento:nth-child(4), .tools-grid > *:nth-child(4), .blog-grid > *:nth-child(4), .bento-grid > *:nth-child(4) { animation-delay: 0.18s; }
.tool-card-bento:nth-child(5), .tools-grid > *:nth-child(5), .blog-grid > *:nth-child(5), .bento-grid > *:nth-child(5) { animation-delay: 0.24s; }
.tool-card-bento:nth-child(6), .tools-grid > *:nth-child(6), .blog-grid > *:nth-child(6), .bento-grid > *:nth-child(6) { animation-delay: 0.3s; }

.hero-photo-card { animation: esid-glow-float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
