:root {
  --bg: #090b0f;
  --bg-elevated: #10131a;
  --card: rgba(20, 23, 31, 0.84);
  --card-solid: #14171f;
  --text: #f5f7fb;
  --muted: #a4a9b5;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #b8ff5a;
  --accent-2: #7c5cff;
  --accent-soft: rgba(184, 255, 90, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --header-bg: rgba(9, 11, 15, 0.72);
}

html[data-theme="light"] {
  --bg: #edf0f5;
  --bg-elevated: #f7f8fb;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --text: #171923;
  --muted: #616775;
  --line: rgba(14, 18, 27, 0.10);
  --line-strong: rgba(14, 18, 27, 0.18);
  --accent: #64b700;
  --accent-2: #6548e5;
  --accent-soft: rgba(100, 183, 0, 0.11);
  --shadow: 0 20px 60px rgba(40, 47, 65, 0.12);
  --header-bg: rgba(237, 240, 245, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 92, 255, 0.13), transparent 32rem),
    radial-gradient(circle at 95% 12%, rgba(184, 255, 90, 0.09), transparent 29rem),
    var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #10120d; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .11), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .25s ease;
}

.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .35s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.navbar-brand { color: var(--text) !important; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-mark span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 2px;
  border-radius: 10px;
  color: #0c1008;
  background: var(--accent);
  transform: rotate(-5deg);
}
.navbar-nav .nav-link {
  color: var(--muted);
  font-size: .91rem;
  font-weight: 700;
  padding: .58rem .82rem !important;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--text); background: var(--card); }

.theme-toggle,
.custom-toggler {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: rotate(10deg); border-color: var(--line-strong); }
.custom-toggler { display: none; padding: 10px; }
.custom-toggler:focus { box-shadow: none; }
.custom-toggler span { width: 19px; height: 2px; margin: 2px 0; background: var(--text); border-radius: 2px; }

.section-shell { padding: 68px 0; }
.hero-section { padding-top: 48px; }
.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading h2,
.intro-card h2,
.contact-copy-card h2 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.section-heading h2 { font-size: clamp(2.05rem, 5vw, 4.2rem); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.accent-line { display: inline-block; width: 34px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--accent); }

