@layer base{html,body{margin:0;padding:0;}body{overscroll-behavior:none;}main>:first-child{margin-top:0!important;}main>:last-child{margin-bottom:0!important;}}
::-webkit-scrollbar{display:none;}
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
}
.bg-dots-pattern {
  background-image: radial-gradient(rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}
.animate-pulse-subtle {
  animation: pulse-subtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes stream-flow {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(100%); opacity: 0; }
}
.animate-stream {
  animation: stream-flow 2.4s ease-in-out infinite;
}

/* Portfolio */
.portfolio-section {
  padding: 96px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 96px;
}
.portfolio-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.portfolio-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.portfolio-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #1d4ed8; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.portfolio-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #1d4ed8; }
.portfolio-heading h2 { margin: 16px 0 12px; font-family: Manrope, sans-serif; font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: #0a0f1d; }
.portfolio-heading p { margin: 0; color: #434655; font-size: 15px; line-height: 1.7; }
.portfolio-contact { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #1d4ed8; font-size: 14px; font-weight: 600; padding: 8px 0; }
.portfolio-contact:hover { color: #0037b0; }
.portfolio-grid { display: grid; gap: 32px; }
.portfolio-project { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 12px 36px -24px rgba(10, 15, 29, .28); }
.portfolio-preview { display: flex; flex-direction: column; min-width: 0; padding: 32px; color: #fff; background: radial-gradient(ellipse at 100% 0, #26396a 0, transparent 65%), #0b1020; }
.portfolio-preview-top, .portfolio-preview-bottom { display: flex; justify-content: space-between; align-items: center; color: #b2bfd9; font-family: monospace; font-size: 10px; letter-spacing: .1em; }
.portfolio-preview-top { padding-bottom: 20px; border-bottom: 1px solid #ffffff1a; }
.portfolio-preview-title { margin: 26px 0; font-family: Manrope, sans-serif; font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.portfolio-preview-title > span { display: block; margin-top: 10px; color: #b8c7ed; font-family: Inter, sans-serif; font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.portfolio-signals { display: grid; gap: 15px; }
.portfolio-signals > div { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; font-family: monospace; font-size: 10px; letter-spacing: .08em; color: #b2bfd9; }
.portfolio-signal-track { height: 6px; background: #ffffff0d; border-radius: 6px; overflow: hidden; }
.portfolio-signal-track > span { display: block; height: 100%; background: linear-gradient(90deg, #5379fa, #91a9ff); border-radius: inherit; }
.portfolio-signal-roles { width: 82%; }
.portfolio-signal-skills { width: 64%; }
.portfolio-signal-assessments { width: 91%; }
.portfolio-signal-placements { width: 47%; }
.portfolio-signal-track > .portfolio-signal-salaries { width: 73%; background: linear-gradient(90deg, #20bfe8, #a1e9eb); }
.portfolio-preview-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid #ffffff1a; }
.portfolio-preview-bottom .material-symbols-outlined { font-size: 20px; color: #91a9ff; }
.portfolio-preview-syndric { background: radial-gradient(ellipse at 100% 0, #174858 0, transparent 70%), #0b1520; }
.portfolio-preview-syndric .portfolio-preview-title { font-size: clamp(32px, 6vw, 52px); }
.portfolio-system-map { margin: 4px 0; }
.portfolio-system-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.portfolio-system-sources > span { padding: 6px 10px; border: 1px solid #ffffff26; border-radius: 6px; background: #ffffff08; color: #c3dbe4; font-size: 11px; }
.portfolio-system-connector { display: block; margin: 12px auto; width: fit-content; color: #70d7e8; }
.portfolio-system-record { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px 12px; border: 1px solid #70d7e84d; border-radius: 12px; background: #20bfe80d; }
.portfolio-system-record > .material-symbols-outlined { color: #70d7e8; font-size: 28px; }
.portfolio-system-record > span:last-child { font-size: 14px; font-weight: 600; }
.portfolio-system-record strong { display: block; margin-top: 6px; font-family: monospace; color: #a7d2de; font-size: 9px; font-weight: 400; letter-spacing: .06em; }
.portfolio-project-content { display: flex; flex-direction: column; padding: 40px; min-width: 0; }
.portfolio-project-label { color: #1d4ed8; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.portfolio-project-content h3 { margin: 16px 0 4px; color: #0a0f1d; font-family: Manrope, sans-serif; font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.portfolio-project-subtitle { margin: 0; color: #434655; font-size: 18px; font-weight: 500; }
.portfolio-project-description { margin: 20px 0; color: #64748b; font-size: 15px; line-height: 1.8; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.portfolio-tags li { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 6px; color: #434655; background: #f8fafc; font-size: 11px; line-height: 1.5; }
.portfolio-project-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.portfolio-project-footer > span { color: #64748b; font-family: monospace; font-size: 11px; }
.portfolio-project-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 8px; background: #1d4ed8; color: #fff; font-size: 13px; font-weight: 600; transition: background .2s; }
.portfolio-project-link:hover { background: #2563eb; }
.portfolio-project-link .material-symbols-outlined { font-size: 18px; }
.portfolio-case-study { grid-column: 1 / -1; padding: 40px; border-top: 1px solid #e2e8f0; scroll-margin-top: 100px; }
.portfolio-case-study-heading { max-width: 720px; }
.portfolio-case-study h4 { margin: 12px 0; color: #0a0f1d; font-family: Manrope, sans-serif; font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.portfolio-case-study p { color: #64748b; font-size: 14px; line-height: 1.8; margin: 0; }
.portfolio-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.portfolio-capabilities > div { padding: 24px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.portfolio-capabilities .material-symbols-outlined { color: #1d4ed8; font-size: 28px; }
.portfolio-case-study h5 { margin: 12px 0 8px; color: #0a0f1d; font-family: Manrope, sans-serif; font-size: 15px; line-height: 1.5; font-weight: 700; }
.portfolio-use-cases { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-bottom: 20px; }
.portfolio-use-cases h5 { margin-top: 0; }
.portfolio-section a:focus-visible, .portfolio-hero-link:focus-visible { outline: 3px solid #2563eb; outline-offset: 5px; }
.portfolio-hero-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #1d4ed8; font-size: 13px; font-weight: 600; }
.portfolio-hero-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .portfolio-project { grid-template-columns: 1fr; }
  .portfolio-preview { padding: 28px; }
  .portfolio-project-content { padding: 28px; }
  .portfolio-case-study { padding: 28px; }
  .portfolio-capabilities { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 640px) {
  .portfolio-section { padding: 64px 0; }
  .portfolio-container { padding: 0 16px; }
  .portfolio-heading { margin-bottom: 28px; }
  .portfolio-project { border-radius: 16px; }
  .portfolio-preview, .portfolio-project-content, .portfolio-case-study { padding: 24px; }
  .portfolio-project-content h3 { font-size: 30px; }
}