.bento-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--card), rgba(20, 23, 31, .62));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .35s ease;
}
html[data-theme="light"] .bento-card { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(248,249,252,.86)); }
.bento-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.04), transparent 38%);
}
.card-label { margin-bottom: 24px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.profile-card { display: flex; flex-direction: column; min-height: 648px; }
.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(184, 255, 90, .2);
  font-size: .76rem;
  font-weight: 700;
}
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(184,255,90,.12); animation: pulse 2s infinite; }
.portrait-wrap { position: relative; width: min(100%, 360px); margin: 28px auto 26px; }
.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  filter: saturate(.92) contrast(1.02);
}
.portrait-ring { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--line-strong); border-top-color: var(--accent); border-right-color: var(--accent-2); animation: spin 16s linear infinite; }
.profile-meta { margin-top: auto; }
.profile-meta h1 { margin: 0 0 7px; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; letter-spacing: -.055em; }
.profile-meta .role { margin: 0; color: var(--muted); font-size: 1rem; }
.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-row a:hover { color: #10130d; background: var(--accent); transform: translateY(-3px); }

.intro-card { min-height: 390px; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 56px); }
.intro-card::after { content: "</>"; position: absolute; right: 28px; top: 15px; color: rgba(255,255,255,.035); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 8rem; line-height: 1; }
html[data-theme="light"] .intro-card::after { color: rgba(20,23,31,.035); }
.intro-card h2 { position: relative; z-index: 1; max-width: 830px; font-size: clamp(2.3rem, 5vw, 4.75rem); }
.intro-card h2 span { color: var(--accent); }
.intro-copy { position: relative; z-index: 1; max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1.03rem; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { border-radius: 14px; padding: .83rem 1.16rem; font-weight: 800; font-size: .9rem; }
.btn-accent { color: #10130d; background: var(--accent); border: 1px solid var(--accent); }
.btn-accent:hover, .btn-accent:focus { color: #10130d; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(184,255,90,.16); }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--text); }

.stat-card { min-height: 220px; }
.stat-number, .stat-suffix { color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 4.1rem; font-weight: 700; line-height: 1; letter-spacing: -.07em; }
.stat-suffix { color: var(--accent); }
.stat-card p { margin: 24px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.availability-card { min-height: 220px; display: flex; flex-direction: column; }
.availability-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--accent); background: var(--accent-soft); font-size: 1.3rem; }
.availability-card p { margin: 22px 0; color: var(--text); font-weight: 700; line-height: 1.5; }
.availability-card a { margin-top: auto; color: var(--accent); font-size: .86rem; font-weight: 800; }

.about-card { min-height: 500px; }
.lead-copy { color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 3vw, 2.45rem); font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
.about-card > p:not(.lead-copy) { max-width: 850px; color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.capability-grid div { display: flex; align-items: center; gap: 10px; padding: 15px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: .87rem; font-weight: 700; }
.capability-grid i { color: var(--accent); }
.stack-card { min-height: 500px; }
.stack-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-cloud span, .mini-tags span { padding: 8px 11px; border-radius: 999px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .76rem; font-weight: 700; }
.stack-cloud span:nth-child(4n+1) { border-color: rgba(184,255,90,.25); background: var(--accent-soft); }
.stack-note { display: flex; gap: 13px; margin-top: 32px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(184,255,90,.08)); border: 1px solid var(--line); }
.stack-note i { color: var(--accent); }
.stack-note p { margin: 0; color: var(--muted); font-size: .87rem; }

.timeline-card { padding-bottom: 10px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 18px; padding-bottom: 34px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; top: 18px; bottom: 0; left: 6px; width: 1px; background: var(--line-strong); }
.timeline-dot { width: 13px; height: 13px; margin-top: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.timeline-content h3, .education-item h3, .cert-row h3, .project-body h3 { margin: 0; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.025em; }
.timeline-content h3 { font-size: 1.45rem; }
.company { margin: 4px 0 0; color: var(--accent); font-size: .87rem; font-weight: 700; }
.date-chip { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; }
.timeline-content > p { margin: 18px 0; color: var(--muted); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-tags span { padding: 6px 9px; font-size: .69rem; }

.education-item + .education-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.education-item span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.education-item h3 { margin-top: 6px; font-size: 1.05rem; }
.education-item p { margin: 6px 0 0; color: var(--muted); font-size: .83rem; }
.cert-row { display: flex; gap: 13px; }
.cert-row + .cert-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cert-row > i { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
.cert-row h3 { font-size: .96rem; }
.cert-row p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }

.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filter-btn { padding: 9px 13px; border-radius: 999px; color: var(--muted); background: var(--card); border: 1px solid var(--line); font-size: .76rem; font-weight: 800; transition: all .2s ease; }
.filter-btn:hover, .filter-btn.active { color: #10130d; background: var(--accent); border-color: var(--accent); }
.project-item { transition: opacity .25s ease, transform .25s ease; }
.project-item.is-hidden { display: none; }
.project-card { padding: 14px; }
.project-visual { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: 21px; overflow: hidden; }
.project-visual i { align-self: flex-end; font-size: 4.8rem; opacity: .62; }
.project-visual span { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; }
.visual-erp { color: #122005; background: linear-gradient(135deg, #b8ff5a, #70d62d); }
.visual-api { color: #fff; background: linear-gradient(135deg, #7c5cff, #3b2b8f); }
.visual-docs { color: #071a1d; background: linear-gradient(135deg, #5ef2ff, #2da2b9); }
.visual-site { color: #2d0e1a; background: linear-gradient(135deg, #ff9fbd, #dd5e8a); }
.project-body { position: relative; padding: 24px 12px 12px; }
.project-index { position: absolute; top: 20px; right: 8px; color: var(--line-strong); font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; }
.project-body h3 { max-width: 80%; font-size: 1.42rem; }
.project-body p { margin: 15px 0 18px; color: var(--muted); font-size: .91rem; }

.contact-copy-card { min-height: 520px; padding: clamp(30px, 5vw, 54px); display: flex; flex-direction: column; justify-content: center; }
.contact-copy-card h2 { max-width: 780px; font-size: clamp(2.6rem, 5vw, 5rem); }
.contact-copy-card > p:not(.eyebrow) { max-width: 730px; margin: 24px 0; color: var(--muted); }
.contact-mail { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--accent); font-family: "Space Grotesk", sans-serif; font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 700; border-bottom: 1px solid currentColor; }
.contact-details { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.contact-details span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-details p, .contact-details a { margin: 0; color: var(--text); font-size: .9rem; font-weight: 700; }
.contact-form-card { display: flex; align-items: center; }
.contact-form-card form { width: 100%; }
.form-label { color: var(--text); font-size: .8rem; font-weight: 800; }
.form-control { color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px; padding: .86rem .95rem; }
.form-control:focus { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--accent); box-shadow: 0 0 0 .2rem var(--accent-soft); }
.form-control::placeholder { color: var(--muted); }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }

.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font-size: .8rem; }
.site-footer a { color: var(--text); font-size: .8rem; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .65; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  .custom-toggler { display: grid; }
  .navbar-collapse { padding: 12px 0 4px; }
  .navbar-nav { padding: 12px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .profile-card { min-height: auto; }
  .portrait-wrap { width: min(78vw, 370px); }
  .section-shell { padding: 50px 0; }
}

@media (max-width: 767.98px) {
  .container { --bs-gutter-x: 1.4rem; }
  .bento-card { padding: 22px; border-radius: 24px; }
  .intro-card { min-height: 440px; }
  .intro-card h2 { font-size: clamp(2.1rem, 10.5vw, 3.8rem); }
  .intro-card::after { font-size: 5rem; }
  .stat-card, .availability-card { min-height: 190px; }
  .capability-grid { grid-template-columns: 1fr; }
  .timeline-top { flex-direction: column; gap: 10px; }
  .project-visual { min-height: 190px; }
  .contact-copy-card { min-height: 470px; }
}

@media (max-width: 575.98px) {
  .hero-section { padding-top: 24px; }
  .profile-meta h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-heading h2 { font-size: 2.35rem; }
  .contact-copy-card h2 { font-size: 2.55rem; }
  .contact-details { gap: 22px; }
  .project-filters { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}


/* Multi-page portfolio additions */
.header-cv { align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; color: var(--text); background: var(--card); border: 1px solid var(--line); font-size: .76rem; font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.header-cv:hover { color: var(--text); transform: translateY(-2px); border-color: var(--line-strong); }
.section-tight { padding-top: 26px; }
.section-intro { max-width: 720px; margin: 16px 0 0; color: var(--muted); }
.page-hero { padding-bottom: 28px; }
.page-hero-card { min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(34px, 6vw, 72px); }
.page-hero-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -130px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(184,255,90,.22), transparent 67%); }
.page-hero-icon { position: absolute; top: 34px; right: 38px; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 23px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,255,90,.18); font-size: 1.8rem; }
.page-hero-card h1 { position: relative; z-index: 1; max-width: 980px; margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 700; letter-spacing: -.06em; line-height: .98; }
.page-hero-card > p:last-child { position: relative; z-index: 1; max-width: 800px; margin: 26px 0 0; color: var(--muted); font-size: 1.04rem; }

.page-nav-card { display: block; min-height: 295px; }
.page-nav-card > span, .value-card > span, .service-top > span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.page-nav-card h3, .value-card h3, .service-card h3, .quick-card h3, .cta-card h3, .system-card h3 { margin: 30px 0 12px; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.03em; }
.page-nav-card h3 { font-size: 1.65rem; }
.page-nav-card p, .value-card p, .service-card > p, .quick-card p, .cta-card p { color: var(--muted); }
.page-nav-card .arrow { position: absolute; right: 26px; top: 28px; color: var(--muted); }
.page-nav-card:hover .arrow { color: var(--accent); }
.icon-badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 17px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,255,90,.16); font-size: 1.25rem; }
.feature-callout { min-height: 390px; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 54px); }
.feature-callout h2, .wide-cta h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
.feature-callout h2 { max-width: 830px; font-size: clamp(2.2rem, 4.5vw, 4rem); }
.feature-callout > p:not(.eyebrow) { max-width: 760px; margin: 22px 0; color: var(--muted); }
.cta-card { display: flex; flex-direction: column; justify-content: center; min-height: 390px; }
.cta-card h3 { margin-top: 14px; font-size: 2rem; }
.cta-card .btn { align-self: flex-start; margin-top: 14px; }

.profile-side { padding: 15px; }
.about-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; }
.profile-side-body { padding: 24px 12px 12px; }
.profile-side-body h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.detail-list { margin-top: 28px; }
.detail-list div { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid var(--line); }
.detail-list span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.detail-list strong, .detail-list a { color: var(--text); font-size: .86rem; font-weight: 700; }
.value-card { min-height: 300px; }
.value-card h3 { margin-top: 30px; font-size: 1.55rem; }

.service-card { min-height: 410px; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-card h3 { font-size: 1.65rem; }
.service-list, .responsibility-list, .system-feature-list, .system-columns ul { margin: 22px 0 0; padding: 0; list-style: none; }
.service-list li, .responsibility-list li, .system-feature-list li, .system-columns li { position: relative; padding: 9px 0 9px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .84rem; }
.service-list li::before, .responsibility-list li::before, .system-feature-list li::before, .system-columns li::before { content: ""; position: absolute; left: 1px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.process-step { min-height: 270px; padding: 28px 24px; background: var(--card); }
.process-step + .process-step { border-left: 1px solid var(--line); }
.process-step span { color: var(--accent); font-size: .74rem; font-weight: 800; }
.process-step h3 { margin: 70px 0 12px; font-family: "Space Grotesk", sans-serif; font-size: 1.22rem; font-weight: 700; }
.process-step p { margin: 0; color: var(--muted); font-size: .82rem; }
.wide-cta { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px, 5vw, 54px); }
.wide-cta h2 { max-width: 800px; font-size: clamp(2rem, 4vw, 3.6rem); }
.wide-cta .btn { flex: 0 0 auto; }

.timeline-expanded .timeline-item { padding-bottom: 48px; }
.role-summary { color: var(--text) !important; font-size: 1rem; font-weight: 600; }
.experience-block { margin-top: 28px; }
.experience-block h4 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1rem; font-weight: 700; }
.responsibility-list { margin-top: 10px; }
.responsibility-list li { line-height: 1.65; }
.quick-card .icon-badge { margin-bottom: 20px; }
.quick-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.quick-card .btn { margin-top: 12px; }

.system-card { min-height: 540px; display: grid; grid-template-columns: 76px 1fr; gap: 22px; }
.system-featured { min-height: 590px; grid-template-columns: 88px 1fr; padding: clamp(30px, 5vw, 56px); }
.system-number { position: absolute; top: 24px; right: 28px; color: var(--line-strong); font-family: "Space Grotesk", sans-serif; font-size: 3rem; font-weight: 700; }
.system-icon { display: grid; place-items: center; align-self: start; width: 72px; height: 72px; border-radius: 22px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,255,90,.18); font-size: 1.55rem; }
.system-content { padding-right: 10px; }
.system-content h2, .system-content h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.04em; }
.system-content h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.system-content h3 { font-size: 1.8rem; }
.system-content > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); }
.system-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
.system-columns h4 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.system-feature-list { margin-bottom: 24px; }

.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.project-toolbar > p { margin: 0; color: var(--text); font-weight: 800; }
.project-toolbar .project-filters { margin-top: 0; }
.visual-data { color: #17110a; background: linear-gradient(135deg, #ffd36b, #ef9d33); }
.visual-support { color: #fff; background: linear-gradient(135deg, #304e74, #14273f); }
.project-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--accent); font-size: .8rem; font-weight: 800; }

.quick-contact { display: flex; flex-direction: column; min-height: 230px; }
.quick-contact span { margin-top: auto; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.quick-contact strong { margin-top: 5px; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }
.quick-contact > i { position: absolute; top: 26px; right: 26px; color: var(--muted); }
.quick-contact:hover > i { color: var(--accent); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; padding: 48px 0 38px; }
.footer-brand { margin-bottom: 16px; }
.footer-grid > div:first-child p { max-width: 500px; margin: 0; color: var(--muted); font-size: .83rem; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links span { margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { align-self: flex-start; color: var(--text); font-size: .82rem; font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .77rem; }
.footer-bottom a { color: var(--text); font-size: .78rem; font-weight: 800; }

@media (max-width: 1199.98px) {
  .navbar-nav .nav-link { padding: .52rem .58rem !important; font-size: .82rem; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-step + .process-step { border-left: 1px solid var(--line); }
  .process-step:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .process-step:nth-child(5) { border-top: 1px solid var(--line); }
}

@media (max-width: 991.98px) {
  .page-hero-card { min-height: 360px; }
  .system-card, .system-featured { grid-template-columns: 1fr; }
  .system-content { padding-right: 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .page-hero-card { min-height: 410px; justify-content: flex-end; }
  .page-hero-icon { top: 24px; right: 24px; width: 58px; height: 58px; border-radius: 18px; font-size: 1.35rem; }
  .page-hero-card h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 220px; }
  .process-step + .process-step, .process-step:nth-child(4), .process-step:nth-child(5) { border-left: 0; border-top: 1px solid var(--line); }
  .process-step h3 { margin-top: 48px; }
  .wide-cta, .project-toolbar { align-items: flex-start; flex-direction: column; }
  .wide-cta .btn { width: 100%; }
  .system-columns { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .page-nav-card, .value-card, .service-card { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .system-card { min-height: auto; }
}


/* Dedicated services page */
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.service-tags span { padding: 6px 9px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,255,90,.16); font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
.stack-service-card { min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; }
.stack-service-card > i { position: absolute; top: 28px; right: 28px; color: var(--accent); font-size: 1.55rem; }
.stack-service-card h3 { margin: 0 0 14px; font-family: "Space Grotesk", sans-serif; font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; }
.stack-service-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.75; }
@media (max-width: 575.98px) { .stack-service-card { min-height: 240px; } }
